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