/*
* www.websolvers.com | Your internet strategy partners
* Designed and developed by Websolvers. � 2009 Websolvers Inc. All rights reserved.
* 
* footerHeight.js - Produces a dynamic footer that applies the remaining height of the viewport to the containing footer div.
* 
*/


<!--
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();
		if (windowHeight > 0) {
			var contentHeight = document.getElementById('main_container').offsetHeight;
			var footerElement = document.getElementById('btm_container');
			var footerHeight  = windowHeight - contentHeight;
			if (footerHeight < 65) {
				footerElement.style.height = 75 + "px";
			}
			else {
				footerElement.style.height = footerHeight + "px";
			}
		}
	}
}
window.onload = function() {
	setFooter();
}
window.onresize = function() {
	setFooter();
}
//-->
