// JavaScript Document
var last_open = [];
var up_hover;
function activateMenu(nav) {
  var i = 0;
  navroot = document.getElementById(nav);
  var lis=navroot.getElementsByTagName("LI");
  for (i=0; i<lis.length; i++){  
    if(lis[i].lastChild.tagName=="UL" ){
      lis[i].onmouseover=function(){   
        if (last_open[this.lastChild.className]){ 
          last_open[this.lastChild.className].style.display = 'none'; 
        }else{ 
          for (j=0; j<lis.length; j++){  
            if (lis[j].lastChild.tagName == 'LI' ||  lis[j].lastChild.className == 'podmenu_1'){
              if (lis[j].lastChild.className == 'podmenu_1') 
                lis[j].firstChild.className = '';
              if (lis[j].lastChild.style.display == 'block' && lis[j].lastChild.className == 'podmenu_1') lis[j].lastChild.style.display = 'none';
            } 
          }
        }     
          this.lastChild.style.display="block"; 
          last_open[this.lastChild.className] = this.lastChild;
         
      }
      //lis[i].onmouseout=function() { this.lastChild.style.display="none"; }
    }else{
      lis[i].onmouseover=function(){
       
        if (last_open['podmenu_1']) last_open['podmenu_1'].style.display = 'none';
      }
    }
  }
}