function initWin(){
	var winHeight;
	winHeight = getPageHeight();
	//if (navigator.userAgent.indexOf("MSIE") > 1){
	//	var iebody = (document.compatMode && document.compatMode != "BackCompat")? document.documentElement : document.body
	//	winHeight = iebody.clientHeight;
	//} else {
	//	winHeight = window.innerHeight;
	//}
	document.getElementById("sub_menu").style.height = (winHeight-196)+"px";
	document.getElementById("content").style.height = (winHeight-174)+"px";
}

function getPageHeight(){
	if (window.innerHeight && window.scrollMaxY) {// Firefox
		yWithScroll = window.innerHeight + window.scrollMaxY;
	} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
		yWithScroll = document.body.scrollHeight;
	} else { // works in Explorer 6 Strict, Mozilla (not FF) and Safari
		yWithScroll = document.body.offsetHeight;
  	}
	return yWithScroll;
}
