<!-- 
	// exaxmple footer-sticky came from: http://www.alistapart.com/d/footers/footer_dom1.html
	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() {
		if (document.getElementById) {
			var windowHeight = getWindowHeight();
			// alert('windowHeight = ' + windowHeight);
			if (windowHeight > 0) {
				var contentHeight = document.getElementById('content').offsetHeight;
				
				var footerElement = document.getElementById('footer');
				var footerHeight  = footerElement.offsetHeight;
				// alert('footerHeight = ' + footerHeight);
				if (windowHeight - (contentHeight + footerHeight) >= 0) {
					footerElement.style.position = 'relative';
					var newTopPosition = (windowHeight - (contentHeight + footerHeight));
					// alert('newTopPosition = ' + newTopPosition);
					footerElement.style.top = newTopPosition + 'px';
				}
				else {
					// alert('going static');
					// footerElement.style.position = 'static';
					footerElement.style.position = 'relative';
					// footerElement.style.bottom = '-' + footerHeight + 'px';
					footerElement.style.top = footerHeight + 'px';
					// footerElement.style.bottom = '0px';
				}
			}
		}
	}
	window.onload = function() {
		setFooter();
	}
	window.onresize = function() {
		setFooter();
	}
	//-->
