$(document).ready(function() {




//ENCARTS RIGHT

	//$('.chalopin').hover(
//		function(){
//			$(this).stop(1,1).animate({'right':'0'},300);	
//		}, function(){
//			$(this).stop(1,1).animate({'right':'-266'},200);	
//		}
//	);
	
	$('.contact').hover(
		function(){
			$(this).stop(1,1).animate({'right':'0'},300);	
		}, function(){
			$(this).stop(1,1).animate({'right':'-266'},200);	
		}
	);
	
	//$('.plan').hover(
//		function(){
//			$(this).stop(1,1).animate({'right':'0'},300);	
//		}, function(){
//			$(this).stop(1,1).animate({'right':'-266'},200);	
//		}
//	);
	
	$('.newsletter').hover(
		function(){
			$(this).stop(1,1).animate({'right':'0'},300);	
		}, function(){
			$(this).stop(1,1).animate({'right':'-266'},200);	
		}
	);
	
	$('.actu').hover(
		function(){
			$(this).stop(1,1).animate({'right':'0'},300);	
		}, function(){
			$(this).stop(1,1).animate({'right':'-266'},200);	
		}
	);





//PANEL CONTENT

	$("div.panel_button").click(function(){
		 $("div#content").animate({
		 left: "-370px"
		 })
		 .animate({
		 left: "-335px"
		 }, "fast");
		  $("div.bg_content").animate({
		 left: "-370px"
		 })
		 .animate({
		 left: "-335px"
		 }, "fast");
		 $("div.panel_button").toggle();
		 });
		
		 $("div#hide_button").click(function(){
		 $("div#content").animate({
		 left: "280px"
		 }, "fast");
		 $("div.bg_content").animate({
		 left: "280px"
		 }, "fast");
		 });
		 
		 
//PANEL FOOTER

	$("div.panel_button_footer").click(function(){
		 $("div#footer").animate({
		 left: "260px"
		 })
		 .animate({
		 left: "250px"
		 }, "fast");
		  $("div.bg_col_footer").animate({
		 left: "260px"
		 })
		 .animate({
		 left: "250px"
		 }, "fast");
		 $("div.panel_button_footer").toggle();
		 });
		
		 $("div#hide_button_footer").click(function(){
		 $("div#footer").animate({
		 left: "-20px"
		 }, "fast");
		 $("div.bg_col_footer").animate({
		 left: "-20px"
		 }, "fast");
		 });
		 
		 

});

