text: jQuery(function(t){function a(t){t.addClass(r).siblings(l).removeClass(r),window.csModernizr&&window.csModernizr.touchevents&&(t.siblings(l).data(u,0),t.find("."+r).removeClass(r).data(u,0))}function n(t){t.find("."+r).removeClass(r)}function e(n){clearTimeout(d.id);var e=t(n.target).closest("li");e.hasClass("menu-item-has-children")&&a(e)}function o(a){clearTimeout(d.id);var e=t.contains(document.getElementsByClassName("x-nav-wrap desktop")[0],a.toElement),o=e?500:1e3,s=t(this).closest("ul");d.id=setTimeout(function(){n(s)},o)}function s(n){var e=t(n.target).closest("li");e.data(u,e.data(u)+1),e.hasClass("menu-item-has-children")&&1===e.data(u)&&(n.preventDefault(),n.stopPropagation(),a(e))}function i(a){t(l).data(u,0),n(c)}var c=t(".desktop .x-nav"),l="li.menu-item-has-children",r="x-active",u="x-action",d={};window.csModernizr&&window.csModernizr.touchevents?(t(l).data(u,0),c.on("touchstart click",l,s),c.on("touchstart click",function(t){t.stopPropagation()}),t("body").on("touchstart click",i)):(c.hoverIntent({over:e,out:o,selector:l}),c.on("focusin",l,e),c.on("focusout",l,o));var f=t(".mobile .x-nav"),h=f.find("li.menu-item-has-children > a"),v=f.find(".sub-menu");h.each(function(a){t(this).append('<div class="x-sub-toggle" data-toggle="collapse" data-target=".sub-menu.sm-'+a+'"><span><i class="x-icon-angle-double-down" data-x-icon="&#xf103;"></i></span></div>')}),v.each(function(a){t(this).addClass("sm-"+a+" collapse")}),t(".x-sub-toggle").on("click",function(a){a.preventDefault(),t(this).toggleClass(r).closest("li").toggleClass(r)})}),jQuery(function(t){function a(){return t(".x-navbar-wrap").offset().top-t("#wpadminbar").outerHeight()}var n=t("body"),e=t(".x-navbar");if(n.hasClass("x-navbar-fixed-top-active")&&e.length>0){var o="";n.hasClass("x-boxed-layout-active")&&(o=" x-container max width"),t(window).scroll(function(){t(this).scrollTop()>=a()?e.addClass("x-navbar-fixed-top"+o):e.removeClass("x-navbar-fixed-top"+o)})}}),jQuery(function(t){function a(){e.toggleClass("in"),setTimeout(function(){o.val("")},350)}var n=t(".x-btn-navbar-search"),e=t(".x-searchform-overlay"),o=e.find(".search-query"),s=27;n.on("touchstart click",function(t){t.preventDefault(),e.toggleClass("in"),o.focus()}),e.on("touchstart click",function(n){t(n.target).hasClass("search-query")||a()}),t(document).keydown(function(t){t.which===s&&e.hasClass("in")&&a()})});