// JavaScript Document



$(function() {
		   
		   
		   
		  /* 
		  $("#right ul li a").click(function(){
					
					
							$(this).parent("ul li").find("ul li").slideToggle("fast");	  
							if($(this).parent("ul li").find("ul li").css("display")=="block"){
								$(this).addClass("select");			  
							}else{
								$(this).addClass("");	
							}
										
											 
		  });
		   
		   */
		   
		   
		   $("#header input").click(function(){
				if($(this).attr("value")=="Recherche"){
						$(this).attr("value","");
				}								 
										 
		   });
		   
		   
	
  
		   
		   
		   
		   
});


function nbrcar(x,id){
	if(x.length>0){
		
		if(document.getElementById(id).style.display=="none"){
			$("#"+id).fadeIn("fast");
		}
		
			document.getElementById(id).style.display="block";
			document.getElementById(id).innerHTML=x.length;	
	}else{
		document.getElementById(id).style.display="none";
	}
}



window.onclick=function(){
		
	$("div.ok").fadeOut("slow");
	$("div.ko").fadeOut("slow");
}

 

