
window.onload = resizeMainContainer;
window.onresize = resizeMainContainer;

function resizeMainContainer() {
	var mc = document.getElementById('mainContainer');
	
	var winHeight = 0;
	if (window.innerHeight) {
		winHeight = parseInt(window.innerHeight);
	} else if (document.documentElement.clientHeight) {
		winHeight = parseInt(document.documentElement.clientHeight);
	} else if (document.body.clientHeight) {
		winHeight = parseInt(document.body.clientHeight);
	}
	
	if (mc.offsetHeight < winHeight) {
		var strHeight = winHeight - 15;
		mc.style.height = strHeight.toString() + 'px';
	}
}

