function carregaDiv(div, url)
{
	 parametros='div='+div;
     var my = new Ajax.Updater({
		   success: div // div de retorno
		},    
        url, //arquivo da chamada
        {
			method: 'post',
          	parameters: parametros,
			onFailure: function(){ alert("Erro: arquivo não encontrado!") },
			//onCreate: mostraCarr(2),
			//onComplete: retiraCarr,
			evalScripts: true
       });
}

function initPage()
{	
	var nav = document.getElementById("menu");
	if (nav)
	{
		var nodes = nav.getElementsByTagName("li");
		for (var i = 0; i < nodes.length; i++)
		{
			if (nodes[i].parentNode.id == "menu")
			{
				nodes[i].onmouseover = function () 
				{
					this.className += " hover";
					if(this.getElementsByTagName("div")[0])
					{
						hideSelectBoxes(this.getElementsByTagName("div")[0]);
					}
				}
				nodes[i].onmouseout = function ()
				{
					this.className = this.className.replace(" hover", "");
					if(this.getElementsByTagName("div")[0])
					{
						showSelectBoxes(this.getElementsByTagName("div")[0]);
					}
				}
			}
		}
	}
}
if (window.attachEvent)
	window.attachEvent("onload", initPage);
