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