function setContentHeight() { var a = jQuery, b = a(window).height(), d = (a("#wrapper").height(), a("#header-wrapper").outerHeight()), e = a("#featured-arear").outerHeight(), f = a("#tall-header").outerHeight(), g = a("#footer-wrapper").outerHeight(), h = a("#footer-top").outerHeight(), i = a("#wrapper").outerHeight(); a(".splash-page .wsite-section-wrap").css({ "min-height": b + "px" }), i < b && (a(".no-banner #main-container").outerHeight(b - (d + g + 50)), a(".has-banner .main").outerHeight(b - (f + d + g)), a(".has-featured .main").outerHeight(b - (e + d + g)), a(".sticky-footer-on.no-banner #main-container").outerHeight(b - (d + h + 10)), a(".sticky-footer-on.has-banner .main").outerHeight(b - f - d - h - 10), a(".sticky-footer-on.has-featured .main").outerHeight(b - (e + d + h + 10))), a(".landing-page .wsite-section-wrap").css({ "min-height": b + "px" }), a(".landing-page.sticky-footer-off #footer-wrapper").css({ "margin-top": -1 * g + "px" }), a(".landing-page.sticky-footer-off .landing-content").css({ "padding-bottom": g + "px" }) } function menuWidth() { var a = jQuery, b = a(".container").width(), c = a(".logo").width(), d = a(".header-actions .icon-search").outerWidth(!0), e = a(".min-cart").outerWidth(!0), f = a(".nav-button").outerWidth(!0); a(".menu").css({ "max-width": +(b - c - d - e - f) + "px" }) } var is_mobile = 0; /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) && (is_mobile = 1), jQuery(window).load(function() { var a = jQuery; a("body").hasClass("sticky-nav-on") && a("#header-wrapper").sticky({ topSpacing: 0 }), a("body").hasClass("sticky-footer-on") && (a(".footer-hover-off .footer-arrow").click(function() { a("#footer-wrapper").toggleClass("on") }), a(".footer-hover-on #footer-wrapper").hover(function() { a("#footer-wrapper").toggleClass("on") }), a(window).resize(_.debounce(function() { var b = a("#footer").height(), wH = a(window).height(); c = parseInt(a("#footer").css("padding-top")), d = parseInt(a("#footer").css("padding-bottom")); b = -1 * (b + c + d), a("#footer-wrapper").css({ /*bottom: b+wH+155*/ bottom: -(wH/2-100) }); a(".fake-bg").css({ height: -b+55 }) }, 1e3)), a(window).trigger("resize")), a(".mini-cart").click(function() { a("#wsite-mini-cart").slideToggle("slow") }), a("div.imageGallery, div.wsite-image").length > 0 && a("div.imageGallery a, div.wsite-image .w-fancybox").each(function() { var b = a(this); b.find("div.galleryCaptionHolder").length <= 0 && b.append('
') }), a("div.imageGallery, div.wsite-image").length > 0 && a(".wsite-image").each(function() { var b = a(this), c = b.children("div"), d = c.text(); "" == d ? c.hide() : c.html('
' + d + "
") }), a("#wsite-header-search-form").length > 0 && a("body").addClass("have-search"), a(window).resize(_.debounce(function() { setContentHeight(), menuWidth() }, 250)), a(window).trigger("resize") }), jQuery(document).ready(function() { var a = jQuery, b = a(".boo-search"), c = a(".icon-search"); if (c.click(function() { b.toggleClass("show") }), a("input[type=file]").nicefileinput(), a("select").parent().jqTransform(), is_mobile) { var d = a(".wsite-background"), e = d.css("background-image").replace("url(", "").replace(")", "").replace(/\"/g, ""); d.append('
').removeClass("wsite-background") } "function" == typeof baambooLicense && "function" == typeof Aes.Ctr.encrypt ? baambooLicense() : a("body").remove(), setContentHeight() });