!function(e){"use strict";var s,t,i,n,o,r,a,u,f,p,h,l,c,d=(t="sf-js-enabled",i="sf-with-ul",n=function(){var s=/^(?![\w\W]*Windows Phone)[\w\W]*(iPhone|iPad|iPod)/i.test(navigator.userAgent);return s&&e("html").on("click",e.noop),s}(),o="behavior"in(s=document.documentElement.style)&&"fill"in s&&/iemobile/i.test(navigator.userAgent),r=function(e,s){var i=t;e.toggleClass(i)},a=function(e){e.children("a").toggleClass(i)},u=function(e){var s=e.css("ms-touch-action");s="pan-y"===s?"auto":"pan-y",e.css("ms-touch-action",s)},f=function(s){var t=e(this),i=c(t);t.siblings(s.data.popUpSelector).length>0&&(t.parent("li").hasClass(i.hoverClass)?t.trigger("click"):(t.one("click.superfish",!1),"MSPointerDown"===s.type?t.trigger("focus"):e.proxy(p,t.parent("li"))()))},p=function(){var s=e(this),t=c(s);clearTimeout(t.sfTimer),s.siblings().wpexSuperfish("hide").end().wpexSuperfish("show")},h=function(){var s=e(this),t=c(s);n?e.proxy(l,s,t)():(clearTimeout(t.sfTimer),t.sfTimer=setTimeout(e.proxy(l,s,t),t.delay))},l=function(e){this.wpexSuperfish("hide")},c=function(e){return function(e){return e.closest("."+t)}(e).data("sf-options")},{hide:function(e){if(this.length){var s=c(this);if(!s)return this;var t=this.find("li."+s.hoverClass).add(this).removeClass(s.hoverClass).children(s.popUpSelector);e&&t.show()}return this},show:function(){var e=c(this);return e?(this.addClass(e.hoverClass).children(e.popUpSelector),this):this},destroy:function(){return this.each((function(){var s,t=e(this),i=t.data("sf-options");if(!i)return!1;s=t.find(i.popUpSelector).parent("li"),clearTimeout(i.sfTimer),r(t),a(s),u(t),t.off(".superfish").off(".hoverIntent"),t.find("."+i.hoverClass).removeClass(i.hoverClass),i.onDestroy.call(t),t.removeData("sf-options")}))},init:function(s){return this.each((function(){var t=e(this);if(t.data("sf-options"))return!1;var i=e.extend({},e.fn.wpexSuperfish.defaults,s),n=t.find(i.popUpSelector).parent("li");t.data("sf-options",i),r(t),a(n),u(t),function(s,t){var i="li:has("+t.popUpSelector+")";e.fn.hoverIntent&&!t.disableHI?s.hoverIntent(p,h,i):s.on("mouseenter.superfish",i,p).on("mouseleave.superfish",i,h);var n="touchend.superfish ";o&&(n+=" mousedown.superfish"),s.on("focusin.superfish","li",p).on("focusout.superfish","li",h).on(n,"a",t,f)}(t,i)}))}});e.fn.wpexSuperfish=function(s,t){return d[s]?d[s].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof s&&s?e.error("Method "+s+" does not exist on jQuery.fn.wpexSuperfish"):d.init.apply(this,arguments)},e.fn.wpexSuperfish.defaults={popUpSelector:"ul,.sf-mega",hoverClass:"sfHover",delay:800,disableHI:!1,onDestroy:e.noop}}(jQuery),function(e,s){"use strict";e("#site-navigation ul.sf-menu").wpexSuperfish({delay:s.delay,disableHI:!1})}(jQuery,wpex_superfish_params);