").append(m.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,e||[a.responseText,b,a])}),this},m.expr.filters.animated=function(a){return m.grep(m.timers,function(b){return a===b.elem}).length};var cd=a.document.documentElement;function dd(a){return m.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}m.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=m.css(a,"position"),l=m(a),n={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=m.css(a,"top"),i=m.css(a,"left"),j=("absolute"===k||"fixed"===k)&&m.inArray("auto",[f,i])>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),m.isFunction(b)&&(b=b.call(a,c,h)),null!=b.top&&(n.top=b.top-h.top+g),null!=b.left&&(n.left=b.left-h.left+e),"using"in b?b.using.call(a,n):l.css(n)}},m.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){m.offset.setOffset(this,a,b)});var b,c,d={top:0,left:0},e=this[0],f=e&&e.ownerDocument;if(f)return b=f.documentElement,m.contains(b,e)?(typeof e.getBoundingClientRect!==K&&(d=e.getBoundingClientRect()),c=dd(f),{top:d.top+(c.pageYOffset||b.scrollTop)-(b.clientTop||0),left:d.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}):d},position:function(){if(this[0]){var a,b,c={top:0,left:0},d=this[0];return"fixed"===m.css(d,"position")?b=d.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),m.nodeName(a[0],"html")||(c=a.offset()),c.top+=m.css(a[0],"borderTopWidth",!0),c.left+=m.css(a[0],"borderLeftWidth",!0)),{top:b.top-c.top-m.css(d,"marginTop",!0),left:b.left-c.left-m.css(d,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||cd;while(a&&!m.nodeName(a,"html")&&"static"===m.css(a,"position"))a=a.offsetParent;return a||cd})}}),m.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c=/Y/.test(b);m.fn[a]=function(d){return V(this,function(a,d,e){var f=dd(a);return void 0===e?f?b in f?f[b]:f.document.documentElement[d]:a[d]:void(f?f.scrollTo(c?m(f).scrollLeft():e,c?e:m(f).scrollTop()):a[d]=e)},a,d,arguments.length,null)}}),m.each(["top","left"],function(a,b){m.cssHooks[b]=Lb(k.pixelPosition,function(a,c){return c?(c=Jb(a,b),Hb.test(c)?m(a).position()[b]+"px":c):void 0})}),m.each({Height:"height",Width:"width"},function(a,b){m.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){m.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return V(this,function(b,c,d){var e;return m.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?m.css(b,c,g):m.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),m.fn.size=function(){return this.length},m.fn.andSelf=m.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return m});var ed=a.jQuery,fd=a.$;return m.noConflict=function(b){return a.$===m&&(a.$=fd),b&&a.jQuery===m&&(a.jQuery=ed),m},typeof b===K&&(a.jQuery=a.$=m),m});DOT.prototypes=new function(){"use strict";var t=jQuery.noConflict();return this.__construct=function(){},this.link=function(t,e){switch((e=void 0===e?"_self":e).toLowerCase()){case"_blank":window.open(t);break;case"_parent":parent.location.href=t;break;case"_top":top.location.href=t;break;default:window.location=t}},this.scrollToX=function(e,o,r){var n=t("body"),T=t("html"),i=t(o);r=void 0!==r?r:300,void 0===o?(n.stop(!1,!0).animate({scrollLeft:e},r),T.stop(!1,!0).animate({scrollLeft:e},r)):i.stop(!1,!0).animate({scrollLeft:e},r)},this.scrollToY=function(e,o,r){var n=t("body"),T=t("html"),i=t(o);r=void 0!==r?r:300,void 0===o?(T.stop(!1,!0).animate({scrollTop:e},r),n.stop(!1,!0).animate({scrollTop:e},r)):i.stop(!1,!0).animate({scrollTop:e},r)},this.HEXtoRGB=function(t){var e=parseInt(t,16);return{r:Math.round(e>>16),g:Math.round((65280&e)>>8),b:Math.round(255&e)}},this.HEXtoHSB=function(t){return DOT.prototypes.RGBtoHSB(DOT.prototypes.HEXtoRGB(t))},this.HSBtoHEX=function(t){return DOT.prototypes.RGBtoHEX(DOT.prototypes.HSBtoRGB(t))},this.HSBtoRGB=function(t){var e={r:0,g:0,b:0},o=Math.round(t.h),r=Math.round(255*t.s/100),n=Math.round(255*t.b/100),T=n,i=(255-r)*n/255,O=o%60*(T-i)/60;return 0===n?e.r=e.g=e.b=0:(360===o&&(o=0),o<60?(e.r=Math.round(T),e.b=Math.round(i),e.g=Math.round(i+O)):o<120?(e.g=Math.round(T),e.b=Math.round(i),e.r=Math.round(T-O)):o<180?(e.g=Math.round(T),e.r=Math.round(i),e.b=Math.round(i+O)):o<240?(e.b=Math.round(T),e.r=Math.round(i),e.g=Math.round(T-O)):o<300?(e.b=Math.round(T),e.g=Math.round(i),e.r=Math.round(i+O)):o<360?(e.r=Math.round(T),e.g=Math.round(i),e.b=Math.round(T-O)):(e.r=0,e.g=0,e.b=0)),e},this.RGBtoHEX=function(e){var o=parseInt(e.r),r=parseInt(e.g),n=parseInt(e.b),T=[o.toString(16),r.toString(16),n.toString(16)];return t.each(T,function(t,e){1===e.length&&(T[t]="0"+e)}),T.join("")},this.RGBtoHSB=function(t){var e={h:0,s:0,b:0},o=Math.min(t.r,t.g,t.b),r=Math.max(t.r,t.g,t.b),n=r-o;return e.b=Math.round(100*r/255),e.s=0!==r?Math.round(n/r*100):0,0!==e.s?t.r===r?e.h=(t.g-t.b)/n:t.g===r?e.h=2+(t.b-t.r)/n:e.h=4+(t.r-t.g)/n:e.h=-1,e.h*=60,e.h<0&&(e.h+=360),e.h=Math.round(e.h),e},this.cookieDelete=function(t,e,o){DOT.prototypes.cookieGet(t)&&(document.cookie=t+"="+(e?";path="+e:"")+(o?";domain="+o:"")+";expires=Thu, 01-Jan-1970 00:00:01 GMT")},this.cookieGet=function(t){var e,o=t+"=",r=document.cookie.split(";");for(e=0;e
12&&(n-=12,r=DOT.prototypes.leading0(n)),e=(e=e.replace("[hh]",r)).replace("[h]",n)),e+(""!==O?" "+O:"")},this.$_GET=function(t){var e,o=window.location.href.split("?")[1],r=void 0!==o?o.split("&"):[];for(e=0;e1&&O[0]===r&&(M=1),O.length>1&&parseInt(O[0])>=0&&parseInt(O[0])<=9&&"."===O[1]&&(M=0),T=M;Ta&&(a=n),i.val(a)},this.email=function(t){return/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,16}(?:\.[a-z]{2})?)$/i.test(t)},this.leading0=function(t){return(t=parseInt(t))<10?"0"+t:String(t)},this.limitSize=function(e,o){var r=t(e),n=r.val();r.val(n.substring(0,parseInt(o)))},this.permalink=function(t){return t=(t=(t=(t=t.replace(/[~`!@#$%^&*()+={}\[\]|\\:;"'<,>.?\/€]/g,"")).replace(/[ ]/g,"-")).replace(/[_]/g,"-")).toLowerCase()},this.random=function(t,e){var o,r,n="";for(e=void 0!==e?e:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",r=0;r0?i.removeClass("hidden"):i.addClass("hidden")}),t.scroll(function(){t.scrollTop()>0?i.removeClass("hidden"):i.addClass("hidden")}),a.scroll(function(){a.scrollTop()>0?i.removeClass("hidden"):i.addClass("hidden")}),o.scroll(function(){o.scrollTop()>0?i.removeClass("hidden"):i.addClass("hidden")}),n.scroll(function(){n.scrollTop()>0?i.removeClass("hidden"):i.addClass("hidden")})},this.footer=function(){var t=e("#footer");t.hasClass("open")?t.removeClass("open"):t.addClass("open")},this.content=function(){var t,s=e(".content-get"),a=[],i={};return s.each(function(){var t=e(this),s=t.data("id"),i=t.data("type");a.push({id:s,type:i})}),0===a.length?!1:(i[DOT.ajax.var]=DOT.ajax.keys.content_get,i.data=a,void e.post(DOT.ajax.url,i,function(a){for(a=e.trim(a).split("|||||||"),t=0;t0?"admin":l,l=i.length>0?"user":l){case"admin":DOT.methods.admin.toggleMessage("active-info",DOT.text["USER_NEWSLETTER_"+o+"_SEND"]);break;case"user":DOT.methods.user.toggleMessage("active-info",DOT.text["USER_NEWSLETTER_"+o+"_SEND"]);break;default:DOT.methods.panel.set("user-newsletter-"+t+"-active")}n[DOT.ajax.var]=DOT.ajax.keys.user_newsletter,n.action=t,e.post(DOT.ajax.url,n,function(){switch(l){case"admin":DOT.methods.admin.toggleMessage("success",DOT.text["USER_NEWSLETTER_"+o+"_SUCCESS"]);break;case"user":DOT.methods.user.toggleMessage("success",DOT.text["USER_NEWSLETTER_"+o+"_SUCCESS"]);break;default:DOT.methods.panel.set("user-newsletter-"+t+"-success")}s.attr("href","javascript:DOT.methods.index.newsletter('"+("unsubscribe"===t?"subscribe":"unsubscribe")+"')"),s.html(DOT.text["unsubscribe"===t?"USER_NEWSLETTER_SUBSCRIBE":"USER_NEWSLETTER_UNSUBSCRIBE"])}).fail(function(){})},this.scroll=function(t){var s=e("body"),a=e(document);switch(t=void 0===t?"enable":t){case"disable":DOT.methods.index.scrollPos=0!==a.scrollTop()?a.scrollTop():DOT.methods.index.scrollPos,s.addClass("no-scroll");break;case"enable":default:s.removeClass("no-scroll"),0!==DOT.methods.index.scrollPos&&(a.scrollTop(DOT.methods.index.scrollPos),DOT.methods.index.scrollPos=0)}},this.__construct()};DOT.methods.nav=new function(){"use strict";var e=jQuery.noConflict();return this.__construct=function(){var t=e(document);t.ready(function(){DOT.methods.nav.init()})},this.init=function(){DOT.methods.nav.selected()},this.close=function(t){var s=e("#"+t+" .nav-tree-item");s.each(function(){var t=e(" > .nav-tree-list",this),s=e(this);s.hasClass("open")?t.stop(!0,!1).slideToggle("fast",function(){s.removeClass("open"),t.removeAttr("style")}):null})},this.open=function(t){var s=e("#"+t+" .nav-tree-item");s.each(function(){var t=e(" > .nav-tree-list",this),s=e(this);s.hasClass("open")?null:t.stop(!0,!1).slideToggle("fast",function(){s.addClass("open"),t.removeAttr("style")})})},this.selected=function(t){var s,n=void 0===t?e(".nav-tree-link.selected"):void 0;return void 0!==t&&t.hasClass("nav-tree")?!1:void(void 0!==n?n.each(function(){var t=e(this);DOT.methods.nav.selected(t.parent())}):(s=t.attr("id"),void 0!==s&&t.hasClass("nav-tree-item")&&!t.hasClass("open")?DOT.methods.nav.set(s):null,DOT.methods.nav.selected(t.parent())))},this.set=function(e,t){switch(t){case"close":DOT.methods.nav.close(e);break;case"open":DOT.methods.nav.open(e);break;default:DOT.methods.nav.toggle(e)}},this.toggle=function(t){var s=e("#"+t+" > .nav-tree-list"),n=e("#"+t);s.stop(!0,!1).slideToggle("fast",function(){n.hasClass("open")?n.removeClass("open"):n.addClass("open"),s.removeAttr("style")})},this.__construct()};DOT.methods.panels=new function(){"use strict";var s=jQuery.noConflict();return this.__construct=function(){},this.buttons=function(e,t){var i,n,o=s("#panels-buttons .toggleable"),l=s("#panels-button-go-top"),a=s("#panels-buttons");if("show"===e?a.addClass("visible"):a.removeClass("visible"),o.removeClass("visible"),l.removeClass("visible"),"show"===e)for(t=void 0===t?[]:t,t="string"==typeof t?t.split(" "):t,n=0;n0?e.addClass("visible"):e.removeClass("visible")})},this.set=function(s,t){void 0===s?DOT.methods.panels.hide():DOT.methods.panel.show(s,t)},this.show=function(t,e){var o=s("#panel-"+t+" .panel"),n=s("#panel-"+t);DOT.methods.panels.hide(),!(e=void 0!==e&&e)&&DOT.methods.index.scroll("disable"),DOT.methods.panels.buttons("show",n.data("buttons")),n.addClass("visible").scrollTop(0),DOT.methods.panel.events(t),o.stop(!0,!0).fadeIn(300,function(){o.removeAttr("style").addClass("visible")})},this.__construct()};DOT.methods.shop=new function(){"use strict";var t=jQuery.noConflict();return this.__construct=function(){},this.filters=function(){var e=t("#filters"),s=t("#filters-mobile .hide"),o=t("#filters-mobile .show");s.hasClass("hidden")?(o.addClass("hidden"),s.removeClass("hidden"),e.addClass("visible")):(o.removeClass("hidden"),s.addClass("hidden"),e.removeClass("visible"))},this.search=function(){var e=t("#search-form"),s=t("#search-products-link"),o=t("#search-products"),n=s.val(),a=DOT.prototypes.permalink(o.val());e.attr("action",n+a)},this.__construct()};DOT.methods.user_login=new function(){"use strict";var t=jQuery.noConflict();return this.__construct=function(){var o,n=t(document);n.ready(function(){o=DOT.prototypes.$_GET("user_action"),"login"===o?DOT.methods.panel.set("user-login"):null})},this.submit=function(){var o,n=t("#user-login-email"),e=t("#user-login-password"),s={};return DOT.methods.panel.set("user-login-active"),s[DOT.ajax["var"]]=DOT.ajax.keys.user_login,s.email=n.val(),s.password=e.val(),t.post(DOT.ajax.url,s,function(n){n=t.trim(n),"success"===n?setTimeout(function(){o=DOT.prototypes.$_GET("login_redirect"),o!==!1?DOT.prototypes.link(o):window.location.reload()},300):DOT.methods.panel.set("user-login-"+n)}).fail(function(){}),!1},this.__construct()};DOT.methods.user_password=new function(){"use strict";var e=jQuery.noConflict();return this.__construct=function(){var s,t=e(document);t.ready(function(){s=DOT.prototypes.$_GET("user_action"),"change"===s?DOT.methods.panel.set("user-change"):null})},this.change=function(){var s=e("#user-change-password"),t=e("#user-change-password-retype"),r=s.val(),a=t.val(),n={};return""===r||r!==a?(DOT.methods.panel.set("user-change-error-10001"),!1):(DOT.methods.panel.set("user-change-active"),n[DOT.ajax["var"]]=DOT.ajax.keys.user_change,n.email=DOT.prototypes.$_GET("user_email"),n.password=r,n.reset_key=DOT.prototypes.$_GET("reset_key"),e.post(DOT.ajax.url,n,function(s){s=e.trim(s),"success"===s?DOT.methods.panel.set("user-change-success"):DOT.methods.panel.set("user-change-"+s)}).fail(function(){}),!1)},this.reset=function(){var s=e("#user-reset-email"),t={};return DOT.methods.panel.set("user-reset-active"),t[DOT.ajax["var"]]=DOT.ajax.keys.user_reset,t.email=s.val(),e.post(DOT.ajax.url,t,function(t){t=e.trim(t),"success"===t?(s.val(""),DOT.methods.panel.set("user-reset-success")):DOT.methods.panel.set("user-reset-"+t)}).fail(function(){}),!1},this.__construct()};DOT.methods.user_register=new function(){"use strict";var e=jQuery.noConflict();return this.__construct=function(){},this.conversions=function(){"beta"!==DOT.status&&(gtag("event","New",{event_category:"User"}),gtag("event","conversion",{send_to:"AW-780006781/ApBGCOzrlI0BEP3q9_MC"}),gtag("event","purchase",{transaction_id:"new_"+DOT.prototypes.random(64),value:1,currency:"USD",tax:0,shipping:0,items:[{id:"0.11",name:"New account",list_position:1,quantity:1,price:"1"}]}))},this.submit=function(){var s=e("#user-register-email"),t=s.val(),o=DOT.prototypes.checked("user-register-newsletter"),n={};return DOT.prototypes.email(t)?(DOT.methods.panel.set("user-register-active"),n[DOT.ajax.var]=DOT.ajax.keys.user_register,n.email=t,n.newsletter=o,e.post(DOT.ajax.url,n,function(t){t=e.trim(t),"success"===t?(s.val(""),DOT.methods.panel.set("user-register-success"),DOT.methods.user_register.conversions()):DOT.methods.panel.set("user-register-"+t)}).fail(function(){}),!1):(DOT.methods.panel.set("user-register-error-10002"),!1)},this.__construct()};