// 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 setFooter() {
	var numeBrowser=navigator.appName; 

	if (document.getElementById) {
		var windowHeight = getWindowHeight();
		if (windowHeight > 0) {
			var contentHeight = document.getElementById('container').offsetHeight;
			var rightHeight = document.getElementById('right-col-content').offsetHeight;
			var headerElement = document.getElementById('header');
			var footerElement = document.getElementById('footer');
			var footerHeight  = footerElement.offsetHeight;
			var headerHeight  = headerElement.offsetHeight;
			if (windowHeight - (contentHeight + footerHeight) >= 0) {
				//footerElement.style.position = 'absolute';
				footerElement.style.top = (windowHeight - footerHeight) + 'px';
				document.getElementById('container').style.height = (windowHeight - footerHeight - 44) + 'px';
				document.getElementById('right-col-content').style.height = (windowHeight - footerHeight - headerHeight - 80) + 'px';
			}
			else {
				document.getElementById('container').style.height = 'auto';
				var wrapElement = document.getElementById('wrap-container');
				var wrapHeight  = wrapElement.offsetHeight;
				if (numeBrowser=="Microsoft Internet Explorer") document.getElementById('right-col-content').style.height = (wrapHeight - footerHeight - headerHeight - 74) + 'px';
				else document.getElementById('right-col-content').style.height = (wrapHeight - footerHeight - headerHeight - 58) + 'px';				
				//footerElement.style.position = 'static';
			}
		}
	}
}
window.onload = function() {setFooter();}
window.onresize = function() {setFooter();}
window.onchange = function() {setFooter();}

//-->
