function swapName( el ){
  if(el) el.className = el.className=="over"?"":"over"
}

toggleUL = function( par ) {
  swapName( par );
  swapName( par.getElementsByTagName("UL")[0] );
  swapName( par.getElementsByTagName("A")[0] );
}

patchChilds = function( par ) {
  for (var i=0; i<par.childNodes.length; i++) {
    node = par.childNodes[i];
    if (node.nodeName=="LI") {
      node.onmouseover = function() { toggleUL(this); }
      node.onmouseout  = function() { toggleUL(this); }
      for (var j=0; j<node.childNodes.length; j++) {
        subnode = node.childNodes[j];
        if (subnode.nodeName=="UL") patchChilds( subnode );
      }
    }
  }
}

startList = function( id ) {
  if( !window.innerHeight && document.getElementById){
    if( !id[0] ) id = new Array(id);
    for( var i=0; i<id.length; i++ ){
      if( navRoot = document.getElementById(id[i]) ) patchChilds( navRoot );
    }
  }
}
