jQuery(function(){var e,i,n;jQuery(function(){var e=jQuery("#search-toggle"),i=jQuery("#search-box");jQuery("#search-toggle").on("click",function(){"search-toggle"==jQuery(this).attr("id")&&(i.is(":visible")?e.removeClass("header-search-x").addClass("header-search"):e.removeClass("header-search").addClass("header-search-x"),i.slideToggle(200,function(){}))})}),(n=jQuery(".main-navigation"))&&(e=n.find(".menu-toggle"))&&((i=n.find(".menu"))&&i.children().length?jQuery(".menu-toggle").on("click",function(){jQuery(this).toggleClass("on"),n.toggleClass("toggled-on")}):e.hide()),jQuery(function(){jQuery(window).width()<768&&(jQuery("#site-navigation .menu-item-has-children, #site-navigation .page_item_has_children").prepend('<button class="sub-menu-toggle"> <i class="plus-ico">+</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(".plus-ico").first().toggleClass("back-ico")}))}),jQuery(function(){setInterval(function(){jQuery(".min_slider ul").animate({marginLeft:-220},1e3,function(){jQuery(this).css({marginLeft:0}).find("li:last").after(jQuery(this).find("li:first"))})},3e3)});var t=jQuery(".widget_portfolio .three-column-full-width, .widget_portfolio .three-column-full-width .slide-caption h3, .widget_portfolio .three-column-full-width .slide-caption p").children("a");t.on("focus",function(){jQuery(this).parents(".widget_portfolio .three-column-full-width").addClass("focus")}),t.on("focusout",function(){jQuery(this).parents(".widget_portfolio .three-column-full-width").removeClass("focus")}),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})})});