function setBodySectionHeight(){
	var header=getClientHeightById('logoContainer')+getClientHeightById('navBackground');
	var browserOffset=(navigator.appName=="Microsoft Internet Explorer")?36:29;
	var h=(getWindowHeight()-(browserOffset+header+getClientHeightById('footer')))+"px";
	document.getElementById('bodySection').style.height=h;
}

function getWindowHeight(){
 	var viewportheight;
 	// the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight
	if (typeof window.innerHeight != 'undefined'){
      		viewportheight = window.innerHeight
 	}else if (typeof document.documentElement != 'undefined'	&& typeof document.documentElement.clientWidth !='undefined' && document.documentElement.clientWidth != 0){

	// IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)
       		viewportheight = document.documentElement.clientHeight
	 }else{

 	// older versions of IE
       		viewportheight = document.getElementsByTagName('body')[0].clientHeight
 	}
	return(viewportheight);
}

function getClientHeightById(id){
	if (document.getElementById(id)){
		return document.getElementById(id).clientHeight;
	}else{
		return 0;
	}
}
