$(document).ready(function() {
	$("#contentLoader").show();(1, 	function(){	$("#contentLoaderImage").hide();	return false; }	);
	$("#contentLoaderImage").hide();
	$("#containerBBC").fadeIn(100);
	$("#contentMain").fadeIn(300);
	//$("#lhMenu").fadeIn(500);
	//$("#headerContainer").fadeIn(300);
	//$("#contentMainIndex").fadeIn(500);

	$("#headerContainer").fadeIn(200, 
		function()
		{
			$("#contentMainIndex").fadeIn(200);
			$("#lhMenu").fadeIn(200);				
			$("#mainImage").fadeIn(200,
				function()
					{
						$("#chooseFrame").show();
					}
				);
			$("#contentMain").fadeIn(200);
		}
	);
});

$(document).ready(function()
{
	$('#openHeadStart');
    //slides the element with class "menu_body" when paragraph with class "menu_head" is clicked 
	$("#firstpane p.menu_head").click(function()
    {
		$("#firstpane p.menu_head");		
		$(this).next("div.menu_body").slideToggle(0).siblings("div.menu_body").hide();
	});
	//slides the element with class "menu_body" when mouse is over the paragraph
	$("#secondpane p.menu_head").mouseover(function()
    {
	     $(this).css({backgroundImage:"url(down.png)"}).next("div.menu_body").slideDown(0).siblings("div.menu_body").hide();
         $(this).siblings().css({backgroundImage:"url(left.png)"});
	});
});

