function startList()
{
	if (document.getElementById)
	{
		navRoot = document.getElementById("top-meniu");		
		for (var i=0; i<navRoot.childNodes.length; i++)
		{
			node = navRoot.childNodes[i];
			if (node.nodeName.toLowerCase() == "li")
			{
				node.onmouseover = function()
				{
					this.className += " over";
//					alert(this.className);
				}
				node.onmouseout = function()
				{
					this.className = this.className.replace(" over", "");
//					alert(this.className);
				}				
        		for (var j=0; j<node.childNodes.length; j++)
        		{
        			subnode = node.childNodes[j];
        			if (subnode.nodeName.toLowerCase() == "ul")
        			{
        			    for (var k=0; k<subnode.childNodes.length; k++)
                		{
                			subsubnode = subnode.childNodes[k];
                			if (subsubnode.nodeName.toLowerCase() == "li")
                			{
                				subsubnode.onmouseover = function()
                				{
                					this.className += " over";
                				}
                				subsubnode.onmouseout = function()
                				{
                					this.className = this.className.replace(" over", "");
                				}
                			}
                		}
        			}
        		}
			}
		}
	}
}

if (document.documentElement.toString() == '[object]')
window.onload = function() {
  startList();
}

