// JavaScript Document
$().ready(function(){
	/*$(window).resize(function(){
		check_content();
	});
	check_content();*/
});

function check_header(){
	var $height = $(window).height();
	if($height < 600){
		//change the header bg from fixed to absolute
		if($('header').css("position") == "fixed"){
			$('header').css("position","absolute"); 
		}
	} else {
		//change the header bg from absolute to fixed
		if($('header').css("position") == "absolute"){
			$('header').css("position","fixed"); 
		}
	}//end if
}

function check_content(){
	$("#fade_large").css("display","inline");
	var $headerHeight = 200;
	var $footerHeight = 30;
	var $Wheight = $(window).height();
	var $contentHeight = $Wheight - ($headerHeight+$footerHeight);
	var $currContentheight = $("#content").height();
	if($currContentheight < $contentHeight){
		$("#content").css("height",$contentHeight+"px");	
	}
}
