$(function(){$(".custom-menu-primary").addClass("js-enabled");$(".custom-menu-primary .hs-menu-wrapper").before('<div class="mobile-trigger"><i></i></div>');$(".custom-menu-primary .flyouts .hs-item-has-children > a").after(' <div class="child-trigger"><i></i></div>');$(".mobile-trigger").click(function(){$(this).next(".custom-menu-primary .hs-menu-wrapper").slideToggle(250);$("body").toggleClass("mobile-open");$(".child-trigger").removeClass("child-open");$(".hs-menu-children-wrapper").slideUp(250);return false});$(".child-trigger").click(function(){$(this).parent().siblings(".hs-item-has-children").find(".child-trigger").removeClass("child-open");$(this).parent().siblings(".hs-item-has-children").find(".hs-menu-children-wrapper").slideUp(250);$(this).next(".hs-menu-children-wrapper").slideToggle(250);$(this).next(".hs-menu-children-wrapper").children(".hs-item-has-children").find(".hs-menu-children-wrapper").slideUp(250);$(this).next(".hs-menu-children-wrapper").children(".hs-item-has-children").find(".child-trigger").removeClass("child-open");$(this).toggleClass("child-open");return false});var c=$(".banner");var b=c.find(".banner-image img").attr("src");c.append('<div class="color-overlay"></div>');c.css("background-image","url("+b+")");c.find(".banner-image").empty();var e=$(window);function d(){var f=e.scrollTop();c.css("background-position","center "+(f*0.4)+"px")}e.scroll(function(f){if(e.width()>767){d()}});var a=$(".back-to-top");a.hide();$(window).scroll(function(){if($(this).scrollTop()>50){a.fadeIn()}else{a.fadeOut()}});a.find("a").click(function(f){f.preventDefault();$("html, body").animate({scrollTop:0},500)});$(".tab-pane").not(".active").hide();$(".tabber-content .tab-pane").each(function(f,g){$(g).attr("id","tab-"+f)});$(".tabber-tabs a").each(function(g,h){$(h).attr("href","#tab-"+g);var f=$(h).attr("href");$(this).click(function(i){i.preventDefault();if(!$(this).parent().hasClass("active")){$(this).parent().addClass("active").siblings().removeClass("active");$(f).fadeIn().siblings().hide()}})});$("#well .close").click(function(){$(this).parent("#well").fadeOut()})});3;