// JavaScript Document
function resizeFooter (){  
			var oFooter = document.getElementById("footer");  
			var footerHeight = 50;
			var htmlheight = document.body.scrollHeight; 
			var windowheight;
			if (self.innerHeight) // all except Explorer
			{
				windowheight = self.innerHeight - 1;
			}
			else if (document.documentElement && document.documentElement.clientHeight)
				// Explorer 6 Strict Mode
			{
				windowheight = document.documentElement.clientHeight;
			}
			else if (document.body) // other Explorers
			{
				windowheight = document.body.clientHeight;
			}
		if ( htmlheight < windowheight ) { 
				document.body.style.height = windowheight + "px"; 
				oFooter.style.height = (windowheight - htmlheight) + "px"; 
			}  
			else { 
			document.body.style.height = footerHeight + "px"; 
			oFooter.style.height = footerHeight + "px"; 
		}  
	} 
	

    /* calls the function after the page is loaded */
		addLoadEvent( resizeFooter );
		


