// JavaScript Document
var config = {    
	sensitivity:7, // number = sensitivity threshold (must be 1 or higher)    
	interval:100, // number = milliseconds for onMouseOver polling interval    
	over:affiche, // function = onMouseOver callback (REQUIRED)    
	out:masquer, // function = onMouseOut callback (REQUIRED)    
	timeout:500 // number = milliseconds delay before onMouseOut    
};
function affiche()
{
	$(this).children("ul").show();
	if($(this).children("a").children("img").length)
	{
		$(this).children("a").children("img").attr("src",$(this).children("a").children("img").attr("src").replace("_off","_on"));
	}
}
function masquer()
{
	$(this).children("ul").hide();
	if($(this).children("a").children("img").length)
	{
		$(this).children("a").children("img").attr("src",$(this).children("a").children("img").attr("src").replace("_on","_off"));
	}
}
$(function(){
	$("#inrecherche").focus(function(){
		$(this).val("");
	}).blur(function(){
		$(this).val("Rechercher");
	});
	$("#colright img").hover(function(){
		$(this).attr("src",$(this).attr("src").replace("_off","_on"));
	},function(){
		$(this).attr("src",$(this).attr("src").replace("_on","_off"));
	});
	/*	
	$("#flash").flash({
		src:"./fileadmin/templates/pinacotheque/flash/slider.swf",
		width:660,
		height:441,
		wmode:"transparent",
		flashvars:{
			data:"./fileadmin/scripts/scriptAcc.php"
		}},{
			version:9
		}
	);

	$(".flashperso").flash({
		src:"./fileadmin/templates/pinacotheque/flash/perso.swf",
		width:867,
		height:222,
		wmode:"transparent"
		},{
			version:9
		}
	);
	*/
	$(".flashperso").flash({
		src:"./fileadmin/templates/pinacotheque/flash/perso.swf",
		width:945,
		height:252,
		wmode:"transparent"
		},{
			version:9
		}
	);
	$(".flashexpoooo").flash({
		src:"./fileadmin/templates/pinacotheque/flash/slider.swf",
		width:236,
		height:352,
		wmode:"transparent"
		},{
			version:9
		}
	);
	$(".player_son").flash({
		src:"./fileadmin/templates/pinacotheque/flash/player_son.swf",
		width:420,
		height:29,
		wmode:"transparent"
		},{
			version:9
		}
	);
	$(".player_video").flash({
		src:"./fileadmin/templates/pinacotheque/flash/player_video.swf",
		width:480,
		height:396,
		wmode:"transparent"
		},{
			version:9
		}
	);
	
	$("#tans ul ul").hide();
	$("#tans>ul>li").hover(function(){
		$(this).children("ul").show();				
		$(this).children("a").children("img").attr("src",$(this).children("a").children("img").attr("src").replace("_off","_on"));
	},function(){
		$(this).children("ul").hide();								
		$(this).children("a").children("img").attr("src",$(this).children("a").children("img").attr("src").replace("_on","_off"));
	});
	$("#navsite ul").hide();
	$("#navsite li").hoverIntent(affiche,masquer);
	
	/*$(".picto_calendar").datePicker(); 
	
		$(".picto_calendar").datePicker({clickInput:true}); */
	
});
