// 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 pngIE(){
   if (navigator.appName.substring(0, 3) == "Mic"){
       for (i = 0; i < document.images.length; i++){
           if (document.images[i].src.substring(document.images[i].src.length-3, document.images[i].src.length) == "png") {
             document.images[i].style.height = document.images[i].height + "px";
             document.images[i].style.width = document.images[i].width + "px";
             document.images[i].style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src=" + document.images[i].src + ",sizingMethod='scale')";
             document.images[i].src = "img/transparent.gif";
           }
       }
   }
}
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:"./flash/home.swf",
		width:660,
		height:441,
		wmode:"transparent"
		},{
			version:9
		}
	);
	$(".flashperso").flash({
		src:"./flash/perso.swf",
		width:867,
		height:222,
		wmode:"transparent"
		},{
			version:9
		}
	);
	
	$(".flashexpo").flash({
		src:"./flash/flash_expo.swf",
		width:236,
		height:352,
		wmode:"transparent"
		},{
			version:9
		}
	);
	$(".player_son").flash({
		src:"./flash/player_son.swf",
		width:420,
		height:29,
		wmode:"transparent"
		},{
			version:9
		}
	);
	$(".player_video").flash({
		src:"./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});
	
});

