<!-- Funcion Parche para IE6 -->
startList = function(id) {
if (document.all&&document.getElementById) {
    navRoot = document.getElementById(id);
    for (i=0; i<navRoot.childNodes.length; i++) {
    	node = navRoot.childNodes[i];
    	if (node.nodeName=="LI") {
    	    if(node.className == "grupo" || node.className == "grupo classpadre"){
    	    ulNodes = node.childNodes;
    	    for(j=0; j<ulNodes.length; j++) {
    	        if(ulNodes[j].nodeName == "UL"){
    	            if(ulNodes[j].className == ""){
    	                liNodes = ulNodes[j].childNodes;
    	                for(n=0; n<liNodes.length; n++){
    	                    if(liNodes[n].nodeName == "LI"){
    	                           liNodes[n].onmouseover = function(){
                	                    nodoMostrar = this.getElementsByTagName("UL");
                	                    if(nodoMostrar[0]) {
                	                       nodoMostrar[0].style.display = "block";
                	                    }
                	                    
                	                }
                	                liNodes[n].onmouseout = function(){
                	                    nodoMostrar = this.getElementsByTagName("UL");
                	                    if(nodoMostrar[0]) {
                	                       nodoMostrar[0].style.display = "none";
                	                    }
                	                }
    	                    }
    	                }
    	            }
    	            if(ulNodes[j].className == "abre"){
    	                   node.onmouseover = function(){
        	                    nodoMostrar = this.getElementsByTagName("UL");
        	                    if(nodoMostrar[0]) {
        	                       nodoMostrar[0].style.display = "block";
        	                    }
        	                }
        	                
        	                node.onmouseout = function(){
        	                    nodoMostrar = this.getElementsByTagName("UL");
        	                    if(nodoMostrar[0]) {
        	                       nodoMostrar[0].style.display = "none";
        	                    }
        	                }
    	                
    	            }
    	        }
    		}
    	  }
    	  else{
    	      node.onmouseover=function() {
				this.className+=" over";
  			  }
  			  node.onmouseout=function() {
  				this.className=this.className.replace(" over", "");
   			  }
    	  }
    	}
    }
}
}

setMenus = function(){
	startList("nav_principal");
	startList("nav_secundario");	
}

window.onload=setMenus;
