function menuInit() 
{
	if (document.all && document.getElementById) 
	{
		navRoot = document.getElementById("mainNav");
		liNodes = document.getElementsByTagName("LI");

		for (i = 0; i < liNodes.length; i++) 
		{
			node = liNodes[i];

			if (isDecendant(navRoot, node)) 
			{
				node.onmouseover = function() 
				{
					this.className+=" over";
				}
			
				node.onmouseout = function() 
				{
					this.className = this.className.replace(" over", "");
				}
			}
		}
	}
}

function isDecendant(parent, obj)
{
	while (obj.parentNode != null)
	{
		obj = obj.parentNode;
		
		if (obj == parent)
			return true;
	}
	
	return false
}