(function($){
$.fn.superMenu = function(o){
  o = $.extend({ fx: "linear", speed: 500, click: function(){} }, o || {});
  return this.each(function(){
    var me = $(this),
    $li = $("li", this);

    $li.not(".back").hover(function(event) { //Hover over event on list item
      $("h1",this).css("background-color","#2DAED1");

      var spans = $(this).find("span");
      if(spans.length > 0){
        var et = event.target;
        if($.contains(spans.get(0),et) || et == spans.get(0)) return;
        spans.slideDown("fast"); //Show the subnav
      }
    } , function(event) { //on hover out...
      $("h1",this).css("background-color","");
      $(this).find("span").slideUp("fast"); //Hide the subnav
    });
  });
}
})(jQuery);
