var headHt=210; // 210



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 setContent() {
	var contentTD=document.getElementById('contentd');
	var windowHeight = getWindowHeight();
	h=windowHeight-headHt;
	if (windowHeight > 0) {	
		if (contentTD) {
			contentTD.style.height=h+"px";
			contentTD.style.backgroundPosition = "left bottom";
			contentTD.style.backgroundPosition = "740";
		}
	}

	var topteasertable=document.getElementById('topteasertable');
	if (topteasertable) {
		var newsteasertd=document.getElementById('botteasertd');
		h=windowHeight-(headHt+topteasertable.clientHeight+20);
		if (newsteasertd && windowHeight > 0) {	
			newsteasertd.style.height=h+"px";
		}
	}

}

