// $Id: nice_menus.js,v 1.1.2.2 2006/08/06 10:16:20 jakeg Exp $

// We only do the javascript in IE.
// TODO: because we now only include the js file for IE, is this 'if' redundant?
if (document.all) {
  function IEHoverPseudo() {
    $("ul.nice-menu li.menuparent").hover(function(){
        $(this).addClass("over").find("> ul").show();
      },function(){
        $(this).removeClass("over").find("> ul").hide();
      }
    );
  }

  // This is the jquery method of adding a function to the BODY onload event.  (See jquery.com)
  $(document).ready(function(){ IEHoverPseudo() });
}

