$(document).ready(function(){
		
		
   
  		// menu over
  		 
		$(".imgmenu").mouseover(
		function(){
		$("#"+this.id).hide(0);
		var imgover=this.id+'_o';
		$("#"+imgover).show(0);
		}
		);
		
		// menu out
  		 
		$(".imgmenuover").mouseout(
		function(){
		$("#"+this.id).hide(0);
		var imgout=this.id.substring(0,(this.id.length-2));
		$("#"+imgout).show(0);
		}
		);
		
		// menu over cartouche
  		 
		$(".imgmenucartouche").mouseover(
		function(){
		
		//alert('imgmenucartouche over');
		//alert("#"+this.id+'_1');
		$("#"+this.id+'_1').hide(0);
		var imgover=this.id+'_2';
		$("#"+imgover).show(0);
		}
		);
		
		// menu out cartouche
  		 
		$(".imgmenucartouche").mouseout(
		function(){
		//alert('imgmenucartouche out');
		$("#"+this.id+'_2').hide(0);
		var imgout=this.id.substring(0,(this.id.length))+'_1';

		$("#"+imgout).show(0);
		}
		);
		
		// img menu cartouche => chgt texte couleur
		
		$(".cartouchepicto").mouseover(
		function(){

		//alert('cartouchepicto over');

		var textid=this.id.substring(0,(this.id.length)-2);

		$("#"+textid).css("color", "white");
		$("#"+textid+'_1').hide(0);
		$("#"+textid+'_2').show(0);
		
		}
		);
		
		// img menu cartouche => chgt texte couleur
  		 
		$(".imgmenuovercartouche").mouseout(
		function(){

		//alert('imgmenuovercartouche out');

		var textid=this.id.substring(0,(this.id.length)-2);

		$("#"+textid).css("color", "");
		$("#"+textid+'_2').hide(0);
		$("#"+textid+'_1').show(0);

		}
		);
		
		
		// img focus over
  		 
		$("#focuslink").mouseover(
		function(){
		$("#imgfocus").hide(0);
		$("#imgfocus_o").show(0);
		}
		);
		$("#galerielink").mouseover(
		function(){
		$("#imggalerie").hide(0);
		$("#imggalerie_o").show(0);
		}
		);
		
		// img galerie out
  		 
		$("#focuslink").mouseout(
		function(){
		$("#imgfocus_o").hide(0);
		$("#imgfocus").show(0);
		}
		);
		$("#galerielink").mouseout(
		function(){
		$("#imggalerie_o").hide(0);
		$("#imggalerie").show(0);
		}
		);
		
		// menu parutions
  		 
		$(".parunom").click(
		function(){
		$("#"+this.id+"_det").toggle(200);
		
		
		var actualbgimg = $("#"+this.id).css("background-image");
		
		//alert(actualbgimg);
		
		if(actualbgimg == 'url(http://dessons.com/img/fleche-off.gif)' || actualbgimg == 'url("http://dessons.com/img/fleche-off.gif")' || actualbgimg == 'url(http://www.dessons.com/img/fleche-off.gif)' || actualbgimg == 'url("http://www.dessons.com/img/fleche-off.gif")')
		{
			//alert('o');
			$("#"+this.id).css("background-image", "url(../img/fleche-on.gif)");
		}
		else
		{
			//alert('f');
			$("#"+this.id).css("background-image", "url(../img/fleche-off.gif)");
		
		}
		}
		);


		   
		
});
	
	
