

doHover = function() {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" active";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" active", "");
   }
   }
  }
}

if (navigator.userAgent.indexOf('MSIE')>-1) {
  window.onload = doHover;
}


function showHide(id,elem){
  if(document.getElementById(id).style.display=='none'){
    document.getElementById(id).style.display='block';
    elem.className='active';
  }else{
    document.getElementById(id).style.display='none';
    elem.className='';
  }
}



