//<![CDATA[
		   
$(document).ready(function() {
	
	$("#navigation a").click(function(){
		page = $(this).attr("href");
		indiceDepart = page.lastIndexOf('#')+1;
		indiceArrivee = page.length;
		page = page.substring(indiceDepart, indiceArrivee);
		page = page.toString();
		
		$("#home").slideUp(600,function(){
			$("#goutte").animate({
				marginTop: 400
			}, 1200);
			$("#top").addClass("move");
			//$("#goutte").addClass("move");
			$(".content").css({ padding: "132px 0 0 0px" });
			$(".page").css({ backgroundPosition: "0 132px" });
			$("#page1 .content").css({ background: "#fff url(../img/f.png) top left repeat-x" });
			$.scrollTo("#"+page, 1200,{easing:'linear'} );
			//$.scrollTo("#"+page, 1200);
		});
		
		return false;
	});
	
	$("#logolien,.top").click(function(){
		$.scrollTo(0, 1200, {onAfter:function(){ 
			$("#home").slideDown("slow") 
			$("#top").removeClass("move");
			$("#goutte").removeClass("move");
			$(".content").css({ padding: "0 0 0 0px" });
			$(".page").css({ backgroundPosition: "0 0" });
			$("#page1 .content").css({ background: "white" });
		} });
		$("#goutte").animate({
			marginTop: 50
		}, 1200);
		return false;
	});
	
});
//]]>