jQuery(function(a){var b={header:function(b){a(b).waypoint("sticky"),a("body:not(.wsite-native-mobile-editor, .wsite-checkout-page)").waypoint(function(){a(b).toggleClass("minimize")},{offset:-5})},accordion:function(b){a(b).each(function(){var b=a(this);b.addClass("accordion"),b.prepend(b.prev("a")),b.prepend(""),b.children("span").click(function(){b.toggleClass("open")})})},cartRefresh:function(){a("#mobile-cart span").text(a("#wsite-nav-cart-num").text()),a("#mobile-cart").addClass("highlight"),setTimeout(function(){a("#mobile-cart").attr("href",a("#wsite-com-minicart-checkout-button").attr("href")).removeClass("highlight")},800)},cartInit:function(){a("#wsite-nav-cart-a").length&&(a("#header").append('0').addClass("commerce"),a("#wsite-nav-cart-a").on("DOMSubtreeModified propertychange",function(){b.cartRefresh()}))},storeSidebar:function(){var b=a(".wsite-com-sidebar"),c=a("#wsite-com-hierarchy");b.click(function(){b.hasClass("sidebar-expanded")?null:b.addClass("sidebar-expanded")}),c.prepend('CLOSE'),a("#close").click(function(a){a.preventDefault(),setTimeout(function(){b.removeClass("sidebar-expanded")},50)})},formstyle:function(){a(".wsite-form-sublabel").each(function(){var b=a(this).text();a(this).prev("input").attr("placeholder",b)})},swipeGallery:function(){setTimeout(function(){var c=document.getElementsByClassName("fancybox-wrap")[0],d=new Hammer(c);d.on("panleft panright",function(c){"panleft"==c.type?a("a.fancybox-next").trigger("click"):"panright"==c.type&&a("a.fancybox-prev").trigger("click"),b.swipeGallery()})},500)},swipeInit:function(){"ontouchstart"in window&&a("body").on("click","a.w-fancybox",function(){b.swipeGallery()})},interval:function(a,c,d,e){var f=0,g=setInterval(function(){f>=e||b.checkElement(a)?clearInterval(g):(c(),f++)},d)},checkElement:function(b){return a(b).length},moveMinicart:function(){var b=a("#wsite-mini-cart").detach();a("#header-wrap").append(b)},moveLogin:function(){var b=a("#member-login").detach();a("#mobile-nav .wsite-menu-default > li:last-child").after(b)},toggleClick:function(b,c,d){a(b).click(function(){a(c).toggleClass(d)})}};a(document).ready(function(){a("body").addClass("postload"),b.toggleClick(".hamburger","body","menu-open"),setTimeout(function(){b.accordion("#mobile-nav .wsite-menu-item-wrap .wsite-menu-wrap"),b.header("body:not(.wsite-native-mobile-editor, .wsite-checkout-page) #header-wrap")},600),b.formstyle(),b.swipeInit(),b.cartInit(),b.storeSidebar(),a(window).width()<=992&&b.interval("#mobile-nav #member-login",b.moveLogin,800,5)})});function toggle_visibility(id) { var e = document.getElementById(id); /*var f = document.getElementById('signup_btn'); var g = document.getElementById('nav');*/ if(e.style.background == '#fff') e.style.background = '#7da258'; else e.style.background = '#fff'; /*if(f.style.display == 'none') f.style.display = 'table-cell'; else f.style.display = 'none'; if(g.style.display == 'none') g.style.display = 'table-cell'; else g.style.display = 'none';*/}