function initHover()
{
	var nodes = document.getElementById("navigation");
	if (nodes)
	{
		nodes = nodes.getElementsByTagName("li");
		for (var i=0; i<nodes.length; i++)
		{
			nodes[i].onmouseover = function()
			{
				this.className += " hover";
			}
			nodes[i].onmouseout = function()
			{
				this.className = this.className.replace(" hover", "");
			}
		}
	}
}
function initLayout()
{
	_parent = document.getElementById("parent");
	if (_parent)
	{
		var nodes = _parent.getElementsByTagName("a");
		for (var i=0; i<nodes.length; i++)
		{
			nodes[i].style.height = _parent.offsetHeight-43 + "px";
		}
	}
}
if (window.addEventListener)
{
	window.addEventListener("load", initLayout, false);
}
else if (window.attachEvent)
{
	window.attachEvent("onload", initLayout);
	window.attachEvent("onload", initHover);
}

