$(document).ready(function(){$(".custom-menu-primary").addClass("js-enabled");$(".custom-menu-primary .hs-menu-wrapper").before('<div class="mobile-trigger cta_border_button">MENU</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 d=$(".background-image").find("img").attr("src");$("#banner-background-image").css("background-image","url("+d+")");var b=$(".offer-image").find("img").attr("src");$("#offer-background-image").css("background-image","url("+b+")");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(e,f){$(f).attr("id","tab-"+e)});$(".tabber-tabs a").each(function(f,g){$(g).attr("href","#tab-"+f);var e=$(g).attr("href");$(this).click(function(h){h.preventDefault();if(!$(this).parent().hasClass("active")){$(this).parent().addClass("active").siblings().removeClass("active");$(e).fadeIn().siblings().hide()}})});$(window).scroll(function(){var g=$("body");var f=$(window).scrollTop();var e=$(".body-container").offset();if(f>e.top){g.addClass("small-header")}else{g.removeClass("small-header")}});function c(){var f=$(window).width();var e=$(".header-container-wrapper").height();var g=$(window).height()-e-$(".footer-container-wrapper").height();if(f>767){$(".body-container-wrapper").css("padding-top",e+"px")}else{$(".body-container-wrapper").css("padding-top","0px")}$(".body-container-wrapper").css("min-height",g+"px")}c();$(window).on("resize",c);$(document).ready(function(){if(!$.trim($(".phone-icon .contact-info").html())==true){$(".contact-us .fa-phone").hide()}if(!$.trim($(".envelope-icon .contact-info").html())==true){$(".contact-us .fa-phone").hide()}if(!$.trim($(".home-icon .contact-info").html())==true){$(".contact-us .fa-phone").hide()}})});