text: /*!
  * Velocity.js: Accelerated JavaScript animation.
  * @version 0.9.0
  * @docs http://velocityjs.org
  * @license Copyright 2014 Julian Shapiro. MIT License: http://en.wikipedia.org/wiki/MIT_License
  */
  (function(p,g,n,e){var f="velocity",a=400,r="swing";var h=(function(){if(n.documentMode){return n.documentMode}else{for(var x=7;x>4;x--){var y=n.createElement("div");y.innerHTML="<!--[if IE "+x+"]><span></span><![endif]-->";if(y.getElementsByTagName("span").length){y=null;return x}}}return e})();var o=(function(){var x=0;return g.webkitRequestAnimationFrame||g.mozRequestAnimationFrame||function(A){var y=(new Date()).getTime(),z;z=Math.max(0,16-(y-x));x=y+z;return setTimeout(function(){A(y+z)},z)}})();var q=g.requestAnimationFrame||o;function w(B){var y=-1,z=B?B.length:0,x=[];while(++y<z){var A=B[y];if(A){x.push(A)}}return x}var i={isString:function(x){return(typeof x==="string")},isArray:Array.isArray||function(x){return Object.prototype.toString.call(x)==="[object Array]"},isFunction:function(x){return Object.prototype.toString.call(x)==="[object Function]"},isNode:function(x){return x&&x.nodeType},isNodeList:function(x){return typeof x==="object"&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(x))&&x.length!==e&&(x.length===0||(typeof x[0]==="object"&&x[0].nodeType>0))},isWrapped:function(x){return x&&(x.jquery||(g.Zepto&&g.Zepto.zepto.isZ(x)))},isSVG:function(x){return g.SVGElement&&(x instanceof SVGElement)}};var d=g.jQuery||(p.Velocity&&p.Velocity.Utilities);if(!d){throw new Error("Velocity: Either jQuery or Velocity's jQuery shim must first be loaded.")}else{if(p.Velocity!==e&&!p.Velocity.Utilities){throw new Error("Velocity: Namespace is occupied.")}else{if(h<=7){if(!g.jQuery){throw new Error("Velocity: For IE<=7, Velocity falls back to jQuery, which must first be loaded.")}else{g.jQuery.fn.velocity=g.jQuery.fn.animate;return}}else{if(h===8&&!g.jQuery){throw new Error("Velocity: For IE8, Velocity requires jQuery to be loaded. (Velocity's jQuery shim does not work with IE8.)")}}}}function c(y){var x=d.data(y,f);return x===null?e:x}var u=p.Velocity=p.velocity={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isAndroid:/Android/i.test(navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(navigator.userAgent),isChrome:g.chrome,isFirefox:/Firefox/i.test(navigator.userAgent),prefixElement:n.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:false,calls:[]},CSS:{},Utilities:g.jQuery,Sequences:{},Easings:{},Promise:g.Promise,defaults:{queue:"",duration:a,easing:r,begin:null,complete:null,progress:null,display:null,loop:false,delay:false,mobileHA:true,_cacheValues:true},animate:function(){},mock:false,version:{major:0,minor:9,patch:0},debug:false};if(g.pageYOffset!==e){u.State.scrollAnchor=g;u.State.scrollPropertyLeft="pageXOffset";u.State.scrollPropertyTop="pageYOffset"}else{u.State.scrollAnchor=n.documentElement||n.body.parentNode||n.body;u.State.scrollPropertyLeft="scrollLeft";u.State.scrollPropertyTop="scrollTop"}if(!u.State.isMobile&&n.hidden!==e){n.addEventListener("visibilitychange",function(){if(n.hidden){q=function(x){return setTimeout(function(){x(true)},16)};s()}else{q=g.requestAnimationFrame||o}})}function j(x){return function(y){return Math.round(y*x)*(1/x)}}var b=(function(){function x(A,B){return 1-3*B+3*A}function E(A,B){return 3*B-6*A}function D(A){return 3*A}function z(C,A,B){return((x(A,B)*C+E(A,B))*C+D(A))*C}function y(C,A,B){return 3*x(A,B)*C*C+2*E(A,B)*C+D(A)}return function(G,B,F,H){if(arguments.length!==4){return false}for(var C=0;C<4;++C){if(typeof arguments[C]!=="number"||isNaN(arguments[C])||!isFinite(arguments[C])){return false}}G=Math.min(G,1);F=Math.min(F,1);G=Math.max(G,0);F=Math.max(F,0);function A(L){var J=L;for(var K=0;K<8;++K){var M=y(J,G,F);if(M===0){return J}var I=z(J,G,F)-L;J-=I/M}return J}return function(I){if(G===B&&F===H){return I}else{return z(A(I),B,H)}}}}());var t=(function(){function z(B){return(-B.tension*B.x)-(B.friction*B.v)}function x(C,D,B){var E={x:C.x+B.dx*D,v:C.v+B.dv*D,tension:C.tension,friction:C.friction};return{dx:E.v,dv:z(E)}}function A(G,E){var C={dx:G.v,dv:z(G)},B=x(G,E*0.5,C),I=x(G,E*0.5,B),H=x(G,E,I),F=1/6*(C.dx+2*(B.dx+I.dx)+H.dx),D=1/6*(C.dv+2*(B.dv+I.dv)+H.dv);G.x=G.x+F*E;G.v=G.v+D*E;return G}return function y(I,C,D){var L={x:-1,v:0,tension:null,friction:null},K=[0],E=0,G=1/10000,F=16/1000,H,B,J;I=parseFloat(I)||500;C=parseFloat(C)||20;D=D||null;L.tension=I;L.friction=C;H=D!==null;if(H){E=y(I,C);B=E/D*F}else{B=F}while(true){J=A(J||L,B);K.push(1+J.x);E+=16;if(!(Math.abs(J.x)>G&&Math.abs(J.v)>G)){break}}return !H?E:function(M){return K[(M*(K.length-1))|0]}}}());(function(){u.Easings.linear=function(y){return y};u.Easings.swing=function(y){return 0.5-Math.cos(y*Math.PI)/2};u.Easings.spring=function(y){return 1-(Math.cos(y*4.5*Math.PI)*Math.exp(-y*6))};u.Easings.ease=b(0.25,0.1,0.25,1);u.Easings["ease-in"]=b(0.42,0,1,1);u.Easings["ease-out"]=b(0,0,0.58,1);u.Easings["ease-in-out"]=b(0.42,0,0.58,1);var x={};d.each(["Quad","Cubic","Quart","Quint","Expo"],function(z,y){x[y]=function(A){return Math.pow(A,z+2)}});d.extend(x,{Sine:function(y){return 1-Math.cos(y*Math.PI/2)},Circ:function(y){return 1-Math.sqrt(1-y*y)},Elastic:function(y){return y===0||y===1?y:-Math.pow(2,8*(y-1))*Math.sin(((y-1)*80-7.5)*Math.PI/15)},Back:function(y){return y*y*(3*y-2)},Bounce:function(A){var y,z=4;while(A<((y=Math.pow(2,--z))-1)/11){}return 1/Math.pow(4,3-z)-7.5625*Math.pow((y*3-2)/22-A,2)}});d.each(x,function(z,y){u.Easings["easeIn"+z]=y;u.Easings["easeOut"+z]=function(A){return 1-y(1-A)};u.Easings["easeInOut"+z]=function(A){return A<0.5?y(A*2)/2:1-y(A*-2+2)/2}})})();function m(x,y){var z=x;if(i.isString(x)){if(!u.Easings[x]){z=false}}else{if(i.isArray(x)&&x.length===1){z=j.apply(null,x)}else{if(i.isArray(x)&&x.length===2){z=t.apply(null,x.concat([y]))}else{if(i.isArray(x)&&x.length===4){z=b.apply(null,x)}else{z=false}}}}if(z===false){if(u.Easings[u.defaults.easing]){z=u.defaults.easing}else{z=r}}return z}var l=u.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/ig},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"]},Hooks:{templates:{textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0px"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){for(var z=0;z<l.Lists.colors.length;z++){l.Hooks.templates[l.Lists.colors[z]]=["Red Green Blue Alpha","255 255 255 1"]}var x,B,D;if(h){for(x in l.Hooks.templates){B=l.Hooks.templates[x];D=B[0].split(" ");var C=B[1].match(l.RegEx.valueSplit);if(D[0]==="Color"){D.push(D.shift());C.push(C.shift());l.Hooks.templates[x]=[D.join(" "),C.join(" ")]}}}for(x in l.Hooks.templates){B=l.Hooks.templates[x];D=B[0].split(" ");for(var z in D){var A=x+D[z],y=z;l.Hooks.registered[A]=[x,y]}}},getRoot:function(x){var y=l.Hooks.registered[x];if(y){return y[0]}else{return x}},cleanRootPropertyValue:function(x,y){if(l.RegEx.valueUnwrap.test(y)){y=y.match(l.Hooks.RegEx.valueUnwrap)[1]}if(l.Values.isCSSNullValue(y)){y=l.Hooks.templates[x][1]}return y},extractValue:function(A,z){var B=l.Hooks.registered[A];if(B){var y=B[0],x=B[1];z=l.Hooks.cleanRootPropertyValue(y,z);return z.toString().match(l.RegEx.valueSplit)[x]}else{return z}},injectValue:function(B,E,z){var D=l.Hooks.registered[B];if(D){var y=D[0],x=D[1],C,A;z=l.Hooks.cleanRootPropertyValue(y,z);C=z.toString().match(l.RegEx.valueSplit);C[x]=E;A=C.join(" ");return A}else{return z}}},Normalizations:{registered:{clip:function(A,z,y){switch(A){case"name":return"clip";case"extract":var x;if(l.RegEx.wrappedValueAlreadyExtracted.test(y)){x=y}else{x=y.toString().match(l.RegEx.valueUnwrap);x=x?x[1].replace(/,(\s+)?/g," "):y}return x;case"inject":return"rect("+y+")"}},opacity:function(A,z,y){if(h<=8){switch(A){case"name":return"filter";case"extract":var x=y.toString().match(/alpha\(opacity=(.*)\)/i);if(x){y=x[1]/100}else{y=1}return y;case"inject":z.style.zoom=1;if(parseFloat(y)>=1){return""}else{return"alpha(opacity="+parseInt(parseFloat(y)*100,10)+")"}}}else{switch(A){case"name":return"opacity";case"extract":return y;case"inject":return y}}}},register:function(){if(!(h<=9)&&!u.State.isGingerbread){l.Lists.transformsBase=l.Lists.transformsBase.concat(l.Lists.transforms3D)}for(var x=0;x<l.Lists.transformsBase.length;x++){(function(){var y=l.Lists.transformsBase[x];l.Normalizations.registered[y]=function(B,A,z){switch(B){case"name":return"transform";case"extract":if(c(A).transformCache[y]===e){return/^scale/i.test(y)?1:0}else{return c(A).transformCache[y].replace(/[()]/g,"")}case"inject":var C=false;switch(y.substr(0,y.length-1)){case"translate":C=!/(%|px|em|rem|vw|vh|\d)$/i.test(z);break;case"scal":case"scale":if(u.State.isAndroid&&c(A).transformCache[y]===e&&z<1){z=1}C=!/(\d)$/i.test(z);break;case"skew":C=!/(deg|\d)$/i.test(z);break;case"rotate":C=!/(deg|\d)$/i.test(z);break}if(!C){c(A).transformCache[y]="("+z+")"}return c(A).transformCache[y]}}})()}for(var x=0;x<l.Lists.colors.length;x++){(function(){var y=l.Lists.colors[x];l.Normalizations.registered[y]=function(D,C,A){switch(D){case"name":return y;case"extract":var z;if(l.RegEx.wrappedValueAlreadyExtracted.test(A)){z=A}else{var E,B={black:"rgb(0, 0, 0)",blue:"rgb(0, 0, 255)",gray:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",red:"rgb(255, 0, 0)",white:"rgb(255, 255, 255)"};if(/^[A-z]+$/i.test(A)){if(B[A]!==e){E=B[A]}else{E=B.black}}else{if(l.RegEx.isHex.test(A)){E="rgb("+l.Values.hexToRgb(A).join(" ")+")"}else{if(!(/^rgba?\(/i.test(A))){E=B.black}}}z=(E||A).toString().match(l.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")}if(!(h<=8)&&z.split(" ").length===3){z+=" 1"}return z;case"inject":if(h<=8){if(A.split(" ").length===4){A=A.split(/\s+/).slice(0,3).join(" ")}}else{if(A.split(" ").length===3){A+=" 1"}}return(h<=8?"rgb":"rgba")+"("+A.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")"}}})()}}},Names:{camelCase:function(x){return x.replace(/-(\w)/g,function(z,y){return y.toUpperCase()})},SVGAttribute:function(y){var x="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";if(h||(u.State.isAndroid&&!u.State.isChrome)){x+="|transform"}return new RegExp("^("+x+")$","i").test(y)},prefixCheck:function(y){if(u.State.prefixMatches[y]){return[u.State.prefixMatches[y],true]}else{var B=["","Webkit","Moz","ms","O"];for(var x=0,z=B.length;x<z;x++){var A;if(x===0){A=y}else{A=B[x]+y.replace(/^\w/,function(C){return C.toUpperCase()})}if(i.isString(u.State.prefixElement.style[A])){u.State.prefixMatches[y]=A;return[A,true]}}return[y,false]}}},Values:{hexToRgb:function(z){var A=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,y=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,x;z=z.replace(A,function(C,E,D,B){return E+E+D+D+B+B});x=y.exec(z);return x?[parseInt(x[1],16),parseInt(x[2],16),parseInt(x[3],16)]:[0,0,0]},isCSSNullValue:function(x){return(x==0||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(x))},getUnitType:function(x){if(/^(rotate|skew)/i.test(x)){return"deg"}else{if(/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(x)){return""}else{return"px"}}},getDisplayType:function(y){var x=y.tagName.toString().toLowerCase();if(/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(x)){return"inline"}else{if(/^(li)$/i.test(x)){return"list-item"}else{if(/^(tr)$/i.test(x)){return"table-row"}else{return"block"}}}},addClass:function(x,y){if(x.classList){x.classList.add(y)}else{x.className+=(x.className.length?" ":"")+y}},removeClass:function(x,y){if(x.classList){x.classList.remove(y)}else{x.className=x.className.toString().replace(new RegExp("(^|\\s)"+y.split(" ").join("|")+"(\\s|$)","gi")," ")}}},getPropertyValue:function(B,F,D,G){function y(J,O){var K=0;if(h<=8){K=d.css(J,O)}else{var N=false;if(/^(width|height)$/.test(O)&&l.getPropertyValue(J,"display")===0){N=true;l.setPropertyValue(J,"display",l.Values.getDisplayType(J))}function I(){if(N){l.setPropertyValue(J,"display","none")}}if(!G){if(O==="height"&&l.getPropertyValue(J,"boxSizing").toString().toLowerCase()!=="border-box"){var H=J.offsetHeight-(parseFloat(l.getPropertyValue(J,"borderTopWidth"))||0)-(parseFloat(l.getPropertyValue(J,"borderBottomWidth"))||0)-(parseFloat(l.getPropertyValue(J,"paddingTop"))||0)-(parseFloat(l.getPropertyValue(J,"paddingBottom"))||0);I();return H}else{if(O==="width"&&l.getPropertyValue(J,"boxSizing").toString().toLowerCase()!=="border-box"){var P=J.offsetWidth-(parseFloat(l.getPropertyValue(J,"borderLeftWidth"))||0)-(parseFloat(l.getPropertyValue(J,"borderRightWidth"))||0)-(parseFloat(l.getPropertyValue(J,"paddingLeft"))||0)-(parseFloat(l.getPropertyValue(J,"paddingRight"))||0);I();return P}}}var M;if(c(J)===e){M=g.getComputedStyle(J,null)}else{if(!c(J).computedStyle){M=c(J).computedStyle=g.getComputedStyle(J,null)}else{M=c(J).computedStyle}}if((h||u.State.isFirefox)&&O==="borderColor"){O="borderTopColor"}if(h===9&&O==="filter"){K=M.getPropertyValue(O)}else{K=M[O]}if(K===""||K===null){K=J.style[O]}I()}if(K==="auto"&&/^(top|right|bottom|left)$/i.test(O)){var L=y(J,"position");if(L==="fixed"||(L==="absolute"&&/top|left/i.test(O))){K=d(J).position()[O]+"px"}}return K}var A;if(l.Hooks.registered[F]){var C=F,z=l.Hooks.getRoot(C);if(D===e){D=l.getPropertyValue(B,l.Names.prefixCheck(z)[0])}if(l.Normalizations.registered[z]){D=l.Normalizations.registered[z]("extract",B,D)}A=l.Hooks.extractValue(C,D)}else{if(l.Normalizations.registered[F]){var E,x;E=l.Normalizations.registered[F]("name",B);if(E!=="transform"){x=y(B,l.Names.prefixCheck(E)[0]);if(l.Values.isCSSNullValue(x)&&l.Hooks.templates[F]){x=l.Hooks.templates[F][1]}}A=l.Normalizations.registered[F]("extract",B,x)}}if(!/^[\d-]/.test(A)){if(c(B)&&c(B).isSVG&&l.Names.SVGAttribute(F)){if(/^(height|width)$/i.test(F)){A=B.getBBox()[F]}else{A=B.getAttribute(F)}}else{A=y(B,l.Names.prefixCheck(F)[0])}}if(l.Values.isCSSNullValue(A)){A=0}if(u.debug>=2){console.log("Get "+F+": "+A)}return A},setPropertyValue:function(z,F,y,E,A){var B=F;if(F==="scroll"){if(A.container){A.container["scroll"+A.direction]=y}else{if(A.direction==="Left"){g.scrollTo(y,A.alternateValue)}else{g.scrollTo(A.alternateValue,y)}}}else{if(l.Normalizations.registered[F]&&l.Normalizations.registered[F]("name",z)==="transform"){l.Normalizations.registered[F]("inject",z,y);B="transform";y=c(z).transformCache[F]}else{if(l.Hooks.registered[F]){var C=F,x=l.Hooks.getRoot(F);E=E||l.getPropertyValue(z,x);y=l.Hooks.injectValue(C,y,E);F=x}if(l.Normalizations.registered[F]){y=l.Normalizations.registered[F]("inject",z,y);F=l.Normalizations.registered[F]("name",z)}B=l.Names.prefixCheck(F)[0];if(h<=8){try{z.style[B]=y}catch(D){if(u.debug){console.log("Browser does not support ["+y+"] for ["+B+"]")}}}else{if(c(z)&&c(z).isSVG&&l.Names.SVGAttribute(F)){z.setAttribute(F,y)}else{z.style[B]=y}}if(u.debug>=2){console.log("Set "+F+" ("+B+"): "+y)}}}return[B,y]},flushTransformCache:function(z){var y="";if((h||(u.State.isAndroid&&!u.State.isChrome))&&c(z).isSVG){function x(D){return parseFloat(l.getPropertyValue(z,D))}var A={translate:[x("translateX"),x("translateY")],skewX:[x("skewX")],skewY:[x("skewY")],scale:x("scale")!==1?[x("scale"),x("scale")]:[x("scaleX"),x("scaleY")],rotate:[x("rotateZ"),0,0]};d.each(c(z).transformCache,function(D){if(/^translate/i.test(D)){D="translate"}else{if(/^scale/i.test(D)){D="scale"}else{if(/^rotate/i.test(D)){D="rotate"}}}if(A[D]){y+=D+"("+A[D].join(" ")+") ";delete A[D]}})}else{var C,B;d.each(c(z).transformCache,function(D){C=c(z).transformCache[D];if(D==="transformPerspective"){B=C;return true}if(h===9&&D==="rotateZ"){D="rotate"}y+=D+C+" "});if(B){y="perspective"+B+" "+y}}l.setPropertyValue(z,"transform",y)}};l.Hooks.register();l.Normalizations.register();u.animate=function(){function A(){if(K){return R.promise||null}else{return y}}var I=(arguments[0]&&((d.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names)||i.isString(arguments[0].properties))),K,y,z;var J,L,C;if(i.isWrapped(this)){K=false;z=0;J=this;y=this}else{K=true;z=1;J=I?arguments[0].elements:arguments[0]}J=i.isWrapped(J)?[].slice.call(J):J;if(!J){return}if(I){L=arguments[0].properties;C=arguments[0].options}else{L=arguments[z];C=arguments[z+1]}var W=(i.isArray(J)||i.isNodeList(J))?J.length:1,P=0;if(L!=="stop"&&!d.isPlainObject(C)){var B=z+1;C={};for(var O=B;O<arguments.length;O++){if(!i.isArray(arguments[O])&&/^\d/.test(arguments[O])){C.duration=parseFloat(arguments[O])}else{if(i.isString(arguments[O])||i.isArray(arguments[O])){C.easing=arguments[O]}else{if(i.isFunction(arguments[O])){C.complete=arguments[O]}}}}}var R={promise:null,resolver:null,rejecter:null};if(K&&u.Promise){R.promise=new u.Promise(function(X,x){R.resolver=X;R.rejecter=x})}var N;switch(L){case"scroll":N="scroll";break;case"reverse":N="reverse";break;case"stop":d.each(i.isNode(J)?[J]:J,function(X,x){if(c(x)&&c(x).delayTimer){clearTimeout(c(x).delayTimer.setTimeout);if(c(x).delayTimer.next){c(x).delayTimer.next()}delete c(x).delayTimer}});var D=[];d.each(u.State.calls,function(x,X){if(X!==false){d.each(i.isNode(X[1])?[X[1]]:X[1],function(Y,Z){d.each(i.isNode(J)?[J]:J,function(aa,ab){if(ab===Z){if(c(ab)){d.each(c(ab).tweensContainer,function(ad,ae){ae.endValue=ae.currentValue})}if(C===true||i.isString(C)){var ac=i.isString(C)?C:"";d.each(d.queue(ab,ac),function(ad,ae){if(i.isFunction(ae)){ae(null,true)}});d.queue(ab,ac,[])}D.push(x)}})})}});d.each(D,function(X,x){v(x,true)});if(R.promise){R.resolver(J)}return A();default:if(d.isPlainObject(L)&&!d.isEmptyObject(L)){N="start"}else{if(i.isString(L)&&u.Sequences[L]){var F=C.duration,V=C.delay||0;if(C.backwards===true){J=(J.jquery?[].slice.call(J):J).reverse()}d.each(J,function(X,x){if(parseFloat(C.stagger)){C.delay=V+(parseFloat(C.stagger)*X)}else{if(i.isFunction(C.stagger)){C.delay=V+C.stagger.call(x,X,W)}}if(C.drag){C.duration=parseFloat(F)||(/^(callout|transition)/.test(L)?1000:a);C.duration=Math.max(C.duration*(C.backwards?1-X/W:(X+1)/W),C.duration*0.75,200)}u.Sequences[L].call(x,x,C||{},X,W,J,R.promise?R:e)});return A()}else{var M="Velocity: First argument ("+L+") was not a property map, a known action, or a registered sequence. Aborting.";if(R.promise){R.rejecter(new Error(M))}else{console.log(M)}return A()}}}var E={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null};var S=[];function Q(){var x=this,Y=d.extend({},u.defaults,C),X={};if(c(x)===e){d.data(x,f,{isSVG:i.isSVG(x),isAnimating:false,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})}if(parseFloat(Y.delay)&&Y.queue!==false){d.queue(x,Y.queue,function(aa){u.velocityQueueEntryFlag=true;c(x).delayTimer={setTimeout:setTimeout(aa,parseFloat(Y.delay)),next:aa}})}if(u.mock===true){Y.duration=1}else{switch(Y.duration.toString().toLowerCase()){case"fast":Y.duration=200;break;case"normal":Y.duration=a;break;case"slow":Y.duration=600;break;default:Y.duration=parseFloat(Y.duration)||1}}Y.easing=m(Y.easing,Y.duration);if(Y.begin&&!i.isFunction(Y.begin)){Y.begin=null}if(Y.progress&&!i.isFunction(Y.progress)){Y.progress=null}if(Y.complete&&!i.isFunction(Y.complete)){Y.complete=null}if(Y.display){Y.display=Y.display.toString().toLowerCase();if(Y.display==="auto"){Y.display=u.CSS.Values.getDisplayType(x)}}if(Y.visibility){Y.visibility=Y.visibility.toString().toLowerCase()}Y.mobileHA=(Y.mobileHA&&u.State.isMobile&&!u.State.isGingerbread);function Z(ap){if(Y.begin&&P===0){try{Y.begin.call(J,J)}catch(aw){setTimeout(function(){throw aw},1)}}if(N==="scroll"){var aq=(/^x$/i.test(Y.axis)?"Left":"Top"),an=parseFloat(Y.offset)||0,ac,az,ax;if(Y.container){if(Y.container.jquery||i.isNode(Y.container)){Y.container=Y.container[0]||Y.container;ac=Y.container["scroll"+aq];ax=(ac+d(x).position()[aq.toLowerCase()])+an}else{Y.container=null}}else{ac=u.State.scrollAnchor[u.State["scrollProperty"+aq]];az=u.State.scrollAnchor[u.State["scrollProperty"+(aq==="Left"?"Top":"Left")]];ax=d(x).offset()[aq.toLowerCase()]+an}X={scroll:{rootPropertyValue:false,startValue:ac,currentValue:ac,endValue:ax,unitType:"",easing:Y.easing,scrollData:{container:Y.container,direction:aq,alternateValue:az}},element:x};if(u.debug){console.log("tweensContainer (scroll): ",X.scroll,x)}}else{if(N==="reverse"){if(!c(x).tweensContainer){d.dequeue(x,Y.queue);return}else{if(c(x).opts.display==="none"){c(x).opts.display="block"}if(c(x).opts.visibility==="hidden"){c(x).opts.visibility="visible"}c(x).opts.loop=false;c(x).opts.begin=null;c(x).opts.complete=null;if(!C.easing){delete Y.easing}if(!C.duration){delete Y.duration}Y=d.extend({},c(x).opts,Y);var at=d.extend(true,{},c(x).tweensContainer);for(var av in at){if(av!=="element"){var ah=at[av].startValue;at[av].startValue=at[av].currentValue=at[av].endValue;at[av].endValue=ah;if(!d.isEmptyObject(C)){at[av].easing=Y.easing}if(u.debug){console.log("reverse tweensContainer ("+av+"): "+JSON.stringify(at[av]),x)}}}X=at}}else{if(N==="start"){var at;if(c(x).tweensContainer&&c(x).isAnimating===true){at=c(x).tweensContainer}function ak(aD,aC){var aB=e,aF=e,aE=e;if(i.isArray(aD)){aB=aD[0];if((!i.isArray(aD[1])&&/^[\d-]/.test(aD[1]))||i.isFunction(aD[1])||l.RegEx.isHex.test(aD[1])){aE=aD[1]}else{if((i.isString(aD[1])&&!l.RegEx.isHex.test(aD[1]))||i.isArray(aD[1])){aF=aC?aD[1]:m(aD[1],Y.duration);if(aD[2]!==e){aE=aD[2]}}}}else{aB=aD}aF=aF||Y.easing;if(i.isFunction(aB)){aB=aB.call(x,P,W)}if(i.isFunction(aE)){aE=aE.call(x,P,W)}return[aB||0,aF,aE]}d.each(L,function(aK,aJ){var aD=ak(aJ,true),aI=aD[0],aH=aD[1],aE=aD[2];if(RegExp(l.Lists.colors.join("|")).test(aK)&&l.RegEx.isHex.test(aI)){var aB=["Red","Green","Blue"],aC=l.Values.hexToRgb(aI),aF=aE?l.Values.hexToRgb(aE):e;for(var aG=0;aG<aB.length;aG++){L[aK+aB[aG]]=[aC[aG],aH,aF?aF[aG]:aF]}delete L[aK]}});for(var af in L){var ar=ak(L[af]),am=ar[0],au=ar[1],ao=ar[2];af=l.Names.camelCase(af);var aj=l.Hooks.getRoot(af),ae=false;if(!c(x).isSVG&&l.Names.prefixCheck(aj)[1]===false&&l.Normalizations.registered[aj]===e){if(u.debug){console.log("Skipping ["+aj+"] due to a lack of browser support.")}continue}if(((Y.display&&Y.display!=="none")||(Y.visibility&&Y.visibility!=="hidden"))&&/opacity|filter/.test(af)&&!ao&&am!==0){ao=0}if(Y._cacheValues&&at&&at[af]){if(ao===e){ao=at[af].endValue+at[af].unitType}ae=c(x).rootPropertyValueCache[aj]}else{if(l.Hooks.registered[af]){if(ao===e){ae=l.getPropertyValue(x,aj);ao=l.getPropertyValue(x,af,ae)}else{ae=l.Hooks.templates[aj][1]}}else{if(ao===e){ao=l.getPropertyValue(x,af)}}}var aA,ay,ag,ai=false;function aa(aD,aC){var aB,aE;aE=(aC||0).toString().toLowerCase().replace(/[%A-z]+$/,function(aF){aB=aF;return""});if(!aB){aB=l.Values.getUnitType(aD)}return[aE,aB]}aA=aa(af,ao);ao=aA[0];ag=aA[1];aA=aa(af,am);am=aA[0].replace(/^([+-\/*])=/,function(aC,aB){ai=aB;return""});ay=aA[1];ao=parseFloat(ao)||0;am=parseFloat(am)||0;var al;if(ay==="%"){if(/^(fontSize|lineHeight)$/.test(af)){am=am/100;ay="em"}else{if(/^scale/.test(af)){am=am/100;ay=""}else{if(/(Red|Green|Blue)$/i.test(af)){am=(am/100)*255;ay=""}}}}function ad(){var aD={parent:x.parentNode,position:l.getPropertyValue(x,"position"),fontSize:l.getPropertyValue(x,"fontSize")},aC=((aD.position===E.lastPosition)&&(aD.parent===E.lastParent)),aF=((aD.fontSize===E.lastFontSize)&&(aD.parent===E.lastParent));E.lastParent=aD.parent;E.lastPosition=aD.position;E.lastFontSize=aD.fontSize;if(E.remToPx===null){E.remToPx=parseFloat(l.getPropertyValue(n.body,"fontSize"))||16}if(E.vwToPx===null){E.vwToPx=parseFloat(g.innerWidth)/100;E.vhToPx=parseFloat(g.innerHeight)/100}var aG={overflowX:null,overflowY:null,boxSizing:null,width:null,minWidth:null,maxWidth:null,height:null,minHeight:null,maxHeight:null,paddingLeft:null},aB={},aE=10;aB.remToPx=E.remToPx;aB.vwToPx=E.vwToPx;aB.vhToPx=E.vhToPx;if(h&&!c(x).isSVG){var aJ=/^auto$/i.test(x.currentStyle.width),aI=/^auto$/i.test(x.currentStyle.height)}if(!aC||!aF){if(!c(x).isSVG){aG.overflowX=l.getPropertyValue(x,"overflowX");aG.overflowY=l.getPropertyValue(x,"overflowY");aG.boxSizing=l.getPropertyValue(x,"boxSizing");aG.minWidth=l.getPropertyValue(x,"minWidth");aG.maxWidth=l.getPropertyValue(x,"maxWidth")||"none";aG.minHeight=l.getPropertyValue(x,"minHeight");aG.maxHeight=l.getPropertyValue(x,"maxHeight")||"none";aG.paddingLeft=l.getPropertyValue(x,"paddingLeft")}aG.width=l.getPropertyValue(x,"width",null,true);aG.height=l.getPropertyValue(x,"height",null,true)}if(aC){aB.percentToPxRatioWidth=E.lastPercentToPxWidth;aB.percentToPxRatioHeight=E.lastPercentToPxHeight}else{if(!c(x).isSVG){l.setPropertyValue(x,"overflowX","hidden");l.setPropertyValue(x,"overflowY","hidden");l.setPropertyValue(x,"boxSizing","content-box");l.setPropertyValue(x,"minWidth",aE+"%");l.setPropertyValue(x,"maxWidth",aE+"%");l.setPropertyValue(x,"minHeight",aE+"%");l.setPropertyValue(x,"maxHeight",aE+"%")}l.setPropertyValue(x,"width",aE+"%");l.setPropertyValue(x,"height",aE+"%")}if(aF){aB.emToPx=E.lastEmToPx}else{if(!c(x).isSVG){l.setPropertyValue(x,"paddingLeft",aE+"em")}}if(!aC){aB.percentToPxRatioWidth=E.lastPercentToPxWidth=(parseFloat(l.getPropertyValue(x,"width",null,true))||1)/aE;aB.percentToPxRatioHeight=E.lastPercentToPxHeight=(parseFloat(l.getPropertyValue(x,"height",null,true))||1)/aE}if(!aF){aB.emToPx=E.lastEmToPx=(parseFloat(l.getPropertyValue(x,"paddingLeft"))||1)/aE}for(var aH in aG){if(aG[aH]!==null){l.setPropertyValue(x,aH,aG[aH])}}if(!c(x).isSVG){if(h){if(aJ){l.setPropertyValue(x,"width","auto")}if(aI){l.setPropertyValue(x,"height","auto")}}else{l.setPropertyValue(x,"height","auto");if(aG.height!==l.getPropertyValue(x,"height",null,true)){l.setPropertyValue(x,"height",aG.height)}l.setPropertyValue(x,"width","auto");if(aG.width!==l.getPropertyValue(x,"width",null,true)){l.setPropertyValue(x,"width",aG.width)}}}if(u.debug>=1){console.log("Unit ratios: "+JSON.stringify(aB),x)}return aB}if(/[\/*]/.test(ai)){ay=ag}else{if((ag!==ay)&&ao!==0){if(am===0){ay=ag}else{al=al||ad();var ab=(/margin|padding|left|right|width|text|word|letter/i.test(af)||/X$/.test(af))?"x":"y";switch(ag){case"%":ao*=(ab==="x"?al.percentToPxRatioWidth:al.percentToPxRatioHeight);break;case"px":break;default:ao*=al[ag+"ToPx"]}switch(ay){case"%":ao*=1/(ab==="x"?al.percentToPxRatioWidth:al.percentToPxRatioHeight);break;case"px":break;default:ao*=1/al[ay+"ToPx"]}}}}switch(ai){case"+":am=ao+am;break;case"-":am=ao-am;break;case"*":am=ao*am;break;case"/":am=ao/am;break}X[af]={rootPropertyValue:ae,startValue:ao,currentValue:ao,endValue:am,unitType:ay,easing:au};if(u.debug){console.log("tweensContainer ("+af+"): "+JSON.stringify(X[af]),x)}}X.element=x}}}if(X.element){l.Values.addClass(x,"velocity-animating");S.push(X);c(x).tweensContainer=X;c(x).opts=Y;c(x).isAnimating=true;if(P===W-1){if(u.State.calls.length>10000){u.State.calls=w(u.State.calls)}u.State.calls.push([S,J,Y,null,R.resolver]);if(u.State.isTicking===false){u.State.isTicking=true;s()}}else{P++}}}if(Y.queue===false){if(Y.delay){setTimeout(Z,Y.delay)}else{Z()}}else{d.queue(x,Y.queue,function(ab,aa){if(aa===true){if(R.promise){R.resolver(J)}return true}u.velocityQueueEntryFlag=true;Z(ab)})}if((Y.queue===""||Y.queue==="fx")&&d.queue(x)[0]!=="inprogress"){d.dequeue(x)}}d.each(i.isNode(J)?[J]:J,function(X,x){if(i.isNode(x)){Q.call(x)}});var H=d.extend({},u.defaults,C),T;H.loop=parseInt(H.loop);T=(H.loop*2)-1;if(H.loop){for(var G=0;G<T;G++){var U={delay:H.delay};if(H.complete&&(G===T-1)){U.complete=H.complete}u.animate(J,"reverse",U)}}return A()};function s(y){if(y){var L=(new Date).getTime();for(var M=0,P=u.State.calls.length;M<P;M++){if(!u.State.calls[M]){continue}var C=u.State.calls[M],O=C[0],G=C[2],R=C[3];if(!R){R=u.State.calls[M][3]=L-16}var N=Math.min((L-R)/G.duration,1);for(var K=0,A=O.length;K<A;K++){var I=O[K],x=I.element;if(!c(x)){continue}var H=false;if(G.display&&G.display!=="none"){l.setPropertyValue(x,"display",G.display)}if(G.visibility&&G.visibility!=="hidden"){l.setPropertyValue(x,"visibility",G.visibility)}for(var B in I){if(B!=="element"){var z=I[B],E,J=i.isString(z.easing)?u.Easings[z.easing]:z.easing;if(N===1){E=z.endValue}else{E=z.startValue+((z.endValue-z.startValue)*J(N))}z.currentValue=E;if(l.Hooks.registered[B]){var D=l.Hooks.getRoot(B),F=c(x).rootPropertyValueCache[D];if(F){z.rootPropertyValue=F}}var Q=l.setPropertyValue(x,B,z.currentValue+(parseFloat(E)===0?"":z.unitType),z.rootPropertyValue,z.scrollData);if(l.Hooks.registered[B]){if(l.Normalizations.registered[D]){c(x).rootPropertyValueCache[D]=l.Normalizations.registered[D]("extract",null,Q[1])}else{c(x).rootPropertyValueCache[D]=Q[1]}}if(Q[0]==="transform"){H=true}}}if(G.mobileHA){if(c(x).transformCache.translate3d===e){c(x).transformCache.translate3d="(0px, 0px, 0px)";H=true}}if(H){l.flushTransformCache(x)}}if(G.display&&G.display!=="none"){u.State.calls[M][2].display=false}if(G.visibility&&G.visibility!=="hidden"){u.State.calls[M][2].visibility=false}if(G.progress){G.progress.call(C[1],C[1],N,Math.max(0,(R+G.duration)-L),R)}if(N===1){v(M)}}}if(u.State.isTicking){q(s)}}function v(G,B){if(!u.State.calls[G]){return false}var K=u.State.calls[G][0],x=u.State.calls[G][1],y=u.State.calls[G][2],A=u.State.calls[G][4];var H=false;for(var E=0,z=K.length;E<z;E++){var D=K[E].element;if(!B&&!y.loop){if(y.display==="none"){l.setPropertyValue(D,"display",y.display)}if(y.visibility==="hidden"){l.setPropertyValue(D,"visibility",y.visibility)}}if(d.queue(D)[1]===e||!/\.velocityQueueEntryFlag/i.test(d.queue(D)[1])){if(c(D)){c(D).isAnimating=false;c(D).rootPropertyValueCache={};var F=false;d.each(c(D).transformCache,function(M,N){var L=/^scale/.test(M)?1:0;if(new RegExp("^\\("+L+"[^.]").test(N)){F=true;delete c(D).transformCache[M]}});if(y.mobileHA){F=true;delete c(D).transformCache.translate3d}if(F){l.flushTransformCache(D)}l.Values.removeClass(D,"velocity-animating")}}if(!B&&y.complete&&!y.loop&&(E===z-1)){try{y.complete.call(x,x)}catch(I){setTimeout(function(){throw I},1)}}if(A){A(x)}if(y.queue!==false){d.dequeue(D,y.queue)}}u.State.calls[G]=false;for(var C=0,J=u.State.calls.length;C<J;C++){if(u.State.calls[C]!==false){H=true;break}}if(H===false){u.State.isTicking=false;delete u.State.calls;u.State.calls=[]}}var k=g.jQuery||g.Zepto;if(k){k.fn.velocity=u.animate;k.fn.velocity.defaults=u.defaults}if(typeof define!=="undefined"&&define.amd){define(function(){return u})}else{if(typeof module!=="undefined"&&module.exports){module.exports=u}}d.each(["Down","Up"],function(x,y){u.Sequences["slide"+y]=function(B,A){var D=d.extend({},A),F={height:null,marginTop:null,marginBottom:null,paddingTop:null,paddingBottom:null,overflow:null,overflowX:null,overflowY:null},C=D.begin,z=D.complete,E=false;if(D.display!==null){if(y==="Down"){D.display=D.display||"auto"}else{D.display=D.display||"none"}}D.begin=function(){function G(){F.height=parseFloat(u.CSS.getPropertyValue(B,"height"));B.style.height="auto";if(parseFloat(u.CSS.getPropertyValue(B,"height"))===F.height){E=true}u.CSS.setPropertyValue(B,"height",F.height+"px")}if(y==="Down"){F.overflow=[u.CSS.getPropertyValue(B,"overflow"),0];F.overflowX=[u.CSS.getPropertyValue(B,"overflowX"),0];F.overflowY=[u.CSS.getPropertyValue(B,"overflowY"),0];B.style.overflow="hidden";B.style.overflowX="visible";B.style.overflowY="hidden";G();for(var I in F){if(/^overflow/.test(I)){continue}var H=u.CSS.getPropertyValue(B,I);if(I==="height"){H=parseFloat(H)}F[I]=[H,0]}}else{G();for(var I in F){var H=u.CSS.getPropertyValue(B,I);if(I==="height"){H=parseFloat(H)}F[I]=[0,H]}B.style.overflow="hidden";B.style.overflowX="visible";B.style.overflowY="hidden"}if(C){C.call(B,B)}};D.complete=function(G){var I=(y==="Down")?0:1;if(E===true){F.height[I]="auto"}else{F.height[I]+="px"}for(var H in F){G.style[H]=F[H][I]}if(z){z.call(G,G)}};u.animate(B,F,D)}});d.each(["In","Out"],function(x,y){u.Sequences["fade"+y]=function(B,A,z,D){var E=d.extend({},A),C={opacity:(y==="In")?1:0};if(z!==D-1){E.complete=E.begin=null}if(E.display!==null){E.display=E.display||((y==="In")?"auto":"none")}u.animate(this,C,E)}})})((window.jQuery||window.Zepto||window),window,document);