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