/*! 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); /*! * baguettebox.js * @author feimosi * @version 1.8.2 * @url https://github.com/feimosi/baguettebox.js */ !function(t,e){"use strict";"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():t.baguettebox=e()}(this,function(){"use strict";function t(t,n){m.transforms=w(),m.svg=k(),i(),o(t),e(t,n)}function e(t,e){var n=document.queryselectorall(t),o={galleries:[],nodelist:n};u[t]=o,[].foreach.call(n,function(t){e&&e.filter&&(v=e.filter);var n=[];if(n="a"===t.tagname?[t]:t.getelementsbytagname("a"),n=[].filter.call(n,function(t){return v.test(t.href)}),0!==n.length){var i=[];[].foreach.call(n,function(t,n){var o=function(t){t.preventdefault?t.preventdefault():t.returnvalue=!1,u(i,e),c(n)},a={eventhandler:o,imageelement:t};e(t,"click",o),i.push(a)}),o.galleries.push(i)}})}function n(){for(var t in u)u.hasownproperty(t)&&o(t)}function o(t){if(u.hasownproperty(t)){var e=u[t].galleries;[].foreach.call(e,function(t){[].foreach.call(t,function(t){b(t.imageelement,"click",t.eventhandler)}),r===t&&(r=[])}),delete u[t]}}function i(){if(s=t("baguettebox-overlay"))return p=t("baguettebox-slider"),f=t("previous-button"),h=t("next-button"),void(l=t("close-button"));s=n("div"),s.setattribute("role","dialog"),s.id="baguettebox-overlay",document.getelementsbytagname("body")[0].appendchild(s),p=n("div"),p.id="baguettebox-slider",s.appendchild(p),f=n("button"),f.setattribute("type","button"),f.id="previous-button",f.setattribute("aria-label","previous"),f.innerhtml=m.svg?i:"<",s.appendchild(f),h=n("button"),h.setattribute("type","button"),h.id="next-button",h.setattribute("aria-label","next"),h.innerhtml=m.svg?y:">",s.appendchild(h),l=n("button"),l.setattribute("type","button"),l.id="close-button",l.setattribute("aria-label","close"),l.innerhtml=m.svg?q:"×",s.appendchild(l),f.classname=h.classname=l.classname="baguettebox-button",r()}function a(t){switch(t.keycode){case 37:v();break;case 39:h();break;case 27:m()}}function r(){e(s,"click",j),e(f,"click",k),e(h,"click",q),e(l,"click",z),e(s,"touchstart",$),e(s,"touchmove",_),e(s,"touchend",tt),e(document,"focus",et,!0)}function l(){b(s,"click",j),b(f,"click",k),b(h,"click",q),b(l,"click",z),b(s,"touchstart",$),b(s,"touchmove",_),b(s,"touchend",tt),b(document,"focus",et,!0)}function u(t,e){if(r!==t){for(r=t,s(e);p.firstchild;)p.removechild(p.firstchild);w.length=0;for(var n,o=[],i=[],a=0;a
',j.captions&&r){var s=n("figcaption");s.id="baguettebox-figcaption-"+t,s.innerhtml=r,u.appendchild(s)}n.appendchild(u);var c=n("img");c.onload=function(){var n=document.queryselector("#baguette-img-"+t+" .baguettebox-spinner");u.removechild(n),!j.async&&e&&e()},c.setattribute("src",l),c.alt=a?a.alt||"":"",j.titletag&&r&&(c.title=r),u.appendchild(c),j.async&&e&&e()}}function b(t){var e=t.href;if(t.dataset){var n=[];for(var o in t.dataset)"at-"!==o.substring(0,3)||isnan(o.substring(3))||(n[o.replace("at-","")]=t.dataset[o]);for(var i=object.keys(n).sort(function(t,e){return parseint(t,10)=1?(z--,y(),c(z),t=!0):j.animation&&(p.classname="bounce-from-left",settimeout(function(){p.classname=""},400),t=!1),j.onchange&&j.onchange(z,w.length),t}function y(){var t=100*-z+"%";"fadein"===j.animation?(p.style.opacity=0,settimeout(function(){m.transforms?p.style.transform=p.style.webkittransform="translate3d("+t+",0,0)":p.style.left=t,p.style.opacity=1},400)):m.transforms?p.style.transform=p.style.webkittransform="translate3d("+t+",0,0)":p.style.left=t}function w(){var t=n("div");return void 0!==t.style.perspective||void 0!==t.style.webkitperspective}function k(){var t=n("div");return t.innerhtml="","http://www.w3.org/2000/svg"===(t.firstchild&&t.firstchild.namespaceuri)}function x(t){t-z>=j.preload||p(t+1,function(){x(t+1)})}function c(t){z-t>=j.preload||p(t-1,function(){c(t-1)})}function e(t,e,n,o){t.addeventlistener?t.addeventlistener(e,n,o):t.attachevent("on"+e,function(t){t=t||window.event,t.target=t.target||t.srcelement,n(t)})}function b(t,e,n,o){t.removeeventlistener?t.removeeventlistener(e,n,o):t.detachevent("on"+e,n)}function t(t){return document.getelementbyid(t)}function n(t){return document.createelement(t)}function a(){l(),n(),b(document,"keydown",a),document.getelementsbytagname("body")[0].removechild(document.getelementbyid("baguettebox-overlay")),u={},r=[],z=0}var s,p,f,h,l,i='',y='',q='',j={},x={captions:!0,fullscreen:!1,noscrollbars:!1,titletag:!1,buttons:"auto",async:!1,preload:2,animation:"slidein",aftershow:null,afterhide:null,onchange:null,overlaybackgroundcolor:"rgba(0,0,0,.8)"},m={},r=[],z=0,d={},o=!1,v=/.+\.(gif|jpe?g|png|webp)/i,u={},w=[],g=null,j=function(t){t.target.id.indexof("baguette-img")!==-1&&m()},k=function(t){t.stoppropagation?t.stoppropagation():t.cancelbubble=!0,v()},q=function(t){t.stoppropagation?t.stoppropagation():t.cancelbubble=!0,h()},z=function(t){t.stoppropagation?t.stoppropagation():t.cancelbubble=!0,m()},$=function(t){d.count++,d.count>1&&(d.multitouch=!0),d.startx=t.changedtouches[0].pagex,d.starty=t.changedtouches[0].pagey},_=function(t){if(!o&&!d.multitouch){t.preventdefault?t.preventdefault():t.returnvalue=!1;var e=t.touches[0]||t.changedtouches[0];e.pagex-d.startx>40?(o=!0,v()):e.pagex-d.startx<-40?(o=!0,h()):d.starty-e.pagey>100&&m()}},tt=function(){d.count--,d.count<=0&&(d.multitouch=!1),o=!1},et=function(t){"block"===s.style.display&&s.contains&&!s.contains(t.target)&&(t.stoppropagation(),d())};return[].foreach||(array.prototype.foreach=function(t,e){for(var n=0;n