// CSS Top Menu- By JavaScriptKit.com (http://www.javascriptkit.com)
// Adapted from SuckerFish menu (http://www.alistapart.com/articles/dropdowns/)

startMenu = function()
{
  if (document.all&&document.getElementById)
  {
    E=document.getElementsByName("csstopmenu");
    for(j=0; j<E.length; j++)
    { 
      cssmenu=E[j];
      for(i=0; i<cssmenu.childNodes.length; i++)
      {
        node = cssmenu.childNodes[i];
        if (node.nodeName=="LI")
        {
          node.onmouseover=function()
          {
            this.className+=" over";
          }
          node.onmouseout=function()
          {
            this.className=this.className.replace(" over", "")
          }
        }
      }
    }
    E=document.getElementsByName("tr");
    for(j=0; j<E.length; j++)
    { 
      row=E[j];
      row.onmouseover=function()
      {
        this.className+="_hover";
      }
      row.onmouseout=function()
      {
        this.className=this.className.replace("_hover", "")
      }
    }
  }
}

if (window.attachEvent)
  window.attachEvent("onload", startMenu)
else
  window.onload=startMenu;
