(function(a,c){var b=(function(){var e={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",menuArrowClass:"sf-arrows"},i=(function(){var s=/^(?![\w\W]*Windows Phone)[\w\W]*(iPhone|iPad|iPod)/i.test(navigator.userAgent);if(s){a("html").css("cursor","pointer").on("click",a.noop);}return s;})(),r=(function(){var s=document.documentElement.style;return("behavior" in s&&"fill" in s&&/iemobile/i.test(navigator.userAgent));})(),q=(function(){return(!!c.PointerEvent);})(),n=function(s,w,t){var u=e.menuClass,v;if(w.cssArrows){u+=" "+e.menuArrowClass;}v=(t)?"addClass":"removeClass";s[v](u);},l=function(s,t){return s.find("li."+t.pathClass).slice(0,t.pathLevels).addClass(t.hoverClass+" "+e.bcClass).filter(function(){return(a(this).children(t.popUpSelector).hide().show().length);}).removeClass(t.pathClass);},m=function(s,t){var u=(t)?"addClass":"removeClass";s.children("a")[u](e.anchorClass);},o=function(s){var t=s.css("ms-touch-action");var u=s.css("touch-action");u=u||t;u=(u==="pan-y")?"auto":"pan-y";s.css({"ms-touch-action":u,"touch-action":u});},g=function(s){return s.closest("."+e.menuClass);},h=function(s){return g(s).data("sfOptions");},k=function(){var s=a(this),t=h(s);clearTimeout(t.sfTimer);s.siblings().superfish("hide").end().superfish("show");},f=function(s){s.retainPath=(a.inArray(this[0],s.$path)>-1);this.superfish("hide");if(!this.parents("."+s.hoverClass).length){s.onIdle.call(g(this));if(s.$path.length){a.proxy(k,s.$path)();}}},j=function(){var s=a(this),t=h(s);if(i){a.proxy(f,s,t)();}else{clearTimeout(t.sfTimer);t.sfTimer=setTimeout(a.proxy(f,s,t),t.delay);}},p=function(u){var s=a(this),v=h(s),t=s.siblings(u.data.popUpSelector);if(v.onHandleTouch.call(t)===false){return this;}if(t.length>0&&t.is(":hidden")){s.one("click.superfish",false);if(u.type==="MSPointerDown"||u.type==="pointerdown"){s.trigger("focus");}else{a.proxy(k,s.parent("li"))();}}},d=function(s,t){var u="li:has("+t.popUpSelector+")";if(a.fn.hoverIntent&&!t.disableHI){s.hoverIntent(k,j,u);}else{s.on("mouseenter.superfish",u,k).on("mouseleave.superfish",u,j);}var v="MSPointerDown.superfish";if(q){v="pointerdown.superfish";}if(!i){v+=" touchend.superfish";}if(r){v+=" mousedown.superfish";}s.on("focusin.superfish","li",k).on("focusout.superfish","li",j).on(v,"a",t,p);};return{hide:function(u){if(this.length){var s=this,w=h(s);if(!w){return this;}var v=(w.retainPath===true)?w.$path:"",t=s.find("li."+w.hoverClass).add(this).not(v).removeClass(w.hoverClass).children(w.popUpSelector),x=w.speedOut;if(u){t.show();x=0;}w.retainPath=false;if(w.onBeforeHide.call(t)===false){return this;}t.stop(true,true).animate(w.animationOut,x,function(){var y=a(this);w.onHide.call(y);});}return this;},show:function(){var u=h(this);if(!u){return this;}var s=this.addClass(u.hoverClass),t=s.children(u.popUpSelector);if(u.onBeforeShow.call(t)===false){return this;}t.stop(true,true).animate(u.animation,u.speed,function(){u.onShow.call(t);});return this;},destroy:function(){return this.each(function(){var t=a(this),u=t.data("sfOptions"),s;if(!u){return false;}s=t.find(u.popUpSelector).parent("li");clearTimeout(u.sfTimer);n(t,u);m(s);o(t);t.off(".superfish").off(".hoverIntent");s.children(u.popUpSelector).attr("style",function(v,w){return w.replace(/display[^;]+;?/g,"");});u.$path.removeClass(u.hoverClass+" "+e.bcClass).addClass(u.pathClass);t.find("."+u.hoverClass).removeClass(u.hoverClass);u.onDestroy.call(t);t.removeData("sfOptions");});},init:function(s){return this.each(function(){var u=a(this);if(u.data("sfOptions")){return false;}var v=a.extend({},a.fn.superfish.defaults,s),t=u.find(v.popUpSelector).parent("li");v.$path=l(u,v);u.data("sfOptions",v);n(u,v,true);m(t,true);o(u);d(u,v);t.not("."+e.bcClass).superfish("hide",true);v.onInit.call(this);});}};})();a.fn.superfish=function(e,d){if(b[e]){return b[e].apply(this,Array.prototype.slice.call(arguments,1));}else{if(typeof e==="object"||!e){return b.init.apply(this,arguments);}else{return a.error("Method "+e+" does not exist on jQuery.fn.superfish");}}};a.fn.superfish.defaults={popUpSelector:"ul,.sf-mega",hoverClass:"sfHover",pathClass:"overrideThisToUse",pathLevels:1,delay:100,animation:{opacity:"show"},animationOut:{opacity:"hide"},speed:"fast",speedOut:"fast",cssArrows:true,disableHI:false,onInit:a.noop,onBeforeShow:a.noop,onShow:a.noop,onBeforeHide:a.noop,onHide:a.noop,onIdle:a.noop,onDestroy:a.noop,onHandleTouch:a.noop};})(jQuery,window);