(function(){var b,N,c,i,e,B=function(b,N){return function(){return b.apply(N,arguments)}},d=[].indexOf||function(b){for(var N=0,c=this.length;N<c;N++){if(N in this&&this[N]===b)return N}return-1};N=function(){function b(){}b.prototype.extend=function(b,N){var c,i;for(c in N){i=N[c];if(b[c]==null){b[c]=i}}return b};b.prototype.isMobile=function(b){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(b)};b.prototype.createEvent=function(b,N,c,i){var e;if(N==null){N=false}if(c==null){c=false}if(i==null){i=null}if(document.createEvent!=null){e=document.createEvent("CustomEvent");e.initCustomEvent(b,N,c,i)}else if(document.createEventObject!=null){e=document.createEventObject();e.eventType=b}else{e.eventName=b}return e};b.prototype.emitEvent=function(b,N){if(b.dispatchEvent!=null){return b.dispatchEvent(N)}else if(N in(b!=null)){return b[N]()}else if("on"+N in(b!=null)){return b["on"+N]()}};b.prototype.addEvent=function(b,N,c){if(b.addEventListener!=null){return b.addEventListener(N,c,false)}else if(b.attachEvent!=null){return b.attachEvent("on"+N,c)}else{return b[N]=c}};b.prototype.removeEvent=function(b,N,c){if(b.removeEventListener!=null){return b.removeEventListener(N,c,false)}else if(b.detachEvent!=null){return b.detachEvent("on"+N,c)}else{return delete b[N]}};b.prototype.innerHeight=function(){if("innerHeight"in window){return window.innerHeight}else{return document.documentElement.clientHeight}};return b}();c=this.WeakMap||this.MozWeakMap||(c=function(){function b(){this.keys=[];this.values=[]}b.prototype.get=function(b){var N,c,i,e,B;B=this.keys;for(N=i=0,e=B.length;i<e;N=++i){c=B[N];if(c===b){return this.values[N]}}};b.prototype.set=function(b,N){var c,i,e,B,d;d=this.keys;for(c=e=0,B=d.length;e<B;c=++e){i=d[c];if(i===b){this.values[c]=N;return}}this.keys.push(b);return this.values.push(N)};return b}());b=this.MutationObserver||this.WebkitMutationObserver||this.MozMutationObserver||(b=function(){function b(){if(typeof console!=="undefined"&&console!==null){console.warn("MutationObserver is not supported by your browser.")}if(typeof console!=="undefined"&&console!==null){console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.")}}b.notSupported=true;b.prototype.observe=function(){};return b}());i=this.getComputedStyle||function(b,N){this.getPropertyValue=function(N){var c;if(N==="float"){N="styleFloat"}if(e.test(N)){N.replace(e,function(b,N){return N.toUpperCase()})}return((c=b.currentStyle)!=null?c[N]:void 0)||null};return this};e=/(\-([a-z]){1})/g;this.WOW=function(){e.prototype.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:true,live:true,callback:null,scrollContainer:null};function e(b){if(b==null){b={}}this.scrollCallback=B(this.scrollCallback,this);this.scrollHandler=B(this.scrollHandler,this);this.resetAnimation=B(this.resetAnimation,this);this.start=B(this.start,this);this.scrolled=true;this.config=this.util().extend(b,this.defaults);if(b.scrollContainer!=null){this.config.scrollContainer=document.querySelector(b.scrollContainer)}this.animationNameCache=new c;this.wowEvent=this.util().createEvent(this.config.boxClass)}e.prototype.init=function(){var b;this.element=window.document.documentElement;if((b=document.readyState)==="interactive"||b==="complete"){this.start()}else{this.util().addEvent(document,"DOMContentLoaded",this.start)}return this.finished=[]};e.prototype.start=function(){var N,c,i,e;this.stopped=false;this.boxes=function(){var b,c,i,e;i=this.element.querySelectorAll("."+this.config.boxClass);e=[];for(b=0,c=i.length;b<c;b++){N=i[b];e.push(N)}return e}.call(this);this.all=function(){var b,c,i,e;i=this.boxes;e=[];for(b=0,c=i.length;b<c;b++){N=i[b];e.push(N)}return e}.call(this);if(this.boxes.length){if(this.disabled()){this.resetStyle()}else{e=this.boxes;for(c=0,i=e.length;c<i;c++){N=e[c];this.applyStyle(N,true)}}}if(!this.disabled()){this.util().addEvent(this.config.scrollContainer||window,"scroll",this.scrollHandler);this.util().addEvent(window,"resize",this.scrollHandler);this.interval=setInterval(this.scrollCallback,50)}if(this.config.live){return new b(function(b){return function(N){var c,i,e,B,d;d=[];for(c=0,i=N.length;c<i;c++){B=N[c];d.push(function(){var b,N,c,i;c=B.addedNodes||[];i=[];for(b=0,N=c.length;b<N;b++){e=c[b];i.push(this.doSync(e))}return i}.call(b))}return d}}(this)).observe(document.body,{childList:true,subtree:true})}};e.prototype.stop=function(){this.stopped=true;this.util().removeEvent(this.config.scrollContainer||window,"scroll",this.scrollHandler);this.util().removeEvent(window,"resize",this.scrollHandler);if(this.interval!=null){return clearInterval(this.interval)}};e.prototype.sync=function(N){if(b.notSupported){return this.doSync(this.element)}};e.prototype.doSync=function(b){var N,c,i,e,B;if(b==null){b=this.element}if(b.nodeType!==1){return}b=b.parentNode||b;e=b.querySelectorAll("."+this.config.boxClass);B=[];for(c=0,i=e.length;c<i;c++){N=e[c];if(d.call(this.all,N)<0){this.boxes.push(N);this.all.push(N);if(this.stopped||this.disabled()){this.resetStyle()}else{this.applyStyle(N,true)}B.push(this.scrolled=true)}else{B.push(void 0)}}return B};e.prototype.show=function(b){this.applyStyle(b);b.className=b.className+" "+this.config.animateClass;if(this.config.callback!=null){this.config.callback(b)}this.util().emitEvent(b,this.wowEvent);this.util().addEvent(b,"animationend",this.resetAnimation);this.util().addEvent(b,"oanimationend",this.resetAnimation);this.util().addEvent(b,"webkitAnimationEnd",this.resetAnimation);this.util().addEvent(b,"MSAnimationEnd",this.resetAnimation);return b};e.prototype.applyStyle=function(b,N){var c,i,e;i=b.getAttribute("data-wow-duration");c=b.getAttribute("data-wow-delay");e=b.getAttribute("data-wow-iteration");return this.animate(function(B){return function(){return B.customStyle(b,N,i,c,e)}}(this))};e.prototype.animate=function(){if("requestAnimationFrame"in window){return function(b){return window.requestAnimationFrame(b)}}else{return function(b){return b()}}}();e.prototype.resetStyle=function(){var b,N,c,i,e;i=this.boxes;e=[];for(N=0,c=i.length;N<c;N++){b=i[N];e.push(b.style.visibility="visible")}return e};e.prototype.resetAnimation=function(b){var N;if(b.type.toLowerCase().indexOf("animationend")>=0){N=b.target||b.srcElement;return N.className=N.className.replace(this.config.animateClass,"").trim()}};e.prototype.customStyle=function(b,N,c,i,e){if(N){this.cacheAnimationName(b)}b.style.visibility=N?"hidden":"visible";if(c){this.vendorSet(b.style,{animationDuration:c})}if(i){this.vendorSet(b.style,{animationDelay:i})}if(e){this.vendorSet(b.style,{animationIterationCount:e})}this.vendorSet(b.style,{animationName:N?"none":this.cachedAnimationName(b)});return b};e.prototype.vendors=["moz","webkit"];e.prototype.vendorSet=function(b,N){var c,i,e,B;i=[];for(c in N){e=N[c];b[""+c]=e;i.push(function(){var N,i,d,V;d=this.vendors;V=[];for(N=0,i=d.length;N<i;N++){B=d[N];V.push(b[""+B+c.charAt(0).toUpperCase()+c.substr(1)]=e)}return V}.call(this))}return i};e.prototype.vendorCSS=function(b,N){var c,e,B,d,V,cj;V=i(b);d=V.getPropertyCSSValue(N);B=this.vendors;for(c=0,e=B.length;c<e;c++){cj=B[c];d=d||V.getPropertyCSSValue("-"+cj+"-"+N)}return d};e.prototype.animationName=function(b){var N,c;try{N=this.vendorCSS(b,"animation-name").cssText}catch(c){N=i(b).getPropertyValue("animation-name")}if(N==="none"){return""}else{return N}};e.prototype.cacheAnimationName=function(b){return this.animationNameCache.set(b,this.animationName(b))};e.prototype.cachedAnimationName=function(b){return this.animationNameCache.get(b)};e.prototype.scrollHandler=function(){return this.scrolled=true};e.prototype.scrollCallback=function(){var b;if(this.scrolled){this.scrolled=false;this.boxes=function(){var N,c,i,e;i=this.boxes;e=[];for(N=0,c=i.length;N<c;N++){b=i[N];if(!b){continue}if(this.isVisible(b)){this.show(b);continue}e.push(b)}return e}.call(this);if(!(this.boxes.length||this.config.live)){return this.stop()}}};e.prototype.offsetTop=function(b){var N;while(b.offsetTop===void 0){b=b.parentNode}N=b.offsetTop;while(b=b.offsetParent){N+=b.offsetTop}return N};e.prototype.isVisible=function(b){var N,c,i,e,B;c=b.getAttribute("data-wow-offset")||this.config.offset;B=this.config.scrollContainer&&this.config.scrollContainer.scrollTop||window.pageYOffset;e=B+Math.min(this.element.clientHeight,this.util().innerHeight())-c;i=this.offsetTop(b);N=i+b.clientHeight;return i<=e&&N>=B};e.prototype.util=function(){return this._util!=null?this._util:this._util=new N};e.prototype.disabled=function(){return!this.config.mobile&&this.util().isMobile(navigator.userAgent)};return e}()}).call(this);if(!/msie [6|7|8|9]/i.test(navigator.userAgent)){var wow=new WOW({boxClass:"wow",animateClass:"animated",offset:0,mobile:true,live:true});wow.init()}