function getWindowHeight() {
	if (typeof(window.innerHeight) == 'number') { return window.innerHeight; }
	else if (document.documentElement && document.documentElement.clientHeight) { return document.documentElement.clientHeight; }
	else if (document.body && document.body.clientHeight) { return document.body.clientHeight; }
}
		
		function setFooter() {
			if (document.getElementById) {		
				var windowHeight = getWindowHeight();
				if (windowHeight > 0) {
					// Get height of tallest column (Main or NavLeft)
					var MainHeight = document.getElementById('Main').offsetHeight + document.getElementById('Main').offsetTop;
					var tempHeight = document.getElementById('NavLeft').offsetHeight + document.getElementById('NavLeft').offsetTop;
					if (tempHeight > MainHeight) {
						MainHeight = tempHeight
					}
				
					var footerElement = document.getElementById('Footer');
					var footerHeight  = footerElement.offsetHeight + 20; // Add in FOOTER TOP/BOTTOM MARGIN
					if (windowHeight - (MainHeight + footerHeight) >= 0) {
						// Content shorter than window
						footerElement.style.position = 'absolute';
						footerElement.style.top = (windowHeight - footerHeight) + 'px';
					}
					else {
						// Content longer than window
						footerElement.style.position = 'absolute';
						footerElement.style.top = (MainHeight) + 'px';
					//	footerElement.style.position = 'static';
					}
				}
			}
    }
    
		window.onload = function() { setFooter(); }
		window.onresize = function() { setFooter(); }