/* --------------------------------------------------------------------- */
/* menu.js                                                               */
/*                                                                       */
/* created by: An-Min Kuo for Simplify v4.2                              */
/* c. 2005 Tomoye Corp.                                                  */
/*                                                                       */
/* based on the suckerfish drop-down by Patrick Griffith                 */
/* http://www.alistapart.com/articles/dropdowns/                         */
/* --------------------------------------------------------------------- */

menu_fix_for_windows = function ()
{
  // personal bar
  if (document.all && document.getElementById)
  {
    navRoot = document.getElementById("nav");
    
    if (navRoot != null)
    {
      for (i=0; i<navRoot.childNodes.length; i++) 
      {
        node = navRoot.childNodes[i];
  
        if (node.nodeName=="LI")
        {
          node.onmouseover = function(){this.className+=" over";}
          node.onmouseout  = function(){this.className=this.className.replace(" over","");}
        }
      }
    }
  }

  // participate menu
  if (document.all && document.getElementById)
  {
    navRoot = document.getElementById("tools_bar_ul");
    
    if (navRoot != null)
    {
      for (i=0; i<navRoot.childNodes.length; i++) 
      {
        node = navRoot.childNodes[i];
  
        if (node.nodeName=="LI")
        {
          node.onmouseover = function(){this.className+=" over";}
          node.onmouseout  = function(){this.className=this.className.replace(" over","");}
        }
      }
    }
  }
}

window.onload = menu_fix_for_windows;
