"use strict";!function($){var e={menuInit:function e(){$("ul.sf-menu").superfish({delay:1500,animation:{opacity:"show",height:"show"},speed:"fast",autoArrows:!1,cssArrows:!0})},responsiveVideosInit:function e(){$(".entry-content, .sidebar").fitVids()},responsiveMenuInit:function e(){var n=$(".header-menu").clone().removeAttr("class").addClass("header-menu-responsive");n.removeAttr("style").find("*").each(function(e,n){$(n).removeAttr("style")});var s=$('<div class="header-menu-responsive-close">&times;</div>');$('<div class="site-header-menu-responsive" />').insertBefore(".site-content"),n.appendTo(".site-header-menu-responsive"),s.appendTo(".site-header-menu-responsive"),$(".site-header-menu-responsive .page_item_has_children > a, .site-header-menu-responsive .menu-item-has-children > a").append('<button class="dropdown-toggle" aria-expanded="false"/>'),$(".site-header-menu-responsive .dropdown-toggle").off("click").on("click",function(e){e.preventDefault(),$(this).toggleClass("toggle-on"),$(this).parent().next(".children, .sub-menu").toggleClass("toggle-on"),$(this).attr("aria-expanded","false"===$(this).attr("aria-expanded")?"true":"false")})},slidePanelInit:function n(){var s=$(".site-header-menu-responsive"),i=$(".overlay-effect"),t=$(".header-menu-responsive-close");$(".toggle-menu-control").off("click").on("click",function(e){e.preventDefault(),e.stopPropagation(),s.toggleClass("show"),i.toggleClass("open"),i.hasClass("open")&&$("body").addClass("has-responsive-menu")}),t.off("click").on("click",function(){e.slidePanelCloseInit()}),i.off("click").on("click",function(){e.slidePanelCloseInit()})},slidePanelCloseInit:function e(){var n=$(".site-header-menu-responsive"),s=$(".overlay-effect");s.hasClass("open")&&($("body").removeClass("has-responsive-menu"),n.hasClass("show")&&n.toggleClass("show"),s.toggleClass("open"))},mqInit:function n(){enquire.register("screen and ( max-width: 767px )",{deferSetup:!0,setup:function n(){e.responsiveMenuInit()},match:function n(){e.slidePanelInit(),$(".entry-content, .sidebar").find("table").wrap('<div class="table-responsive"></div>')},unmatch:function n(){e.slidePanelCloseInit(),$(".entry-content, .sidebar").find("table").unwrap('<div class="table-responsive"></div>')}})}};$(document).ready(function(){e.menuInit(),e.responsiveVideosInit(),e.slidePanelInit(),e.mqInit()}),$(document).keyup(function(n){27===n.keyCode&&e.slidePanelCloseInit()})}(jQuery);