// $Id: nice_menus.js,v 1.17 2009/03/24 16:22:28 add1sun Exp $

// This uses Superfish 1.4.8
// (http://users.tpg.com.au/j_birch/plugins/superfish)

// We need to do some browser sniffing to weed out IE 6 only
// because only IE6 needs this hover hack.
if (document.all && !window.opera && (navigator.appVersion.search("MSIE 6.0") != -1) && $.browser.msie) {
  function IEHoverPseudo() {
      $("ul.sf-menu li.menuparent").hover(function(){
          $(this).addClass("over").find("> ul").show().addShim();
        },function(){
          $(this).removeClass("over").find("> ul").removeShim().hide();
        }
      );
      // Add a hover class to all li for CSS styling. Silly naming is done
      // so we don't break CSS compatibility for .over class already in use
      // and due to the fact that IE6 doesn't understand multiple selectors.
      $("ul.sf-menu li").hover(function(){
          $(this).addClass("sfHover");
        },function(){
          $(this).removeClass("sfHover");
        }
      );
    }

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


//$(document).ready(function() {
//  $('ul.nice-menu').superfish();
  // Add in Brandon Aaron’s bgIframe plugin for IE select issues.
  // http://plugins.jquery.com/node/46/release
//$('ul.nice-menu').superfish().find('ul').bgIframe({opacity:'100'}); 
//});

//$(document).ready(function() {
	//$('ul.sf-menu').superfish({autoArrows: false, dropShadows: true, delay:0});});
