function setContentHeight(){var a=jQuery,b=a("#header").height(),c=a(window).height(),d=a("#wrapper").height(),e=a("#footer-wrap").height();d+e div.wsite-section").height(c-e),a(".landing #banner .wsite-section-wrap").height(c-b),a(".one-page #banner .wsite-section-wrap").height(c-b)}function scrollHandler(){var a=jQuery;if(0==window.is_mobile&&a(".one-page").length>0){var b=a("#wrapper > div:in-viewport").attr("id");"main-container"==b&&(b=a('#main-container div[id^="section-"]:in-viewport').attr("id")),a(".menu-2 li").removeClass("active"),a(".menu-2 li a[href='#"+b+"']").parent().addClass("active")}}var is_mobile=0;/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&(is_mobile=1),jQuery(document).ready(function(){var a=jQuery,b=a(".common"),c=a(".search"),d=a(".big-search-close"),e=a(".icon_search"),f=a(".wsite-search-input");c.find(".wsite-search").length||b.remove(),e.click(function(){c.toggleClass("show")}),d.click(function(){if(""==f.val())return c.removeClass("show"),f.focus(),!1}),a("input[type=file]").nicefileinput(),a(".wsite-form-radio-container, .field-checkbox, .wsite-com-product-option-dropdown").jqTransform(),a().UItoTop();var g=a("#wrapper_header").outerHeight();a("#scrollDown").click(function(){return a("html, body").animate({scrollTop:a("#main-container").offset().top-g},500),!1}),!a(".one-page").length>0&&a(".menu-toggle").click(function(){a(".nav_right").toggleClass("menu-open"),a(".mobile-nav").slideToggle("slow")}),a(".one-page-1").length>0&&a(".one-page-1 .menu-toggle").click(function(){a(".one-page-1 .nav_right").toggleClass("menu-open"),a(".one-page-1 .menu-2").slideToggle("slow")}),a("#wsite-nav-cart-a").hover(function(){a(".menu .wsite-nav-cart").remove()}),a(".one-page.one-page-2").length>0&&(a(".one-page-2 .menu-toggle").click(function(){a(".one-page-2 #navigation .nav_right").toggleClass("menu-open"),a(".one-page-2 #navigation .mobile-nav").slideToggle("slow")}),a(".one-page-2 .menu-toggle-2").click(function(){a(".one-page-2 #navigation-2 .navigation-2-main").toggleClass("menu-open"),a(".one-page-2 #navigation-2 .menu-2").slideToggle("slow")})),/*"function"==typeof baambooLicense&&"function"==typeof Aes.Ctr.encrypt?baambooLicense():a("body").remove(),a(window).resize(function(){setContentHeight()}),*/a(window).trigger("resize");var h;a(window).scroll(function(){h&&(clearTimeout(h),h=null),h=setTimeout(scrollHandler,100)}),a(window).trigger("scroll");var i=a("#navigation").outerHeight();a("#navigation-2").length&&(i=a("#navigation-2").outerHeight()),!a("nav_right.menu-open").length>0&&a(".menu-2 a").click(function(){a(".menu-2").hide(),a(".nav_right").removeClass("menu-open"),a(this).parent().siblings().removeClass("active"),a(this).parent().addClass("active");var b=a(this).attr("href");return a(".sticky-nav-on").length>0&&(a(".one-page-2").length>0&&a("html, body").animate({scrollTop:a(b).offset().top-i},500),a(".one-page-1").length>0&&(a(".one-page-1.menu-style-style1,.one-page-1.menu-style-style3").length>0?a("html, body").animate({scrollTop:a(b).offset().top-i+40},500):a("html, body").animate({scrollTop:a(b).offset().top-i+15},500))),a(".sticky-nav-off").length>0&&(a(".one-page-2").length>0&&a("html, body").animate({scrollTop:a(b).offset().top-60},500),a(".one-page-1").length>0&&a("html, body").animate({scrollTop:a(b).offset().top-60},500)),!1}),a(".one-page .wsite-section-wrap").each(function(b,c){a(this).attr("id","section-"+b)})}),jQuery(window).load(function(){var a=jQuery;!a(".one-page-2").length>0&&(a(".sticky-nav-on #navigation").sticky({topSpacing:0}),a(".one-page.sticky-nav-off #navigation").sticky({topSpacing:0})),a(".one-page-2").length>0&&(a(".sticky-nav-on #navigation-2").sticky({topSpacing:0}),a(".one-page.sticky-nav-off #navigation-2").sticky({topSpacing:0})),a(".wsite-cart-contents").length?a("#wrapper_header").addClass("has_cart"):a("#wrapper_header").removeClass("has_cart"),a(".background-img").length>0&&a(".background-img").each(function(){var b=a(this),c=b.find("img"),d=c.attr("src");"undefined"!=typeof d&&d.indexOf("image_placeholder.png")==-1&&(d="url("+d+")",b.css("background-image",d),c.remove())}),a("div.imageGallery").length>0&&a(".imageGallery .w-fancybox").each(function(){var b=a(this);b.find("div.galleryCaptionHolder").length<=0&&b.append('
'),b.find("div.fullImageGalleryCaption .galleryCaptionHolderInner").hasClass("galleryCaptionsVisible")&&b.find("div.fullImageGalleryCaption").addClass("alwaysShow")}),a("div.wsite-image").length>0&&a(".wsite-image .w-fancybox").each(function(){var b=a(this);b.find("div.galleryCaptionHolder").length<=0&&(b.append('
'),b.addClass("border-around"))}),a("div.wsite-image").length>0&&a(".wsite-image").each(function(){var b=a(this),c=b.children(c),d=b.children("div"),e=d.text();""==e?d.hide():d.html('
'+e+"
")})});