// $Id: nice_menus.js,v 1.2 2007/03/04 10:16:20 dlane Exp $

// updated for Drupal 5.1 with jQuery libraries by dave@egressive.com 20070304

Drupal.crapBrowserHoverPseudo = function() {
  // select all nice-menu list items that are menuparents...
  $("ul.nice-menu/li.menuparent").each(function() {
    $(this).mouseover(function() {
      $(this).addClass("over");
    });
    $(this).mouseout(function() {
      $(this).removeClass("over");
    });
  });
}

// add this to the page if Javascript is enabled...
if (Drupal.jsEnabled) {
 $(document).ready(Drupal.crapBrowserHoverPseudo);
}

