// JavaScript Document

	function footerPosition(divName)
	{ 
		var x = document.getElementById(divName);
		if (x)
		{
			
				//SCROLL HEIGHT
				var scrollheight = document.body.scrollHeight; //+', '+document.body.clientHeight+', '+ 
	
				
				//PARENT HEIGHT
				if( typeof( window.innerWidth ) == 'number' ) 
				{
					//Non-IE
					var parentheight = window.innerHeight;
				} 
				else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) 
				{
					//IE 6+ in 'standards compliant mode'
					var parentheight = document.documentElement.clientHeight;
				} 
				else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
					//IE 4 compatible
					var parentheight = document.body.clientHeight;
				}
				//parentheight = screen.availHeight;
				//alert (scrollheight+' - '+parentheight+' - '+screen.availHeight);
				if (scrollheight < parentheight)
				{
					x.style.bottom= "0"; 
				}
				else
				{
					x.style.bottom="";
				}
			
		}
	}
	
	