/*

  <body onload="setFooter();" onresize="setFooter();">

*/

function setFooter() {
	if (document && document.getElementById) {
		var windowHeight = 0;
		var windowWidth = 0;
		if (document.body && document.body.clientHeight) {
			windowHeight = document.body.clientHeight;
			windowWidth = document.body.clientWidth;
		} else if (document.documentElement && document.documentElement.clientHeight) {
			windowHeight = document.documentElement.clientHeight;
			windowWidth = document.documentElement.clientWidth;
		} else if (window && window.innerHeight) {
			windowHeight = window.innerHeight;
			windowWidth = window.innerWidth;
		}
		var content = document.getElementById('foothackcontent');
		var footer = document.getElementById('foothackfooter');
		if (windowHeight && content && footer) {
			var contentHeight = content.offsetHeight;
			var footerHeight = footer.offsetHeight;
			if (windowHeight - (contentHeight + footerHeight) >= 0) {
				footer.style.position = 'absolute';
				footer.style.bottom = "0";
			} else {
				footer.style.position = 'static';
			}
		}
		if (windowWidth && footer && windowWidth > 100)
			footer.style.width = (windowWidth-60)+'px';
	}
}

