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;
}


// content div 390 from the top
// left div 325 form the top

function newDivs() {
	if (document.getElementById) {
		var windowHeight = getWindowHeight();
		var contentDiv = document.getElementById('content').offsetHeight;
		var leftDiv = document.getElementById('left').offsetHeight;
		if (windowHeight > 0) {
			var shadowDiv = document.getElementById('shadow');
			if (((contentDiv + 390)  > (windowHeight)) && ((contentDiv + 390)  > (leftDiv + 325))) {
				shadowDiv.style.height = (contentDiv + 65) + 'px';
			} else if (((leftDiv + 325) > (windowHeight)) && ((leftDiv + 325) > (contentDiv + 390))) {
				shadowDiv.style.height = (leftDiv) + 'px';
				
			} else {
				shadowDiv.style.height = (windowHeight - 325) + 'px';
			}
		}
	}
}			
