(function(b){b.fn.superfish=function(l){var k=b.fn.superfish,m=k.c,h=b(['<span class="',m.arrowClass,'"> &#187;</span>'].join("")),j=function(){var c=b(this),d=f(c);clearTimeout(d.sfTimer);c.showSuperfishUl().siblings().hideSuperfishUl();},g=function(){var c=b(this),e=f(c),d=k.op;clearTimeout(e.sfTimer);e.sfTimer=setTimeout(function(){d.retainPath=(b.inArray(c[0],d.$path)>-1);c.hideSuperfishUl();if(d.$path.length&&c.parents(["li.",d.hoverClass].join("")).length<1){j.call(d.$path);}},d.delay);},f=function(d){var c=d.parents(["ul.",m.menuClass,":first"].join(""))[0];k.op=k.o[c.serial];return c;},i=function(c){c.addClass(m.anchorClass).append(h.clone());};return this.each(function(){var d=this.serial=k.o.length;var e=b.extend({},k.defaults,l);e.$path=b("li."+e.pathClass,this).slice(0,e.pathLevels).each(function(){b(this).addClass([e.hoverClass,m.bcClass].join(" ")).filter("li:has(ul)").removeClass(e.pathClass);});k.o[d]=k.op=e;b("li:has(ul)",this)[(b.fn.hoverIntent&&!e.disableHI)?"hoverIntent":"hover"](j,g).each(function(){if(e.autoArrows){i(b(">a:first-child",this));}}).not("."+m.bcClass).hideSuperfishUl();var c=b("a",this);c.each(function(o){var n=c.eq(o).parents("li");c.eq(o).focus(function(){j.call(n);}).blur(function(){g.call(n);});});e.onInit.call(this);}).each(function(){var c=[m.menuClass];if(k.op.dropShadows&&!(b.browser.msie&&b.browser.version<7)){c.push(m.shadowClass);}b(this).addClass(c.join(" "));});};var a=b.fn.superfish;a.o=[];a.op={};a.IE7fix=function(){var c=a.op;if(b.browser.msie&&b.browser.version>6&&c.dropShadows&&c.animation.opacity!=undefined){this.toggleClass(a.c.shadowClass+"-off");}};a.c={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",arrowClass:"sf-sub-indicator",shadowClass:"sf-shadow"};a.defaults={hoverClass:"sfHover",pathClass:"overideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},speed:"normal",autoArrows:true,dropShadows:true,disableHI:false,onInit:function(){},onBeforeShow:function(){},onShow:function(){},onHide:function(){}};b.fn.extend({hideSuperfishUl:function(){var e=a.op,d=(e.retainPath===true)?e.$path:"";e.retainPath=false;var c=b(["li.",e.hoverClass].join(""),this).add(this).not(d).removeClass(e.hoverClass).find(">ul").hide().css("visibility","hidden");e.onHide.call(c);return this;},showSuperfishUl:function(){var e=a.op,d=a.c.shadowClass+"-off",c=this.addClass(e.hoverClass).find(">ul:hidden").css("visibility","visible");a.IE7fix.call(c);e.onBeforeShow.call(c);c.animate(e.animation,e.speed,function(){a.IE7fix.call(c);e.onShow.call(c);});return this;}});})(jQuery);
