function alignFooter()
{
	// Aligns the footer to the bottom of the page
	// Call this function in the onLoad and onResize
	// functions in all pages that require the footer
	if (document.getElementById)
	{
		var windowHeight = getWindowHeight();
		if (windowHeight > 0)
		{
			var contentHeight = document.getElementById('content').offsetHeight;
			var footerElement = document.getElementById('footer');
			var footerHeight = footerElement.offsetHeight;
			
			if (windowHeight - (contentHeight + footerHeight) >= 0)
			{
				footerElement.style.position = 'relative';
				footerElement.style.top = (windowHeight - (contentHeight + footerHeight)) - 250 + 'px';
			}
			else
			{
				footerElement.style.position = 'static';
			}
		}
	}
}

function getWindowHeight() {
	// Returns the height of the window
	// Used by the alignFooter function
	var NS4 = (navigator.appName.indexOf("Netscape")>=0 && parseFloat(navigator.appVersion) >= 4 && parseFloat(navigator.appVersion) < 5)? true : false;
	var IE = (document.all) ? true : false;
	var NS6 = (parseFloat(navigator.appVersion) >= 5 && navigator.appName.indexOf("Netscape")>=0 )? true: false;
	
	if (NS4 || NS6) return window.innerHeight;
	if (IE) return document.documentElement.clientHeight;
}
