/*alert("bonjour");*/

/* ================================================================ 
Réalisé et adapté par SCH GUILLEMOT
14/10/2009
	renommage complet des div menu afin de rendre cohérent la recherche de code.
=================================================================== */
jQuery().ready(function(){

/* ================================================================ */
/*GESTION DU MENU LATERAL GAUCHE*/
/* ================================================================ */	


	/*Affichage de la main sur les pseudo liens du menu de gauche*/
    $("#boxLeft li").mouseover(function () {
		$(this).css({'cursor' : 'pointer'});
	 });

    $("#boxLeft li").mouseout(function () {
		$(this).css({'cursor' : 'default'});
	 });



/*initialise le menu : en FOCUS sur le premier element du menu*/
		$("#boxLeft li").css({'color' : '#7a7067'});
		$("li#1").css({'color' : '#fff'});	 
	
	$("li#1").click(function(){
		/*$("#boxRight_elements").css({'margin-top' : '0px'});*/
		$("#boxRight_elements").animate({marginTop: "0px"}, 500 );
		$("#boxLeft").animate({backgroundPosition: "0px 0px"});
		$("#boxLeft li").css({'color' : '#7a7067'});
		$(this).css({'color' : '#fff'});
	});
	$("li#2").click(function(){
		/*$("#boxRight_elements").css({'margin-top' : '-370px'});*/
		$("#boxRight_elements").animate({marginTop: "-340px"}, 500 );
		$("#boxLeft").animate({backgroundPosition: "0px 40px"});
		$("#boxLeft li").css({'color' : '#7a7067'});
		$(this).css({'color' : '#fff'});
	});
	$("li#3").click(function(){
		/*$("#boxRight_elements").css({'margin-top' : '-740px'});*/
		$("#boxRight_elements").animate({marginTop: "-680px"}, 500 );
		$("#boxLeft").animate({backgroundPosition: '0px 80px'});
		$("#boxLeft li").css({'color' : '#7a7067'});
		$(this).css({'color' : '#fff'});
	});
	$("li#4").click(function(){
		/*$("#boxRight_elements").css({'margin-top' : '-1110px'});*/
		$("#boxRight_elements").animate({marginTop: "-1020px"}, 500 );
		$("#boxLeft").animate({backgroundPosition: '0px 120px'});
		$("#boxLeft li").css({'color' : '#7a7067'});
		$(this).css({'color' : '#fff'});
	});
	$("li#5").click(function(){
		/*$("#boxRight_elements").css({'margin-top' : '-1480px'});*/
		$("#boxRight_elements").animate({marginTop: "-1360px"}, 500 );
		$("#boxLeft").animate({backgroundPosition: '0px 160px'},500);
		$("#boxLeft li").css({'color' : '#7a7067'});
		$(this).css({'color' : '#fff'});
	});
	
	/*AFFICHAGE DE L'INFO DE LA CHAMBRE AU SURVOL DE LA PHOTO*/
	
	$(".boxRight_elementInfo").show();
	
	$(".boxRight_elementLogo").mouseover(function () {
        $(this).next(".boxRight_elementInfo").fadeOut("slow");
      });
	  
	$(".boxRight_element").mouseout(function () {
        $(".boxRight_elementInfo").fadeIn("slow");
      });	  

/* ================================================================ */
/*FIN DE JQUERY*/	
});
