// JavaScript Document

function adjustHeight()
{
	if (parseInt(navigator.appVersion)>3)
	{
		if (navigator.appName=="Netscape")
		{
			winW = window.innerWidth;
			winH = window.innerHeight;
		 }
		if (navigator.appName.indexOf("Microsoft")!=-1)
		{
			winW = document.body.offsetWidth;
			winH = window.screen.availHeight;
		 }
	}


	var containerHeight = document.getElementById('container').clientHeight;	
	var footerHeight = document.getElementById('footer').clientHeight;	
	var pageHeight = containerHeight + footerHeight;	
	var gapFill = winH - pageHeight;
	var newHeightIE = footerHeight + gapFill;
	var newHeight 	= footerHeight + gapFill - 50;
	
	if(pageHeight < winH)
	{	
		document.getElementById('footer').style.height = newHeightIE;
		document.getElementById('footer').style.minHeight = newHeight + "px";
	}
	
}
