// footer document
function getWindowHeight()
{
	if (self.innerHeight)
	{
		return self.innerHeight;
	}
	else if (document.documentElement && document.documentElement.clientHeight)
	{
		return document.documentElement.clientHeight;
	}
	else if (document.body)
	{
		return document.body.clientHeight;
	}
}

function setFooter()
{
	var ch = document.body.offsetHeight;
	var wh = getWindowHeight();
	var f = document.getElementById("footerMenu");
	var d = document.getElementById("bodyText");
	if (ch < wh)
	{
		f.style.top = (wh -ch) - f.style.height -50 + "px";
		//d.style.top = (wh -ch) - d.style.height +"px";
	}
	else
	{
	f.style.top = 0+"px";
	//d.style.top = 0+"px";
	}
}

function doFooter()
{
	document.getElementById("bodyText") = "This is the footer";
}