// JavaScript Document

caricaTendine = function()
{
	if (document.all&&document.getElementById)
	{ 
		navRoot = document.getElementById("navbar"); // Mette in navRoot l'UL con id navbar
		
		for (i=0; i<navRoot.childNodes.length; i++)
		{
			node = navRoot.childNodes[i]; // Mette in node i figli di navRoot
			
			if (node.nodeName=="LI")
			{
				node.onmouseover=function() // Quando il mouse è sopra un LI
				{
					this.className+="over";
				}
				
				node.onmouseout=function() // Quando il mouse lascia ul LI
				{
					this.className=this.className.replace("over", "");
				}
				
			}
		}
	}
}

window.onload = caricaTendine; // Carica 