function fixLayout()  {
	var content = document.getElementById("content");
	var pageHeight = document.documentElement.clientHeight;
	if ( content )
	{
		if(pageHeight > document.body.offsetHeight)
		{
			content.style.height = pageHeight - 481 + "px";
		}
	}
}

if (window.addEventListener){
	window.addEventListener("load", fixLayout, false);
	window.addEventListener("resize", fixLayout, false);
}

//dynamic navigation
initNav = function() {
	if (document.all && document.getElementById("products")) 
	{
		var navRoot = document.getElementById("products");
		var lis = navRoot.getElementsByTagName("li");
		for (var i=0; i<lis.length; i++)
		{
			lis[i].onmouseover = function()
			{
				this.className += " hover";
			}
			lis[i].onmouseout = function()
			{
				this.className = this.className.replace(" hover", "");
			}
		}
	}
}
if (document.all && window.attachEvent) {
	attachEvent("onload", initNav);
	attachEvent("onload", fixLayout);
	attachEvent("onresize", fixLayout);
}
	