jQuery(function(){var e,n,i;jQuery(function(){var e=jQuery("#search-toggle"),n=jQuery("#search-box");jQuery("#search-toggle").on("click",function(){"search-toggle"==jQuery(this).attr("id")&&(n.is(":visible")?e.removeClass("header-search-x").addClass("header-search"):e.removeClass("header-search").addClass("header-search-x"),n.slideToggle(function(){}))})}),jQuery(function(){var e=jQuery("#page div"),n=jQuery("body");e.hasClass("main-slider")&&n.addClass("sld-plus")}),(i=jQuery(".main-navigation"))&&(e=i.find(".menu-toggle"))&&((n=i.find(".menu"))&&n.children().length?jQuery(".menu-toggle").on("click",function(){jQuery(this).toggleClass("on"),i.toggleClass("toggled-on")}):e.hide()),function(){var e,n,i=jQuery(".top-bar-menu");i&&(e=i.find(".top-menu-toggle"))&&((n=i.find(".top-menu"))&&n.children().length?jQuery(".top-menu-toggle").on("click",function(){jQuery(this).toggleClass("on"),i.toggleClass("toggled-on")}):e.hide())}(),jQuery(function(){jQuery(window).width()<981&&(jQuery("#site-navigation .menu-item-has-children, #site-navigation .page_item_has_children").prepend('<button class="sub-menu-toggle"> <i class="fa fa-plus"></i> </button>'),jQuery(".main-navigation .menu-item-has-children ul, .main-navigation .page_item_has_children ul").hide(),jQuery(".main-navigation .menu-item-has-children > .sub-menu-toggle, .main-navigation .page_item_has_children > .sub-menu-toggle").on("click",function(){jQuery(this).parent(".main-navigation .menu-item-has-children, .main-navigation .page_item_has_children").children("ul").first().slideToggle(),jQuery(this).children(".fa-plus").first().toggleClass("fa-minus")}))}),jQuery(document).ready(function(){jQuery(".go-to-top").hide(),jQuery(window).scroll(function(){jQuery(window).scrollTop()>900?jQuery(".go-to-top").fadeIn():jQuery(".go-to-top").fadeOut()}),jQuery(".go-to-top").click(function(){return jQuery("html,header,body").animate({scrollTop:0},700),!1})})});