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 findTop(obj) { var curtop = 0; if (obj.offsetParent) { do { curtop += obj.offsetTop;} while (obj = obj.offsetParent); } return curtop; }

		function setFooter() {
			if (document.getElementById) {
				var windowHeight = getWindowHeight();
				if (windowHeight > 0) {
					var footerElement = document.getElementById('Footer');
					var footerBot = findTop(footerElement) + footerElement.offsetHeight;
					var x = windowHeight - footerBot;
					if (x > 0) {
            document.getElementById('FooterPad').style.paddingTop = x + 'px';
					}					
				}
			}
		}
		window.onload = function() { setFooter();}
		
