/*! wow - v0.1.4 - 2014-02-12 * copyright (c) 2014 matthieu aussaguel; licensed mit */(function(){var a,b=[].slice,c=function(a,b){return function(){return a.apply(b,arguments)}};a=function(){var c,d,e,f,g,h,i,j,k;for(e=arguments[0],c=2<=arguments.length?b.call(arguments,1):[],g=e||{},i=0,j=c.length;j>i;i++){f=c[i],k=f||{};for(d in k)h=k[d],"object"==typeof g[d]?g[d]=a(g[d],h):g[d]||(g[d]=h)}return g},this.wow=function(){function b(b){null==b&&(b={}),this.scrollcallback=c(this.scrollcallback,this),this.scrollhandler=c(this.scrollhandler,this),this.start=c(this.start,this),this.config=a(b,this.defaults),this.scrolled=!0}return b.prototype.defaults={boxclass:"wow",animateclass:"animated",offset:0},b.prototype.init=function(){var a;return"interactive"===(a=document.readystate)||"complete"===a?this.start():document.addeventlistener("domcontentloaded",this.start)},b.prototype.start=function(){var a,b,c,d;if(this.element=window.document.documentelement,this.boxes=this.element.getelementsbyclassname(this.config.boxclass),this.boxes.length){for(d=this.boxes,b=0,c=d.length;c>b;b++)a=d[b],this.applystyle(a,!0);return window.addeventlistener("scroll",this.scrollhandler,!1),window.addeventlistener("resize",this.scrollhandler,!1),this.interval=setinterval(this.scrollcallback,50)}},b.prototype.stop=function(){return window.removeeventlistener("scroll",this.scrollhandler,!1),window.removeeventlistener("resize",this.scrollhandler,!1),null!=this.interval?clearinterval(this.interval):void 0},b.prototype.show=function(a){return this.applystyle(a),a.classname=""+a.classname+" "+this.config.animateclass},b.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"),a.setattribute("style",this.customstyle(b,d,c,e))},b.prototype.customstyle=function(a,b,c,d){var e;return e=a?"visibility: hidden; -webkit-animation-name: none; -moz-animation-name: none; animation-name: none;":"visibility: visible;",b&&(e+="-webkit-animation-duration: "+b+"; -moz-animation-duration: "+b+"; animation-duration: "+b+";"),c&&(e+="-webkit-animation-delay: "+c+"; -moz-animation-delay: "+c+"; animation-delay: "+c+";"),d&&(e+="-webkit-animation-iteration-count: "+d+"; -moz-animation-iteration-count: "+d+"; animation-iteration-count: "+d+";"),e},b.prototype.scrollhandler=function(){return this.scrolled=!0},b.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.stop():void 0},b.prototype.offsettop=function(a){var b;for(b=a.offsettop;a=a.offsetparent;)b+=a.offsettop;return b},b.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+this.element.clientheight-c,d=this.offsettop(a),b=d+a.clientheight,e>=d&&b>=f},b}()}).call(this);