over = function() {
	var sfEls = document.getElementById("menu").
	getElementsByTagName("li");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" over";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.
		replace(new RegExp(" over\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", over);

/*Dicas*/
var abre=0;
var opcao=0;
/* qtde é o total de submenus da página que chama a função */
function abreOpcao(i,qtde){
	if (i!=0){
		if (document.getElementById("sub"+i).className != "ativo"){
				document.getElementById("sub"+i).className = "ativo";
				document.getElementById("sinal"+i).className = "menos";
		} else {
			document.getElementById("sub"+i).className = "inativo";
			document.getElementById("sinal"+i).className = "mais";
		}
	}
}

function createXMLHTTP() 
{
	try 
    {
		ajax = new ActiveXObject("Microsoft.XMLHTTP");
	} 
    catch(e) 
    {
		try 
		{
			ajax = new ActiveXObject("Msxml2.XMLHTTP");
            alert(ajax);
		}
        catch(ex) 
        {
			try 
            {
				ajax = new XMLHttpRequest();
			}
            catch(exc) 
			{
				alert("Esse browser não tem recursos para uso do Ajax");
				ajax = null;
			}
		}
        return ajax;
	}
                  
	var arrSignatures = ["MSXML2.XMLHTTP.5.0", "MSXML2.XMLHTTP.4.0", "MSXML2.XMLHTTP.3.0", "MSXML2.XMLHTTP", "Microsoft.XMLHTTP"];
    for (var i=0; i < arrSignatures.length; i++) 
    {
		try 
		{
			var oRequest = new ActiveXObject(arrSignatures[i]);
            return oRequest;
		} 
		catch (oError) {}
	}
	throw new Error("MSXML is not installed on your system.");
}
/*-------------------------------------------------------------------------------------------------*/
