$(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 c=$(".background-image").find("img").attr("src");$("#banner-background-image").css("background-image","url("+c+")");var a=$(".offer-image").find("img").attr("src");$("#offer-background-image").css("background-image","url("+a+")");$(window).scroll(function(){var f=$("body");var e=$(window).scrollTop();var d=$(".body-container").offset();if(e>d.top){f.addClass("small-header")}else{f.removeClass("small-header")}});function b(){var e=$(window).width();var d=$(".header-container-wrapper").height();var f=$(window).height()-d-$(".footer-container-wrapper").height();if(e>767){$(".body-container-wrapper").css("padding-top",d+"px")}else{$(".body-container-wrapper").css("padding-top","0px")}$(".body-container-wrapper").css("min-height",f+"px")}b();$(window).on("resize",b);$(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-envelope").hide()}if(!$.trim($(".home-icon .contact-info").html())==true){$(".contact-us .fa-home").hide()}})});