
initDropdowns = function() 
{
	var dropdowns = document.getElementById("nav").getElementsByTagName("li");

	for(var i=0; i<dropdowns.length; i++) 
	{
		dropdowns[i].onmouseover = function() { this.className += " dropdown"; }
		dropdowns[i].onmouseout = function() { this.className = this.className.replace(new RegExp(" dropdown\\b"), ""); }
	}
}

if(window.attachEvent) window.attachEvent("onload", initDropdowns);