	//animate draw up of GUI
$(document).ready(function(){
	//get global data...
	$.getJSON("/domains/jolet.eu/js/getdata.php",function(data){
		backgrImg = data['backgrImg'];
		collectionButtonID = data['collectionButtonID'];
		$("#content_back_copy").css("background-image","url(" + backgrImg[0] + ")");
	});

	$("#content_back").addClass('active');
	$("#menu, #footer, #content").hide();
	$("#page_container").animate(
		{
			width:945,
			height:528
		},
		2000,
		function(){
			$("#left, #right, #middle, #content, #content_back, #content_back_copy").animate(
				{
					height:528
				},
				2000,
				function(){
					$("#logo_bar").animate(
						{
							height:87,
							opacity:1.0
						},
						1000
					);


					if($("#menu, #content").is(":hidden")){
						$("#menu, #content").show(1000,
							function(){
									$('#content_back').addClass('active');
									backgroundFader();
							}
						);
					}

					$("#swimwear").animate(
						{
							height:121
						},
						1000
					);

					$("#credits").animate(
						{
							height:21
						},
						1000
					);
				}
			);
		}
	);
});
