jQuery(document).ready(function () {
	var $=jQuery;

	$("#nav").css("display","none");
	var $div = $("#mainContent"); //pour regler jump lors du slideDown
	var height = $div.height();
	$div.hide().css({height : 0});
	$("#footer").css("display","none");

	// $("#nav").css("opacity","0");
	// $("#mainContent").css("opacity","0");
	// $("#footer").css("opacity","0");

	$("#header").css("margin-top","30%");
	$("#header").css("display","none");
	$("#header").animate({opacity: "show"},"slow")
				.animate({marginTop: "20"},1000);

	$("#header").queue(function  () {
		$("#nav").animate({opacity : "show"});
		$(this).dequeue;
		//$("#mainContent").animate({opacity : "show"});
		//$("#mainContent").slideDown(1000);
		$div.show().animate({height : height},{duration : 1000});
		
		$(this).dequeue;
		$("#footer").animate({opacity : "show"});
		$(this).dequeue;
	})
});

