!function(e){function t(){var t=e("#masthead").outerHeight();e(".wrap-inner-banner, .block-slider").css({"margin-top":t})}function a(e){var t=function(){jQuery(window).width();var t,a=(t=0,jQuery(e).height("auto"),jQuery(e).each(function(){jQuery(this).height()>t&&(t=jQuery(this).height())}),t);jQuery(e).each(function(){jQuery(this).height(a)})};jQuery(document).ready(function(){t()}),jQuery(window).resize(function(){t()}),jQuery(window).load(function(){t()})}!function(){var e,t,a,i,n,o;if((e=document.getElementById("site-navigation"))&&void 0!==(t=e.getElementsByTagName("button")[0]))if(void 0!==(a=e.getElementsByTagName("ul")[0])){for(a.setAttribute("aria-expanded","false"),-1===a.className.indexOf("nav-menu")&&(a.className+=" nav-menu"),t.onclick=function(){-1!==e.className.indexOf("toggled")?(e.className=e.className.replace(" toggled",""),t.setAttribute("aria-expanded","false"),a.setAttribute("aria-expanded","false")):(e.className+=" toggled",t.setAttribute("aria-expanded","true"),a.setAttribute("aria-expanded","true"))},n=0,o=(i=a.getElementsByTagName("a")).length;n a, .page_item_has_children > a");if("ontouchstart"in window)for(a=function(e){var t,a=this.parentNode;if(a.classList.contains("focus"))a.classList.remove("focus");else{for(e.preventDefault(),t=0;t=t?(i=r-jQuery(document).scrollTop(),o()):n():e("#masthead").outerHeight()>=(t=jQuery(document).scrollTop())?(i=BUSINESSCONSULTR.is_admin_bar_showing&&l>=782?32-t:-t,o()):(i=BUSINESSCONSULTR.is_admin_bar_showing&&l>=782?32:0,n()),s(i)},e(window).resize(function(){r(),l()}),r(),l(),e(window).scroll(l),jQuery(window).load(function(){r(),l()}),t(),e(".scroll-to").scrollTo(),d=parseInt(e(".block-slider .slide-item").length),e(".home-slider").owlCarousel({items:1,autoHeight:!1,autoHeightClass:"name",animateOut:"fadeOut",navContainer:".block-slider .controls",dotsContainer:"#kt-slide-pager",autoplay:BUSINESSCONSULTR.home_slider.autoplay,autoplayTimeout:parseInt(BUSINESSCONSULTR.home_slider.timeout),loop:d>1,rtl:"1"==BUSINESSCONSULTR.is_rtl}),e(".testimonial-carousel").owlCarousel({items:1,animateOut:"fadeOut",navContainer:".block-testimonial .controls",dotsContainer:"#testimonial-pager",responsiveClass:!0,responsive:{0:{items:1,nav:!0}},rtl:"1"==BUSINESSCONSULTR.is_rtl,loop:!1,dots:!0}),new function(e){this.markup=null,this.selector=null,this.fixed=!0,this.visible=!1,this.init=function(){if(this.valid()){void 0!==e&&void 0!==e.fixed&&(this.fixed=e.fixed),this.selector=e&&e.selector?e.selector:"#go-top",this.getMarkup();var t=this;if(jQuery("body").append(this.markup),this.fixed){jQuery(this.selector).hide();var a=jQuery(window).height();jQuery(window).scroll(function(){jQuery(window).scrollTop()>a-100?0==t.visible&&(jQuery(t.selector).fadeIn(),t.visible=!0):1==t.visible&&(jQuery(t.selector).fadeOut(),t.visible=!1)}),jQuery(this.selector).scrollTo()}}},this.getMarkup=function(){var t='
Scroll To Top
';this.markup=e&&e.markup?e.markup:t},this.valid=function(){return!(e&&e.markup&&!e.selector&&(alert('Please provide selector. eg. { markup: "
", selector: "#scroll-top"}'),1))}}({markup:'',selector:"#go-top"}).init(),e(c="#offcanvas-menu"+" .menu-item-has-children > a").each(function(){var t=e(this).text();t+='',e(this).html(t)}),e(document).on("click",c+" span.triangle",function(t){t.preventDefault(),t.stopPropagation(),$parentLi=e(this).parent().parent("li"),$childLi=$parentLi.find("li"),$parentLi.hasClass("open")?($parentLi.removeClass("open"),$childLi.removeClass("open"),e(this).parent("a").next().slideUp(),e(this).parent("a").next().find("ul").slideUp()):($parentLi.addClass("open"),e(this).parent("a").next().slideDown())}),e(document).on("click",".offcanvas-menu-toggler, .close-offcanvas-menu, .kt-offcanvas-overlay",function(t){t.preventDefault(),e("body").toggleClass("offcanvas-menu-open")}),jQuery("body").append('
'),jQuery(".masonry-wrapper").length>0&&($grid=jQuery(".masonry-wrapper").masonry({itemSelector:".masonry-grid",percentPosition:!0})),infinite_count=0,e(document.body).on("post-load",function(){infinite_count+=1;var t="#infinite-view-"+infinite_count;e(t).hide(),e(e(t+" .masonry-grid")).each(function(){$items=e(this),$grid.append($items).masonry("appended",$items)}),setTimeout(function(){$grid.masonry("layout")},500)}),e("#masthead #s").attr("placeholder",BUSINESSCONSULTR.search_placeholder),e("#searchform #s").attr("placeholder",BUSINESSCONSULTR.search_default_placeholder)}),jQuery(window).resize(function(){t()}),jQuery(window).load(function(){"undefined"!=typeof $grid&&($grid.masonry("reloadItems"),$grid.masonry("layout"))}),jQuery(window).load(function(){jQuery("#site-loader").fadeOut(500)})}(jQuery);