function iniciarMenu() {
	var i, li, ul;
	var menu = document.getElementById('menu-site');
	
	for (i = 0; i < menu.childNodes.length; i++) {
		li = menu.childNodes[i];
		if (li.typeNode != 3) {
			ul = getUltimoFilho(li);
			if ( ul != undefined && ul.nodeName.toLowerCase() == "ul") {
				li.onmouseover = function() { this.className = "over"; }
				li.onmouseout = function() { this.className = ""; }
			}
		}
	}
}

function getUltimoFilho(campo) {
	var i, filho;
	
	for (i = campo.childNodes.length-1; i > -1; i--) {
		filho = campo.childNodes[i];
		if (filho.typeNode != 3)
			return filho;
	}
	return undefined;
}


window.onload = iniciarMenu;
