jQuery(document).ready(function(t){t.fn.scrollBottom=function(){return t(document).height()-this.scrollTop()-this.height()},t(".x-btn-navbar, .x-btn-navbar-search, .x-btn-widgetbar").click(function(t){t.preventDefault()}),t('iframe[src*="youtube.com"]').each(function(){var n=t(this).attr("src");t(this).attr("src").indexOf("?")>0?t(this).attr({src:n+"&wmode=transparent",wmode:"Opaque"}):t(this).attr({src:n+"?wmode=transparent",wmode:"Opaque"})}),t("body").on("click",".x-iso-container .flex-direction-nav a",function(){setTimeout(function(){$window.smartresize()},750)}),t("body.x-masonry-active").on("keyup",function(t){t.which>=37&&t.which<=40&&setTimeout(function(){$window.smartresize()},750)})}),jQuery(function(t){function n(t){t.addClass(u).siblings(r).removeClass(u),Modernizr&&Modernizr.touchevents&&(t.siblings(r).data(l,0),t.find("."+u).removeClass(u).data(l,0))}function a(t){t.find("."+u).removeClass(u)}function e(a){clearTimeout(d.id);var e=t(a.target).closest("li");e.hasClass("menu-item-has-children")&&n(e)}function o(n){clearTimeout(d.id);var e=t.contains(document.getElementsByClassName("x-nav-wrap desktop")[0],n.toElement),o=e?500:1e3,i=t(this).closest("ul");d.id=setTimeout(function(){a(i)},o)}function i(a){var e=t(a.target).closest("li");e.data(l,e.data(l)+1),e.hasClass("menu-item-has-children")&&1===e.data(l)&&(a.preventDefault(),a.stopPropagation(),n(e))}function s(n){t(r).data(l,0),a(c)}var c=t(".desktop .x-nav"),r="li.menu-item-has-children",u="x-active",l="x-action",d={};Modernizr&&Modernizr.touchevents?(t(r).data(l,0),c.on("touchstart click",r,i),c.on("touchstart click",function(t){t.stopPropagation()}),t("body").on("touchstart click",s)):(c.hoverIntent({over:e,out:o,selector:r}),c.on("focusin",r,e),c.on("focusout",r,o));var h=t(".mobile .x-nav"),f=h.find("li.menu-item-has-children > a"),m=h.find(".sub-menu");f.each(function(n){t(this).append('