﻿/*  Top Menu Pt 2
    Code adapted from http://www.alistapart.com/d/horizdropdowns/horizontal.htm
    Part 1 is the CSS!
	Put this AFTER your menu, or tell the developer to add this into the
	body.onLoad event.
--------------------------------------------------------------------------------
*/
function initTopMenu()
{
  if (document.all&&document.getElementById)
  {
    navRoot = document.getElementById("navi");  //Config: The ID of your menu.
    try
    {
      if (navRoot != null)
      {
        for (i=0; i<navRoot.childNodes.length; i++)
        {
          node = navRoot.childNodes[i];
          if (node.nodeName=="LI")
          {
            node.onmouseover=function() { this.className+=" pleaseHoverForMeIE6"; }  //Config: The name of the class that goes with li:hover.
            node.onmouseout=function() { this.className=this.className.replace(" pleaseHoverForMeIE6", ""); }
          }
        }
      }
    } catch (err) {}
  }
}
initTopMenu();
/*
--------------------------------------------------------------------------------
 */
