"),b.each(this.datasets,c)}}),c}(),j=function(){"use strict";function a(){i.apply(this,[].slice.call(arguments,0))}var c=i.prototype;return b.mixin(a.prototype,i.prototype,{open:function(){return!this._allDatasetsEmpty()&&this._show(),c.open.apply(this,[].slice.call(arguments,0))},close:function(){return this._hide(),c.close.apply(this,[].slice.call(arguments,0))},_onRendered:function(){return this._allDatasetsEmpty()?this._hide():this.isOpen()&&this._show(),c._onRendered.apply(this,[].slice.call(arguments,0))},_onCleared:function(){return this._allDatasetsEmpty()?this._hide():this.isOpen()&&this._show(),c._onCleared.apply(this,[].slice.call(arguments,0))},setLanguageDirection:function(a){return this.$node.css("ltr"===a?this.css.ltr:this.css.rtl),c.setLanguageDirection.apply(this,[].slice.call(arguments,0))},_hide:function(){this.$node.hide()},_show:function(){this.$node.css("display","block")}}),a}(),k=function(){"use strict";function c(c,e){var f,g,h,i,j,k,l,m,n,o,p;c=c||{},c.input||a.error("missing input"),c.menu||a.error("missing menu"),c.eventBus||a.error("missing event bus"),e.mixin(this),this.eventBus=c.eventBus,this.minLength=b.isNumber(c.minLength)?c.minLength:1,this.input=c.input,this.menu=c.menu,this.enabled=!0,this.active=!1,this.input.hasFocus()&&this.activate(),this.dir=this.input.getLangDir(),this._hacks(),this.menu.bind().onSync("selectableClicked",this._onSelectableClicked,this).onSync("asyncRequested",this._onAsyncRequested,this).onSync("asyncCanceled",this._onAsyncCanceled,this).onSync("asyncReceived",this._onAsyncReceived,this).onSync("datasetRendered",this._onDatasetRendered,this).onSync("datasetCleared",this._onDatasetCleared,this),f=d(this,"activate","open","_onFocused"),g=d(this,"deactivate","_onBlurred"),h=d(this,"isActive","isOpen","_onEnterKeyed"),i=d(this,"isActive","isOpen","_onTabKeyed"),j=d(this,"isActive","_onEscKeyed"),k=d(this,"isActive","open","_onUpKeyed"),l=d(this,"isActive","open","_onDownKeyed"),m=d(this,"isActive","isOpen","_onLeftKeyed"),n=d(this,"isActive","isOpen","_onRightKeyed"),o=d(this,"_openIfActive","_onQueryChanged"),p=d(this,"_openIfActive","_onWhitespaceChanged"),this.input.bind().onSync("focused",f,this).onSync("blurred",g,this).onSync("enterKeyed",h,this).onSync("tabKeyed",i,this).onSync("escKeyed",j,this).onSync("upKeyed",k,this).onSync("downKeyed",l,this).onSync("leftKeyed",m,this).onSync("rightKeyed",n,this).onSync("queryChanged",o,this).onSync("whitespaceChanged",p,this).onSync("langDirChanged",this._onLangDirChanged,this)}function d(a){var c=[].slice.call(arguments,1);return function(){var d=[].slice.call(arguments);b.each(c,function(b){return a[b].apply(a,d)})}}return b.mixin(c.prototype,{_hacks:function(){var c,d;c=this.input.$input||a("
"),d=this.menu.$node||a("
"),c.on("blur.tt",function(a){var e,f,g;
e=document.activeElement,f=d.is(e),g=d.has(e).length>0,b.isMsie()&&(f||g)&&(a.preventDefault(),a.stopImmediatePropagation(),b.defer(function(){c.focus()}))}),d.on("mousedown.tt",function(a){a.preventDefault()})},_onSelectableClicked:function(a,b){this.select(b)},_onDatasetCleared:function(){this._updateHint()},_onDatasetRendered:function(a,b,c,d){this._updateHint(),this.eventBus.trigger("render",c,d,b)},_onAsyncRequested:function(a,b,c){this.eventBus.trigger("asyncrequest",c,b)},_onAsyncCanceled:function(a,b,c){this.eventBus.trigger("asynccancel",c,b)},_onAsyncReceived:function(a,b,c){this.eventBus.trigger("asyncreceive",c,b)},_onFocused:function(){this._minLengthMet()&&this.menu.update(this.input.getQuery())},_onBlurred:function(){this.input.hasQueryChangedSinceLastFocus()&&this.eventBus.trigger("change",this.input.getQuery())},_onEnterKeyed:function(a,b){var c;(c=this.menu.getActiveSelectable())&&this.select(c)&&b.preventDefault()},_onTabKeyed:function(a,b){var c;(c=this.menu.getActiveSelectable())?this.select(c)&&b.preventDefault():(c=this.menu.getTopSelectable())&&this.autocomplete(c)&&b.preventDefault()},_onEscKeyed:function(){this.close()},_onUpKeyed:function(){this.moveCursor(-1)},_onDownKeyed:function(){this.moveCursor(1)},_onLeftKeyed:function(){"rtl"===this.dir&&this.input.isCursorAtEnd()&&this.autocomplete(this.menu.getTopSelectable())},_onRightKeyed:function(){"ltr"===this.dir&&this.input.isCursorAtEnd()&&this.autocomplete(this.menu.getTopSelectable())},_onQueryChanged:function(a,b){this._minLengthMet(b)?this.menu.update(b):this.menu.empty()},_onWhitespaceChanged:function(){this._updateHint()},_onLangDirChanged:function(a,b){this.dir!==b&&(this.dir=b,this.menu.setLanguageDirection(b))},_openIfActive:function(){this.isActive()&&this.open()},_minLengthMet:function(a){return a=b.isString(a)?a:this.input.getQuery()||"",a.length>=this.minLength},_updateHint:function(){var a,c,d,e,f,h,i;a=this.menu.getTopSelectable(),c=this.menu.getSelectableData(a),d=this.input.getInputValue(),!c||b.isBlankString(d)||this.input.hasOverflow()?this.input.clearHint():(e=g.normalizeQuery(d),f=b.escapeRegExChars(e),h=new RegExp("^(?:"+f+")(.+$)","i"),i=h.exec(c.val),i&&this.input.setHint(d+i[1]))},isEnabled:function(){return this.enabled},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},isActive:function(){return this.active},activate:function(){return this.isActive()?!0:!this.isEnabled()||this.eventBus.before("active")?!1:(this.active=!0,this.eventBus.trigger("active"),!0)},deactivate:function(){return this.isActive()?this.eventBus.before("idle")?!1:(this.active=!1,this.close(),this.eventBus.trigger("idle"),!0):!0},isOpen:function(){return this.menu.isOpen()},open:function(){return this.isOpen()||this.eventBus.before("open")||(this.menu.open(),this._updateHint(),this.eventBus.trigger("open")),this.isOpen()},close:function(){return this.isOpen()&&!this.eventBus.before("close")&&(this.menu.close(),this.input.clearHint(),this.input.resetInputValue(),this.eventBus.trigger("close")),!this.isOpen()},setVal:function(a){this.input.setQuery(b.toStr(a))},getVal:function(){return this.input.getQuery()},select:function(a){var b=this.menu.getSelectableData(a);return b&&!this.eventBus.before("select",b.obj)?(this.input.setQuery(b.val,!0),this.eventBus.trigger("select",b.obj),this.close(),!0):!1},autocomplete:function(a){var b,c,d;return b=this.input.getQuery(),c=this.menu.getSelectableData(a),d=c&&b!==c.val,d&&!this.eventBus.before("autocomplete",c.obj)?(this.input.setQuery(c.val),this.eventBus.trigger("autocomplete",c.obj),!0):!1},moveCursor:function(a){var b,c,d,e,f;return b=this.input.getQuery(),c=this.menu.selectableRelativeToCursor(a),d=this.menu.getSelectableData(c),e=d?d.obj:null,f=this._minLengthMet()&&this.menu.update(b),f||this.eventBus.before("cursorchange",e)?!1:(this.menu.setCursor(c),d?this.input.setInputValue(d.val):(this.input.resetInputValue(),this._updateHint()),this.eventBus.trigger("cursorchange",e),!0)},destroy:function(){this.input.destroy(),this.menu.destroy()}}),c}();!function(){"use strict";function e(b,c){b.each(function(){var b,d=a(this);(b=d.data(p.typeahead))&&c(b,d)})}function f(a,b){return a.clone().addClass(b.classes.hint).removeData().css(b.css.hint).css(l(a)).prop("readonly",!0).removeAttr("id name placeholder required").attr({autocomplete:"off",spellcheck:"false",tabindex:-1})}function h(a,b){a.data(p.attrs,{dir:a.attr("dir"),autocomplete:a.attr("autocomplete"),spellcheck:a.attr("spellcheck"),style:a.attr("style")}),a.addClass(b.classes.input).attr({autocomplete:"off",spellcheck:!1});try{!a.attr("dir")&&a.attr("dir","auto")}catch(c){}return a}function l(a){return{backgroundAttachment:a.css("background-attachment"),backgroundClip:a.css("background-clip"),backgroundColor:a.css("background-color"),backgroundImage:a.css("background-image"),backgroundOrigin:a.css("background-origin"),backgroundPosition:a.css("background-position"),backgroundRepeat:a.css("background-repeat"),backgroundSize:a.css("background-size")}}function m(a){var c,d;c=a.data(p.www),d=a.parent().filter(c.selectors.wrapper),b.each(a.data(p.attrs),function(c,d){b.isUndefined(c)?a.removeAttr(d):a.attr(d,c)}),a.removeData(p.typeahead).removeData(p.www).removeData(p.attr).removeClass(c.classes.input),d.length&&(a.detach().insertAfter(d),d.remove())}function n(c){var d,e;return d=b.isJQuery(c)||b.isElement(c),e=d?a(c).first():[],e.length?e:null}var o,p,q;o=a.fn.typeahead,p={www:"tt-www",attrs:"tt-attrs",typeahead:"tt-typeahead"},q={initialize:function(e,l){function m(){var c,m,q,r,s,t,u,v,w,x,y;b.each(l,function(a){a.highlight=!!e.highlight}),c=a(this),m=a(o.html.wrapper),q=n(e.hint),r=n(e.menu),s=e.hint!==!1&&!q,t=e.menu!==!1&&!r,s&&(q=f(c,o)),t&&(r=a(o.html.menu).css(o.css.menu)),q&&q.val(""),c=h(c,o),(s||t)&&(m.css(o.css.wrapper),c.css(s?o.css.input:o.css.inputWithNoHint),c.wrap(m).parent().prepend(s?q:null).append(t?r:null)),y=t?j:i,u=new d({el:c}),v=new g({hint:q,input:c},o),w=new y({node:r,datasets:l},o),x=new k({input:v,menu:w,eventBus:u,minLength:e.minLength},o),c.data(p.www,o),c.data(p.typeahead,x)}var o;return l=b.isArray(l)?l:[].slice.call(arguments,1),e=e||{},o=c(e.classNames),this.each(m)},isEnabled:function(){var a;return e(this.first(),function(b){a=b.isEnabled()}),a},enable:function(){return e(this,function(a){a.enable()}),this},disable:function(){return e(this,function(a){a.disable()}),this},isActive:function(){var a;return e(this.first(),function(b){a=b.isActive()}),a},activate:function(){return e(this,function(a){a.activate()}),this},deactivate:function(){return e(this,function(a){a.deactivate()}),this},isOpen:function(){var a;return e(this.first(),function(b){a=b.isOpen()}),a},open:function(){return e(this,function(a){a.open()}),this},close:function(){return e(this,function(a){a.close()}),this},select:function(b){var c=!1,d=a(b);return e(this.first(),function(a){c=a.select(d)}),c},autocomplete:function(b){var c=!1,d=a(b);return e(this.first(),function(a){c=a.autocomplete(d)}),c},moveCursor:function(a){var b=!1;return e(this.first(),function(c){b=c.moveCursor(a)}),b},val:function(a){var b;return arguments.length?(e(this,function(b){b.setVal(a)}),this):(e(this.first(),function(a){b=a.getVal()}),b)},destroy:function(){return e(this,function(a,b){m(b),a.destroy()}),this}},a.fn.typeahead=function(a){return q[a]?q[a].apply(this,[].slice.call(arguments,1)):q.initialize.apply(this,arguments)},a.fn.typeahead.noConflict=function(){return a.fn.typeahead=o,this}}()});
;// TODO Editor: neuere wow.js Version und Lizenzmodell prüfen
/*! WOW - v1.1.2 - 2015-04-07
* Copyright (c) 2015 Matthieu Aussaguel; Licensed MIT */(function(){var a,b,c,d,e,f=function(a,b){return function(){return a.apply(b,arguments)}},g=[].indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(b in this&&this[b]===a)return b;return-1};b=function(){function a(){}return a.prototype.extend=function(a,b){var c,d;for(c in b)d=b[c],null==a[c]&&(a[c]=d);return a},a.prototype.isMobile=function(a){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)},a.prototype.createEvent=function(a,b,c,d){var e;return null==b&&(b=!1),null==c&&(c=!1),null==d&&(d=null),null!=document.createEvent?(e=document.createEvent("CustomEvent"),e.initCustomEvent(a,b,c,d)):null!=document.createEventObject?(e=document.createEventObject(),e.eventType=a):e.eventName=a,e},a.prototype.emitEvent=function(a,b){return null!=a.dispatchEvent?a.dispatchEvent(b):b in(null!=a)?a[b]():"on"+b in(null!=a)?a["on"+b]():void 0},a.prototype.addEvent=function(a,b,c){return null!=a.addEventListener?a.addEventListener(b,c,!1):null!=a.attachEvent?a.attachEvent("on"+b,c):a[b]=c},a.prototype.removeEvent=function(a,b,c){return null!=a.removeEventListener?a.removeEventListener(b,c,!1):null!=a.detachEvent?a.detachEvent("on"+b,c):delete a[b]},a.prototype.innerHeight=function(){return"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight},a}(),c=this.WeakMap||this.MozWeakMap||(c=function(){function a(){this.keys=[],this.values=[]}return a.prototype.get=function(a){var b,c,d,e,f;for(f=this.keys,b=d=0,e=f.length;e>d;b=++d)if(c=f[b],c===a)return this.values[b]},a.prototype.set=function(a,b){var c,d,e,f,g;for(g=this.keys,c=e=0,f=g.length;f>e;c=++e)if(d=g[c],d===a)return void(this.values[c]=b);return this.keys.push(a),this.values.push(b)},a}()),a=this.MutationObserver||this.WebkitMutationObserver||this.MozMutationObserver||(a=function(){function a(){"undefined"!=typeof console&&null!==console&&console.warn("MutationObserver is not supported by your browser."),"undefined"!=typeof console&&null!==console&&console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.")}return a.notSupported=!0,a.prototype.observe=function(){},a}()),d=this.getComputedStyle||function(a){return this.getPropertyValue=function(b){var c;return"float"===b&&(b="styleFloat"),e.test(b)&&b.replace(e,function(a,b){return b.toUpperCase()}),(null!=(c=a.currentStyle)?c[b]:void 0)||null},this},e=/(\-([a-z]){1})/g,this.WOW=function(){function e(a){null==a&&(a={}),this.scrollCallback=f(this.scrollCallback,this),this.scrollHandler=f(this.scrollHandler,this),this.resetAnimation=f(this.resetAnimation,this),this.start=f(this.start,this),this.scrolled=!0,this.config=this.util().extend(a,this.defaults),this.animationNameCache=new c,this.wowEvent=this.util().createEvent(this.config.boxClass)}return e.prototype.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0,callback:null},e.prototype.init=function(){var a;return this.element=window.document.documentElement,"interactive"===(a=document.readyState)||"complete"===a?this.start():this.util().addEvent(document,"DOMContentLoaded",this.start),this.finished=[]},e.prototype.start=function(){var b,c,d,e;if(this.stopped=!1,this.boxes=function(){var a,c,d,e;for(d=this.element.querySelectorAll("."+this.config.boxClass),e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.all=function(){var a,c,d,e;for(d=this.boxes,e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.boxes.length)if(this.disabled())this.resetStyle();else for(e=this.boxes,c=0,d=e.length;d>c;c++)b=e[c],this.applyStyle(b,!0);return this.disabled()||(this.util().addEvent(window,"scroll",this.scrollHandler),this.util().addEvent(window,"resize",this.scrollHandler),this.interval=setInterval(this.scrollCallback,50)),this.config.live?new a(function(a){return function(b){var c,d,e,f,g;for(g=[],c=0,d=b.length;d>c;c++)f=b[c],g.push(function(){var a,b,c,d;for(c=f.addedNodes||[],d=[],a=0,b=c.length;b>a;a++)e=c[a],d.push(this.doSync(e));return d}.call(a));return g}}(this)).observe(document.body,{childList:!0,subtree:!0}):void 0},e.prototype.stop=function(){return this.stopped=!0,this.util().removeEvent(window,"scroll",this.scrollHandler),this.util().removeEvent(window,"resize",this.scrollHandler),null!=this.interval?clearInterval(this.interval):void 0},e.prototype.sync=function(){return a.notSupported?this.doSync(this.element):void 0},e.prototype.doSync=function(a){var b,c,d,e,f;if(null==a&&(a=this.element),1===a.nodeType){for(a=a.parentNode||a,e=a.querySelectorAll("."+this.config.boxClass),f=[],c=0,d=e.length;d>c;c++)b=e[c],g.call(this.all,b)<0?(this.boxes.push(b),this.all.push(b),this.stopped||this.disabled()?this.resetStyle():this.applyStyle(b,!0),f.push(this.scrolled=!0)):f.push(void 0);return f}},e.prototype.show=function(a){return this.applyStyle(a),a.className=a.className+" "+this.config.animateClass,null!=this.config.callback&&this.config.callback(a),this.util().emitEvent(a,this.wowEvent),this.util().addEvent(a,"animationend",this.resetAnimation),this.util().addEvent(a,"oanimationend",this.resetAnimation),this.util().addEvent(a,"webkitAnimationEnd",this.resetAnimation),this.util().addEvent(a,"MSAnimationEnd",this.resetAnimation),a},e.prototype.applyStyle=function(a,b){var c,d,e;return d=a.getAttribute("data-wow-duration"),c=a.getAttribute("data-wow-delay"),e=a.getAttribute("data-wow-iteration"),this.animate(function(f){return function(){return f.customStyle(a,b,d,c,e)}}(this))},e.prototype.animate=function(){return"requestAnimationFrame"in window?function(a){return window.requestAnimationFrame(a)}:function(a){return a()}}(),e.prototype.resetStyle=function(){var a,b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],e.push(a.style.visibility="visible");return e},e.prototype.resetAnimation=function(a){var b;return a.type.toLowerCase().indexOf("animationend")>=0?(b=a.target||a.srcElement,b.className=b.className.replace(this.config.animateClass,"").trim()):void 0},e.prototype.customStyle=function(a,b,c,d,e){return b&&this.cacheAnimationName(a),a.style.visibility=b?"hidden":"visible",c&&this.vendorSet(a.style,{animationDuration:c}),d&&this.vendorSet(a.style,{animationDelay:d}),e&&this.vendorSet(a.style,{animationIterationCount:e}),this.vendorSet(a.style,{animationName:b?"none":this.cachedAnimationName(a)}),a},e.prototype.vendors=["moz","webkit"],e.prototype.vendorSet=function(a,b){var c,d,e,f;d=[];for(c in b)e=b[c],a[""+c]=e,d.push(function(){var b,d,g,h;for(g=this.vendors,h=[],b=0,d=g.length;d>b;b++)f=g[b],h.push(a[""+f+c.charAt(0).toUpperCase()+c.substr(1)]=e);return h}.call(this));return d},e.prototype.vendorCSS=function(a,b){var c,e,f,g,h,i;for(h=d(a),g=h.getPropertyCSSValue(b),f=this.vendors,c=0,e=f.length;e>c;c++)i=f[c],g=g||h.getPropertyCSSValue("-"+i+"-"+b);return g},e.prototype.animationName=function(a){var b;try{b=this.vendorCSS(a,"animation-name").cssText}catch(c){b=d(a).getPropertyValue("animation-name")}return"none"===b?"":b},e.prototype.cacheAnimationName=function(a){return this.animationNameCache.set(a,this.animationName(a))},e.prototype.cachedAnimationName=function(a){return this.animationNameCache.get(a)},e.prototype.scrollHandler=function(){return this.scrolled=!0},e.prototype.scrollCallback=function(){var a;return!this.scrolled||(this.scrolled=!1,this.boxes=function(){var b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],a&&(this.isVisible(a)?this.show(a):e.push(a));return e}.call(this),this.boxes.length||this.config.live)?void 0:this.stop()},e.prototype.offsetTop=function(a){for(var b;void 0===a.offsetTop;)a=a.parentNode;for(b=a.offsetTop;a=a.offsetParent;)b+=a.offsetTop;return b},e.prototype.isVisible=function(a){var b,c,d,e,f;return c=a.getAttribute("data-wow-offset")||this.config.offset,f=window.pageYOffset,e=f+Math.min(this.element.clientHeight,this.util().innerHeight())-c,d=this.offsetTop(a),b=d+a.clientHeight,e>=d&&b>=f},e.prototype.util=function(){return null!=this._util?this._util:this._util=new b},e.prototype.disabled=function(){return!this.config.mobile&&this.util().isMobile(navigator.userAgent)},e}()}).call(this);
;/*!
* Colcade v0.2.0
* Lightweight masonry layout
* by David DeSandro
* MIT license
*/
(function(window,factory){if(typeof define=='function'&&define.amd){define(factory);}else if(typeof module=='object'&&module.exports){module.exports=factory();}else{window.Colcade=factory();}}(window,function factory(){function Colcade(element,options){element=getQueryElement(element);if(element&&element.colcadeGUID){var instance=instances[element.colcadeGUID];instance.option(options);return instance;}
this.element=element;this.options={};this.option(options);this.create();}
var proto=Colcade.prototype;proto.option=function(options){this.options=extend(this.options,options);};var GUID=0;var instances={};proto.create=function(){this.errorCheck();var guid=this.guid=++GUID;this.element.colcadeGUID=guid;instances[guid]=this;this.reload();this._windowResizeHandler=this.onWindowResize.bind(this);this._loadHandler=this.onLoad.bind(this);window.addEventListener('resize',this._windowResizeHandler);this.element.addEventListener('load',this._loadHandler,true);};proto.errorCheck=function(){var errors=[];if(!this.element){errors.push('Bad element: '+this.element);}
if(!this.options.columns){errors.push('columns option required: '+this.options.columns);}
if(!this.options.items){errors.push('items option required: '+this.options.items);}
if(errors.length){throw new Error('[Colcade error] '+errors.join('. '));}};proto.reload=function(){this.updateColumns();this.updateItems();this.layout();};proto.updateColumns=function(){this.columns=querySelect(this.options.columns,this.element);};proto.updateItems=function(){this.items=querySelect(this.options.items,this.element);};proto.getActiveColumns=function(){return this.columns.filter(function(column){var style=getComputedStyle(column);return style.display!='none';});};proto.layout=function(){this.activeColumns=this.getActiveColumns();this._layout();};proto._layout=function(){this.columnHeights=this.activeColumns.map(function(){return 0;});this.layoutItems(this.items);};proto.layoutItems=function(items){items.forEach(this.layoutItem,this);};proto.layoutItem=function(item){var minHeight=Math.min.apply(Math,this.columnHeights);var index=this.columnHeights.indexOf(minHeight);this.activeColumns[index].appendChild(item);this.columnHeights[index]+=item.offsetHeight||1;};proto.append=function(elems){var items=this.getQueryItems(elems);this.items=this.items.concat(items);this.layoutItems(items);};proto.prepend=function(elems){var items=this.getQueryItems(elems);this.items=items.concat(this.items);this._layout();};proto.getQueryItems=function(elems){elems=makeArray(elems);var fragment=document.createDocumentFragment();elems.forEach(function(elem){fragment.appendChild(elem);});return querySelect(this.options.items,fragment);};proto.measureColumnHeight=function(elem){var boundingRect=this.element.getBoundingClientRect();this.activeColumns.forEach(function(column,i){if(!elem||column.contains(elem)){var lastChildRect=column.lastElementChild.getBoundingClientRect();this.columnHeights[i]=lastChildRect.bottom-boundingRect.top;}},this);};proto.onWindowResize=function(){clearTimeout(this.resizeTimeout);this.resizeTimeout=setTimeout(function(){this.onDebouncedResize();}.bind(this),100);};proto.onDebouncedResize=function(){var activeColumns=this.getActiveColumns();var isSameLength=activeColumns.length==this.activeColumns.length;var isSameColumns=true;this.activeColumns.forEach(function(column,i){isSameColumns=isSameColumns&&column==activeColumns[i];});if(isSameLength&&isSameColumns){return;}
this.activeColumns=activeColumns;this._layout();};proto.onLoad=function(event){this.measureColumnHeight(event.target);};proto.destroy=function(){this.items.forEach(function(item){this.element.appendChild(item);},this);window.removeEventListener('resize',this._windowResizeHandler);this.element.removeEventListener('load',this._loadHandler,true);delete this.element.colcadeGUID;delete instances[this.guid];};docReady(function(){var dataElems=querySelect('[data-colcade]');dataElems.forEach(htmlInit);});function htmlInit(elem){var attr=elem.getAttribute('data-colcade');var attrParts=attr.split(',');var options={};attrParts.forEach(function(part){var pair=part.split(':');var key=pair[0].trim();var value=pair[1].trim();options[key]=value;});new Colcade(elem,options);}
Colcade.data=function(elem){elem=getQueryElement(elem);var id=elem&&elem.colcadeGUID;return id&&instances[id];};Colcade.makeJQueryPlugin=function($){$=$||window.jQuery;if(!$){return;}
$.fn.colcade=function(arg0){if(typeof arg0=='string'){var args=Array.prototype.slice.call(arguments,1);return methodCall(this,arg0,args);}
plainCall(this,arg0);return this;};function methodCall($elems,methodName,args){var returnValue;$elems.each(function(i,elem){var colcade=$.data(elem,'colcade');if(!colcade){return;}
var value=colcade[methodName].apply(colcade,args);returnValue=returnValue===undefined?value:returnValue;});return returnValue!==undefined?returnValue:$elems;}
function plainCall($elems,options){$elems.each(function(i,elem){var colcade=$.data(elem,'colcade');if(colcade){colcade.option(options);colcade.layout();}else{colcade=new Colcade(elem,options);$.data(elem,'colcade',colcade);}});}};Colcade.makeJQueryPlugin();function extend(a,b){for(var prop in b){a[prop]=b[prop];}
return a;}
function makeArray(obj){var ary=[];if(Array.isArray(obj)){ary=obj;}else if(obj&&typeof obj.length=='number'){for(var i=0;i1000){fileSize=Math.round(fileSize/1000);suffix='MB';}
fileSizeParts=fileSize.toString().split('.');fileSize=fileSizeParts[0];if(fileSizeParts.length>1){fileSize+='.'+fileSizeParts[1].substr(0,2);}
fileSize+=suffix;return fileSize;}
function getCategoryMenu(categoryId,success){var xx={};var io=$.evo.io();io.call('getCategoryMenu',[categoryId],xx,function(error,data){if(error){console.error(data);}else if(typeof success==='function'){success(xx.response);}});return true;}
function categoryMenu(rootcategory){if(typeof rootcategory==='undefined'){rootcategory=$('.sidebar-offcanvas .navbar-categories').html();}
$('.sidebar-offcanvas li a.nav-sub').on('click',function(e){var navbar=$('.sidebar-offcanvas .navbar-categories'),ref=$(this).data('ref');if(ref===0){$(navbar).html(rootcategory);categoryMenu(rootcategory);}
else{getCategoryMenu(ref,function(data){$(navbar).html(data);categoryMenu(rootcategory);});}
return false;});}
function compatibility(){var __enforceFocus=$.fn.modal.Constructor.prototype.enforceFocus;$.fn.modal.Constructor.prototype.enforceFocus=function(){if($('.modal-body .g-recaptcha').length===0){__enforceFocus.apply(this,arguments);}};}
function regionsToState(){$('.js-country-select').on('change',function(){var result={};var io=$.evo.io();var country=$(this).find(':selected').val();country=(country!==null&&country!==undefined)?country:'';var connection_id=$(this).attr('id').toString().replace("-country","");io.call('getRegionsByCountry',[country],result,function(error,data){if(error){console.error(data);}else{var state_id=connection_id+'-state';var state=$('#'+state_id);var state_data=state.data();if(typeof(result.response)==='undefined'||state.length===0){return;}
var title=state_data.defaultoption;var stateIsRequired=result.response.required;var data=result.response.states;var def=$('#'+state_id).val();if(typeof(data)!=='undefined'){if(data!==null&&data.length>0){if(stateIsRequired){var state=$('').attr({id:state_id,name:state.attr('name'),class:'custom-select required form-control js-state-select',required:'required'});}else{var state=$('').attr({id:state_id,name:state.attr('name'),class:'custom-select form-control js-state-select'});}
Object.keys(state_data).forEach(function(key,index){state.data(key,state_data[key]);});state.append('');$(data).each(function(idx,item){state.append($('').val(item.iso).html(item.name).attr('selected',item.iso==def||item.name==def?'selected':false));});$('#'+state_id).replaceWith(state);}else{if(stateIsRequired){var state=$('').attr({type:'text',id:state_id,name:state.attr('name'),class:'required form-control js-state-select',placeholder:title,required:'required'});}else{var state=$('').attr({type:'text',id:state_id,name:state.attr('name'),class:'form-control js-state-select',placeholder:title});}
Object.keys(state_data).forEach(function(key,index){state.data(key,state_data[key]);});$('#'+state_id).replaceWith(state);}
if(stateIsRequired){state.parent().find('.state-optional').addClass('d-none');}else{state.parent().find('.state-optional').removeClass('d-none');}}}});return false;}).trigger('change');}
function loadContent(url)
{$.evo.extended().loadContent(url,function(){$.evo.extended().register();if(typeof $.evo.article==='function'){$.evo.article().onLoad();$.evo.article().register();addValidationListener();}
let topbarHeight=$('#header-top-bar').outerHeight()||0,wrapperHeight=$('#jtl-nav-wrapper').outerHeight()||0,productListHeight=$('#product-list').offset().top||0,pageNavHeight=$('.productlist-page-nav').outerHeight()||0;$('html,body').animate({scrollTop:productListHeight-wrapperHeight-topbarHeight-pageNavHeight-20},100);});}
function sanitizeOutput(val){return val.replace(/\&/g,'&').replace(/\/g,'>').replace(/\"/g,'"').replace(/\'/g,''').replace(/\//g,'/');}
function addValidationListener(){var forms=$('form.jtl-validate'),inputs=$('form.jtl-validate input, form.jtl-validate textarea').not('[type="radio"],[type="checkbox"]'),selects=$('form.jtl-validate select'),checkables=$('form.jtl-validate input[type="radio"], form.jtl-validate input[type="checkbox"]'),$body=$('body');for(var i=0;i'+sanitizeOutput(event.target.validationMessage)+'
');if(!$body.data('doScrolling')){var $firstError=$(event.target).closest('.form-group.has-error');if($firstError.length>0){$body.data('doScrolling',true);var $nav=$('#jtl-nav-wrapper.sticky-top'),fixedOffset=$nav.length>0?$nav.outerHeight():0,vpHeight=$(window).height(),scrollTop=$(window).scrollTop();if($firstError.offset().top>(scrollTop+vpHeight)||$firstError.offset().top
'+sanitizeOutput(event.target.validationMessage)+'');}}
function captcha_filled(){$('.g-recaptcha').closest('.form-group').find('div.form-error-msg').remove();}
function isTouchCapable(){return'ontouchstart'in window||(window.DocumentTouch&&document instanceof window.DocumentTouch);}
function initWow()
{new WOW().init();}
$(document).ready(function(){$('.collapse-non-validate').on('hidden.bs.collapse',function(e){$(e.target).addClass('hidden').find('fieldset, .form-control').attr('disabled',true);e.stopPropagation();}).on('show.bs.collapse',function(e){$(e.target).removeClass('hidden').attr('disabled',false);e.stopPropagation();}).on('shown.bs.collapse',function(e){$(e.target).find('fieldset, .form-control').filter(function(i,e){return $(e).closest('.collapse-non-validate.collapse').hasClass('show');}).attr('disabled',false);e.stopPropagation();});$('.collapse-non-validate.collapse.show').removeClass('hidden').find('fieldset, .form-control').attr('disabled',false);$('.collapse-non-validate.collapse:not(.show)').addClass('hidden').find('fieldset, .form-control').attr('disabled',true);$('#complete-order-button').on('click',function(){var commentField=$('#comment'),commentFieldHidden=$('#comment-hidden');if(commentField&&commentFieldHidden){commentFieldHidden.val(commentField.val());}});$(document).on('click','.footnote-vat a, .versand, .popup',function(e){let url=e.currentTarget.href,classes=$(this).data('modal-classes')||'';url+=(url.indexOf('?')===-1)?'?isAjax=true':'&isAjax=true';eModal.ajax({size:'xl '+classes,url:url,title:typeof e.currentTarget.title!=='undefined'?e.currentTarget.title:'',keyboard:true,tabindex:-1,buttons:false});e.stopPropagation();return false;});$(document).on('click','.pagination-ajax a:not(.active), .js-pagination-ajax:not(.active)',function(e){var url=$(this).attr('href');history.pushState(null,null,url);loadContent(url);return e.preventDefault();});$('.dropdown .dropdown-menu.keepopen').on('click touchstart',function(e){e.stopPropagation();},{passive:true});if(typeof $.fn.jtl_search==='undefined'){var productSearch=new Bloodhound({datumTokenizer:Bloodhound.tokenizers.obj.whitespace('keyword'),queryTokenizer:Bloodhound.tokenizers.whitespace,remote:{url:$.evo.io().options.ioUrl+'?io={"name":"suggestions", "params":["%QUERY"]}',wildcard:'%QUERY'}});let $searchInput=$('input[name="qs"]');$searchInput.typeahead({highlight:true},{name:'product-search',display:'keyword',source:productSearch,templates:{suggestion:function(e){return e.suggestion;}}});$searchInput.on('keydown keyup blur',function(){if($(this).val().length===0){$(this).closest('form').find('.form-clear').addClass('d-none');}else{$(this).closest('form').find('.form-clear').removeClass('d-none');}});$('.search-wrapper .form-clear').on('click',function(){$searchInput.typeahead('val','');$(this).addClass('d-none');});}
var citySuggestion=new Bloodhound({datumTokenizer:Bloodhound.tokenizers.obj.whitespace('keyword'),queryTokenizer:Bloodhound.tokenizers.whitespace,remote:{url:$.evo.io().options.ioUrl+'?io={"name":"getCitiesByZip", "params":["%QUERY", "'+$(this).closest('fieldset').find('.country-input').val()+'", "'+$(this).closest('fieldset').find('.postcode_input').val()+'"]}',wildcard:'%QUERY'},dataType:"json"});$('.city_input').on('focusin',function(){citySuggestion.remote.url=$.evo.io().options.ioUrl+'?io={"name":"getCitiesByZip", "params":["%QUERY", "'+$(this).closest('fieldset').find('.country-input').val()+'", "'+$(this).closest('fieldset').find('.postcode_input').val()+'"]}';});$('.postcode_input').on('change',function(){citySuggestion.remote.url=$.evo.io().options.ioUrl+'?io={"name":"getCitiesByZip", "params":["%QUERY", "'+$(this).closest('fieldset').find('.country-input').val()+'", "'+$(this).val()+'"]}';});$('.country_input').on('change',function(){citySuggestion.remote.url=$.evo.io().options.ioUrl+'?io={"name":"getCitiesByZip", "params":["%QUERY", "'+$(this).val()+'", "'+$(this).closest('fieldset').find('.postcode_input').val()+'"]}';});$('.city_input').typeahead({hint:true,minLength:0},{limit:50,name:'cities',source:citySuggestion});$('.btn-offcanvas').on('click',function(){$('body').trigger('click');});if("ontouchstart"in document.documentElement){$('.variations .swatches .variation').on('mouseover',function(){$(this).trigger('click');});}
$('section.box-categories .nav-panel li a').on('click',function(e){if($(e.target).hasClass("nav-toggle")){$(e.delegateTarget).parent('li').find('> ul.nav').toggle();return false;}});$('section.box-linkgroup .nav-panel li a').on('click',function(e){if($(e.target).hasClass("nav-toggle")){$(e.delegateTarget).parent('li').find('> ul.nav').toggle();return false;}});var bannerLink=$('.banner > a:not(.empty-popover)');bannerLink.popover({html:true,placement:'bottom',trigger:'hover',container:'body',sanitize:false,template:'
',content:function(){return $(this).children('.area-desc').html()}});bannerLink.on('mouseenter',function(){$(this).animate({borderWidth:2,opacity:0.5},300);});bannerLink.on('mouseleave',function(){$(this).animate({borderWidth:0,opacity:1},300);});$('.banner').on('mouseenter',function(){$(this).children('a').animate({borderWidth:8,opacity:0},900,function(){$(this).css({opacity:1,borderWidth:0});});});$('.banner > a[href=""]').on('click',function(){return false;});$('.alert .close').on('click',function(){$(this).parent().fadeOut(1000);});$('.alert').each(function(){if($(this).data('fade-out')>0){$(this).fadeOut($(this).data('fade-out'));}});$('aside .box[class*=box-filter-]').last().addClass('mb-5');(function($,document,window,viewport){var $body=$('body');$(window).on('resize',viewport.changed(function(){$body.attr('data-viewport',viewport.current());}));$body.attr('data-viewport',viewport.current());$body.attr('data-touchcapable',isTouchCapable()?'true':'false');})(jQuery,document,window,ResponsiveBootstrapToolkit);$('.onchangeSubmit').on('change',function(){this.form.submit();});$('#mobile-search-dropdown').on('click',function(){setTimeout(function(){$('#search-header-desktop').focus();},100);});categoryMenu();regionsToState();compatibility();addValidationListener();initWow();setClickableRow();document.addEventListener('lazybeforesizes',function(e){var parent=e.target.parentNode;if(parent.nodeName=='PICTURE'){parent=parent.parentNode;}
e.detail.width=parent.offsetWidth||e.detail.width;});$('textarea.auto-expand').on('input click',function(event){autoExpand(event.target);});});function setClickableRow()
{$('.clickable-row').off().on('click',function(){window.location=$(this).data('href');});}
function isMobileByBodyClass(){return $('body').hasClass('is-mobile');}
function autoExpand(field)
{field.style.height='inherit';let computed=window.getComputedStyle(field),height=parseInt(computed.getPropertyValue('border-top-width'),10)
+parseInt(computed.getPropertyValue('padding-top'),10)
+field.scrollHeight
+parseInt(computed.getPropertyValue('padding-bottom'),10)
+parseInt(computed.getPropertyValue('border-bottom-width'),10);field.style.height=height+'px';}
;"use strict";!function(t){var i,n;i=function(){function i(i,n){var o;this.options=n,this.$element=t(i),this.didInit=!1,o=this,this.$element.on("click.slickLightbox",this.options.itemSelector,function(i){var n,e;if(i.preventDefault(),n=t(this),n.blur(),"function"!=typeof o.options.shouldOpen||o.options.shouldOpen(o,n,i))return e=o.$element.find(o.options.itemSelector),o.elementIsSlick()&&(e=o.filterOutSlickClones(e),n=o.handlePossibleCloneClick(n,e)),o.init(e.index(n))})}return i.prototype.init=function(t){return this.didInit=!0,this.detectIE(),this.createModal(),this.bindEvents(),this.initSlick(t),this.open()},i.prototype.createModalItems=function(){var i,n,o,e,s,l;return e=this.options.lazyPlaceholder||"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",o=function(t,i,n){return'
"},this.options.images?l=t.map(this.options.images,function(t){return function(i){return o(i,t.options.lazy)}}(this)):(i=this.filterOutSlickClones(this.$element.find(this.options.itemSelector)),s=i.length,n=function(t){return function(i,n){var e,l,r;return l={index:n,length:s},e=t.getElementCaption(i,l),r=t.getElementSrc(i),o(r,e,t.options.lazy)}}(this),l=t.map(i,n)),l},i.prototype.createModal=function(){var i,n;return n=this.createModalItems(),i='