/*! ResponsiveSlides.js v1.54
* http://responsiveslides.com
* http://viljamis.com
*
* Copyright (c) 2011-2012 @viljamis
* Available under the MIT license
*/
(function($,window,i){$.fn.responsiveSlides=function(options){var settings=$.extend({"auto":!0,"speed":500,"timeout":4000,"pager":!1,"nav":!1,"random":!1,"pause":!1,"pauseControls":!0,"touch":!0,"touchThreshold":100,"prevText":"Previous","nextText":"Next","maxwidth":"","navContainer":"","manualControls":"","namespace":"rslides","before":$.noop,"after":$.noop},options);return this.each(function(){i++;var $this=$(this),vendor,selectTab,startCycle,restartCycle,rotate,$tabs,index=0,$slide=$this.children(),length=$slide.size(),fadeTime=parseFloat(settings.speed),waitTime=parseFloat(settings.timeout),maxw=parseFloat(settings.maxwidth),namespace=settings.namespace,namespaceIdx=namespace+i,navClass=namespace+"_nav "+namespaceIdx+"_nav",activeClass=namespace+"_here",visibleClass=namespaceIdx+"_on",slideClassPrefix=namespaceIdx+"_s",$pager=$("
"),visible={"float":"left","position":"relative","opacity":1,"zIndex":2},hidden={"float":"none","position":"absolute","opacity":0,"zIndex":1},supportsTransitions=(function(){var docBody=document.body||document.documentElement;var styles=docBody.style;var prop="transition";if(typeof styles[prop]==="string"){return!0}
vendor=["Moz","Webkit","Khtml","O","ms"];prop=prop.charAt(0).toUpperCase()+prop.substr(1);var i;for(i=0;i1){if(waitTime"+""+n+""+""});$pager.append(tabMarkup);if(options.navContainer){$(settings.navContainer).append($pager)}else{$this.after($pager)}}
if(settings.manualControls){$pager=$(settings.manualControls);$pager.addClass(namespace+"_tabs "+namespaceIdx+"_tabs")}
if(settings.pager||settings.manualControls){$pager.find('li').each(function(i){$(this).addClass(slideClassPrefix+(i+1))})}
if(settings.pager||settings.manualControls){$tabs=$pager.find('a');selectTab=function(idx){$tabs.closest("li").removeClass(activeClass).eq(idx).addClass(activeClass)}}
if(settings.auto){startCycle=function(){rotate=setInterval(function(){$slide.stop(!0,!0);var idx=index+1"+settings.prevText+""+""+settings.nextText+"";if(options.navContainer){$(settings.navContainer).append(navMarkup)}else{$this.after(navMarkup)}
var $trigger=$("."+namespaceIdx+"_nav"),$prev=$trigger.filter(".prev");$trigger.bind("click",function(e){e.preventDefault();var $visibleClass=$("."+visibleClass);if($visibleClass.queue('fx').length){return}
var idx=$slide.index($visibleClass),prevIdx=idx-1,nextIdx=idx+1-1&&rsTouch.touches.touchmove.x>-1&&(Math.abs(rsTouch.touches.touchstart.y-rsTouch.touches.touchmove.y)<20)){rsTouch.touches.direction=rsTouch.touches.touchstart.xsettings.touchThreshold){if(rsTouch.touches.direction==="left"){slideTo(nextIdx)}else{slideTo(prevIdx)}
e.preventDefault();rsTouch.touches.touchstart={"x":-1,"y":-1};rsTouch.touches.touchmove={"x":-1,"y":-1};rsTouch.touches.direction="undetermined";restartCycle()}}
break;default:break}}}},init:function(){$slide.bind('touchstart',rsTouch.touchHandler);$slide.bind('touchmove',rsTouch.touchHandler);$slide.bind('touchend',rsTouch.touchHandler)}};rsTouch.init()}
if(typeof document.body.style.maxWidth==="undefined"&&options.maxwidth){var widthSupport=function(){$this.css("width","100%");if($this.width()>maxw){$this.css("width",maxw)}};widthSupport();$(window).bind("resize",function(){widthSupport()})}})}})(jQuery,this,0);Shopcada.functions.initMessageBar=function(){$(".messagebar.autorotate #messagebar-inner").responsiveSlides({timeout:Shopcada.settings.MessageBar.Timeout,pager:!1,nav:!1,speed:Shopcada.settings.MessageBar.Speed})}
$(document).ready(function(){Shopcada.functions.initMessageBar()});Shopcada.tasks.FAPI_OnOff=function(){$("input.onff-enabled").not(".onoff-processed").each(function(){var _this=$(this);var _parent=_this.parent();_this.addClass("onoff-processed");className="toggle-enable";if(_this.prop("disabled")==="disabled"){className+=" disabled"}else{if(_this.prop("checked")===!0){className+=" enabled"}else{className+=" off"}}
_parent.append("");_this.change(function(){_widget=_parent.find(".toggle-enable");_widget.toggleClass("off");_widget.toggleClass("enabled")});_this.hide()})};/*!
* Bootstrap v3.3.6 (http://getbootstrap.com)
* Copyright 2011-2015 Twitter, Inc.
* Licensed under the MIT license
*/
if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1||b[0]>2)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3")}(jQuery),+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one("bsTransitionEnd",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){return a(b.target).is(this)?b.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var c=a(this),e=c.data("bs.alert");e||c.data("bs.alert",e=new d(this)),"string"==typeof b&&e[b].call(c)})}var c='[data-dismiss="alert"]',d=function(b){a(b).on("click",c,this.close)};d.VERSION="3.3.6",d.TRANSITION_DURATION=150,d.prototype.close=function(b){function c(){g.detach().trigger("closed.bs.alert").remove()}var e=a(this),f=e.attr("data-target");f||(f=e.attr("href"),f=f&&f.replace(/.*(?=#[^\s]*$)/,""));var g=a(f);b&&b.preventDefault(),g.length||(g=e.closest(".alert")),g.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(g.removeClass("in"),a.support.transition&&g.hasClass("fade")?g.one("bsTransitionEnd",c).emulateTransitionEnd(d.TRANSITION_DURATION):c())};var e=a.fn.alert;a.fn.alert=b,a.fn.alert.Constructor=d,a.fn.alert.noConflict=function(){return a.fn.alert=e,this},a(document).on("click.bs.alert.data-api",c,d.prototype.close)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof b&&b;e||d.data("bs.button",e=new c(this,f)),"toggle"==b?e.toggle():b&&e.setState(b)})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.DEFAULTS,d),this.isLoading=!1};c.VERSION="3.3.6",c.DEFAULTS={loadingText:"loading..."},c.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",null==f.resetText&&d.data("resetText",d[e]()),setTimeout(a.proxy(function(){d[e](null==f[b]?this.options[b]:f[b]),"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c))},this),0)},c.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")?(c.prop("checked")&&(a=!1),b.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==c.prop("type")&&(c.prop("checked")!==this.$element.hasClass("active")&&(a=!1),this.$element.toggleClass("active")),c.prop("checked",this.$element.hasClass("active")),a&&c.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var d=a.fn.button;a.fn.button=b,a.fn.button.Constructor=c,a.fn.button.noConflict=function(){return a.fn.button=d,this},a(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(c){var d=a(c.target);d.hasClass("btn")||(d=d.closest(".btn")),b.call(d,"toggle"),a(c.target).is('input[type="radio"]')||a(c.target).is('input[type="checkbox"]')||c.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(b){a(b.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(b.type))})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b),g="string"==typeof b?b:f.slide;e||d.data("bs.carousel",e=new c(this,f)),"number"==typeof b?e.to(b):g?e[g]():f.interval&&e.pause().cycle()})}var c=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",a.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this))};c.VERSION="3.3.6",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(a){if(!/input|textarea/i.test(a.target.tagName)){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventDefault()}},c.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(a){return this.$items=a.parent().children(".item"),this.$items.index(a||this.$active)},c.prototype.getItemForDirection=function(a,b){var c=this.getItemIndex(b),d="prev"==a&&0===c||"next"==a&&c==this.$items.length-1;if(d&&!this.options.wrap)return b;var e="prev"==a?-1:1,f=(c+e)%this.$items.length;return this.$items.eq(f)},c.prototype.to=function(a){var b=this,c=this.getItemIndex(this.$active=this.$element.find(".item.active"));return a>this.$items.length-1||0>a?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){b.to(a)}):c==a?this.pause().cycle():this.slide(a>c?"next":"prev",this.$items.eq(a))},c.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){return this.sliding?void 0:this.slide("next")},c.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},c.prototype.slide=function(b,d){var e=this.$element.find(".item.active"),f=d||this.getItemForDirection(b,e),g=this.interval,h="next"==b?"left":"right",i=this;if(f.hasClass("active"))return this.sliding=!1;var j=f[0],k=a.Event("slide.bs.carousel",{relatedTarget:j,direction:h});if(this.$element.trigger(k),!k.isDefaultPrevented()){if(this.sliding=!0,g&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=a(this.$indicators.children()[this.getItemIndex(f)]);l&&l.addClass("active")}var m=a.Event("slid.bs.carousel",{relatedTarget:j,direction:h});return a.support.transition&&this.$element.hasClass("slide")?(f.addClass(b),f[0].offsetWidth,e.addClass(h),f.addClass(h),e.one("bsTransitionEnd",function(){f.removeClass([b,h].join(" ")).addClass("active"),e.removeClass(["active",h].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger(m)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(e.removeClass("active"),f.addClass("active"),this.sliding=!1,this.$element.trigger(m)),g&&this.cycle(),this}};var d=a.fn.carousel;a.fn.carousel=b,a.fn.carousel.Constructor=c,a.fn.carousel.noConflict=function(){return a.fn.carousel=d,this};var e=function(c){var d,e=a(this),f=a(e.attr("data-target")||(d=e.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""));if(f.hasClass("carousel")){var g=a.extend({},f.data(),e.data()),h=e.attr("data-slide-to");h&&(g.interval=!1),b.call(f,g),h&&f.data("bs.carousel").to(h),c.preventDefault()}};a(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var c=a(this);b.call(c,c.data())})})}(jQuery),+function(a){"use strict";function b(b){var c,d=b.attr("data-target")||(c=b.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"");return a(d)}function c(b){return this.each(function(){var c=a(this),e=c.data("bs.collapse"),f=a.extend({},d.DEFAULTS,c.data(),"object"==typeof b&&b);!e&&f.toggle&&/show|hide/.test(b)&&(f.toggle=!1),e||c.data("bs.collapse",e=new d(this,f)),"string"==typeof b&&e[b]()})}var d=function(b,c){this.$element=a(b),this.options=a.extend({},d.DEFAULTS,c),this.$trigger=a('[data-toggle="collapse"][href="#'+b.id+'"],[data-toggle="collapse"][data-target="#'+b.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};d.VERSION="3.3.6",d.TRANSITION_DURATION=350,d.DEFAULTS={toggle:!0},d.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},d.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(b=e.data("bs.collapse"),b&&b.transitioning))){var f=a.Event("show.bs.collapse");if(this.$element.trigger(f),!f.isDefaultPrevented()){e&&e.length&&(c.call(e,"hide"),b||e.data("bs.collapse",null));var g=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[g](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var h=function(){this.$element.removeClass("collapsing").addClass("collapse in")[g](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return h.call(this);var i=a.camelCase(["scroll",g].join("-"));this.$element.one("bsTransitionEnd",a.proxy(h,this)).emulateTransitionEnd(d.TRANSITION_DURATION)[g](this.$element[0][i])}}}},d.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var e=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return a.support.transition?void this.$element[c](0).one("bsTransitionEnd",a.proxy(e,this)).emulateTransitionEnd(d.TRANSITION_DURATION):e.call(this)}}},d.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},d.prototype.getParent=function(){return a(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(c,d){var e=a(d);this.addAriaAndCollapsedClass(b(e),e)},this)).end()},d.prototype.addAriaAndCollapsedClass=function(a,b){var c=a.hasClass("in");a.attr("aria-expanded",c),b.toggleClass("collapsed",!c).attr("aria-expanded",c)};var e=a.fn.collapse;a.fn.collapse=c,a.fn.collapse.Constructor=d,a.fn.collapse.noConflict=function(){return a.fn.collapse=e,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(d){var e=a(this);e.attr("data-target")||d.preventDefault();var f=b(e),g=f.data("bs.collapse"),h=g?"toggle":e.data();c.call(f,h)})}(jQuery),+function(a){"use strict";function b(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}function c(c){c&&3===c.which||(a(e).remove(),a(f).each(function(){var d=a(this),e=b(d),f={relatedTarget:this};e.hasClass("open")&&(c&&"click"==c.type&&/input|textarea/i.test(c.target.tagName)&&a.contains(e[0],c.target)||(e.trigger(c=a.Event("hide.bs.dropdown",f)),c.isDefaultPrevented()||(d.attr("aria-expanded","false"),e.removeClass("open").trigger(a.Event("hidden.bs.dropdown",f)))))}))}function d(b){return this.each(function(){var c=a(this),d=c.data("bs.dropdown");d||c.data("bs.dropdown",d=new g(this)),"string"==typeof b&&d[b].call(c)})}var e=".dropdown-backdrop",f='[data-toggle="dropdown"]',g=function(b){a(b).on("click.bs.dropdown",this.toggle)};g.VERSION="3.3.6",g.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=b(e),g=f.hasClass("open");if(c(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(a(this)).on("click",c);var h={relatedTarget:this};if(f.trigger(d=a.Event("show.bs.dropdown",h)),d.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),f.toggleClass("open").trigger(a.Event("shown.bs.dropdown",h))}return!1}},g.prototype.keydown=function(c){if(/(38|40|27|32)/.test(c.which)&&!/input|textarea/i.test(c.target.tagName)){var d=a(this);if(c.preventDefault(),c.stopPropagation(),!d.is(".disabled, :disabled")){var e=b(d),g=e.hasClass("open");if(!g&&27!=c.which||g&&27==c.which)return 27==c.which&&e.find(f).trigger("focus"),d.trigger("click");var h=" li:not(.disabled):visible a",i=e.find(".dropdown-menu"+h);if(i.length){var j=i.index(c.target);38==c.which&&j>0&&j--,40==c.which&&jdocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&a?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!a?this.scrollbarWidth:""})},c.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},c.prototype.checkScrollbar=function(){var a=window.innerWidth;if(!a){var b=document.documentElement.getBoundingClientRect();a=b.right-Math.abs(b.left)}this.bodyIsOverflowing=document.body.clientWidth',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},c.prototype.init=function(b,c,d){if(this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.$viewport=this.options.viewport&&a(a.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var e=this.options.trigger.split(" "),f=e.length;f--;){var g=e[f];if("click"==g)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=g){var h="hover"==g?"mouseenter":"focusin",i="hover"==g?"mouseleave":"focusout";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},c.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},c.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusin"==b.type?"focus":"hover"]=!0),c.tip().hasClass("in")||"in"==c.hoverState?void(c.hoverState="in"):(clearTimeout(c.timeout),c.hoverState="in",c.options.delay&&c.options.delay.show?void(c.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show)):c.show())},c.prototype.isInStateTrue=function(){for(var a in this.inState)if(this.inState[a])return!0;return!1},c.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusout"==b.type?"focus":"hover"]=!1),c.isInStateTrue()?void 0:(clearTimeout(c.timeout),c.hoverState="out",c.options.delay&&c.options.delay.hide?void(c.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide)):c.hide())},c.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(b);var d=a.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(b.isDefaultPrevented()||!d)return;var e=this,f=this.tip(),g=this.getUID(this.type);this.setContent(),f.attr("id",g),this.$element.attr("aria-describedby",g),this.options.animation&&f.addClass("fade");var h="function"==typeof this.options.placement?this.options.placement.call(this,f[0],this.$element[0]):this.options.placement,i=/\s?auto?\s?/i,j=i.test(h);j&&(h=h.replace(i,"")||"top"),f.detach().css({top:0,left:0,display:"block"}).addClass(h).data("bs."+this.type,this),this.options.container?f.appendTo(this.options.container):f.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var k=this.getPosition(),l=f[0].offsetWidth,m=f[0].offsetHeight;if(j){var n=h,o=this.getPosition(this.$viewport);h="bottom"==h&&k.bottom+m>o.bottom?"top":"top"==h&&k.top-mo.width?"left":"left"==h&&k.left-lg.top+g.height&&(e.top=g.top+g.height-i)}else{var j=b.left-f,k=b.left+f+c;jg.right&&(e.left=g.left+g.width-k)}return e},c.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||("function"==typeof c.title?c.title.call(b[0]):c.title)},c.prototype.getUID=function(a){do a+=~~(1e6*Math.random());while(document.getElementById(a));return a},c.prototype.tip=function(){if(!this.$tip&&(this.$tip=a(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},c.prototype.enable=function(){this.enabled=!0},c.prototype.disable=function(){this.enabled=!1},c.prototype.toggleEnabled=function(){this.enabled=!this.enabled},c.prototype.toggle=function(b){var c=this;b&&(c=a(b.currentTarget).data("bs."+this.type),c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c))),b?(c.inState.click=!c.inState.click,c.isInStateTrue()?c.enter(c):c.leave(c)):c.tip().hasClass("in")?c.leave(c):c.enter(c)},c.prototype.destroy=function(){var a=this;clearTimeout(this.timeout),this.hide(function(){a.$element.off("."+a.type).removeData("bs."+a.type),a.$tip&&a.$tip.detach(),a.$tip=null,a.$arrow=null,a.$viewport=null})};var d=a.fn.tooltip;a.fn.tooltip=b,a.fn.tooltip.Constructor=c,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=d,this}}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof b&&b;(e||!/destroy|hide/.test(b))&&(e||d.data("bs.popover",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.init("popover",a,b)};if(!a.fn.tooltip)throw new Error("Popover requires tooltip.js");c.VERSION="3.3.6",c.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),c.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),c.prototype.constructor=c,c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof c?"html":"append":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},c.prototype.hasContent=function(){return this.getTitle()||this.getContent()},c.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var d=a.fn.popover;a.fn.popover=b,a.fn.popover.Constructor=c,a.fn.popover.noConflict=function(){return a.fn.popover=d,this}}(jQuery),+function(a){"use strict";function b(c,d){this.$body=a(document.body),this.$scrollElement=a(a(c).is(document.body)?window:c),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",a.proxy(this.process,this)),this.refresh(),this.process()}function c(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})}b.VERSION="3.3.6",b.DEFAULTS={offset:10},b.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},b.prototype.refresh=function(){var b=this,c="offset",d=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),a.isWindow(this.$scrollElement[0])||(c="position",d=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var b=a(this),e=b.data("target")||b.attr("href"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(":visible")&&[[f[c]().top+d,e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){b.offsets.push(this[0]),b.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.getScrollHeight(),d=this.options.offset+c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(this.scrollHeight!=c&&this.refresh(),b>=d)return g!=(a=f[f.length-1])&&this.activate(a);if(g&&b=e[a]&&(void 0===e[a+1]||b .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),b.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),h?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu").length&&b.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),e&&e()}var g=d.find("> .active"),h=e&&a.support.transition&&(g.length&&g.hasClass("fade")||!!d.find("> .fade").length);g.length&&h?g.one("bsTransitionEnd",f).emulateTransitionEnd(c.TRANSITION_DURATION):f(),g.removeClass("in")};var d=a.fn.tab;a.fn.tab=b,a.fn.tab.Constructor=c,a.fn.tab.noConflict=function(){return a.fn.tab=d,this};var e=function(c){c.preventDefault(),b.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',e).on("click.bs.tab.data-api",'[data-toggle="pill"]',e)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof b&&b;e||d.data("bs.affix",e=new c(this,f)),"string"==typeof b&&e[b]()})}var c=function(b,d){this.options=a.extend({},c.DEFAULTS,d),this.$target=a(this.options.target).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(b),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};c.VERSION="3.3.6",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(a,b,c,d){var e=this.$target.scrollTop(),f=this.$element.offset(),g=this.$target.height();if(null!=c&&"top"==this.affixed)return c>e?"top":!1;if("bottom"==this.affixed)return null!=c?e+this.unpin<=f.top?!1:"bottom":a-d>=e+g?!1:"bottom";var h=null==this.affixed,i=h?e:f.top,j=h?g:b;return null!=c&&c>=e?"top":null!=d&&i+j>=a-d?"bottom":!1},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass("affix");var a=this.$target.scrollTop(),b=this.$element.offset();return this.pinnedOffset=b.top-a},c.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},c.prototype.checkPosition=function(){if(this.$element.is(":visible")){var b=this.$element.height(),d=this.options.offset,e=d.top,f=d.bottom,g=Math.max(a(document).height(),a(document.body).height());"object"!=typeof d&&(f=e=d),"function"==typeof e&&(e=d.top(this.$element)),"function"==typeof f&&(f=d.bottom(this.$element));var h=this.getState(g,b,e,f);if(this.affixed!=h){null!=this.unpin&&this.$element.css("top","");var i="affix"+(h?"-"+h:""),j=a.Event(i+".bs.affix");if(this.$element.trigger(j),j.isDefaultPrevented())return;this.affixed=h,this.unpin="bottom"==h?this.getPinnedOffset():null,this.$element.removeClass(c.RESET).addClass(i).trigger(i.replace("affix","affixed")+".bs.affix")}"bottom"==h&&this.$element.offset({top:g-b-f})}};var d=a.fn.affix;a.fn.affix=b,a.fn.affix.Constructor=c,a.fn.affix.noConflict=function(){return a.fn.affix=d,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var c=a(this),d=c.data();d.offset=d.offset||{},null!=d.offsetBottom&&(d.offset.bottom=d.offsetBottom),null!=d.offsetTop&&(d.offset.top=d.offsetTop),b.call(c,d)})})}(jQuery);(function($){$.fn.bootstrapNumber=function(options){var settings=$.extend({upClass:'default',downClass:'default',center:!0},options);return this.each(function(e){var self=$(this);var clone=self.clone();var min=self.attr('min');var max=self.attr('max');function setText(n){if((min&&nmax)){return!1}
clone.focus().val(n);return!0}
var group=$("");var down=$("").attr('class','btn btn-'+settings.downClass).click(function(){setText(parseInt(clone.val())-1)});var up=$("").attr('class','btn btn-'+settings.upClass).click(function(){setText(parseInt(clone.val())+1)});if(self.attr('disabled')){up.attr("disabled","disabled");down.attr("disabled","disabled")}
$("").append(down).appendTo(group);clone.appendTo(group);if(clone){clone.css('text-align','center')}
$("").append(up).appendTo(group);clone.prop('type','text').keydown(function(e){if($.inArray(e.keyCode,[46,8,9,27,13,110,190])!==-1||(e.keyCode==65&&e.ctrlKey===!0)||(e.keyCode>=35&&e.keyCode<=39)){return}
if((e.shiftKey||(e.keyCode<48||e.keyCode>57))&&(e.keyCode<96||e.keyCode>105)){e.preventDefault()}
var c=String.fromCharCode(e.which);var n=parseInt(clone.val()+c)});clone.prop('type','text').blur(function(e){var c=String.fromCharCode(e.which);var n=parseInt(clone.val()+c);if((min&&nmax){setText(max)}});self.replaceWith(group)})}}(jQuery));Shopcada.functions.RotatingMessageBar=function(){if(Shopcada.jQuery.window.width()<768){$("#messagebar.messagebar3col #messagebar-inner").responsiveSlides({timeout:Shopcada.settings.MessageBar.Timeout,pager:!1,nav:!1,speed:Shopcada.settings.MessageBar.Speed});$("#messagebar.messagebar2col #messagebar-inner").responsiveSlides({timeout:Shopcada.settings.MessageBar.Timeout,pager:!1,nav:!1,speed:Shopcada.settings.MessageBar.Speed})}}
Shopcada.tasks.BootStrapSpinner=function(){$("input.bootstrap-spinner").not('.processed').addClass('processed').bootstrapNumber()}
Shopcada.tasks.BlockUpdateTitle=function(){$("h2.block-editable").not('.update-processed').addClass('update-processed').dblclick(function(){if($(this).attr("contenteditable")!="true"){$(this).data("original",$(this).text()).attr("contenteditable","true").addClass('is-editng')}}).on('blur',function(){var _this=$(this);_this.attr("contenteditable","false");var url='/admin/json/block/update_title/'+_this.data('module')+'/'+_this.data('delta');texttotpost=_this.text();if(texttotpost==""){texttotpost=""}
var postdata={title:texttotpost}
$.ajax({url:url,type:'POST',dataType:'json',contentType:"application/json; charset=utf-8",data:JSON.stringify(postdata),success:function(){_this.removeClass('is-editng')}})}).keydown(function(e){if(e.keyCode==13){$(this).blur();return!1}})}
Shopcada.functions.AdjustNavSlideInHeight=function(){}
function toggleChevron(e){$(e.target).prev('.panel-heading').find('i.indicator').toggleClass('glyphicon-minus glyphicon-plus');$('#accordion .panel-heading').removeClass('highlight');$(e.target).prev('.panel-heading').addClass('highlight')}
$(document).ready(function(){$('.bsaccordion').on('hidden.bs.collapse',toggleChevron);$('.bsaccordion').on('shown.bs.collapse',toggleChevron);Shopcada.functions.AdjustNavSlideInHeight();$('.nav-slidein-expander').on('click',function(e){e.preventDefault();if($(this).data("direction")=='right'){$('body').addClass('right')}
$('body').toggleClass('nav-expanded')});$('#nav-close').on('click',function(e){e.preventDefault();$('body').removeClass('nav-expanded')});Shopcada.functions.RotatingMessageBar()});Shopcada.tasks.CreateTableResponsive=function(){$('.product-info table').not('.processed').each(function(i,obj){$(this).addClass('processed')
if(!$(this).parent().hasClass('table-responsive')){$(this).wrap('')}})};(function($){"use strict";var toggle='[data-toggle="dropdown"]',disabled='.disabled, :disabled',backdrop='.dropdown-backdrop',menuClass='dropdown-menu',subMenuClass='dropdown-submenu',namespace='.bs.dropdown.data-api',eventNamespace='.bs.dropdown',openClass='open',touchSupport='ontouchstart' in document.documentElement,opened;function Dropdown(element){$(element).on('click'+eventNamespace,this.toggle)}
var proto=Dropdown.prototype;proto.toggle=function(event){var $element=$(this);if($element.is(disabled))return;var $parent=getParent($element);var isActive=$parent.hasClass(openClass);var isSubMenu=$parent.hasClass(subMenuClass);var menuTree=isSubMenu?getSubMenuParents($parent):null;closeOpened(event,menuTree);if(!isActive){if(!menuTree)
menuTree=[$parent];if(touchSupport&&!$parent.closest('.navbar-nav').length&&!menuTree[0].find(backdrop).length){$('').appendTo(menuTree[0]).on('click',closeOpened)}
for(var i=0,s=menuTree.length;i0)index--;if(e.keyCode==40&&index<$items.length-1)index++;if(!~index)index=0;$items.eq(index).trigger('focus')};proto.change=function(e){var
$parent,$menu,$toggle,selector,text='',$items;$menu=$(this).closest('.'+menuClass);$toggle=$menu.parent().find('[data-label-placement]');if(!$toggle||!$toggle.length){$toggle=$menu.parent().find(toggle)}
if(!$toggle||!$toggle.length||$toggle.data('placeholder')===!1)
return;($toggle.data('placeholder')==undefined&&$toggle.data('placeholder',$.trim($toggle.text())));text=$.data($toggle[0],'placeholder');$items=$menu.find('li > input:checked');if($items.length){text=[];$items.each(function(){var str=$(this).parent().find('label').eq(0),label=str.find('.data-label');if(label.length){var p=$('');p.append(label.clone());str=p.html()}else{str=str.html()}
str&&text.push($.trim(str))});text=text.length<4?text.join(', '):text.length+' selected'}
var caret=$toggle.find('.caret');$toggle.html(text||' ');if(caret.length)
$toggle.append(' ')&&caret.appendTo($toggle);};function positioning($menu,$control){if($menu.hasClass('pull-center')){$menu.css('margin-right',$menu.outerWidth()/-2)}
if($menu.hasClass('pull-middle')){$menu.css('margin-top',($menu.outerHeight()/-2)-($control.outerHeight()/2))}}
function closeOpened(event,menuTree){if(opened){if(!menuTree){menuTree=[opened]}
var parent;if(opened[0]!==menuTree[0][0]){parent=opened}else{parent=menuTree[menuTree.length-1];if(parent.parent().hasClass(menuClass)){parent=parent.parent()}}
parent.find('.'+openClass).removeClass(openClass);if(parent.hasClass(openClass)){parent.removeClass(openClass)}
parent.trigger('hidden'+eventNamespace);if(parent===opened){opened=null;$(backdrop).remove()}}}
function getSubMenuParents($submenu){var result=[$submenu];var $parent;while(!$parent||$parent.hasClass(subMenuClass)){$parent=($parent||$submenu).parent();if($parent.hasClass(menuClass)){$parent=$parent.parent()}
if($parent.children(toggle)){result.unshift($parent)}}
return result}
function getParent($this){var selector=$this.attr('data-target');if(!selector){selector=$this.attr('href');selector=selector&&/#[A-Za-z]/.test(selector)&&selector.replace(/.*(?=#[^\s]*$)/,'')}
var $parent=selector&&$(selector);return $parent&&$parent.length?$parent:$this.parent()}
var old=$.fn.dropdown;$.fn.dropdown=function(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.dropdown');if(!data)$this.data('bs.dropdown',(data=new Dropdown(this)));if(typeof option=='string')data[option].call($this);})};$.fn.dropdown.Constructor=Dropdown;$.fn.dropdown.clearMenus=function(e){$(backdrop).remove();$('.'+openClass+' '+toggle).each(function(){var $parent=getParent($(this));var relatedTarget={relatedTarget:this};if(!$parent.hasClass('open'))return;$parent.trigger(e=$.Event('hide'+eventNamespace,relatedTarget));if(e.isDefaultPrevented())return;$parent.removeClass('open').trigger('hidden'+eventNamespace,relatedTarget)});return this};$.fn.dropdown.noConflict=function(){$.fn.dropdown=old;return this};$(document).off(namespace).on('click'+namespace,closeOpened).on('click'+namespace,toggle,proto.toggle).on('click'+namespace,'.dropdown-menu > li > input[type="checkbox"] ~ label, .dropdown-menu > li > input[type="checkbox"], .dropdown-menu.noclose > li',function(e){e.stopPropagation()}).on('change'+namespace,'.dropdown-menu > li > input[type="checkbox"], .dropdown-menu > li > input[type="radio"]',proto.change).on('keydown'+namespace,toggle+', [role="menu"], [role="listbox"]',proto.keydown)}(jQuery));var slideInWindow={is_init:!1,init:function(obj=''){if(!this.is_init){Shopcada.jQuery.body.append("");this.escKeyBind();this.closeOnClick();if(obj.animate==!0){$('.sidewindowwrapper .sidewindow').addClass('animated')}
this.is_init=!0}},open:function(obj=''){this.init(obj);if(!Shopcada.jQuery.body.hasClass('showside')){Shopcada.jQuery.body.addClass('showside')}},close:function(){Shopcada.jQuery.body.removeClass('showside')},showContent:function(content){this.open();$("#sidewindow-content").html(content)},showLoading:function(contentObj){this.open();var loadingObj;if(!contentObj){loadingObj=""}else{loadingObj=contentObj}
$("#sidewindow-content").html(""+loadingObj+"
")},setPosition:function(position){this.init();$('.sidewindow').removeClass('sidewindow-right sidewindow-left');if(position=='left'){$('.sidewindow').addClass('sidewindow-left')}else{$('.sidewindow').addClass('sidewindow-right')}},getUrl:function(contentUrl){this.showLoading();$.ajax({url:contentUrl,data:'',success:function(data){slideInWindow.showContent(data)},dataType:'html'});return!1},escKeyBind:function(){document.onkeydown=function(evt){evt=evt||window.event;var isEscape=!1;if("key" in evt){isEscape=(evt.key==="Escape"||evt.key==="Esc")}else{isEscape=(evt.keyCode===27)}
if(isEscape){slideInWindow.close()}}},closeOnClick:function(){$(document).on('click','.sidewindowwrapper .sideclose, .sidewindowwrapper .overlay',function(){slideInWindow.close()})}};function is_touch_device(){try{document.createEvent("TouchEvent");return!0}catch(e){return!1}}
var isTouchDevice=is_touch_device();function UpdateCart(){data=Shopcada.GetCartContent();var ssuffix="";if($("#uc_currency").length==0){var ssuffix=" item";if(data.count>1){ssuffix=" items"}}
$(".cart-link a.cart").html(Shopcada.settings.defaultCartText+" ("+data.count+ssuffix+")")}
Shopcada.tasks.TouchHoverListing=function(){if(!isTouchDevice){return}
$('.productrow').not('.ts-processed').addClass('ts-processed').bind('touchstart',function(){$(this).addClass('touch')});$('.productrow').not('.te-processed').addClass('te-processed').bind('touchend',function(){$(this).removeClass('touch')})}
var jspapi;var isCloudZoom;var bxSlider;var isDoubleCloudZoom=!1;var isImageZooming=!0;var _myInstance1;var _myInstance2;Shopcada.ProductImages=[];Shopcada.ProductImages.next=function(){if(isImageZooming){if(isCloudZoom){var current;var currentIndex;var totalIndex=($("a.thumb-link").length)-1;current=$("a.thumb-link img.cloudzoom-gallery-active").parent("a.thumb-link");currentIndex=current.index("a.thumb-link");if(isDoubleCloudZoom){currentIndex+=2}else{currentIndex++}
if(currentIndex>totalIndex){currentIndex=0}
$("a.thumb-link").eq(currentIndex).find("img").trigger("click").trigger("tap");return!1}else{$("#product-images").zoomify.next()}}else{current_anchor=$('a.thumb-link.active');current_index=current_anchor.index();var next_anchor='';if(current_index<$("a.thumb-link:visible").length-1){next_anchor=$('a.thumb-link:visible').eq(current_index+1)}else{next_anchor=$('a.thumb-link:visible').eq(0)}
next_anchor.trigger('click')}};Shopcada.ProductImages.previous=function(){if(isImageZooming){if(isCloudZoom){var current;var currentIndex;var totalIndex=($("a.thumb-link").length)-1;current=$("a.thumb-link img.cloudzoom-gallery-active").parent("a.thumb-link");currentIndex=current.index("a.thumb-link");if(isDoubleCloudZoom){currentIndex-=2}else{currentIndex--}
if(currentIndex<0){currentIndex=totalIndex}
$("a.thumb-link").eq(currentIndex).find("img").trigger("click").trigger("tap");return!1}else{$("#product-images").zoomify.previous()}}else{current_anchor=$('a.thumb-link.active');current_index=current_anchor.index();var next_anchor='';if(current_index<0){next_anchor=$('a.thumb-link:visible').eq($("a.thumb-link:visible").length-1)}else{next_anchor=$('a.thumb-link:visible').eq(current_index-1)}
next_anchor.trigger('click')}}
Shopcada.bxSliders=[];Shopcada.tasks.UC_ProductImages=function(context){if($(".images-container").hasClass('zoomoff')){return Shopcada.functions.UC_ProductImages_NoZoom()}
if($('#zoom1').length==0){return}
if($('#zoom1').hasClass("cz-processed")){return}
$('#zoom1').addClass("cz-processed");if($("#node-product-image").hasClass("double")){isDoubleCloudZoom=!0}
$('.image-pager-previous').click(Shopcada.ProductImages.previous);$('.image-pager-next').click(Shopcada.ProductImages.next);if($(window).width()<=768){$("#product-images").zoomify({zoom:'.zoomify',gallery:'.thumb-link'});isCloudZoom=!1;$("a.thumb-link").click(function(){return!1})}else{isCloudZoom=!0;if(isDoubleCloudZoom){options={};$("#zoom1").CloudZoom(options);$("#zoom2").CloudZoom(options);_myInstance1=$("#zoom1").data("CloudZoom");_myInstance2=$("#zoom2").data("CloudZoom")}else{CloudZoom.quickStart()}
$("a.fancygallery").colorbox({maxHeight:'100%',close:Shopcada.settings.colorbox.close});$('#zoom1').bind('click',function(){var cloudZoom=$(this).data('CloudZoom');target_gallery=$("img.cloudzoom-gallery-active").parent().attr("target_gallery");$("a#"+target_gallery).trigger('click');cloudZoom.closeZoom();return!1});if(isDoubleCloudZoom){$('#zoom2').bind('click',function(){var cloudZoom=$(this).data('CloudZoom');target_gallery=$("img.cloudzoom-gallery-active").parent().next().attr("target_gallery");$("a#"+target_gallery).trigger('click');cloudZoom.closeZoom();return!1});$("img",$("a.thumb-link:visible").eq(1)).addClass("cloudzoom-gallery-active")}}
$("#node-product-tn-wrapper li:first").addClass("active");var _originalVertical=!1;var _isMobileSlider=!1;if($(window).width()>=992){if($("#node-product-tn-wrapper").hasClass("vertical")){_originalVertical=!0;$("#node-product-tn-wrapper .items").each(function(){colour=$(this).data('colour');Shopcada.bxSliders[colour]=$(this).bxSlider({infiniteLoop:!1,mode:'vertical',minSlides:4,maxSlides:4,pager:!1,slideMargin:8,nextText:'',prevText:''})})}else{$("#node-product-tn-wrapper .items").each(function(){colour=$(this).data('colour');Shopcada.bxSliders[colour]=$(this).bxSlider({infiniteLoop:!1,minSlides:4,maxSlides:4,slideWidth:120,pager:!1,slideMargin:8,nextText:'',prevText:''})});$("#node-product-tn-wrapper.horizontal .bx-wrapper .bx-controls-direction a").css('line-height',$("#node-product-tn-wrapper.horizontal .bx-wrapper .bx-viewport").height()+"px")}}else{if($("#node-product-tn-wrapper").hasClass("vertical")){_originalVertical=!0}
_isMobileSlider=!0;$("#node-product-tn-wrapper").removeClass("vertical").addClass("horizontal");$("#node-product-tn-wrapper .items").each(function(){colour=$(this).data('colour');Shopcada.bxSliders[colour]=$(this).bxSlider({infiniteLoop:!1,oneToOneTouch:!1,minSlides:3,maxSlides:3,slideWidth:80,pager:!1,slideMargin:8,nextText:'',prevText:''})});$("#node-product-tn-wrapper.horizontal .bx-wrapper .bx-controls-direction a").css('line-height',$("#node-product-tn-wrapper.horizontal .bx-wrapper .bx-viewport").height()+"px")}
if(isDoubleCloudZoom){$('a.thumb-link').bind('click',function(e){if(!isCloudZoom){return}
e.stopPropagation();e.preventDefault();current_index=$('a.thumb-link:visible').index(this);current_anchor=$('a.thumb-link:visible').eq(current_index);var next_anchor='';if(current_index<$("a.thumb-link:visible").length-1){next_anchor=$('a.thumb-link:visible').eq(current_index+1)}else{next_anchor=$('a.thumb-link:visible').eq(0)}
$("a.thumb-link img").removeClass("cloudzoom-gallery-active");$("img",current_anchor).addClass("cloudzoom-gallery-active");$("img",next_anchor).addClass("cloudzoom-gallery-active");var big_image1=current_anchor.data("zoomify-big");var small_image1=current_anchor.data("zoomify-small");var options={};_myInstance1.loadImage(small_image1,big_image1);_myInstance1.closeZoom();var big_image2=next_anchor.data("zoomify-big");var small_image2=next_anchor.data("zoomify-small");_myInstance2.loadImage(small_image2,big_image2);_myInstance2.closeZoom();return!1})}
$(window).resize(function(){if(isCloudZoom&&$(window).width()<=768){cz=$("#zoom1").data('CloudZoom');cz.destroy();if(isDoubleCloudZoom){cz=$("#zoom2").data('CloudZoom');cz.destroy()}
$("#product-images").zoomify({zoom:'.zoomify',gallery:'.thumb-link'});isCloudZoom=!1}
if(!isCloudZoom&&$(window).width()>768){$("#product-images").zoomify.destroy();$("img.zoomin").hide();isCloudZoom=!0;if(isDoubleCloudZoom){options={};$("#zoom1").CloudZoom(options);$("#zoom2").CloudZoom(options);_myInstance1=$("#zoom1").data("CloudZoom");_myInstance2=$("#zoom2").data("CloudZoom")}else{CloudZoom.quickStart()}}
if($(window).width()>=992){if(_isMobileSlider){_isMobileSlider=!1;if(_originalVertical&&!$("#node-product-tn-wrapper").hasClass('vertical')){$("#node-product-tn-wrapper").removeClass('horizontal').addClass('vertical')}
for(var k in Shopcada.bxSliders){if(Shopcada.bxSliders[k]!==undefined){Shopcada.bxSliders[k].destroySlider()}}
$("#node-product-tn-wrapper .items").each(function(){var colour=$(this).data('colour');if(Shopcada.bxSliders[colour]===undefined){if($("#node-product-tn-wrapper").hasClass("vertical")){Shopcada.bxSliders[colour]=$(this).bxSlider({infiniteLoop:!1,mode:'vertical',oneToOneTouch:!1,minSlides:4,maxSlides:4,pager:!1,slideMargin:8,nextText:'',prevText:''})}else{Shopcada.bxSliders[colour]=$(this).bxSlider({infiniteLoop:!1,oneToOneTouch:!1,minSlides:4,maxSlides:4,slideWidth:120,pager:!1,slideMargin:8,nextText:'',prevText:''});$("#node-product-tn-wrapper.horizontal .bx-wrapper .bx-controls-direction a").css('line-height',$("#node-product-tn-wrapper.horizontal .bx-wrapper .bx-viewport").height()+"px")}}else{if($("#node-product-tn-wrapper").hasClass("horizontal")){$("#node-product-tn-wrapper.horizontal .bx-wrapper .bx-controls-direction a").css('line-height',$("#node-product-tn-wrapper.horizontal .bx-wrapper .bx-viewport").height()+"px")}}})}}else{if(!_isMobileSlider){_isMobileSlider=!0;for(var k in Shopcada.bxSliders){if(Shopcada.bxSliders[k]!==undefined){Shopcada.bxSliders[k].destroySlider()}}
$("#node-product-tn-wrapper").removeClass("vertical").addClass("horizontal");$("#node-product-tn-wrapper .items").each(function(){var colour=$(this).data('colour');Shopcada.bxSliders[colour]=$(this).bxSlider({infiniteLoop:!1,oneToOneTouch:!1,minSlides:3,maxSlides:3,slideWidth:80,pager:!1,slideMargin:8,nextText:'',prevText:''})});$("#node-product-tn-wrapper.horizontal .bx-wrapper .bx-controls-direction a").css('line-height',$("#node-product-tn-wrapper.horizontal a.thumb-link").height()+"px")}}})}
Shopcada.functions.showProductImageLoading=function(id,img){top1=img.height()/2-5;left=img.width()/2-21;Shopcada.functions.hideProductImageLoading(id);img.after("
")}
Shopcada.functions.hideProductImageLoading=function(id){$("#"+id).remove()}
Shopcada.functions.UC_ProductImages_NoZoom=function(){if($("img#zoom1").hasClass('imgProcessed')){return}
$("img#zoom1").addClass('imgProcessed');$('.image-pager-previous').click(Shopcada.ProductImages.previous);$('.image-pager-next').click(Shopcada.ProductImages.next);var isDoubleCloudZoom=!1;if($("#node-product-image").hasClass("double")){isDoubleCloudZoom=!0}
isImageZooming=!1;$("img#zoom1").on('load',function(e){Shopcada.functions.hideProductImageLoading("loading1")});$("img#zoom2").on('load',function(e){Shopcada.functions.hideProductImageLoading("loading2")});$('img#zoom1, img#zoom2').click(function(){target_gallery=$("a.thumb-link.active").attr("target_gallery");$("a#"+target_gallery).trigger('click');return!1});$("a.fancygallery").colorbox({maxHeight:'100%',close:Shopcada.settings.colorbox.close});$("a.thumb-link").click(function(e){e.preventDefault();$("a.thumb-link.active").removeClass("active");$(this).addClass("active");Shopcada.functions.showProductImageLoading("loading1",$('img#zoom1'));$("img#zoom1").attr('src',$(this).attr('href'));if(isDoubleCloudZoom){current_index=$('a.thumb-link:visible').index(this);current_anchor=$('a.thumb-link:visible').eq(current_index);var next_anchor='';if(current_index<$("a.thumb-link:visible").length-1){next_anchor=$('a.thumb-link:visible').eq(current_index+1)}else{next_anchor=$('a.thumb-link:visible').eq(0)}
Shopcada.functions.showProductImageLoading("loading2",$('img#zoom2'));$("img#zoom2").attr('src',next_anchor.attr('href'))}
return!1});var _originalVertical=!1;var _isMobileSlider=!1;if($(window).width()>=992){if($("#node-product-tn-wrapper").hasClass("vertical")){_originalVertical=!0;bxSlider=$("#node-product-tn-wrapper .items").bxSlider({infiniteLoop:!1,mode:'vertical',oneToOneTouch:!1,minSlides:4,maxSlides:4,pager:!1,slideMargin:8,nextText:'',prevText:''})}else{bxSlider=$("#node-product-tn-wrapper .items").bxSlider({infiniteLoop:!1,minSlides:4,oneToOneTouch:!1,maxSlides:4,slideWidth:120,pager:!1,slideMargin:8,nextText:'',prevText:''});$("#node-product-tn-wrapper.horizontal .bx-wrapper .bx-controls-direction a").css('line-height',$("#node-product-tn-wrapper.horizontal a.thumb-link").height()+"px")}}else{if($("#node-product-tn-wrapper").hasClass("vertical")){_originalVertical=!0}
_isMobileSlider=!0;$("#node-product-tn-wrapper").removeClass("vertical").addClass("horizontal");bxSlider=$("#node-product-tn-wrapper .items").bxSlider({infiniteLoop:!1,oneToOneTouch:!1,minSlides:3,maxSlides:3,slideWidth:80,pager:!1,slideMargin:8,nextText:'',prevText:''});$("#node-product-tn-wrapper.horizontal .bx-wrapper .bx-controls-direction a").css('line-height',$("#node-product-tn-wrapper.horizontal a.thumb-link").height()+"px")}
$(window).resize(function(){if($(window).width()>=992){if(_isMobileSlider){_isMobileSlider=!1;if(_originalVertical&&!$("#node-product-tn-wrapper").hasClass('vertical')){$("#node-product-tn-wrapper").removeClass('horizontal').addClass('vertical')}
if(bxSlider!=undefined){bxSlider.destroySlider();bxSlider=undefined}
if(bxSlider==undefined){if($("#node-product-tn-wrapper").hasClass("vertical")){bxSlider=$("#node-product-tn-wrapper .items").bxSlider({infiniteLoop:!1,mode:'vertical',oneToOneTouch:!1,minSlides:4,maxSlides:4,pager:!1,slideMargin:8,nextText:'',prevText:''})}else{bxSlider=$("#node-product-tn-wrapper .items").bxSlider({infiniteLoop:!1,oneToOneTouch:!1,minSlides:4,maxSlides:4,slideWidth:120,pager:!1,slideMargin:8,nextText:'',prevText:''});$("#node-product-tn-wrapper.horizontal .bx-wrapper .bx-controls-direction a").css('line-height',$("#node-product-tn-wrapper.horizontal a.thumb-link").height()+"px")}}else{if($("#node-product-tn-wrapper").hasClass("horizontal")){$("#node-product-tn-wrapper.horizontal .bx-wrapper .bx-controls-direction a").css('line-height',$("#node-product-tn-wrapper.horizontal a.thumb-link").height()+"px")}}}}else{if(!_isMobileSlider){_isMobileSlider=!0;if(bxSlider!=undefined){bxSlider.destroySlider();bxSlider=undefined}
if(bxSlider==undefined){$("#node-product-tn-wrapper").removeClass("vertical").addClass("horizontal");bxSlider=$("#node-product-tn-wrapper .items").bxSlider({infiniteLoop:!1,oneToOneTouch:!1,minSlides:3,maxSlides:3,slideWidth:80,pager:!1,slideMargin:8,nextText:'',prevText:''});$("#node-product-tn-wrapper.horizontal .bx-wrapper .bx-controls-direction a").css('line-height',$("#node-product-tn-wrapper.horizontal a.thumb-link").height()+"px")}}}})}
Shopcada.tasks.MobileBanners=function(){if($("#mainbanners-mobile").not('.processed').length>0){$("#mainbanners-mobile").addClass("processed");$("#mainbanners-mobile").swiperight(function(){$(this).carousel('prev')});$("#mainbanners-mobile").swipeleft(function(){$(this).carousel('next')})}
$(".vc-slidingbanner .carousel").not('.processed').each(function(){var _this=$(this);$(this).addClass("processed");$(this).swiperight(function(){$(this).carousel('prev')});$(this).swipeleft(function(){$(this).carousel('next')})})}
var lookbookPagerSlider;var lookBookProcessed=!1;Shopcada.tasks.LookBook=function(){if(Shopcada.settings.lookbook&&Shopcada.settings.lookbook.slideshow&&!lookBookProcessed){lookBookProcessed=!0;lookbookPagerSlider=$("#node-lookbook-pager").bxSlider({minSlides:3,maxSlides:7,slideWidth:170,slideMargin:10,infiniteLoop:!1,nextText:'',prevText:'',pager:!1});$('#node-lookbook-images').bxSlider({pagerCustom:'#node-lookbook-pager',mode:'fade',nextText:'',prevText:'',onSlideAfter:function(slideElement,oldIndex,newIndex){totalSlidePerPage=Math.floor($("#node-lookbook-navigation").width()/($(".lookbook-pager-item").width()+10));position=Math.floor(newIndex/totalSlidePerPage);if(position!=lookbookPagerSlider.getCurrentSlide()){lookbookPagerSlider.goToSlide(position)}
$("a.lookbook-pager-item[data-slide-index="+oldIndex+"]").removeClass("active");$("a.lookbook-pager-item[data-slide-index="+newIndex+"]").addClass("active")}})}}
Shopcada.tasks.InstashopLoad=function(){$("a.instafeed-load").not('.itlprocessed').addClass('itlprocessed').click(function(){if($(window).width()<768){return!0}else{$.colorbox({href:$(this).attr("href")+"?ajax=true",close:Shopcada.settings.colorbox.close})}
return!1})}
var _isStickyProcessed=!1;var _isStickyEnabled=!1;Shopcada.tasks.StickyHeader=function(){if(_isStickyProcessed){return}
_isStickyProcessed=!0;if($(".header-sticky").length){Shopcada.functions.StickyHeaderSlideIn()}}
Shopcada.functions.StickyHeaderSlideIn=function(){if(Shopcada.settings.sticky_header){$("body").addClass('header-is-sticky')}
$(window).scroll(function(){if(($(this).scrollTop()>300)&&$(window).width()>=768){if(!_isStickyEnabled){$("body").addClass("sticky-enabled");_isStickyEnabled=!0}}else{if(_isStickyEnabled){$("body").removeClass("sticky-enabled");_isStickyEnabled=!1}}})}
var adminMenuHeight=0,headerTopHeight=0,headerHeight=0,headerBottomHeight=0,totalHeaderHeight=0,scrollPosition,belowHeaderPaddingTop=0,certainHeight=50;$(window).on('load',function(){if($(window).width()>=768){adminMenuHeight=$('#admin-menu').length?$('#admin-menu').outerHeight():0}else{adminMenuHeight=0}
headerTopHeight=$('.header-top').outerHeight();headerHeight=$('.header').outerHeight(!0);headerBottomHeight=$('.header-bottom').outerHeight(!0);totalHeaderHeight=adminMenuHeight+headerTopHeight+headerHeight+headerBottomHeight;if($('.headertop-at-bottom').length&&$(window).width()>=768){headerTopHeight=0}});Shopcada.functions.StickyHeaderModernReset=function(){Shopcada.jQuery.body.removeClass('sticky-enabled sticky-header-modern sticky-notshow');$('.below-header').removeAttr('style')}
Shopcada.functions.StickyHeaderModern=function(scroll,scrollPosition,belowHeaderPaddingTop){Shopcada.jQuery.body.addClass('sticky-enabled sticky-header-modern');$('.below-header').css('padding-top',belowHeaderPaddingTop);if(scroll>=totalHeaderHeight){(scroll>scrollPosition)?Shopcada.jQuery.body.addClass('sticky-notshow'):Shopcada.jQuery.body.removeClass('sticky-notshow')}
if(Shopcada.settings.sticky_header_modern_overlay_mainbanner&&$('.front').length){(scroll>=headerTopHeight+adminMenuHeight+certainHeight)?Shopcada.jQuery.body.addClass('header-show-bg-color'):Shopcada.jQuery.body.removeClass('header-show-bg-color')}}
Shopcada.functions.StickyHeaderModernIncludeHeaderTop=function(){Shopcada.jQuery.body.addClass('header-is-sticky mobile-include-headertop');if(Shopcada.settings.sticky_header_modern_overlay_mainbanner&&$('.front').length){if($('.header5').length==0&&$('.header18').length==0){Shopcada.jQuery.body.addClass('sticky-header-modern-overlay-mainbanner')}}
$(window).scroll(function(){var scroll=$(window).scrollTop();if($(window).width()>767){if(scroll>(adminMenuHeight+headerTopHeight)){if($('.headertop-at-bottom').length){belowHeaderPaddingTop=totalHeaderHeight-adminMenuHeight}else{belowHeaderPaddingTop=headerHeight+headerBottomHeight}
if($('.sticky-header-modern-overlay-mainbanner').length){belowHeaderPaddingTop=0}
Shopcada.functions.StickyHeaderModern(scroll,scrollPosition,belowHeaderPaddingTop)}else{Shopcada.functions.StickyHeaderModernReset()}}else{if(scroll>0){belowHeaderPaddingTop=totalHeaderHeight;if($('.sticky-header-modern-overlay-mainbanner').length){belowHeaderPaddingTop=headerTopHeight}
Shopcada.functions.StickyHeaderModern(scroll,scrollPosition,belowHeaderPaddingTop)}else{Shopcada.functions.StickyHeaderModernReset()}}
scrollPosition=scroll})}
Shopcada.functions.StickyHeaderModernNotIncludeHeaderTop=function(){Shopcada.jQuery.body.addClass('header-is-sticky mobile-not-include-headertop');if(Shopcada.settings.sticky_header_modern_overlay_mainbanner&&$('.front').length){if($('.header5').length==0&&$('.header18').length==0){Shopcada.jQuery.body.addClass('sticky-header-modern-overlay-mainbanner')}}
$(window).scroll(function(){var scroll=$(window).scrollTop();if(scroll>(adminMenuHeight+headerTopHeight)){belowHeaderPaddingTop=headerHeight+headerBottomHeight;if($('.sticky-header-modern-overlay-mainbanner').length){belowHeaderPaddingTop=0}
Shopcada.functions.StickyHeaderModern(scroll,scrollPosition,belowHeaderPaddingTop)}else{Shopcada.functions.StickyHeaderModernReset()}
scrollPosition=scroll})}
function hidePager(){$(".listing-pager ").hide()}
Shopcada.tasks.tableHeader=function(){}
Shopcada.tasks.chosen=function(context){return;if(isTouchDevice){return}
var minWidth=Shopcada.settings.chosen.minimum_width;$(Shopcada.settings.chosen.selector,context).not('#field-ui-field-overview-form select, #field-ui-display-overview-form select, #uc-cart-checkout-form select').each(function(){if($(this).find('option').size()>=Shopcada.settings.chosen.minimum){$(this).css({width:($(this).width() a').click(function(){var urldest=$(this).attr('href');location.href=urldest});_this.children('li.leaf').hover(function(){$(this).siblings().removeClass('open')},function(){});_this.find('ul.dropdown-menu').mouseleave(function(){_this.find('.open').removeClass('open')})});if($('.navbar-nav.with-hover').length>0){$(".header-region").not('.processed').addClass('processed').mouseleave(function(){$(this).find("li.dropdown.open").removeClass('open')})}}
Shopcada.functions.original_uc_currency_alt=function(context){if(Shopcada.settings.uc_currency_alt==undefined){return}
currency_code=Shopcada.cookie.get("currency");if(currency_code!=-1&¤cy_code!=!1&¤cy_code!=Shopcada.settings.currency.code){$("body").addClass("alt-currency-on");$("span.alternate-currency").css("display","");uc_currency_alt_update()}else{$("body").removeClass("alt-currency-on");$("span.alternate-currency").html("");$("span.alternate-currency").css("display","none")}
if($("form.uc_currency_alt_picker select").length>0){$("form.uc_currency_alt_picker select").change(function(){currency_code=$(this).val();Shopcada.cookie.set("currency",currency_code,365);if(currency_code!=Shopcada.settings.currency.code){$("span.uc-price.processed").removeClass("processed");$("body").addClass("alt-currency-on");$("span.alternate-currency").css("display","");uc_currency_alt_update()}else{$("body").removeClass("alt-currency-on");$("span.alternate-currency").html("");$("span.alternate-currency").css("display","none")}})}else{var currency_code=Shopcada.cookie.get("currency");if(currency_code!=-1&¤cy_code!=!1&¤cy_code!=Shopcada.settings.currency.code){$("#alternate_currency a span").html($("#alternate_currency li#currency-"+currency_code).html())}
$("#alternate_currency .chzn-drop").css("top",($("#alternate_currency").height()-1)+"px");$("#alternate_currency a.chzn-single").click(function(){$("#alternate_currency li").toggleClass("active-result")});$("#alternate_currency li").hover(function(){$(this).addClass("highlighted")},function(){$(this).removeClass("highlighted")});$("#alternate_currency li").click(function(){currency_code=$(this).data("value");$("#alternate_currency a span").html($("#alternate_currency li#currency-"+currency_code).html());$("#alternate_currency li").removeClass("active-result");Shopcada.cookie.set("currency",currency_code,365);if(currency_code!=Shopcada.settings.currency.code){$("body").addClass("alt-currency-on");$("span.alternate-currency").css("display","");$("span.uc-price.processed").removeClass("processed");uc_currency_alt_update()}else{$("body").removeClass("alt-currency-on");$("span.alternate-currency").html("");$("span.alternate-currency").css("display","none")}})}}
Shopcada.tasks.uc_currency_widget=function(context){if($("#alternate_currency_simulated").length==0){return}
if(Shopcada.currencyWigetInit){return}
Shopcada.currencyWigetInit=!0;var currency_code=Shopcada.cookie.get("currency");if(currency_code!==!1&¤cy_code!==-1&¤cy_code!=Shopcada.settings.currency.code){$("#alternate_currency_simulated a.currency-selected span").html($("#alternate_currency_simulated li#currency-"+currency_code).html())}
$("#alternate_currency_simulated a.currency-selected").click(function(){$(this).parent().toggleClass('open')});$("#alternate_currency_simulated li").hover(function(){$(this).addClass("highlighted")},function(){$(this).removeClass("highlighted")});$("#alternate_currency_simulated li").click(function(){currency_code=$(this).data("value");$("#alternate_currency_simulated a.currency-selected span").html($("#alternate_currency_simulated li#currency-"+currency_code).html());Shopcada.cookie.set("currency",currency_code,365);if(currency_code!=Shopcada.settings.currency.code){$("body").addClass("alt-currency-on");$("span.alternate-currency").css("display","");$("span.uc-price.processed").removeClass("processed");uc_currency_alt_update()}else{$("body").removeClass("alt-currency-on");$("span.alternate-currency").html("");$("span.alternate-currency").css("display","none")}
$("#alternate_currency_simulated").removeClass('open')})}
Shopcada.tasks.uc_currency_alt=function(context){if(Shopcada.settings.uc_currency_alt==undefined){return}
if($("#alternate_currency_simulated").length==0){Shopcada.functions.original_uc_currency_alt(context)}else{currency_code=Shopcada.cookie.get("currency");if(currency_code!=-1&¤cy_code!=!1&¤cy_code!=Shopcada.settings.currency.code){$("body").addClass("alt-currency-on");$("span.alternate-currency").css("display","");uc_currency_alt_update()}else{$("body").removeClass("alt-currency-on");$("span.alternate-currency").html("");$("span.alternate-currency").css("display","none")}}};Shopcada.ProcessNewsletter=function(){if($("#newsletter").not('.processed').length>0){$("#newsletter").addClass('processed');if(Shopcada.cookie.get('bs-newsletter-submitted')=="1"){return}
setTimeout(function(){$.colorbox({href:'#newsletter',inline:!0,close:Shopcada.settings.colorbox.close,className:'newsletter-popup',onComplete:function(){$.colorbox.resize()}})},Shopcada.settings.newsletter_delay*1000);$("#bootstrap-2016-mailing-list-form").submit(function(){var _form=$(this);var mail=$("#bs-mailing-list-email",_form).val();var subscription_topics=$("input[name^='subscription_topics']:checked",_form).map(function(){return this.value}).get();$("input.form-submit",_form).after('').hide();$.ajax({type:"POST",url:"/js/mailinglist",data:{mail:mail,'subscription_topics':subscription_topics},dataType:'json',success:function(data){if(data.status==200){_form.hide();$("#newsletter-error-message").hide();$("#newsletter-success-message").html(data.message).show();Shopcada.cookie.set('bs-newsletter-submitted',"1",365)}else{$("#newsletter-error-message").html(data.message).show();$("#trobber",_form).remove();$("input.form-submit",_form).show()}},});return!1})}
$("form.mailchimp-ajax-form").not('.processed').addClass('processed').submit(function(){var _form=$(this);var mail=$("input[name='email']",_form).val();var subscription_topics=$("input[name^='subscription_topics']:checked",_form).map(function(){return this.value}).get();$("input.form-submit",_form).after('').hide();$("#mailchimp-error-message").remove();$.ajax({type:"POST",url:"/js/mailinglist",data:{mail:mail,'subscription_topics':subscription_topics},dataType:'json',success:function(data){if(data.status==200){_form.before(""+data.message+"
");_form.hide()}else{_form.before(""+data.message+"
");$("#trobber",_form).remove();$("input.form-submit",_form).show()}},});return!1})}
Shopcada.tasks.LoadQuickView=function(){var qvSettings=Object.assign({},Shopcada.settings.colorbox);qvSettings.onComplete=function(){Shopcada.QuickviewImages()};$('a.load-quickview').not('.qvp').addClass('qvp').colorbox(qvSettings)}
Shopcada.QuickviewImages=function(){$('.qv-images .items').bxSlider({mode:'fade',nextText:'',prevText:'',infiniteLoop:!0,minSlides:1,maxSlides:1,pager:!1,vertical:!1,responsive:!1,slideWidth:320,moveSlides:1,onSliderLoad:function(){$('.qv-images .items .item').width(320)}})}
Shopcada.ProductListingFilterGripper=function(){if($("body.product-listing .filter-gripper").length>0){$("body.product-listing .filter-gripper").click(function(){$(this).parent().toggleClass('show')})}}
Shopcada.BackToTop=function(){if($('span.backtotop').length>0){var _isBackToTopShow=!1;Shopcada.jQuery.window.scroll(function(){if(Shopcada.jQuery.window.scrollTop()>300){if(!_isBackToTopShow){_isBackToTopShow=!0;$('span.backtotop').fadeIn()}}else{if(_isBackToTopShow){_isBackToTopShow=!1;$('span.backtotop').fadeOut()}}});$('span.backtotop').click(function(){$("html, body").animate({scrollTop:0},600)})}}
Shopcada.functions.ActiveMenus=function(){$("a[href='"+location.pathname+"']").addClass("active");$(".header #menu-primary-links li.dropdown").each(function(){if($("ul a.active",$(this)).length>0){$("> a",$(this)).addClass("active")}})}
Shopcada.functions.BlogWidgets=function(){$("#block-blog-archive h2.title, #block-blog-categories h2.title").click(function(){if(Shopcada.jQuery.window.width()<=767){$(".content",$(this).parent()).toggleClass('open')}})}
Shopcada.functions.BindSlideInMenuToggler=function(){$(".nav-slidein-mainnav .nav-open a.dropdown-toggle").click(function(){location.href=$(this).attr('href')});$(".nav-slidein-mainnav li.dropdown > a.dropdown-toggle").click(function(){if($(this).parent().hasClass("open")){location.href=$(this).attr('href');return!1}})}
Shopcada.functions.ProcessCurrencyPickerAndNewsletter=function(){var isShowNewsletter=!0;if($("#uc_currency").length>0){$("#uc-currency-picker select").bind('change',function(){$("#uc-currency-picker").submit()}).selectButton();$("#uc-currency-picker input.form-submit").hide();if($.cookie('mycurrency')===null){$.colorbox({inline:!0,href:'#uc_currency',maxWidth:'80%',close:Shopcada.settings.colorbox.close,className:'currency-popup'});isShowNewsletter=!1}
$("a.currency-link").click(function(){$.colorbox({inline:!0,href:'#uc_currency',maxWidth:'80%',close:Shopcada.settings.colorbox.close,className:'currency-popup'});return!1})}
if(isShowNewsletter){Shopcada.ProcessNewsletter()}}
$(document).ready(function(){Shopcada.functions.ActiveMenus();Shopcada.functions.BlogWidgets();Shopcada.settings.defaultCartText=$(".cart-link a").length>0?$(".cart-link a").eq(0).html():"Cart";UpdateCart();Shopcada.functions.ProcessCurrencyPickerAndNewsletter();Shopcada.functions.BindSlideInMenuToggler();Shopcada.BackToTop();Shopcada.ProductListingFilterGripper()});/*! jQuery Mobile v1.4.5 | Copyright 2010, 2014 jQuery Foundation, Inc. | jquery.org/license */
(function(e,t,n){typeof define=="function"&&define.amd?define(["jquery"],function(r){return n(r,e,t),r.mobile}):n(e.jQuery,e,t)})(this,document,function(e,t,n,r){(function(e,t,n,r){function T(e){while(e&&typeof e.originalEvent!="undefined")e=e.originalEvent;return e}function N(t,n){var i=t.type,s,o,a,l,c,h,p,d,v;t=e.Event(t),t.type=n,s=t.originalEvent,o=e.event.props,i.search(/^(mouse|click)/)>-1&&(o=f);if(s)for(p=o.length,l;p;)l=o[--p],t[l]=s[l];i.search(/mouse(down|up)|click/)>-1&&!t.which&&(t.which=1);if(i.search(/^touch/)!==-1){a=T(s),i=a.touches,c=a.changedTouches,h=i&&i.length?i[0]:c&&c.length?c[0]:r;if(h)for(d=0,v=u.length;di||Math.abs(n.pageY-p)>i,d&&!r&&P("vmousecancel",t,s),P("vmousemove",t,s),_()}function I(e){if(g)return;A();var t=C(e.target),n,r;P("vmouseup",e,t),d||(n=P("vclick",e,t),n&&n.isDefaultPrevented()&&(r=T(e).changedTouches[0],v.push({touchID:E,x:r.clientX,y:r.clientY}),m=!0)),P("vmouseout",e,t),d=!1,_()}function q(t){var n=e.data(t,i),r;if(n)for(r in n)if(n[r])return!0;return!1}function R(){}function U(t){var n=t.substr(1);return{setup:function(){q(this)||e.data(this,i,{});var r=e.data(this,i);r[t]=!0,l[t]=(l[t]||0)+1,l[t]===1&&b.bind(n,H),e(this).bind(n,R),y&&(l.touchstart=(l.touchstart||0)+1,l.touchstart===1&&b.bind("touchstart",B).bind("touchend",I).bind("touchmove",F).bind("scroll",j))},teardown:function(){--l[t],l[t]||b.unbind(n,H),y&&(--l.touchstart,l.touchstart||b.unbind("touchstart",B).unbind("touchmove",F).unbind("touchend",I).unbind("scroll",j));var r=e(this),s=e.data(this,i);s&&(s[t]=!1),r.unbind(n,R),q(this)||r.removeData(i)}}}var i="virtualMouseBindings",s="virtualTouchID",o="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),u="clientX clientY pageX pageY screenX screenY".split(" "),a=e.event.mouseHooks?e.event.mouseHooks.props:[],f=e.event.props.concat(a),l={},c=0,h=0,p=0,d=!1,v=[],m=!1,g=!1,y="addEventListener"in n,b=e(n),w=1,E=0,S,x;e.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500};for(x=0;xMath.floor(e.pageY)||e.pageX===0&&Math.floor(i)>Math.floor(e.pageX))i-=n,s-=r;else if(se.event.special.swipe.horizontalDistanceThreshold&&Math.abs(t.coords[1]-n.coords[1])n.coords[0]?"swipeleft":"swiperight";return l(r,"swipe",e.Event("swipe",{target:i,swipestart:t,swipestop:n}),!0),l(r,s,e.Event(s,{target:i,swipestart:t,swipestop:n}),!0),!0}return!1},eventInProgress:!1,setup:function(){var t,n=this,r=e(n),s={};t=e.data(this,"mobile-events"),t||(t={length:0},e.data(this,"mobile-events",t)),t.length++,t.swipe=s,s.start=function(t){if(e.event.special.swipe.eventInProgress)return;e.event.special.swipe.eventInProgress=!0;var r,o=e.event.special.swipe.start(t),u=t.target,l=!1;s.move=function(t){if(!o||t.isDefaultPrevented())return;r=e.event.special.swipe.stop(t),l||(l=e.event.special.swipe.handleSwipe(o,r,n,u),l&&(e.event.special.swipe.eventInProgress=!1)),Math.abs(o.coords[0]-r.coords[0])>e.event.special.swipe.scrollSupressionThreshold&&t.preventDefault()},s.stop=function(){l=!0,e.event.special.swipe.eventInProgress=!1,i.off(f,s.move),s.move=null},i.on(f,s.move).one(a,s.stop)},r.on(u,s.start)},teardown:function(){var t,n;t=e.data(this,"mobile-events"),t&&(n=t.swipe,delete t.swipe,t.length--,t.length===0&&e.removeData(this,"mobile-events")),n&&(n.start&&e(this).off(u,n.start),n.move&&i.off(f,n.move),n.stop&&i.off(a,n.stop))}},e.each({scrollstop:"scrollstart",taphold:"tap",swipeleft:"swipe.left",swiperight:"swipe.right"},function(t,n){e.event.special[t]={setup:function(){e(this).bind(n,e.noop)},teardown:function(){e(this).unbind(n)}}})}(e,this)});function UpdateCart(){}
$(document).ready(function(){$("a#menu-343, ol.breadcrumb li.first a").html('')});;Shopcada.GetCartContent=function(){}
Shopcada.tasks.HomePageBlockYoutube=function(){$('.homepageblock-row').not('.processed').addClass('processed').each(function(){if($("a",$(this)).attr('href').indexOf('youtube')>=0){if($(window).width()>767){$("a",$(this)).colorbox({iframe:!0,innerWidth:640,innerHeight:360})}else if($(window).width()>400){$("a",$(this)).colorbox({iframe:!0,innerWidth:360,innerHeight:200})}else{$("a",$(this)).colorbox({iframe:!0,innerWidth:240,innerHeight:135})}}})}
Shopcada.tasks.UC_ProductImages=function(){}
$(document).ready(function(){$(".region-sidebar-first .block-menu .content > ul.menu > li").click(function(){if($(window).width()<992){$(this).toggleClass('show')}})})