// JavaScript Document
function getWindowHeight() {
	var windowHeight = 0;
	if (typeof(window.innerHeight) == 'number') {
		windowHeight = window.innerHeight;
	}
	else {
		if (document.documentElement && document.documentElement.clientHeight) {
			windowHeight = document.documentElement.clientHeight;
		}
		else {
			if (document.body && document.body.clientHeight) {
				windowHeight = document.body.clientHeight;
			}
		}
	}
	return windowHeight;
}
function setPusher() {

	if (document.getElementById) {
	
		var windowHeight = getWindowHeight();
		var contentHeight = document.getElementById('maincontentblock').offsetHeight;
		var mCb = document.getElementById('HE_content').offsetHeight;
		var sCb = document.getElementById('HE_sidebar').offsetHeight;
		if (windowHeight > 0 && contentHeight < windowHeight-372+24) {
			
			document.getElementById('maincontentblock').style.height = (windowHeight-372+24-38) + 'px';
		}
		
		if(mCb < 298) {
			document.getElementById('HE_content').style.height = '298px';
		}
	
		if(sCb < 298) {
			document.getElementById('HE_sidebar').style.height = '298px';
		}

	}
} 

window.onload = function() {
	setPusher();
}

window.onresize = function() {
	setPusher();
}

window.onreload = function() {
	setPusher();
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}