// JavaScript Document

startList = function()
  {
  if (document.all && document.getElementById)
    {
    var node = document.getElementById("nav");
    
    AssignMenuEvents(node) ;
    }
  }

function AssignMenuEvents(pObject)
  {
  var node ;
  var vPreviousIndex ;
  
  for (i=0; i < pObject.childNodes.length; i++)
    {
    node = pObject.childNodes[i];

    if (node.tagName == "LI")
      {
      node.onmouseover=function()
                         {
                         this.className+=" over";
                         }

      node.onmouseout=function()
                         {
                         this.className=this.className.replace(" over", "");
                         }
      }

    if (node.childNodes.length > 0)
      {
      vPreviousIndex = i ;
      AssignMenuEvents(node);
      i = vPreviousIndex ;
      }
    }
  }


window.onload=startList;
