
function setBGHeight() {
			
	var theHeight = jQuery(document).height();
	//alert (theHeight);
	jQuery(".bgContainer").css('height',theHeight + 'px');

}



$(document).ready(function () {

	//alert ('hello');
	
	setBGHeight();
	
	//alert ('is home is ' + isHome);
	
	/*
	if (isHome) {

		$(".bgContainer").find('img').css('display','none');
		$("#topMenu").css('display','none');
		$("#ajaxWrapper").css('display','none');
		//$(".bgContainer").find('img').fadeIn(4500);
		$("#footer").css('display','none');
		$("#playerDiv").css('opacity','0');
		//$("#playerDiv").css('filter: alpha(opacity=0)');
		
		
		
		//$("#bodyContainer").css('display','none');
		
		
		$("#bodyContainer").fadeIn(500,function() {
			
			//alert ('fade complete');
			if (!isHome) {	
			
				$(".bgContainer").fadeIn(1000, function() {
					
					$("#playerDiv").animate({ opacity: "1.0"}, 2000);
					$("#headerImg").animate({ opacity: "1.0"}, 2000);
					$("#topMenu").fadeIn(2000,function() {
						$("#ajaxWrapper").fadeIn(2000,function() {
							$("#footer").fadeIn(100);
							setBGHeight();
						});
					});
				});
				
			} else {
			
				$("#playerDiv").animate({ opacity: "1.0"}, 1000);
				$("#headerImg").animate({ opacity: "1.0"}, 1000);
				$("#topMenu").fadeIn(1000,function() {
					$("#ajaxWrapper").fadeIn(1000,function() {
						$("#footer").fadeIn(100);
						
					});
				});
			
			}
		
		});
		
	}
	*/
	
});



