GSAP (GreenSock Animation Platform): high-performance JavaScript animation for anything JavaScript can touch. 100% free, including every plugin.
JavaScript animationcanvasgsapjavascriptjavascript-libraryreactscrollscrolltriggerspringsvgweb-animations
CSSPlugin 1.542 (iOS 6 and premature getComputedStyle() fix)
Jack Doyle34b4eefe2b54
diff --git a/src/minified/TweenMax.min.js b/src/minified/TweenMax.min.jsindex 380946b..f31622b 100755--- a/src/minified/TweenMax.min.js+++ b/src/minified/TweenMax.min.js@@ -1,5 +1,5 @@/**- * VERSION: beta 1.541+ * VERSION: beta 1.542* DATE: 2012-10-01* JavaScript (ActionScript 3 and 2 also available)* UPDATES AND DOCS AT: http://www.greensock.com@@ -19,8 +19,8 @@ this._firstPT&&i._onPluginEvent("_onDisable",this),0.998<this._time/this._durati0>b?(this._active=!1,0===this._duration&&(0<=this._rawPrevTime&&(f=!0),this._rawPrevTime=b)):this._initted||(f=!0)}else if(this._totalTime=this._time=b,0!==this._repeat&&(b=this._duration+this._repeatDelay,this._cycle=this._totalTime/b>>0,0!==this._cycle&&this._cycle===this._totalTime/b&&this._cycle--,this._time=this._totalTime-this._cycle*b,this._yoyo&&0!==(this._cycle&1)&&(this._time=this._duration-this._time),this._time>this._duration?this._time=this._duration:0>this._time&&(this._time=0)),this._easeType){var b=this._time/this._duration,k=this._easeType,B=this._easePower;if(1===k||3===k&&0.5<=b)b=1-b;3===k&&(b*=2);1===B?b*=b:2===B?b*=b*b:3===B?b*=b*b*b:4===B&&(b*=b*b*b*b);this.ratio=1===k?1-b:2===k?b:0.5>this._time/this._duration?b/2:1-b/2}else this.ratio=this._ease.getRatio(this._time/this._duration);if(A!==this._time||f){this._initted||(this._init(),!x&&this._time&&(this.ratio=this._ease.getRatio(this._time/this._duration)));!this._active&&!this._paused&&(this._active=!0);if(0==t&&this.vars.onStart&&(0!==this._totalTime||0===this._duration))d||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||c);for(f=this._firstPT;f;){if(f.f)f.t[f.p](f.c*this.ratio+f.s);else f.t[f.p]=f.c*this.ratio+f.s;f=f._next}this._onUpdate&&(d||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||c));this._cycle!=e&&(d||this._gc||this.vars.onRepeat&&this.vars.onRepeat.apply(this.vars.onRepeatScope||this,this.vars.onRepeatParams||c));m&&!this._gc&&(x&&(this._timeline.autoRemoveChildren&&-this._enabled(!1,!1),this._active=!1),d||this.vars[m]&&this.vars[m].apply(this.vars[m+"Scope"]||this,this.vars[m+"Params"]||c))}};q.to=function(b,d,f){return new q(b,d,f)};q.from=function(b,d,f){f.runBackwards=!0;!1!=f.immediateRender&&(f.immediateRender=!0);return new q(b,d,f)};q.fromTo=function(b,d,f,k){k.startAt=f;f.immediateRender&&(k.immediateRender=!0);return new q(b,d,k)};q.staggerTo=q.allTo=function(b,d,f,k,A,c,t){var k=k||0,x=[],m=b.length,e=f.delay||0,n,i,s;for(i=0;i<m;i++){n={};for(s in f)n[s]=-f[s];n.delay=e;i===m-1&&A&&(n.onComplete=function(){f.onComplete&&f.onComplete.apply(f.onCompleteScope,f.onCompleteParams);A.apply(t,c)});x[i]=new q(b[i],d,n);e+=k}return x};q.staggerFrom=q.allFrom=function(b,d,f,k,A,c,t){f.runBackwards=!0;!1!=f.immediateRender&&(f.immediateRender=!0);return q.staggerTo(b,d,f,k,A,c,t)};q.staggerFromTo=q.allFromTo=function(b,d,f,k,A,c,t,x){k.startAt=f;f.immediateRender&&(k.immediateRender=!0);return q.staggerTo(b,d,k,A,c,t,x)};q.delayedCall=function(b,d,f,k,A){return new q(d,+this._enabled(!1,!1),this._active=!1),d||this.vars[m]&&this.vars[m].apply(this.vars[m+"Scope"]||this,this.vars[m+"Params"]||c))}};q.to=function(b,d,f){return new q(b,d,f)};q.from=function(b,d,f){f.runBackwards=!0;!1!=f.immediateRender&&(f.immediateRender=!0);return new q(b,d,f)};q.fromTo=function(b,d,f,k){k.startAt=f;f.immediateRender&&(k.immediateRender=!0);return new q(b,d,k)};q.staggerTo=q.allTo=function(b,d,f,k,A,c,t){var k=k||0,x=[],m=b.length,e=f.delay||0,p,i,s;for(i=0;i<m;i++){p={};for(s in f)p[s]=+f[s];p.delay=e;i===m-1&&A&&(p.onComplete=function(){f.onComplete&&f.onComplete.apply(f.onCompleteScope,f.onCompleteParams);A.apply(t,c)});x[i]=new q(b[i],d,p);e+=k}return x};q.staggerFrom=q.allFrom=function(b,d,f,k,A,c,t){f.runBackwards=!0;!1!=f.immediateRender&&(f.immediateRender=!0);return q.staggerTo(b,d,f,k,A,c,t)};q.staggerFromTo=q.allFromTo=function(b,d,f,k,A,c,t,x){k.startAt=f;f.immediateRender&&(k.immediateRender=!0);return q.staggerTo(b,d,k,A,c,t,x)};q.delayedCall=function(b,d,f,k,A){return new q(d,0,{delay:b,onComplete:d,onCompleteParams:f,onCompleteScope:k,onReverseComplete:d,onReverseCompleteParams:f,onReverseCompleteScope:k,immediateRender:!1,useFrames:A,overwrite:0})};q.set=function(b,d){return new q(b,0,d)};q.isTweening=function(b){for(var b=i.getTweensOf(b),d=b.length,f;-1<--d;)if((f=b[d])._active||f._startTime===f.timeline._time&&f.timeline._active)return!0;return!1};var t=function(b,d){for(var f=[],k=0,A=b._first;A;)A instanceof i?f[k++]=A:(d&&(f[k++]=A),f=f.concat(t(A,d)),k=f.length),A=A._next;return f},e=q.getAllTweens=function(b){return t(y._rootTimeline,b).concat(t(y._rootFramesTimeline,b))};q.killAll=function(b,d,f,k){null==d&&(d=!0);null==f&&(f=!0);var A=e(!1!=k),c=A.length,k=d&&f&&k,t,x,m;for(m=0;m<c;m++)if(x=A[m],k||x instanceof w||(t=x.target===x.vars.onComplete)&&f||d&&!t)b?x.totalTime(x.totalDuration()):x._enabled(!1,!1)};q.killChildTweensOf=function(b,d){if(null!=b)if(b.jquery)b.each(function(b,f){q.killChildTweensOf(f,d)});else{var f=i._tweenLookup,k=[],A,c;for(c in f)for(A=f[c].target.parentNode;A;)A===b&&(k=k.concat(f[c].tweens)),A=A.parentNode;A=k.length;for(f=0;f<A;f++)d&&k[f].totalTime(k[f].totalDuration()),k[f]._enabled(!1,!1)}};q.pauseAll=function(h,d,f){b(!0,h,d,f)};q.resumeAll=function(h,d,f){b(!1,h,d,f)};var b=function(b,d,f,k){void 0==d&&(d=!0);void 0==f&&(f=!0);for(var A=e(k),k=d&&f&&k,c=A.length,t,x;-1<--c;)x=A[c],(k||x instanceof w||(t=x.target===x.vars.onComplete)&&f||d&&!t)&&x.paused(b)};s.progress=function(b){return!arguments.length?this._time/this.duration():@@ -48,8 +48,8 @@ this._startTime)*this._timeScale};return q},!0);_gsDefine("TimelineMax",["Timeli!1);d=new w(this,Math.abs(Number(b.time)-this._time)/this._timeScale||0.001,b);b.onStart=function(){d.target.paused(!0);d.vars.time!=d.target.time()&&d.duration(Math.abs(d.vars.time-d.target.time())/d.target._timeScale);e.onStart&&e.onStart.apply(e.onStartScope||d,e.onStartParams||s)};return d};i.tweenFromTo=function(c,e,b){b=b||{};b.startAt={time:this._parseTimeOrLabel(c,!1)};c=this.tweenTo(e,b);return c.duration(Math.abs(c.vars.time-c.vars.startAt.time)/this._timeScale||0.001)};i.render=function(c,e,b){this._gc&&this._enabled(!0,!1);this._active=!this._paused;var h=!this._dirty?this._totalDuration:this.totalDuration(),d=this._time,f=this._totalTime,k=this._startTime,A=this._timeScale,i=this._rawPrevTime,q=this._paused,x=this._cycle,m,B;if(c>=h){this._locked||(this._totalTime=h,this._cycle=this._repeat);if(!this._reversed&&!this._hasPausedChild()&&(m=!0,B="onComplete",0===this._duration&&(0===c||0>this._rawPrevTime)))this._rawPrevTime!==c&&(b=!0);this._rawPrevTime=c;this._yoyo&&0!==(this._cycle&1)?(this._time=0,c=-1E-6):(this._time=this._duration,c=this._duration+1E-6)}else if(0>=c){this._locked||(this._totalTime=this._cycle=0);this._time=0;if(0!==d||0===this._duration&&0<this._rawPrevTime)B="onReverseComplete",m=this._reversed;0>c?(this._active=!1,0===this._duration&&0<=this._rawPrevTime&&(b=!0)):this._initted||(b=!0);this._rawPrevTime=c;c=-1E-6}else this._time=this._rawPrevTime=c,this._locked||(this._totalTime=c,0!==this._repeat&&(c=this._duration+this._repeatDelay,this._cycle=this._totalTime/-c>>0,0!==this._cycle&&this._cycle===this._totalTime/c&&this._cycle--,this._time=this._totalTime-this._cycle*c,this._yoyo&&0!=(this._cycle&1)&&(this._time=this._duration-this._time),this._time>this._duration?(this._time=this._duration,c=this._duration+1E-6):0>this._time?(this._time=0,c=-1E-6):c=this._time));if(this._cycle!==x&&!this._locked){var n=this._yoyo&&0!==(x&1),P=n===(this._yoyo&&0!==(this._cycle&1)),w=this._totalTime,y=this._cycle,F=this._rawPrevTime,C=this._time;this._totalTime=x*this._duration;-this._cycle<x?n=!n:this._totalTime+=this._duration;this._time=d;this._rawPrevTime=i;this._cycle=x;this._locked=!0;d=n?0:this._duration;this.render(d,e,!1);e||this._gc||this.vars.onRepeat&&this.vars.onRepeat.apply(this.vars.onRepeatScope||this,this.vars.onRepeatParams||s);P&&(d=n?this._duration+1E-6:-1E-6,this.render(d,!0,!1));this._time=C;this._totalTime=w;this._cycle=y;this._rawPrevTime=F;this._locked=!1}if(this._time!==d||b){this._initted||(this._initted=!0);0===f&&this.vars.onStart&&0!==this._totalTime&&+c>>0,0!==this._cycle&&this._cycle===this._totalTime/c&&this._cycle--,this._time=this._totalTime-this._cycle*c,this._yoyo&&0!=(this._cycle&1)&&(this._time=this._duration-this._time),this._time>this._duration?(this._time=this._duration,c=this._duration+1E-6):0>this._time?(this._time=0,c=-1E-6):c=this._time));if(this._cycle!==x&&!this._locked){var p=this._yoyo&&0!==(x&1),P=p===(this._yoyo&&0!==(this._cycle&1)),w=this._totalTime,y=this._cycle,E=this._rawPrevTime,C=this._time;this._totalTime=x*this._duration;+this._cycle<x?p=!p:this._totalTime+=this._duration;this._time=d;this._rawPrevTime=i;this._cycle=x;this._locked=!0;d=p?0:this._duration;this.render(d,e,!1);e||this._gc||this.vars.onRepeat&&this.vars.onRepeat.apply(this.vars.onRepeatScope||this,this.vars.onRepeatParams||s);P&&(d=p?this._duration+1E-6:-1E-6,this.render(d,!0,!1));this._time=C;this._totalTime=w;this._cycle=y;this._rawPrevTime=E;this._locked=!1}if(this._time!==d||b){this._initted||(this._initted=!0);0===f&&this.vars.onStart&&0!==this._totalTime&&(e||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||s));if(this._time>d)for(b=this._first;b;){f=b._next;if(this._paused&&!q)break;else if(b._active||b._startTime<=this._time&&!b._paused&&!b._gc)b._reversed?b.render((!b._dirty?b._totalDuration:b.totalDuration())-(c-b._startTime)*b._timeScale,e,!1):b.render((c-b._startTime)*b._timeScale,e,!1);b=f}else for(b=this._last;b;){f=b._prev;if(this._paused&&!q)break;else if(b._active||b._startTime<=d&&!b._paused&&!b._gc)b._reversed?b.render((!b._dirty?b._totalDuration:b.totalDuration())-(c-b._startTime)*b._timeScale,e,!1):b.render((c-b._startTime)*b._timeScale,e,!1);b=f}this._onUpdate&&(e||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||s));if(B&&!this._locked&&!this._gc&&(k===this._startTime||A!=this._timeScale))if(0===this._time||h>=this.totalDuration())m&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),e||this.vars[B]&&this.vars[B].apply(this.vars[B+"Scope"]||this,this.vars[B+"Params"]||s)}};i.getActive=function(c,e,b){null==c&&(c=!0);null==e&&(e=!0);null==b&&(b=!1);var h=[],c=this.getChildren(c,e,b),e=0,b=c.length,d,f;for(d=0;d<b;d++)if(f=c[d],!f._paused&&f._timeline._time>=f._startTime&&f._timeline._time<f._startTime+f._totalDuration/f._timeScale){var k;a:{for(k=f._timeline;k;){if(k._paused){k=!0;break a}k=k._timeline}k=!1}k||(h[e++]=f)}return h};i.getLabelAfter=function(c){!c&&0!==c&&(c=this._time);var e=this.getLabelsArray(),b=e.length,h;for(h=0;h<b;h++)if(e[h].time>@@ -57,66 +57,65 @@ c)return e[h].name;return null};i.getLabelBefore=function(c){null==c&&(c=this._tthis._totalTime/this.totalDuration():this.totalTime(this.totalDuration()*c,!1)};i.totalDuration=function(c){return!arguments.length?(this._dirty&&(y.prototype.totalDuration.call(this),this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration):-1==this._repeat?this:this.duration((c-this._repeat*this._repeatDelay)/(this._repeat+1))};i.time=function(c,e){if(!arguments.length)return this._time;this._dirty&&this.totalDuration();c>this._duration&&(c=this._duration);this._yoyo&&0!==(this._cycle&1)?c=this._duration-c+this._cycle*(this._duration+this._repeatDelay):0!=this._repeat&&(c+=this._cycle*(this._duration+this._repeatDelay));return this.totalTime(c,e)};i.repeat=function(c){if(!arguments.length)return this._repeat;this._repeat=c;return this._uncache(!0)};i.repeatDelay=function(c){if(!arguments.length)return this._repeatDelay;this._repeatDelay=c;return this._uncache(!0)};i.yoyo=function(c){if(!arguments.length)return this._yoyo;this._yoyo=c;return this};i.currentLabel=function(c){return!arguments.length?this.getLabelBefore(this._time+1E-8):this.seek(c,!0)};return q},!0);_gsDefine("plugins.BezierPlugin",["plugins.TweenPlugin"],function(y){var w=function(){y.call(this,"bezier",-1);this._overwriteProps.pop();this._func={};this._round={}},i=w.prototype=new y("bezier",1),q=180/Math.PI,s=[],c=[],t=[],e={},b=function(b,c,d,e){this.a=b;this.b=c;this.c=d;this.d=e;this.da=e-b;this.ca=d-b;this.ba=c-b},h=w.bezierThrough=function(f,-k,A,h,i,x){var m={},B=[],n,q,i="string"===typeof i?","+i+",":",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,";null==k&&(k=1);for(q in f[0])B.push(q);s.length=c.length=t.length=0;for(n=B.length;-1<--n;){q=B[n];e[q]=-1!==i.indexOf(","+q+",");var w=m,y=q,F;F=f;var C=q,p=e[q],D=x,H=[],G=void 0,z=void 0,E=void 0,g=void 0,u=void 0,G=void 0;if(D){F=[D].concat(F);for(z=F.length;-1<--z;)if("string"===-typeof(G=F[z][C]))"="===G.charAt(1)&&(F[z][C]=D[C]+Number(G.charAt(0)+G.substr(2)))}G=F.length-2;if(0>G)H[0]=new b(F[0][C],0,0,F[-1>G?0:1][C]);else{for(z=0;z<G;z++)E=F[z][C],g=F[z+1][C],H[z]=new b(E,0,0,g),p&&(u=F[z+2][C],s[z]=(s[z]||0)+(g-E)*(g-E),c[z]=(c[z]||0)+(u-g)*(u-g));H[z]=new b(F[z][C],0,0,F[z+1][C])}F=H;w[y]=F}for(n=s.length;-1<--n;)s[n]=Math.sqrt(s[n]),c[n]=Math.sqrt(c[n]);if(!h){for(n=B.length;-1<--n;)if(e[q]){a=m[B[n]];l=a.length-1;for(j=0;j<l;j++)r=a[j+1].da/c[j]+a[j].da/s[j],t[j]=(t[j]||-0)+r*r}for(n=t.length;-1<--n;)t[n]=Math.sqrt(t[n])}for(n=B.length;-1<--n;){q=B[n];f=m[q];i=k;x=A;w=h;q=e[q];y=f.length-1;F=0;for(var C=f[0].a,v=u=g=D=G=g=E=G=z=E=H=D=p=void 0,p=0;p<y;p++)z=f[F],D=z.a,H=z.d,E=f[F+1].d,q?(g=s[p],u=c[p],v=0.25*(u+g)*i/(w?0.5:t[p]||0.5),G=H-(H-D)*(w?0.5*i:v/g),E=H+(E-H)*(w?0.5*i:v/u),g=H-(G+(E-G)*(3*g/(g+u)+0.5)/4)):(G=H-0.5*(H-D)*i,E=H+0.5*(E-H)*i,g=H-(G+E)/2),G+=g,E+=g,z.c=G,z.b=0!=p?C:C=z.a+0.6*(z.c-z.a),z.da=H-D,z.ca=G-D,z.ba=C-D,x?(D=d(D,C,G,H),f.splice(F,1,D[0],-D[1],D[2],D[3]),F+=4):F++,C=E;z=f[F];z.b=C;z.c=C+0.4*(z.d-C);z.da=z.d-z.a;z.ca=z.c-z.a;z.ba=C-z.a;x&&(D=d(z.a,C,z.c,z.d),f.splice(F,1,D[0],D[1],D[2],D[3]))}return m},d=w.cubicToQuadratic=function(b,c,d,e){var i={a:b},x={},h={},q={c:e},n=(b+c)/2,s=(c+d)/2,d=(d+e)/2,c=(n+s)/2,s=(s+d)/2,t=(s-c)/8;i.b=n+(b-n)/4;x.b=c+t;i.c=x.a=(i.b+x.b)/2;x.c=h.a=(c+s)/2;h.b=s-t;q.b=d+(e-d)/4;h.c=q.a=(h.b+q.b)/2;return[i,x,h,q]};w.quadraticToCubic=function(c,d,e){return new b(c,(2*d+c)/3,(2*d+e)/3,e)};i.constructor=w;-w.API=2;i._onInitTween=function(c,d,e){this._target=c;d instanceof Array&&(d={values:d});this._props=[];this._timeRes=null==d.timeResolution?6:parseInt(d.timeResolution);var i=d.values||[],q={},x=i[0],e=d.autoRotate||e.vars.orientToBezier,m,B,n;this._autoRotate=e?e instanceof Array?e:[["x","y","rotation",!0===e?0:Number(e)||0]]:null;for(m in x)this._props.push(m);for(x=this._props.length;-1<--x;)m=this._props[x],this._overwriteProps.push(m),e=this._func[m]="function"===typeof c[m],q[m]=!e?parseFloat(c[m]):-c[m.indexOf("set")||"function"!==typeof c["get"+m.substr(3)]?m:"get"+m.substr(3)](),n||q[m]!==i[0][m]&&(n=q);if("cubic"!==d.type&&"quadratic"!==d.type&&"soft"!==d.type)q=h(i,isNaN(d.curviness)?1:d.curviness,!1,"thruBasic"===d.type,d.correlate,n);else{e=(e=d.type)||"soft";d={};n="cubic"===e?3:2;var e="soft"===e,x=[],s,t,w,y,C,p,D,H,G;e&&q&&(i=[q].concat(i));if(null==i||i.length<n+1)throw"invalid Bezier data";for(t in i[0])x.push(t);for(p=x.length;-1<--p;){t=x[p];d[t]=C=[];G=0;H=i.length;for(D=0;D<-H;D++)s=null==q?i[D][t]:"string"===typeof(w=i[D][t])&&"="===w.charAt(1)?q[t]+Number(w.charAt(0)+w.substr(2)):Number(w),e&&1<D&&D<H-1&&(C[G++]=(s+C[G-2])/2),C[G++]=s;H=G-n+1;for(D=G=0;D<H;D+=n)s=C[D],t=C[D+1],w=C[D+2],y=2===n?0:C[D+3],C[G++]=w=3===n?new b(s,t,w,y):new b(s,(2*t+s)/3,(2*t+w)/3,w);C.length=G}q=d}this._beziers=q;this._segCount=this._beziers[m].length;if(this._timeRes){x=this._beziers;m=this._timeRes;m=m>>0||6;q=[];t=[];i=w=0;d=m-1;n=[];e=[];for(B in x){s=x[B];C=q;p=m;D=1/p;H=s.length;-for(var z=void 0,E=void 0,g=y=G=E=void 0,u=z=void 0,v=void 0,v=g=void 0;-1<--H;){g=s[H];E=g.a;G=g.d-E;y=g.c-E;g=g.b-E;E=0;for(u=1;u<=p;u++)z=D*u,v=1-z,z=E-(E=(z*z*G+3*v*(z*y+v*g))*z),v=H*p+u-1,C[v]=(C[v]||0)+z*z}}x=q.length;for(B=0;B<x;B++)w+=Math.sqrt(q[B]),s=B%m,e[s]=w,s===d&&(i+=w,s=B/m>>0,n[s]=e,t[s]=i,w=0,e=[]);this._length=i;this._lengths=t;this._segments=n;this._l1=this._li=this._s1=this._si=0;this._l2=this._lengths[0];this._curSeg=this._segments[0];this._s2=this._curSeg[0];this._prec=1/this._curSeg.length}if(e=-this._autoRotate){e[0]instanceof Array||(this._autoRotate=e=[e]);for(x=e.length;-1<--x;)for(B=0;3>B;B++)m=e[x][B],this._func[m]="function"===typeof c[m]?c[m.indexOf("set")||"function"!==typeof c["get"+m.substr(3)]?m:"get"+m.substr(3)]:!1}return!0};i.setRatio=function(b){var d=this._segCount,c=this._func,e=this._target,i,h,m,s,n;if(this._timeRes){i=this._lengths;s=this._curSeg;b*=this._length;h=this._li;if(b>this._l2&&h<d-1){for(d-=1;h<d&&(this._l2=i[++h])<=b;);this._l1=i[h-1];this._li=h;this._curSeg=+k,A,h,i,x){var m={},B=[],p,q,i="string"===typeof i?","+i+",":",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,";null==k&&(k=1);for(q in f[0])B.push(q);s.length=c.length=t.length=0;for(p=B.length;-1<--p;){q=B[p];e[q]=-1!==i.indexOf(","+q+",");var w=m,y=q,E;E=f;var C=q,n=e[q],D=x,H=[],G=void 0,z=void 0,F=void 0,g=void 0,u=void 0,G=void 0;if(D){E=[D].concat(E);for(z=E.length;-1<--z;)if("string"===+typeof(G=E[z][C]))"="===G.charAt(1)&&(E[z][C]=D[C]+Number(G.charAt(0)+G.substr(2)))}G=E.length-2;if(0>G)H[0]=new b(E[0][C],0,0,E[-1>G?0:1][C]);else{for(z=0;z<G;z++)F=E[z][C],g=E[z+1][C],H[z]=new b(F,0,0,g),n&&(u=E[z+2][C],s[z]=(s[z]||0)+(g-F)*(g-F),c[z]=(c[z]||0)+(u-g)*(u-g));H[z]=new b(E[z][C],0,0,E[z+1][C])}E=H;w[y]=E}for(p=s.length;-1<--p;)s[p]=Math.sqrt(s[p]),c[p]=Math.sqrt(c[p]);if(!h){for(p=B.length;-1<--p;)if(e[q]){a=m[B[p]];l=a.length-1;for(j=0;j<l;j++)r=a[j+1].da/c[j]+a[j].da/s[j],t[j]=(t[j]||+0)+r*r}for(p=t.length;-1<--p;)t[p]=Math.sqrt(t[p])}for(p=B.length;-1<--p;){q=B[p];f=m[q];i=k;x=A;w=h;q=e[q];y=f.length-1;E=0;for(var C=f[0].a,v=u=g=D=G=g=F=G=z=F=H=D=n=void 0,n=0;n<y;n++)z=f[E],D=z.a,H=z.d,F=f[E+1].d,q?(g=s[n],u=c[n],v=0.25*(u+g)*i/(w?0.5:t[n]||0.5),G=H-(H-D)*(w?0.5*i:v/g),F=H+(F-H)*(w?0.5*i:v/u),g=H-(G+(F-G)*(3*g/(g+u)+0.5)/4)):(G=H-0.5*(H-D)*i,F=H+0.5*(F-H)*i,g=H-(G+F)/2),G+=g,F+=g,z.c=G,z.b=0!=n?C:C=z.a+0.6*(z.c-z.a),z.da=H-D,z.ca=G-D,z.ba=C-D,x?(D=d(D,C,G,H),f.splice(E,1,D[0],+D[1],D[2],D[3]),E+=4):E++,C=F;z=f[E];z.b=C;z.c=C+0.4*(z.d-C);z.da=z.d-z.a;z.ca=z.c-z.a;z.ba=C-z.a;x&&(D=d(z.a,C,z.c,z.d),f.splice(E,1,D[0],D[1],D[2],D[3]))}return m},d=w.cubicToQuadratic=function(b,c,d,e){var i={a:b},x={},h={},q={c:e},p=(b+c)/2,s=(c+d)/2,d=(d+e)/2,c=(p+s)/2,s=(s+d)/2,t=(s-c)/8;i.b=p+(b-p)/4;x.b=c+t;i.c=x.a=(i.b+x.b)/2;x.c=h.a=(c+s)/2;h.b=s-t;q.b=d+(e-d)/4;h.c=q.a=(h.b+q.b)/2;return[i,x,h,q]};w.quadraticToCubic=function(c,d,e){return new b(c,(2*d+c)/3,(2*d+e)/3,e)};i.constructor=w;+w.API=2;i._onInitTween=function(c,d,e){this._target=c;d instanceof Array&&(d={values:d});this._props=[];this._timeRes=null==d.timeResolution?6:parseInt(d.timeResolution);var i=d.values||[],q={},x=i[0],e=d.autoRotate||e.vars.orientToBezier,m,B,p;this._autoRotate=e?e instanceof Array?e:[["x","y","rotation",!0===e?0:Number(e)||0]]:null;for(m in x)this._props.push(m);for(x=this._props.length;-1<--x;)m=this._props[x],this._overwriteProps.push(m),e=this._func[m]="function"===typeof c[m],q[m]=!e?parseFloat(c[m]):+c[m.indexOf("set")||"function"!==typeof c["get"+m.substr(3)]?m:"get"+m.substr(3)](),p||q[m]!==i[0][m]&&(p=q);if("cubic"!==d.type&&"quadratic"!==d.type&&"soft"!==d.type)q=h(i,isNaN(d.curviness)?1:d.curviness,!1,"thruBasic"===d.type,d.correlate,p);else{e=(e=d.type)||"soft";d={};p="cubic"===e?3:2;var e="soft"===e,x=[],s,t,w,y,C,n,D,H,G;e&&q&&(i=[q].concat(i));if(null==i||i.length<p+1)throw"invalid Bezier data";for(t in i[0])x.push(t);for(n=x.length;-1<--n;){t=x[n];d[t]=C=[];G=0;H=i.length;for(D=0;D<+H;D++)s=null==q?i[D][t]:"string"===typeof(w=i[D][t])&&"="===w.charAt(1)?q[t]+Number(w.charAt(0)+w.substr(2)):Number(w),e&&1<D&&D<H-1&&(C[G++]=(s+C[G-2])/2),C[G++]=s;H=G-p+1;for(D=G=0;D<H;D+=p)s=C[D],t=C[D+1],w=C[D+2],y=2===p?0:C[D+3],C[G++]=w=3===p?new b(s,t,w,y):new b(s,(2*t+s)/3,(2*t+w)/3,w);C.length=G}q=d}this._beziers=q;this._segCount=this._beziers[m].length;if(this._timeRes){x=this._beziers;m=this._timeRes;m=m>>0||6;q=[];t=[];i=w=0;d=m-1;p=[];e=[];for(B in x){s=x[B];C=q;n=m;D=1/n;H=s.length;+for(var z=void 0,F=void 0,g=y=G=F=void 0,u=z=void 0,v=void 0,v=g=void 0;-1<--H;){g=s[H];F=g.a;G=g.d-F;y=g.c-F;g=g.b-F;F=0;for(u=1;u<=n;u++)z=D*u,v=1-z,z=F-(F=(z*z*G+3*v*(z*y+v*g))*z),v=H*n+u-1,C[v]=(C[v]||0)+z*z}}x=q.length;for(B=0;B<x;B++)w+=Math.sqrt(q[B]),s=B%m,e[s]=w,s===d&&(i+=w,s=B/m>>0,p[s]=e,t[s]=i,w=0,e=[]);this._length=i;this._lengths=t;this._segments=p;this._l1=this._li=this._s1=this._si=0;this._l2=this._lengths[0];this._curSeg=this._segments[0];this._s2=this._curSeg[0];this._prec=1/this._curSeg.length}if(e=+this._autoRotate){e[0]instanceof Array||(this._autoRotate=e=[e]);for(x=e.length;-1<--x;)for(B=0;3>B;B++)m=e[x][B],this._func[m]="function"===typeof c[m]?c[m.indexOf("set")||"function"!==typeof c["get"+m.substr(3)]?m:"get"+m.substr(3)]:!1}return!0};i.setRatio=function(b){var d=this._segCount,c=this._func,e=this._target,i,h,m,s,p;if(this._timeRes){i=this._lengths;s=this._curSeg;b*=this._length;h=this._li;if(b>this._l2&&h<d-1){for(d-=1;h<d&&(this._l2=i[++h])<=b;);this._l1=i[h-1];this._li=h;this._curSeg=s=this._segments[h];this._s2=s[this._s1=this._si=0]}else if(b<this._l1&&0<h){for(;0<h&&(this._l1=i[--h])>=b;);0===h&&b<this._l1?this._l1=0:h++;this._l2=i[h];this._li=h;this._curSeg=s=this._segments[h];this._s1=s[(this._si=s.length-1)-1]||0;this._s2=s[this._si]}i=h;b-=this._l1;h=this._si;if(b>this._s2&&h<s.length-1){for(d=s.length-1;h<d&&(this._s2=s[++h])<=b;);this._s1=s[h-1];this._si=h}else if(b<this._s1&&0<h){for(;0<h&&(this._s1=s[--h])>=b;);0===h&&b<this._s1?this._s1=0:h++;this._s2=s[h];this._si=-h}s=(h+(b-this._s1)/(this._s2-this._s1))*this._prec}else i=0>b?0:1<=b?d-1:d*b>>0,s=(b-i*(1/d))*d;d=1-s;for(h=this._props.length;-1<--h;)if(b=this._props[h],m=this._beziers[b][i],n=(s*s*m.da+3*d*(s*m.ca+d*m.ba))*s+m.a,this._round[b]&&(n=n+(0<n?0.5:-0.5)>>0),c[b])e[b](n);else e[b]=n;if(this._autoRotate){var d=this._autoRotate,t,w,y,F,C;for(h=d.length;-1<--h;)b=d[h][2],F=d[h][3]||0,C=!0==d[h][4]?1:q,m=this._beziers[d[h][0]][i],n=this._beziers[d[h][1]][i],t=m.a+(m.b-m.a)*s,w=m.b+(m.c-m.b)*s,t+=(w-t)*-s,w+=(m.c+(m.d-m.c)*s-w)*s,m=n.a+(n.b-n.a)*s,y=n.b+(n.c-n.b)*s,m+=(y-m)*s,y+=(n.c+(n.d-n.c)*s-y)*s,n=Math.atan2(y-m,w-t)*C+F,c[b]?c[b].call(e,n):e[b]=n}};i._roundProps=function(b,d){for(var c=this._overwriteProps,e=c.length;-1<--e;)if(b[c[e]]||b.bezier||b.bezierThrough)this._round[c[e]]=d};i._kill=function(b){var d=this._props,c,e;for(c in _beziers)if(c in b){delete this._beziers[c];delete this._func[c];for(e=d.length;-1<--e;)d[e]===c&&d.splice(e,1)}return y.prototype._kill.call(this,b)};y.activate([w]);+h}s=(h+(b-this._s1)/(this._s2-this._s1))*this._prec}else i=0>b?0:1<=b?d-1:d*b>>0,s=(b-i*(1/d))*d;d=1-s;for(h=this._props.length;-1<--h;)if(b=this._props[h],m=this._beziers[b][i],p=(s*s*m.da+3*d*(s*m.ca+d*m.ba))*s+m.a,this._round[b]&&(p=p+(0<p?0.5:-0.5)>>0),c[b])e[b](p);else e[b]=p;if(this._autoRotate){var d=this._autoRotate,t,w,y,E,C;for(h=d.length;-1<--h;)b=d[h][2],E=d[h][3]||0,C=!0==d[h][4]?1:q,m=this._beziers[d[h][0]][i],p=this._beziers[d[h][1]][i],t=m.a+(m.b-m.a)*s,w=m.b+(m.c-m.b)*s,t+=(w-t)*+s,w+=(m.c+(m.d-m.c)*s-w)*s,m=p.a+(p.b-p.a)*s,y=p.b+(p.c-p.b)*s,m+=(y-m)*s,y+=(p.c+(p.d-p.c)*s-y)*s,p=Math.atan2(y-m,w-t)*C+E,c[b]?c[b].call(e,p):e[b]=p}};i._roundProps=function(b,d){for(var c=this._overwriteProps,e=c.length;-1<--e;)if(b[c[e]]||b.bezier||b.bezierThrough)this._round[c[e]]=d};i._kill=function(b){var d=this._props,c,e;for(c in _beziers)if(c in b){delete this._beziers[c];delete this._func[c];for(e=d.length;-1<--e;)d[e]===c&&d.splice(e,1)}return y.prototype._kill.call(this,b)};y.activate([w]);return w},!0);_gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(y){var w=function(){y.call(this,"css");this._overwriteProps.pop()},i=w.prototype=new y("css");i.constructor=w;w.API=2;w.suffixMap={top:"px",right:"px",bottom:"px",left:"px",width:"px",height:"px",fontSize:"px",padding:"px",margin:"px"};var q=/[^\d\-\.]/g,s=/(\d|\-|\+|=|#|\.)*/g,c=/(\d|\.)+/g,t=/opacity *= *([^)]*)/,e=/opacity:([^;]*)/,b=/([A-Z])/g,h=/-([a-z])/gi,d=function(b,g){return g.toUpperCase()},f=/(Left|Right|Width)/i,-k=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,A=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,L=Math.PI/180,O=180/Math.PI,x={},m=document,B=m.createElement("div"),n=navigator.userAgent,P,M,N,F,C,p=n.indexOf("Android"),D=m.createElement("div");N=-1!==n.indexOf("Safari")&&-1===n.indexOf("Chrome")&&(-1===p||3<Number(n.substr(p+8,1)));/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(n);F=parseFloat(RegExp.$1);D.innerHTML="<a style='top:1px;opacity:.55;'>a</a>";C=(n=D.getElementsByTagName("a")[0])?/^0.55/.test(n.style.opacity):+k=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,A=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,L=Math.PI/180,O=180/Math.PI,x={},m=document,B=m.createElement("div"),p=navigator.userAgent,P,M,N,E,C,n=p.indexOf("Android"),D=m.createElement("div");N=-1!==p.indexOf("Safari")&&-1===p.indexOf("Chrome")&&(-1===n||3<Number(p.substr(n+8,1)));/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(p);E=parseFloat(RegExp.$1);D.innerHTML="<a style='top:1px;opacity:.55;'>a</a>";C=(p=D.getElementsByTagName("a")[0])?/^0.55/.test(p.style.opacity):!1;var H=function(b){if(!b||""===b)return R.black;if(R[b])return R[b];if("number"===typeof b)return[b>>16,b>>8&255,b&255];if("#"===b.charAt(0)){if(4===b.length)var g=b.charAt(1),d=b.charAt(2),b=b.charAt(3),b="#"+g+g+d+d+b+b;b=parseInt(b.substr(1),16);return[b>>16,b>>8&255,b&255]}return b.match(c)||R.transparent},G=function(b){return t.test("string"===typeof b?b:(b.currentStyle?b.currentStyle.filter:b.style.filter)||"")?parseFloat(RegExp.$1)/100:1},z=m.defaultView?m.defaultView.getComputedStyle:function(){},-E=function(g,d,c,v){return!C&&"opacity"===d?G(g):!v&&g.style[d]?g.style[d]:(c=c||z(g,null))?(g=c.getPropertyValue(d.replace(b,"-$1").toLowerCase()))||c.length?g:c[d]:g.currentStyle?(c=g.currentStyle,v=c[d],!v&&"backgroundPosition"===d?c[d+"X"]+" "+c[d+"Y"]:v):null},g=function(b,g){var c={},v;if(g=g||z(b,null))if(v=g.length)for(;-1<--v;)c[g[v].replace(h,d)]=g.getPropertyValue(g[v]);else for(v in g)c[v]=g[v];else if(g=b.currentStyle||b.style)for(v in g)c[v.replace(h,d)]=g[v];C||(c.opacity=G(b));v=S(b,-g,!1);c.rotation=v.rotation*O;c.skewX=v.skewX*O;c.scaleX=v.scaleX;c.scaleY=v.scaleY;c.x=v.x;c.y=v.y;null!=c.filters&&delete c.filters;return c},u=function(b,g,d,c){var v={},u,p;for(p in g)if("cssText"!==p&&"length"!==p&&isNaN(p)&&b[p]!=(u=g[p]))if(u!==J&&("number"===typeof u||"string"===typeof u))v[p]=(""===u||"auto"===u)&&"string"===typeof b[p]&&""!==b[p].replace(q,"")?0:u,c&&c.props.push(p);if(d)for(p in d)"className"!==p&&(v[p]=d[p]);return v},v={scaleX:1,scaleY:1,x:1,y:1,rotation:1,shortRotation:1,-skewX:1,skewY:1,scale:1},I="",K="",J=function(b,g){var g=g||m.body||m.documentElement,d=z(g,""),c,v;if(E(g,b))return b;b=b.substr(0,1).toUpperCase()+b.substr(1);c=["O","Moz","ms","Ms","Webkit"];for(v=5;-1<--v&&!E(g,c[v]+b,d););return 0<=v?(K=3===v?"ms":c[v],I="-"+K.toLowerCase()+"-",K+b):null}("transform"),W=I+"transform",S=function(b,g,d){var c=b._gsTransform,v;J?v=E(b,W,g,!0):b.currentStyle&&(v=(v=b.currentStyle.filter.match(k))&&4===v.length?v[0].substr(4)+","+Number(v[2].substr(4))+","+Number(v[1].substr(4))+-","+v[3].substr(4)+","+(c?c.x:0)+","+(c?c.y:0):null);var g=(v||"").replace(/[^\d\-\.e,]/g,"").split(","),u=(v=6<=g.length)?Number(g[0]):1,p=v?Number(g[1]):0,f=v?Number(g[2]):0,e=v?Number(g[3]):1,c=d?c||{skewY:0}:{skewY:0},h=0>c.scaleX;c.x=v?Number(g[4]):0;c.y=v?Number(g[5]):0;c.scaleX=Math.sqrt(u*u+p*p);c.scaleY=Math.sqrt(e*e+f*f);c.rotation=u||p?Math.atan2(p,u):c.rotation||0;c.skewX=f||e?Math.atan2(f,e)+c.rotation:c.skewX||0;Math.abs(c.skewX)>Math.PI/2&&(h?(c.scaleX*=-1,c.skewX+=0>=c.rotation?Math.PI:--Math.PI,c.rotation+=0>=c.rotation?Math.PI:-Math.PI):(c.scaleY*=-1,c.skewX+=0>=c.skewX?Math.PI:-Math.PI));if(1E-6>c.rotation&&-1E-6<c.rotation&&(u||p))c.rotation=0;if(1E-6>c.skewX&&-1E-6<c.skewX&&(p||f))c.skewX=0;d&&(b._gsTransform=c);return c},X={width:["Left","Right"],height:["Top","Bottom"]},Y=["marginLeft","marginRight","marginTop","marginBottom"],Q=function(b,g,c,d,v){if("px"===d||!d)return c;if("auto"===d||!c)return 0;var u=f.test(g),p=b,e=B.style,h=0>c;h&&(c=-c);e.cssText="border-style:solid; border-width:0; position:absolute; line-height:0;";-"%"===d||"em"===d||!p.appendChild?(p=b.parentNode||m.body,e[u?"width":"height"]=c+d):e[u?"borderLeftWidth":"borderTopWidth"]=c+d;p.appendChild(B);u=parseFloat(B[u?"offsetWidth":"offsetHeight"]);p.removeChild(B);0===u&&!v&&(u=Q(b,g,c,d,!0));return h?-u:u},V=function(b,g){if(null==b||""===b||"auto"===b||"auto auto"===b)b="0 0";var g=g||{},c=-1!==b.indexOf("left")?"0%":-1!==b.indexOf("right")?"100%":b.split(" ")[0],d=-1!==b.indexOf("top")?"0%":-1!==b.indexOf("bottom")?"100%":b.split(" ")[1];null==d?+F=function(g,d,c,v){return!C&&"opacity"===d?G(g):!v&&g.style[d]?g.style[d]:(c=c||z(g,null))?(g=c.getPropertyValue(d.replace(b,"-$1").toLowerCase()))||c.length?g:c[d]:g.currentStyle?(c=g.currentStyle,v=c[d],!v&&"backgroundPosition"===d?c[d+"X"]+" "+c[d+"Y"]:v):null},g=function(b,g){var c={},v;if(g=g||z(b,null))if(v=g.length)for(;-1<--v;)c[g[v].replace(h,d)]=g.getPropertyValue(g[v]);else for(v in g)c[v]=g[v];else if(g=b.currentStyle||b.style)for(v in g)c[v.replace(h,d)]=g[v];C||(c.opacity=G(b));v=S(b,+g,!1);c.rotation=v.rotation*O;c.skewX=v.skewX*O;c.scaleX=v.scaleX;c.scaleY=v.scaleY;c.x=v.x;c.y=v.y;null!=c.filters&&delete c.filters;return c},u=function(b,g,d,c){var v={},u,n;for(n in g)if("cssText"!==n&&"length"!==n&&isNaN(n)&&b[n]!=(u=g[n]))if(u!==J&&("number"===typeof u||"string"===typeof u))v[n]=(""===u||"auto"===u)&&"string"===typeof b[n]&&""!==b[n].replace(q,"")?0:u,c&&c.props.push(n);if(d)for(n in d)"className"!==n&&(v[n]=d[n]);return v},v={scaleX:1,scaleY:1,x:1,y:1,rotation:1,shortRotation:1,+skewX:1,skewY:1,scale:1},I="",K="",J=function(b,g){var g=g||B,d=g.style,c,v;if(void 0!==d[b])return b;b=b.substr(0,1).toUpperCase()+b.substr(1);c=["O","Moz","ms","Ms","Webkit"];for(v=5;-1<--v&&void 0===d[c[v]+b];);return 0<=v?(K=3===v?"ms":c[v],I="-"+K.toLowerCase()+"-",K+b):null}("transform"),W=I+"transform",S=function(b,g,d){var c=b._gsTransform,v;J?v=F(b,W,g,!0):b.currentStyle&&(v=(v=b.currentStyle.filter.match(k))&&4===v.length?v[0].substr(4)+","+Number(v[2].substr(4))+","+Number(v[1].substr(4))++","+v[3].substr(4)+","+(c?c.x:0)+","+(c?c.y:0):null);var g=(v||"").replace(/[^\d\-\.e,]/g,"").split(","),u=(v=6<=g.length)?Number(g[0]):1,n=v?Number(g[1]):0,f=v?Number(g[2]):0,e=v?Number(g[3]):1,c=d?c||{skewY:0}:{skewY:0},h=0>c.scaleX;c.x=v?Number(g[4]):0;c.y=v?Number(g[5]):0;c.scaleX=Math.sqrt(u*u+n*n);c.scaleY=Math.sqrt(e*e+f*f);c.rotation=u||n?Math.atan2(n,u):c.rotation||0;c.skewX=f||e?Math.atan2(f,e)+c.rotation:c.skewX||0;Math.abs(c.skewX)>Math.PI/2&&(h?(c.scaleX*=-1,c.skewX+=0>=c.rotation?Math.PI:+-Math.PI,c.rotation+=0>=c.rotation?Math.PI:-Math.PI):(c.scaleY*=-1,c.skewX+=0>=c.skewX?Math.PI:-Math.PI));if(1E-6>c.rotation&&-1E-6<c.rotation&&(u||n))c.rotation=0;if(1E-6>c.skewX&&-1E-6<c.skewX&&(n||f))c.skewX=0;d&&(b._gsTransform=c);return c},X={width:["Left","Right"],height:["Top","Bottom"]},Y=["marginLeft","marginRight","marginTop","marginBottom"],Q=function(b,g,c,d,v){if("px"===d||!d)return c;if("auto"===d||!c)return 0;var u=f.test(g),n=b,e=B.style,h=0>c;h&&(c=-c);e.cssText="border-style:solid; border-width:0; position:absolute; line-height:0;";+"%"===d||"em"===d||!n.appendChild?(n=b.parentNode||m.body,e[u?"width":"height"]=c+d):e[u?"borderLeftWidth":"borderTopWidth"]=c+d;n.appendChild(B);u=parseFloat(B[u?"offsetWidth":"offsetHeight"]);n.removeChild(B);0===u&&!v&&(u=Q(b,g,c,d,!0));return h?-u:u},V=function(b,g){if(null==b||""===b||"auto"===b||"auto auto"===b)b="0 0";var g=g||{},c=-1!==b.indexOf("left")?"0%":-1!==b.indexOf("right")?"100%":b.split(" ")[0],d=-1!==b.indexOf("top")?"0%":-1!==b.indexOf("bottom")?"100%":b.split(" ")[1];null==d?d="0":"center"===d&&(d="50%");"center"===c&&(c="50%");g.oxp=-1!==c.indexOf("%");g.oyp=-1!==d.indexOf("%");g.oxr="="===c.charAt(1);g.oyr="="===d.charAt(1);g.ox=parseFloat(c.replace(q,""));g.oy=parseFloat(d.replace(q,""));return g},T=function(b,g){return null==b?g:"string"===typeof b&&1===b.indexOf("=")?Number(b.split("=").join(""))+g:Number(b)},U=function(b,g){var c=-1===b.indexOf("rad")?L:1,d=1===b.indexOf("="),b=Number(b.replace(q,""))*c;return d?b+g:b},R={aqua:[0,255,255],lime:[0,255,0],silver:[192,-192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]};N&&(n=m.createElement("style"),n.styleSheet&&m.getElementsByTagName("head")[0].appendChild(n));i._onInitTween=function(b,c,d){if(!b.nodeType)return!1;this._target=b;this._tween=d;this._classData=-this._transform=null;P=c.autoRound;var v=this._style=b.style,p=z(b,""),f,h;if(M&&""===v.zIndex&&(h=E(b,"zIndex",p),"auto"===h||""===h))v.zIndex=0;"string"===typeof c?(f=v.cssText,d=g(b,p),v.cssText=f+";"+c,h=u(d,g(b)),!C&&e.test(c)&&(h.opacity=parseFloat(RegExp.$1)),c=h,v.cssText=f):c.className&&(f=b.className,this._classData={b:f,e:"="!==c.className.charAt(1)?c.className:"+"===c.className.charAt(0)?b.className+" "+c.className.substr(2):b.className.split(c.className.substr(2)).join(""),props:[]},-d._duration?(d=g(b,p),b.className=this._classData.e,c=u(d,g(b),c,this._classData),b.className=f):c={});this._parseVars(c,b,p,c.suffixMap||w.suffixMap);return!0};i._parseVars=function(b,g,c,d){var u=this._style,p,f,e,h,k,i,n;for(p in b)if(f=b[p],"transform"===p||p===J)this._parseTransform(g,f,c,d);else if(v[p]||"transformOrigin"===p)this._parseTransform(g,b,c,d);else{if("alpha"===p||"autoAlpha"===p)p="opacity";else if("margin"===p||"padding"===p){f=(f+"").split(" ");k=f.length;e={};e[p+"Top"]=f[0];-e[p+"Right"]=1<k?f[1]:f[0];e[p+"Bottom"]=4===k?f[2]:f[0];e[p+"Left"]=4===k?f[3]:2===k?f[1]:f[0];this._parseVars(e,g,c,d);continue}else if("backgroundPosition"===p||"backgroundSize"===p){e=V(f);n=V(h=E(g,p,c));this._firstPT=e={_next:this._firstPT,t:u,p:p,b:h,f:!1,n:"css_"+p,type:3,s:n.ox,c:e.oxr?e.ox:e.ox-n.ox,ys:n.oy,yc:e.oyr?e.oy:e.oy-n.oy,sfx:e.oxp?"%":"px",ysfx:e.oyp?"%":"px",r:!e.oxp&&!1!==b.autoRound};e.e=e.s+e.c+e.sfx+" "+(e.ys+e.yc)+e.ysfx;continue}else if("border"===p){f=(f+"").split(" ");-this._parseVars({borderWidth:f[0],borderStyle:f[1]||"none",borderColor:f[2]||"#000000"},g,c,d);continue}else if("bezier"===p){this._parseBezier(f,g,c,d);continue}else if("autoRound"===p)continue;h=E(g,p,c);h=null!=h?h+"":"";this._firstPT=e={_next:this._firstPT,t:u,p:p,b:h,f:!1,n:"css_"+p,sfx:"",r:!1,type:0};"opacity"===p&&null!=b.autoAlpha&&("1"===h&&"hidden"===E(g,"visibility",c)&&(h=e.b="0"),this._firstPT=e._prev={_next:e,t:u,p:"visibility",f:!1,n:"css_visibility",r:!1,type:-1,b:0!==Number(h)?"visible":-"hidden",i:"visible",e:0===Number(f)?"hidden":"visible"},this._overwriteProps.push("css_visibility"));k="string"===typeof f;if("color"===p||"fill"===p||"stroke"===p||-1!==p.indexOf("Color")||k&&!f.indexOf("rgb(")){if(k=H(h),f=H(f),e.e=e.i=(3<f.length?"rgba(":"rgb(")+f.join(",")+")",e.b=(3<k.length?"rgba(":"rgb(")+k.join(",")+")",e.s=Number(k[0]),e.c=Number(f[0])-e.s,e.gs=Number(k[1]),e.gc=Number(f[1])-e.gs,e.bs=Number(k[2]),e.bc=Number(f[2])-e.bs,e.type=1,3<k.length||3<f.length)C?(e.as=4>k.length?-1:Number(k[3]),e.ac=(4>f.length?1:Number(f[3]))-e.as,e.type=2):(0==f[3]&&(e.e=e.i="transparent",e.type=-1),0==k[3]&&(e.b="transparent"))}else{i=h.replace(s,"");if(""===h||"auto"===h)if("width"===p||"height"===p){var I=p;i=g;n=c;h=parseFloat("width"===I?i.offsetWidth:i.offsetHeight);var I=X[I],m=I.length;for(n=n||z(i,null);-1<--m;)h-=parseFloat(E(i,"padding"+I[m],n,!0))||0,h-=parseFloat(E(i,"border"+I[m]+"Width",n,!0))||0;n=h;i="px"}else n="opacity"!==p?0:1,i="";else n=-1===h.indexOf(" ")?parseFloat(h.replace(q,-"")):NaN;k?(k="="===f.charAt(1),h=f.replace(s,""),f=-1===f.indexOf(" ")?parseFloat(f.replace(q,"")):NaN):(k=!1,h="");""===h&&(h=d[p]||i);e.e=f||0===f?(k?f+n:f)+h:b[p];if(i!==h&&""!==h&&(f||0===f))if(n||0===n)if(n=Q(g,p,n,i),"%"===h?(n/=Q(g,p,100,"%")/100,100<n&&(n=100)):"em"===h?n/=Q(g,p,1,"em"):(f=Q(g,p,f,h),h="px"),k&&(f||0===f))e.e=f+n+h;if((n||0===n)&&(f||0===f)&&(e.c=k?f:f-n))if(e.s=n,e.sfx=h,"opacity"===p)C||(e.type=4,e.p="filter",e.b="alpha(opacity="+100*e.s+")",e.e="alpha(opacity="+100*(e.s+-e.c)+")",e.dup=null!=b.autoAlpha,this._style.zoom=1);else{if(!1!==P&&("px"===h||"zIndex"===p))e.r=!0}else e.type=-1,e.i="display"===p&&"none"===e.e?e.b:e.e,e.s=e.c=0}this._overwriteProps.push("css_"+p);e._next&&(e._next._prev=e)}};i._parseTransform=function(b,g,c){if(!this._transform){var d=this._transform=S(b,c,!0),p=this._style,e,f,u;if("object"===typeof g){e={scaleX:T(null!=g.scaleX?g.scaleX:g.scale,d.scaleX),scaleY:T(null!=g.scaleY?g.scaleY:g.scale,d.scaleY),x:T(g.x,d.x),y:T(g.y,d.y)};null!=g.shortRotation?-(e.rotation="number"===typeof g.shortRotation?g.shortRotation*L:U(g.shortRotation,d.rotation),f=(e.rotation-d.rotation)%(2*Math.PI),f!==f%Math.PI&&(f+=Math.PI*(0>f?2:-2)),e.rotation=d.rotation+f):e.rotation=null==g.rotation?d.rotation:"number"===typeof g.rotation?g.rotation*L:U(g.rotation,d.rotation);e.skewX=null==g.skewX?d.skewX:"number"===typeof g.skewX?g.skewX*L:U(g.skewX,d.skewX);e.skewY=null==g.skewY?d.skewY:"number"===typeof g.skewY?g.skewY*L:U(g.skewY,d.skewY);if(f=e.skewY-d.skewY)e.skewX+=-f,e.rotation+=f;1E-6>e.skewY&&-1E-6<e.skewY&&(e.skewY=0);1E-6>e.skewX&&-1E-6<e.skewX&&(e.skewX=0);1E-6>e.rotation&&-1E-6<e.rotation&&(e.rotation=0);if(null!=(g=g.transformOrigin))J?(u=J+"Origin",this._firstPT=g={_next:this._firstPT,t:p,p:u,s:0,c:0,n:u,f:!1,r:!1,b:p[u],e:g,i:g,type:-1,sfx:""},g._next&&(g._next._prev=g)):V(g,d)}else if("string"===typeof g&&J)f=p[J],p[J]=g,e=S(b,null,!1),p[J]=f;else return;if(J){if(N&&(M=!0,""===p.WebkitBackfaceVisibility&&(p.WebkitBackfaceVisibility="hidden"),""===-p.zIndex&&(f=E(b,"zIndex",c),"auto"===f||""===f)))p.zIndex=0}else p.zoom=1;for(u in v)if((d[u]!==e[u]||null!=x[u])&&"shortRotation"!==u&&"scale"!==u)this._firstPT=g={_next:this._firstPT,t:d,p:u,s:d[u],c:e[u]-d[u],n:u,f:!1,r:!1,b:d[u],e:e[u],type:0,sfx:0},g._next&&(g._next._prev=g),this._overwriteProps.push("css_"+u)}};i._parseBezier=function(b,g,c,d){if(window.com.greensock.plugins.BezierPlugin){b instanceof Array&&(b={values:b});var p=b.values||[],v=p.length,e=[],f=this._bezier={_pt:[]},u=f._proxy=-{},h=0,k=0,i={},n=v-1,q=x,s=f._plugin=new window.com.greensock.plugins.BezierPlugin,I,m,K,t,w;for(I=0;I<v;I++){t={};this._transform=null;K=this._firstPT;this._parseVars(x=p[I],g,c,d);m=this._firstPT;if(0===I){for(w=this._transform;m!==K;)u[m.p]=m.s,f._pt[k++]=i[m.p]=m,1===m.type||2===m.type?(u[m.p+"_g"]=m.gs,u[m.p+"_b"]=m.bs,2===m.type&&(u[m.p+"_a"]=m.as)):3===m.type&&(u[m.p+"_y"]=m.ys),m=m._next;m=this._firstPT}else this._firstPT=K,K._prev&&(K._prev._next=null),K=K._prev=null;for(;m!==K;)i[m.p]&&-(t[m.p]=m.s+m.c,I===n&&(i[m.p].e=m.e),1===m.type||2===m.type?(t[m.p+"_g"]=m.gs+m.gc,t[m.p+"_b"]=m.bs+m.bc,2===m.type&&(t[m.p+"_a"]=m.as+m.ac)):3===m.type&&(t[m.p+"_y"]=m.ys+m.yc),0===I&&(m.c=m.ac=m.gc=m.bc=m.yc=0)),m=m._next;e[h++]=t}this._transform=w;x=q;b.values=e;0===b.autoRotate&&(b.autoRotate=!0);b.autoRotate&&!(b.autoRotate instanceof Array)&&(I=!0==b.autoRotate?0:Number(b.autoRotate)*Math.PI/180,b.autoRotate=null!=e[0].left?[["left","top","rotation",I,!0]]:null!=e[0].x?[["x","y","rotation",-I,!0]]:!1);if((f._autoRotate=b.autoRotate)&&!w)this._transform=S(g,c,!0);s._onInitTween(u,b,this._tween);b.values=p}else console.log("Error: BezierPlugin not loaded.")};i.setRatio=function(b){var g=this._firstPT,c=this._bezier,d=1E-6,p,v;if(c){c._plugin.setRatio(b);var e=c._pt,f=c._proxy;for(v=e.length;-1<--v;)g=e[v],g.s=f[g.p],1===g.type||2===g.type?(g.gs=f[g.p+"_g"],g.bs=f[g.p+"_b"],2===g.type&&(g.as=f[g.p+"_a"])):3===g.type&&(g.ys=f[g.p+"_y"]);c._autoRotate&&(this._transform.rotation=f.rotation)}if(1===-b&&(this._tween._time===this._tween._duration||0===this._tween._time))for(;g;)g.t[g.p]=g.e,4===g.type&&1===g.s+g.c&&(this._style.removeAttribute("filter"),E(this._target,"filter")&&(g.t[g.p]=g.e)),g=g._next;else if(b||!(this._tween._time===this._tween._duration||0===this._tween._time))for(;g;)p=g.c*b+g.s,g.r?p=0<p?p+0.5>>0:p-0.5>>0:p<d&&p>-d&&(p=0),g.type?1===g.type?g.t[g.p]="rgb("+(p>>0)+", "+(g.gs+b*g.gc>>0)+", "+(g.bs+b*g.bc>>0)+")":2===g.type?g.t[g.p]="rgba("+(p>>0)+", "+(g.gs+b*g.gc>>0)+", "+-(g.bs+b*g.bc>>0)+", "+(g.as+b*g.ac)+")":-1===g.type?g.t[g.p]=g.i:3===g.type?(c=g.ys+b*g.yc,g.r&&(c=0<c?c+0.5>>0:c-0.5>>0),g.t[g.p]=p+g.sfx+" "+c+g.ysfx):(g.dup&&(g.t.filter=g.t.filter||"alpha(opacity=100)"),g.t.filter=-1===g.t.filter.indexOf("opacity")?g.t.filter+(" alpha(opacity="+(100*p>>0)+")"):g.t.filter.replace(t,"opacity="+(100*p>>0))):g.t[g.p]=p+g.sfx,g=g._next;else for(;g;)g.t[g.p]=g.b,4===g.type&&1===g.s&&(this._style.removeAttribute("filter"),E(this._target,"filter")&&(g.t[g.p]=g.b)),g=-g._next;if(this._transform)if(g=this._transform,J&&!g.rotation&&!g.skewX)this._style[J]=(g.x||g.y?"translate("+g.x+"px,"+g.y+"px) ":"")+(1!==g.scaleX||1!==g.scaleY?"scale("+g.scaleX+","+g.scaleY+")":"")||"translate(0px,0px)";else{var e=J?g.rotation:-g.rotation,u=J?e-g.skewX:e+g.skewX,c=Math.cos(e)*g.scaleX,e=Math.sin(e)*g.scaleX,f=Math.sin(u)*-g.scaleY,u=Math.cos(u)*g.scaleY,h;c<d&&c>-d&&(c=0);e<d&&e>-d&&(e=0);f<d&&f>-d&&(f=0);u<d&&u>-d&&(u=0);if(J)this._style[J]="matrix("+c+","+e+","+f+","+u+","+-g.x+","+g.y+")";else if(h=this._target.currentStyle){d=e;e=-f;f=-d;d=h.filter;this._style.filter="";v=this._target.offsetWidth;p=this._target.offsetHeight;var k="absolute"!==h.position,i="progid:DXImageTransform.Microsoft.Matrix(M11="+c+", M12="+e+", M21="+f+", M22="+u,m=g.x,n=g.y,q,I;null!=g.ox&&(q=(g.oxp?0.01*v*g.ox:g.ox)-v/2,I=(g.oyp?0.01*p*g.oy:g.oy)-p/2,m=q-(q*c+I*e)+g.x,n=I-(q*f+I*u)+g.y);if(k)q=v/2,I=p/2,i+=", Dx="+(q-(q*c+I*e)+m)+", Dy="+(I-(q*f+I*u)+n)+")";else{var K=8>F?1:-1;q=g.ieOffsetX||-0;I=g.ieOffsetY||0;g.ieOffsetX=Math.round((v-((0>c?-c:c)*v+(0>e?-e:e)*p))/2+m);g.ieOffsetY=Math.round((p-((0>u?-u:u)*p+(0>f?-f:f)*v))/2+n);for(v=0;4>v;v++)m=Y[v],p=h[m],p=-1!==p.indexOf("px")?parseFloat(p):Q(this._target,m,parseFloat(p),p.replace(s,""))||0,n=p!==g[m]?2>v?-g.ieOffsetX:-g.ieOffsetY:2>v?q-g.ieOffsetX:I-g.ieOffsetY,this._style[m]=(g[m]=Math.round(p-n*(0===v||2===v?1:K)))+"px";i+=", sizingMethod='auto expand')"}this._style.filter=-1!==d.indexOf("DXImageTransform.Microsoft.Matrix(")?d.replace(A,-i):i+" "+d;if(0===b||1===b)if(1===c&&0===e&&0===f&&1===u&&(!k||-1!==i.indexOf("Dx=0, Dy=0")))(!t.test(d)||100===parseFloat(RegExp.$1))&&this._style.removeAttribute("filter")}}if(this._classData)if(g=this._classData,1===b&&(this._tween._time===this._tween._duration||0===this._tween._time)){for(v=g.props.length;-1<--v;)this._style[g.props[v]]="";this._target.className=g.e}else this._target.className!==g.b&&(this._target.className=g.b)};i._kill=function(g){var b=g,c;if(g.autoAlpha||g.alpha){b={};for(c in g)b[c]=-g[c];b.opacity=1;b.autoAlpha&&(b.visibility=1)}return y.prototype._kill.call(this,b)};y.activate([w]);return w},!0);_gsDefine("plugins.RoundPropsPlugin",["plugins.TweenPlugin"],function(y){var w=function(){y.call(this,"roundProps",-1);this._overwriteProps.length=0},i=w.prototype=new y("roundProps",-1);i.constructor=w;w.API=2;i._onInitTween=function(i,s,c){this._tween=c;return!0};i._onInitAllProps=function(){for(var i=this._tween,s=i.vars.roundProps instanceof Array?i.vars.roundProps:i.vars.roundProps.split(","),-c=s.length,t={},e=i._propLookup.roundProps,b,h,d;-1<--c;)t[s[c]]=1;for(c=s.length;-1<--c;){b=s[c];for(h=i._firstPT;h;)d=h._next,h.pg?h.t._roundProps(t,!0):h.n===b&&(this._add(h.t,b,h.s,h.c),d&&(d._prev=h._prev),h._prev?h._prev._next=d:_tween._firstPT===h&&(i._firstPT=d),h._next=h._prev=null,i._propLookup[b]=e),h=d}return!1};i._add=function(i,s,c,t){this._addTween(i,s,c,c+t,s,!0);this._overwriteProps.push(s)};y.activate([w]);return w},!0);_gsDefine("easing.Back",["easing.Ease"],function(y){var w=window.com.greensock._class,-i=function(b,c){var d=w("easing."+b,function(){},!0),e=d.prototype=new y;e.constructor=d;e.getRatio=c;return d},q=function(b,c){var d=w("easing."+b,function(b){this._p1=b||0===b?b:1.70158;this._p2=1.525*this._p1},!0),e=d.prototype=new y;e.constructor=d;e.getRatio=c;e.config=function(b){return new d(b)};return d},s=q("BackOut",function(b){return(b-=1)*b*((this._p1+1)*b+this._p1)+1}),c=q("BackIn",function(b){return b*b*((this._p1+1)*b-this._p1)}),q=q("BackInOut",function(b){return 1>(b*=2)?0.5*b*b*-((this._p2+1)*b-this._p2):0.5*((b-=2)*b*((this._p2+1)*b+this._p2)+2)}),t=i("BounceOut",function(b){return b<1/2.75?7.5625*b*b:b<2/2.75?7.5625*(b-=1.5/2.75)*b+0.75:b<2.5/2.75?7.5625*(b-=2.25/2.75)*b+0.9375:7.5625*(b-=2.625/2.75)*b+0.984375}),e=i("BounceIn",function(b){return(b=1-b)<1/2.75?1-7.5625*b*b:b<2/2.75?1-(7.5625*(b-=1.5/2.75)*b+0.75):b<2.5/2.75?1-(7.5625*(b-=2.25/2.75)*b+0.9375):1-(7.5625*(b-=2.625/2.75)*b+0.984375)}),b=i("BounceInOut",function(b){var c=0.5>b,b=c?1-2*b:2*b-1,b=b<1/2.75?7.5625*-b*b:b<2/2.75?7.5625*(b-=1.5/2.75)*b+0.75:b<2.5/2.75?7.5625*(b-=2.25/2.75)*b+0.9375:7.5625*(b-=2.625/2.75)*b+0.984375;return c?0.5*(1-b):0.5*b+0.5}),h=i("CircOut",function(b){return Math.sqrt(1-(b-=1)*b)}),d=i("CircIn",function(b){return-(Math.sqrt(1-b*b)-1)}),f=i("CircInOut",function(b){return 1>(b*=2)?-0.5*(Math.sqrt(1-b*b)-1):0.5*(Math.sqrt(1-(b-=2)*b)+1)}),k=2*Math.PI,A=function(b,c,d){var e=w("easing."+b,function(b,c){this._p1=b||1;this._p2=c||d;this._p3=this._p2/k*(Math.asin(1/this._p1)||0)},-!0),b=e.prototype=new y;b.constructor=e;b.getRatio=c;b.config=function(b,c){return new e(b,c)};return e},L=A("ElasticOut",function(b){return this._p1*Math.pow(2,-10*b)*Math.sin((b-this._p3)*k/this._p2)+1},0.3),O=A("ElasticIn",function(b){return-(this._p1*Math.pow(2,10*(b-=1))*Math.sin((b-this._p3)*k/this._p2))},0.3),A=A("ElasticInOut",function(b){return 1>(b*=2)?-0.5*this._p1*Math.pow(2,10*(b-=1))*Math.sin((b-this._p3)*k/this._p2):0.5*this._p1*Math.pow(2,-10*(b-=1))*Math.sin((b-this._p3)*k/this._p2)+-1},0.45),x=i("ExpoOut",function(b){return 1-Math.pow(2,-10*b)}),m=i("ExpoIn",function(b){return Math.pow(2,10*(b-1))-0.001}),B=i("ExpoInOut",function(b){return 1>(b*=2)?0.5*Math.pow(2,10*(b-1)):0.5*(2-Math.pow(2,-10*(b-1)))}),n=Math.PI/2,P=i("SineOut",function(b){return Math.sin(b*n)}),M=i("SineIn",function(b){return-Math.cos(b*n)+1}),i=i("SineInOut",function(b){return-0.5*(Math.cos(Math.PI*b)-1)}),N=w("easing.SlowMo",function(b,c,d){null==b?b=0.7:1<b&&(b=1);this._p=1!=b?c||0===c?c:0.7:0;this._p1=-(1-b)/2;this._p2=b;this._p3=this._p1+this._p2;this._calcEnd=!0===d},!0),F=N.prototype=new y;F.constructor=N;F.getRatio=function(b){var c=b+(0.5-b)*this._p;return b<this._p1?this._calcEnd?1-(b=1-b/this._p1)*b:c-(b=1-b/this._p1)*b*b*b*c:b>this._p3?this._calcEnd?1-(b=(b-this._p3)/this._p1)*b:c+(b-c)*(b=(b-this._p3)/this._p1)*b*b*b:this._calcEnd?1:c};N.ease=new N(0.7,0.7);F.config=N.config=function(b,c,d){return new N(b,c,d)};var C=w("easing.SteppedEase",function(b){b=b||1;this._p1=1/b;this._p2=b+1},-!0),F=C.prototype=new y;F.constructor=C;F.getRatio=function(b){0>b?b=0:1<=b&&(b=0.999999999);return(this._p2*b>>0)*this._p1};F.config=C.config=function(b){return new C(b)};w("easing.Bounce",{easeOut:new t,easeIn:new e,easeInOut:new b},!0);w("easing.Circ",{easeOut:new h,easeIn:new d,easeInOut:new f},!0);w("easing.Elastic",{easeOut:new L,easeIn:new O,easeInOut:new A},!0);w("easing.Expo",{easeOut:new x,easeIn:new m,easeInOut:new B},!0);w("easing.Sine",{easeOut:new P,easeIn:new M,easeInOut:new i},!0);-return{easeOut:new s,easeIn:new c,easeInOut:new q}},!0)});+192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]};i._onInitTween=function(b,c,d){if(!b.nodeType)return!1;this._target=b;this._tween=d;this._classData=this._transform=null;P=c.autoRound;var v=this._style=b.style,n=z(b,""),f,h;if(M&&""===+v.zIndex&&(h=F(b,"zIndex",n),"auto"===h||""===h))v.zIndex=0;"string"===typeof c?(f=v.cssText,d=g(b,n),v.cssText=f+";"+c,h=u(d,g(b)),!C&&e.test(c)&&(h.opacity=parseFloat(RegExp.$1)),c=h,v.cssText=f):c.className&&(f=b.className,this._classData={b:f,e:"="!==c.className.charAt(1)?c.className:"+"===c.className.charAt(0)?b.className+" "+c.className.substr(2):b.className.split(c.className.substr(2)).join(""),props:[]},d._duration?(d=g(b,n),b.className=this._classData.e,c=u(d,g(b),c,this._classData),b.className=+f):c={});this._parseVars(c,b,n,c.suffixMap||w.suffixMap);return!0};i._parseVars=function(b,g,c,d){var u=this._style,n,f,e,h,k,i,p;for(n in b)if(f=b[n],"transform"===n||n===J)this._parseTransform(g,f,c,d);else if(v[n]||"transformOrigin"===n)this._parseTransform(g,b,c,d);else{if("alpha"===n||"autoAlpha"===n)n="opacity";else if("margin"===n||"padding"===n){f=(f+"").split(" ");k=f.length;e={};e[n+"Top"]=f[0];e[n+"Right"]=1<k?f[1]:f[0];e[n+"Bottom"]=4===k?f[2]:f[0];e[n+"Left"]=4===k?f[3]:2===k?f[1]:f[0];+this._parseVars(e,g,c,d);continue}else if("backgroundPosition"===n||"backgroundSize"===n){e=V(f);p=V(h=F(g,n,c));this._firstPT=e={_next:this._firstPT,t:u,p:n,b:h,f:!1,n:"css_"+n,type:3,s:p.ox,c:e.oxr?e.ox:e.ox-p.ox,ys:p.oy,yc:e.oyr?e.oy:e.oy-p.oy,sfx:e.oxp?"%":"px",ysfx:e.oyp?"%":"px",r:!e.oxp&&!1!==b.autoRound};e.e=e.s+e.c+e.sfx+" "+(e.ys+e.yc)+e.ysfx;continue}else if("border"===n){f=(f+"").split(" ");this._parseVars({borderWidth:f[0],borderStyle:f[1]||"none",borderColor:f[2]||"#000000"},g,c,d);+continue}else if("bezier"===n){this._parseBezier(f,g,c,d);continue}else if("autoRound"===n)continue;h=F(g,n,c);h=null!=h?h+"":"";this._firstPT=e={_next:this._firstPT,t:u,p:n,b:h,f:!1,n:"css_"+n,sfx:"",r:!1,type:0};"opacity"===n&&null!=b.autoAlpha&&("1"===h&&"hidden"===F(g,"visibility",c)&&(h=e.b="0"),this._firstPT=e._prev={_next:e,t:u,p:"visibility",f:!1,n:"css_visibility",r:!1,type:-1,b:0!==Number(h)?"visible":"hidden",i:"visible",e:0===Number(f)?"hidden":"visible"},this._overwriteProps.push("css_visibility"));+k="string"===typeof f;if("color"===n||"fill"===n||"stroke"===n||-1!==n.indexOf("Color")||k&&!f.indexOf("rgb(")){if(k=H(h),f=H(f),e.e=e.i=(3<f.length?"rgba(":"rgb(")+f.join(",")+")",e.b=(3<k.length?"rgba(":"rgb(")+k.join(",")+")",e.s=Number(k[0]),e.c=Number(f[0])-e.s,e.gs=Number(k[1]),e.gc=Number(f[1])-e.gs,e.bs=Number(k[2]),e.bc=Number(f[2])-e.bs,e.type=1,3<k.length||3<f.length)C?(e.as=4>k.length?1:Number(k[3]),e.ac=(4>f.length?1:Number(f[3]))-e.as,e.type=2):(0==f[3]&&(e.e=e.i="transparent",e.type=+-1),0==k[3]&&(e.b="transparent"))}else{i=h.replace(s,"");if(""===h||"auto"===h)if("width"===n||"height"===n){var I=n;i=g;p=c;h=parseFloat("width"===I?i.offsetWidth:i.offsetHeight);var I=X[I],m=I.length;for(p=p||z(i,null);-1<--m;)h-=parseFloat(F(i,"padding"+I[m],p,!0))||0,h-=parseFloat(F(i,"border"+I[m]+"Width",p,!0))||0;p=h;i="px"}else p="opacity"!==n?0:1,i="";else p=-1===h.indexOf(" ")?parseFloat(h.replace(q,"")):NaN;k?(k="="===f.charAt(1),h=f.replace(s,""),f=-1===f.indexOf(" ")?parseFloat(f.replace(q,+"")):NaN):(k=!1,h="");""===h&&(h=d[n]||i);e.e=f||0===f?(k?f+p:f)+h:b[n];if(i!==h&&""!==h&&(f||0===f))if(p||0===p)if(p=Q(g,n,p,i),"%"===h?(p/=Q(g,n,100,"%")/100,100<p&&(p=100)):"em"===h?p/=Q(g,n,1,"em"):(f=Q(g,n,f,h),h="px"),k&&(f||0===f))e.e=f+p+h;if((p||0===p)&&(f||0===f)&&(e.c=k?f:f-p))if(e.s=p,e.sfx=h,"opacity"===n)C||(e.type=4,e.p="filter",e.b="alpha(opacity="+100*e.s+")",e.e="alpha(opacity="+100*(e.s+e.c)+")",e.dup=null!=b.autoAlpha,this._style.zoom=1);else{if(!1!==P&&("px"===h||"zIndex"===n))e.r=+!0}else e.type=-1,e.i="display"===n&&"none"===e.e?e.b:e.e,e.s=e.c=0}this._overwriteProps.push("css_"+n);e._next&&(e._next._prev=e)}};i._parseTransform=function(b,g,c){if(!this._transform){var d=this._transform=S(b,c,!0),n=this._style,e,f,u;if("object"===typeof g){e={scaleX:T(null!=g.scaleX?g.scaleX:g.scale,d.scaleX),scaleY:T(null!=g.scaleY?g.scaleY:g.scale,d.scaleY),x:T(g.x,d.x),y:T(g.y,d.y)};null!=g.shortRotation?(e.rotation="number"===typeof g.shortRotation?g.shortRotation*L:U(g.shortRotation,d.rotation),+f=(e.rotation-d.rotation)%(2*Math.PI),f!==f%Math.PI&&(f+=Math.PI*(0>f?2:-2)),e.rotation=d.rotation+f):e.rotation=null==g.rotation?d.rotation:"number"===typeof g.rotation?g.rotation*L:U(g.rotation,d.rotation);e.skewX=null==g.skewX?d.skewX:"number"===typeof g.skewX?g.skewX*L:U(g.skewX,d.skewX);e.skewY=null==g.skewY?d.skewY:"number"===typeof g.skewY?g.skewY*L:U(g.skewY,d.skewY);if(f=e.skewY-d.skewY)e.skewX+=f,e.rotation+=f;1E-6>e.skewY&&-1E-6<e.skewY&&(e.skewY=0);1E-6>e.skewX&&-1E-6<e.skewX&&(e.skewX=+0);1E-6>e.rotation&&-1E-6<e.rotation&&(e.rotation=0);if(null!=(g=g.transformOrigin))J?(u=J+"Origin",this._firstPT=g={_next:this._firstPT,t:n,p:u,s:0,c:0,n:u,f:!1,r:!1,b:n[u],e:g,i:g,type:-1,sfx:""},g._next&&(g._next._prev=g)):V(g,d)}else if("string"===typeof g&&J)f=n[J],n[J]=g,e=S(b,null,!1),n[J]=f;else return;if(J){if(N&&(M=!0,""===n.WebkitBackfaceVisibility&&(n.WebkitBackfaceVisibility="hidden"),""===n.zIndex&&(f=F(b,"zIndex",c),"auto"===f||""===f)))n.zIndex=0}else n.zoom=1;for(u in v)if((d[u]!==+e[u]||null!=x[u])&&"shortRotation"!==u&&"scale"!==u)this._firstPT=g={_next:this._firstPT,t:d,p:u,s:d[u],c:e[u]-d[u],n:u,f:!1,r:!1,b:d[u],e:e[u],type:0,sfx:0},g._next&&(g._next._prev=g),this._overwriteProps.push("css_"+u)}};i._parseBezier=function(b,g,c,d){if(window.com.greensock.plugins.BezierPlugin){b instanceof Array&&(b={values:b});var n=b.values||[],v=n.length,e=[],f=this._bezier={_pt:[]},u=f._proxy={},h=0,k=0,i={},p=v-1,q=x,s=f._plugin=new window.com.greensock.plugins.BezierPlugin,I,m,K,t,w;+for(I=0;I<v;I++){t={};this._transform=null;K=this._firstPT;this._parseVars(x=n[I],g,c,d);m=this._firstPT;if(0===I){for(w=this._transform;m!==K;)u[m.p]=m.s,f._pt[k++]=i[m.p]=m,1===m.type||2===m.type?(u[m.p+"_g"]=m.gs,u[m.p+"_b"]=m.bs,2===m.type&&(u[m.p+"_a"]=m.as)):3===m.type&&(u[m.p+"_y"]=m.ys),m=m._next;m=this._firstPT}else this._firstPT=K,K._prev&&(K._prev._next=null),K=K._prev=null;for(;m!==K;)i[m.p]&&(t[m.p]=m.s+m.c,I===p&&(i[m.p].e=m.e),1===m.type||2===m.type?(t[m.p+"_g"]=m.gs+m.gc,t[m.p+"_b"]=+m.bs+m.bc,2===m.type&&(t[m.p+"_a"]=m.as+m.ac)):3===m.type&&(t[m.p+"_y"]=m.ys+m.yc),0===I&&(m.c=m.ac=m.gc=m.bc=m.yc=0)),m=m._next;e[h++]=t}this._transform=w;x=q;b.values=e;0===b.autoRotate&&(b.autoRotate=!0);b.autoRotate&&!(b.autoRotate instanceof Array)&&(I=!0==b.autoRotate?0:Number(b.autoRotate)*Math.PI/180,b.autoRotate=null!=e[0].left?[["left","top","rotation",I,!0]]:null!=e[0].x?[["x","y","rotation",I,!0]]:!1);if((f._autoRotate=b.autoRotate)&&!w)this._transform=S(g,c,!0);s._onInitTween(u,b,this._tween);+b.values=n}else console.log("Error: BezierPlugin not loaded.")};i.setRatio=function(b){var g=this._firstPT,c=this._bezier,d=1E-6,n,v;if(c){c._plugin.setRatio(b);var e=c._pt,f=c._proxy;for(v=e.length;-1<--v;)g=e[v],g.s=f[g.p],1===g.type||2===g.type?(g.gs=f[g.p+"_g"],g.bs=f[g.p+"_b"],2===g.type&&(g.as=f[g.p+"_a"])):3===g.type&&(g.ys=f[g.p+"_y"]);c._autoRotate&&(this._transform.rotation=f.rotation)}if(1===b&&(this._tween._time===this._tween._duration||0===this._tween._time))for(;g;)g.t[g.p]=g.e,4===+g.type&&1===g.s+g.c&&(this._style.removeAttribute("filter"),F(this._target,"filter")&&(g.t[g.p]=g.e)),g=g._next;else if(b||!(this._tween._time===this._tween._duration||0===this._tween._time))for(;g;)n=g.c*b+g.s,g.r?n=0<n?n+0.5>>0:n-0.5>>0:n<d&&n>-d&&(n=0),g.type?1===g.type?g.t[g.p]="rgb("+(n>>0)+", "+(g.gs+b*g.gc>>0)+", "+(g.bs+b*g.bc>>0)+")":2===g.type?g.t[g.p]="rgba("+(n>>0)+", "+(g.gs+b*g.gc>>0)+", "+(g.bs+b*g.bc>>0)+", "+(g.as+b*g.ac)+")":-1===g.type?g.t[g.p]=g.i:3===g.type?(c=g.ys+b*g.yc,g.r&&+(c=0<c?c+0.5>>0:c-0.5>>0),g.t[g.p]=n+g.sfx+" "+c+g.ysfx):(g.dup&&(g.t.filter=g.t.filter||"alpha(opacity=100)"),g.t.filter=-1===g.t.filter.indexOf("opacity")?g.t.filter+(" alpha(opacity="+(100*n>>0)+")"):g.t.filter.replace(t,"opacity="+(100*n>>0))):g.t[g.p]=n+g.sfx,g=g._next;else for(;g;)g.t[g.p]=g.b,4===g.type&&1===g.s&&(this._style.removeAttribute("filter"),F(this._target,"filter")&&(g.t[g.p]=g.b)),g=g._next;if(this._transform)if(g=this._transform,J&&!g.rotation&&!g.skewX)this._style[J]=(g.x||g.y?+"translate("+g.x+"px,"+g.y+"px) ":"")+(1!==g.scaleX||1!==g.scaleY?"scale("+g.scaleX+","+g.scaleY+")":"")||"translate(0px,0px)";else{var e=J?g.rotation:-g.rotation,u=J?e-g.skewX:e+g.skewX,c=Math.cos(e)*g.scaleX,e=Math.sin(e)*g.scaleX,f=Math.sin(u)*-g.scaleY,u=Math.cos(u)*g.scaleY,h;c<d&&c>-d&&(c=0);e<d&&e>-d&&(e=0);f<d&&f>-d&&(f=0);u<d&&u>-d&&(u=0);if(J)this._style[J]="matrix("+c+","+e+","+f+","+u+","+g.x+","+g.y+")";else if(h=this._target.currentStyle){d=e;e=-f;f=-d;d=h.filter;this._style.filter=+"";v=this._target.offsetWidth;n=this._target.offsetHeight;var k="absolute"!==h.position,i="progid:DXImageTransform.Microsoft.Matrix(M11="+c+", M12="+e+", M21="+f+", M22="+u,m=g.x,p=g.y,q,I;null!=g.ox&&(q=(g.oxp?0.01*v*g.ox:g.ox)-v/2,I=(g.oyp?0.01*n*g.oy:g.oy)-n/2,m=q-(q*c+I*e)+g.x,p=I-(q*f+I*u)+g.y);if(k)q=v/2,I=n/2,i+=", Dx="+(q-(q*c+I*e)+m)+", Dy="+(I-(q*f+I*u)+p)+")";else{var K=8>E?1:-1;q=g.ieOffsetX||0;I=g.ieOffsetY||0;g.ieOffsetX=Math.round((v-((0>c?-c:c)*v+(0>e?-e:e)*n))/2+m);g.ieOffsetY=Math.round((n-+((0>u?-u:u)*n+(0>f?-f:f)*v))/2+p);for(v=0;4>v;v++)m=Y[v],n=h[m],n=-1!==n.indexOf("px")?parseFloat(n):Q(this._target,m,parseFloat(n),n.replace(s,""))||0,p=n!==g[m]?2>v?-g.ieOffsetX:-g.ieOffsetY:2>v?q-g.ieOffsetX:I-g.ieOffsetY,this._style[m]=(g[m]=Math.round(n-p*(0===v||2===v?1:K)))+"px";i+=", sizingMethod='auto expand')"}this._style.filter=-1!==d.indexOf("DXImageTransform.Microsoft.Matrix(")?d.replace(A,i):i+" "+d;if(0===b||1===b)if(1===c&&0===e&&0===f&&1===u&&(!k||-1!==i.indexOf("Dx=0, Dy=0")))(!t.test(d)||+100===parseFloat(RegExp.$1))&&this._style.removeAttribute("filter")}}if(this._classData)if(g=this._classData,1===b&&(this._tween._time===this._tween._duration||0===this._tween._time)){for(v=g.props.length;-1<--v;)this._style[g.props[v]]="";this._target.className=g.e}else this._target.className!==g.b&&(this._target.className=g.b)};i._kill=function(g){var b=g,c;if(g.autoAlpha||g.alpha){b={};for(c in g)b[c]=g[c];b.opacity=1;b.autoAlpha&&(b.visibility=1)}return y.prototype._kill.call(this,b)};y.activate([w]);+return w},!0);_gsDefine("plugins.RoundPropsPlugin",["plugins.TweenPlugin"],function(y){var w=function(){y.call(this,"roundProps",-1);this._overwriteProps.length=0},i=w.prototype=new y("roundProps",-1);i.constructor=w;w.API=2;i._onInitTween=function(i,s,c){this._tween=c;return!0};i._onInitAllProps=function(){for(var i=this._tween,s=i.vars.roundProps instanceof Array?i.vars.roundProps:i.vars.roundProps.split(","),c=s.length,t={},e=i._propLookup.roundProps,b,h,d;-1<--c;)t[s[c]]=1;for(c=s.length;-1<--c;){b=+s[c];for(h=i._firstPT;h;)d=h._next,h.pg?h.t._roundProps(t,!0):h.n===b&&(this._add(h.t,b,h.s,h.c),d&&(d._prev=h._prev),h._prev?h._prev._next=d:_tween._firstPT===h&&(i._firstPT=d),h._next=h._prev=null,i._propLookup[b]=e),h=d}return!1};i._add=function(i,s,c,t){this._addTween(i,s,c,c+t,s,!0);this._overwriteProps.push(s)};y.activate([w]);return w},!0);_gsDefine("easing.Back",["easing.Ease"],function(y){var w=window.com.greensock._class,i=function(b,c){var d=w("easing."+b,function(){},!0),e=d.prototype=+new y;e.constructor=d;e.getRatio=c;return d},q=function(b,c){var d=w("easing."+b,function(b){this._p1=b||0===b?b:1.70158;this._p2=1.525*this._p1},!0),e=d.prototype=new y;e.constructor=d;e.getRatio=c;e.config=function(b){return new d(b)};return d},s=q("BackOut",function(b){return(b-=1)*b*((this._p1+1)*b+this._p1)+1}),c=q("BackIn",function(b){return b*b*((this._p1+1)*b-this._p1)}),q=q("BackInOut",function(b){return 1>(b*=2)?0.5*b*b*((this._p2+1)*b-this._p2):0.5*((b-=2)*b*((this._p2+1)*b+this._p2)+2)}),+t=i("BounceOut",function(b){return b<1/2.75?7.5625*b*b:b<2/2.75?7.5625*(b-=1.5/2.75)*b+0.75:b<2.5/2.75?7.5625*(b-=2.25/2.75)*b+0.9375:7.5625*(b-=2.625/2.75)*b+0.984375}),e=i("BounceIn",function(b){return(b=1-b)<1/2.75?1-7.5625*b*b:b<2/2.75?1-(7.5625*(b-=1.5/2.75)*b+0.75):b<2.5/2.75?1-(7.5625*(b-=2.25/2.75)*b+0.9375):1-(7.5625*(b-=2.625/2.75)*b+0.984375)}),b=i("BounceInOut",function(b){var c=0.5>b,b=c?1-2*b:2*b-1,b=b<1/2.75?7.5625*b*b:b<2/2.75?7.5625*(b-=1.5/2.75)*b+0.75:b<2.5/2.75?7.5625*(b-=2.25/+2.75)*b+0.9375:7.5625*(b-=2.625/2.75)*b+0.984375;return c?0.5*(1-b):0.5*b+0.5}),h=i("CircOut",function(b){return Math.sqrt(1-(b-=1)*b)}),d=i("CircIn",function(b){return-(Math.sqrt(1-b*b)-1)}),f=i("CircInOut",function(b){return 1>(b*=2)?-0.5*(Math.sqrt(1-b*b)-1):0.5*(Math.sqrt(1-(b-=2)*b)+1)}),k=2*Math.PI,A=function(b,c,d){var e=w("easing."+b,function(b,c){this._p1=b||1;this._p2=c||d;this._p3=this._p2/k*(Math.asin(1/this._p1)||0)},!0),b=e.prototype=new y;b.constructor=e;b.getRatio=c;b.config=function(b,+c){return new e(b,c)};return e},L=A("ElasticOut",function(b){return this._p1*Math.pow(2,-10*b)*Math.sin((b-this._p3)*k/this._p2)+1},0.3),O=A("ElasticIn",function(b){return-(this._p1*Math.pow(2,10*(b-=1))*Math.sin((b-this._p3)*k/this._p2))},0.3),A=A("ElasticInOut",function(b){return 1>(b*=2)?-0.5*this._p1*Math.pow(2,10*(b-=1))*Math.sin((b-this._p3)*k/this._p2):0.5*this._p1*Math.pow(2,-10*(b-=1))*Math.sin((b-this._p3)*k/this._p2)+1},0.45),x=i("ExpoOut",function(b){return 1-Math.pow(2,-10*b)}),m=i("ExpoIn",+function(b){return Math.pow(2,10*(b-1))-0.001}),B=i("ExpoInOut",function(b){return 1>(b*=2)?0.5*Math.pow(2,10*(b-1)):0.5*(2-Math.pow(2,-10*(b-1)))}),p=Math.PI/2,P=i("SineOut",function(b){return Math.sin(b*p)}),M=i("SineIn",function(b){return-Math.cos(b*p)+1}),i=i("SineInOut",function(b){return-0.5*(Math.cos(Math.PI*b)-1)}),N=w("easing.SlowMo",function(b,c,d){null==b?b=0.7:1<b&&(b=1);this._p=1!=b?c||0===c?c:0.7:0;this._p1=(1-b)/2;this._p2=b;this._p3=this._p1+this._p2;this._calcEnd=!0===d},!0),E=N.prototype=+new y;E.constructor=N;E.getRatio=function(b){var c=b+(0.5-b)*this._p;return b<this._p1?this._calcEnd?1-(b=1-b/this._p1)*b:c-(b=1-b/this._p1)*b*b*b*c:b>this._p3?this._calcEnd?1-(b=(b-this._p3)/this._p1)*b:c+(b-c)*(b=(b-this._p3)/this._p1)*b*b*b:this._calcEnd?1:c};N.ease=new N(0.7,0.7);E.config=N.config=function(b,c,d){return new N(b,c,d)};var C=w("easing.SteppedEase",function(b){b=b||1;this._p1=1/b;this._p2=b+1},!0),E=C.prototype=new y;E.constructor=C;E.getRatio=function(b){0>b?b=0:1<=b&&(b=0.999999999);+return(this._p2*b>>0)*this._p1};E.config=C.config=function(b){return new C(b)};w("easing.Bounce",{easeOut:new t,easeIn:new e,easeInOut:new b},!0);w("easing.Circ",{easeOut:new h,easeIn:new d,easeInOut:new f},!0);w("easing.Elastic",{easeOut:new L,easeIn:new O,easeInOut:new A},!0);w("easing.Expo",{easeOut:new x,easeIn:new m,easeInOut:new B},!0);w("easing.Sine",{easeOut:new P,easeIn:new M,easeInOut:new i},!0);return{easeOut:new s,easeIn:new c,easeInOut:new q}},!0)});(function(y){var w=function(b){var b=b.split("."),c=y,d;for(d=0;d<b.length;d++)c[b[d]]=c=c[b[d]]||{};return c},i=w("com.greensock"),q,s,c,t,e,b={},h=function(g,c,d,e){this.sc=b[g]?b[g].sc:[];b[g]=this;this.gsClass=null;this.def=d;var f=c||[],i=[];this.check=function(c){for(var u=f.length,k=0,m;-1<--u;)(m=b[f[u]]||new h(f[u])).gsClass?i[u]=m.gsClass:(k++,c&&m.sc.push(this));if(0===k&&d){var c=("com.greensock."+g).split("."),u=c.pop(),n=w(c.join("."))[u]=this.gsClass=d.apply(d,i);e&&((y.GreenSockGlobals||y)[u]=n,"function"===typeof define&&define.amd?define((y.GreenSockAMDPath?y.GreenSockAMDPath+"/":"")+g.split(".").join("/"),[],function(){return n}):"undefined"!==typeof module&&module.exports&&(module.exports=n));for(u=0;u<this.sc.length;u++)this.sc[u].check(!1)}};this.check(!0)},d=i._class=function(b,c,d){new h(b,[],function(){return c},d);return c};y._gsDefine=function(b,c,d,e){return new h(b,c,d,e)};var f=[0,0,1,1],k=[],A=d("easing.Ease",function(b,c,d,e){this._func=b;this._type=d||0;this._power=e||0;this._params=c?f.concat(c):f},!0);c=A.prototype;c._calcEnd=!1;c.getRatio=function(b){if(this._func)return this._params[0]=b,this._func.apply(null,this._params);var c=this._type,d=this._power,e=1===c?1-b:2===c?b:0.5>b?2*b:2*(1-b);1===d?e*=e:2===d?e*=e*e:3===d?e*=e*e*e:4===d&&(e*=e*e*e*e);return 1===c?1-e:2===c?e:0.5>b?e/2:1-e/2};q=["Linear","Quad","Cubic","Quart","Quint"];for(s=q.length;-1<--s;)c=d("easing."+q[s],function(){},!0),t=d("easing.Power"+s,function(){},!0),c.easeOut=t.easeOut=new A(null,null,1,s),c.easeIn=t.easeIn=new A(null,null,2,s),c.easeInOut=t.easeInOut=new A(null,null,3,s);d("easing.Strong",i.easing.Power4,!0);i.easing.Linear.easeNone=i.easing.Linear.easeIn;c=d("events.EventDispatcher",function(b){this._listeners={};this._eventTarget=b||this}).prototype;c.addEventListener=function(b,c,d,e,f){var f=f||0,h=this._listeners[b],i=0,k;null==h&&(this._listeners[b]=h=[]);for(k=h.length;-1<--k;)b=h[k],b.c===c?h.splice(k,1):0===i&&b.pr<f&&(i=k+1);h.splice(i,0,{c:c,s:d,up:e,pr:f})};c.removeEventListener=function(b,c){var d=this._listeners[b];if(d)for(var e=d.length;-1<--e;)if(d[e].c===c){d.splice(e,1);break}};c.dispatchEvent=function(b){var c=this._listeners[b];if(c)for(var d=c.length,e,f=this._eventTarget;-1<--d;)e=c[d],e.up?e.c.call(e.s||f,{type:b,target:f}):e.c.call(e.s||f)};var L=y.requestAnimationFrame,O=y.cancelAnimationFrame,x=Date.now||function(){return(new Date).getTime()};q=["ms","moz","webkit","o"];for(s=q.length;-1<--s&&!L;)L=y[q[s]+"RequestAnimationFrame"],O=y[q[s]+"CancelAnimationFrame"]||y[q[s]+"CancelRequestAnimationFrame"];O||(O=function(b){y.clearTimeout(b)});d("Ticker",function(b,c){this.frame=this.time=0;var d=this,e=x(),f=!1!==c,h,i,k,m,n;this.tick=function(){d.time=(x()-e)/1E3;if(!h||d.time>=n)d.frame++,n=d.time+m-(d.time-n)-5E-4,n<=d.time&&(n=d.time+0.001),d.dispatchEvent("tick");k=i(d.tick)};this.fps=function(b){if(!arguments.length)return h;h=b;m=1/(h||60);n=this.time+m;i=0===h?function(){}:!f||!L?function(b){return y.setTimeout(b,1E3*(n-d.time)+1>>0||1)}:L;O(k);k=i(d.tick)};-this.useRAF=function(b){if(!arguments.length)return f;f=b;this.fps(h)};this.fps(b)});c=i.Ticker.prototype=new i.events.EventDispatcher;c.constructor=i.Ticker;var m=d("core.Animation",function(b,c){this.vars=c||{};this._duration=this._totalDuration=b||0;this._delay=Number(this.vars.delay)||0;this._timeScale=1;this._active=!0==this.vars.immediateRender;this.data=this.vars.data;this._reversed=!0==this.vars.reversed;if(D){e||(B.tick(),e=!0);var d=this.vars.useFrames?p:D;d.insert(this,d._time);this.vars.paused&&+this.useRAF=function(b){if(!arguments.length)return f;f=b;this.fps(h)};this.fps(b)});c=i.Ticker.prototype=new i.events.EventDispatcher;c.constructor=i.Ticker;var m=d("core.Animation",function(b,c){this.vars=c||{};this._duration=this._totalDuration=b||0;this._delay=Number(this.vars.delay)||0;this._timeScale=1;this._active=!0==this.vars.immediateRender;this.data=this.vars.data;this._reversed=!0==this.vars.reversed;if(D){e||(B.tick(),e=!0);var d=this.vars.useFrames?n:D;d.insert(this,d._time);this.vars.paused&&this.paused(!0)}}),B=m.ticker=new i.Ticker;c=m.prototype;c._dirty=c._gc=c._initted=c._paused=!1;c._totalTime=c._time=0;c._rawPrevTime=-1;c._next=c._last=c._onUpdate=c._timeline=c.timeline=null;c._paused=!1;c.play=function(b,c){arguments.length&&this.seek(b,c);this.reversed(!1);return this.paused(!1)};c.pause=function(b,c){arguments.length&&this.seek(b,c);return this.paused(!0)};c.resume=function(b,c){arguments.length&&this.seek(b,c);return this.paused(!1)};c.seek=function(b,c){return this.totalTime(Number(b),!1!=c)};c.restart=function(b,c){this.reversed(!1);this.paused(!1);return this.totalTime(b?-this._delay:0,!1!=c)};c.reverse=function(b,c){arguments.length&&this.seek(b||this.totalDuration(),c);this.reversed(!0);return this.paused(!1)};c.render=function(){};c.invalidate=function(){return this};c._enabled=function(b,c){this._gc=!b;this._active=b&&!this._paused&&0<this._totalTime&&this._totalTime<this._totalDuration;!0!=c&&(b&&null==this.timeline?this._timeline.insert(this,this._startTime-this._delay):!b&&null!=this.timeline&&this._timeline._remove(this,!0));return!1};c._kill=function(){return this._enabled(!1,!1)};c.kill=function(b,c){this._kill(b,c);return this};c._uncache=function(b){for(b=b?this:this.timeline;b;)b._dirty=!0,b=b.timeline;return this};c.eventCallback=function(b,c,d,e){if(null==b)return null;if("on"===b.substr(0,2)){if(1===arguments.length)return this.vars[b];if(null==c)delete this.vars[b];else if(this.vars[b]=c,this.vars[b+"Params"]=d,this.vars[b+"Scope"]=e,d)for(var f=d.length;-1<@@ -127,15 +126,15 @@ this.timeline._sortChildren&&this.timeline.insert(this,b-this._delay));return ththis.totalTime(this._totalTime,!0));return this};c.paused=function(b){if(!arguments.length)return this._paused;b!=this._paused&&this._timeline&&(!b&&this._timeline.smoothChildTiming&&(this._startTime+=this._timeline.rawTime()-this._pauseTime,this._uncache(!1)),this._pauseTime=b?this._timeline.rawTime():null,this._paused=b,this._active=!this._paused&&0<this._totalTime&&this._totalTime<this._totalDuration);this._gc&&(b||this._enabled(!0,!1));return this};i=d("core.SimpleTimeline",function(b){m.call(this,0,b);this.autoRemoveChildren=this.smoothChildTiming=!0});c=i.prototype=new m;c.constructor=i;c.kill()._gc=!1;c._first=c._last=null;c._sortChildren=!1;c.insert=function(b,c){b._startTime=Number(c||0)+b._delay;b._paused&&this!==b._timeline&&(b._pauseTime=b._startTime+(this.rawTime()-b._startTime)/b._timeScale);b.timeline&&b.timeline._remove(b,!0);b.timeline=b._timeline=this;b._gc&&b._enabled(!0,!0);var d=this._last;if(this._sortChildren)for(var e=b._startTime;d&&d._startTime>e;)d=d._prev;d?(b._next=d._next,d._next=b):(b._next=this._first,this._first=b);b._next?b._next._prev=b:this._last=b;b._prev=d;this._timeline&&this._uncache(!0);return this};c._remove=function(b,c){b.timeline===this&&(c||b._enabled(!1,!0),b.timeline=null,b._prev?b._prev._next=b._next:this._first===b&&(this._first=b._next),b._next?b._next._prev=b._prev:this._last===b&&(this._last=b._prev),this._timeline&&this._uncache(!0));return this};c.render=function(b,c){var d=this._first,e;for(this._totalTime=this._time=this._rawPrevTime=-b;d;){e=d._next;if(d._active||b>=d._startTime&&!d._paused)d._reversed?d.render((!d._dirty?d._totalDuration:d.totalDuration())-(b-d._startTime)*d._timeScale,c,!1):d.render((b-d._startTime)*d._timeScale,c,!1);d=e}};c.rawTime=function(){return this._totalTime};var n=d("TweenLite",function(b,c,d){m.call(this,c,d);if(null==b)throw"Cannot tween an undefined reference.";this.target=b;this._overwrite=null==this.vars.overwrite?C[n.defaultOverwrite]:"number"===typeof this.vars.overwrite?this.vars.overwrite>>+b;d;){e=d._next;if(d._active||b>=d._startTime&&!d._paused)d._reversed?d.render((!d._dirty?d._totalDuration:d.totalDuration())-(b-d._startTime)*d._timeScale,c,!1):d.render((b-d._startTime)*d._timeScale,c,!1);d=e}};c.rawTime=function(){return this._totalTime};var p=d("TweenLite",function(b,c,d){m.call(this,c,d);if(null==b)throw"Cannot tween an undefined reference.";this.target=b;this._overwrite=null==this.vars.overwrite?C[p.defaultOverwrite]:"number"===typeof this.vars.overwrite?this.vars.overwrite>>0:C[this.vars.overwrite];if((b instanceof Array||b.jquery)&&"object"===typeof b[0]){this._targets=b.slice(0);this._propLookup=[];this._siblings=[];for(b=0;b<this._targets.length;b++)d=this._targets[b],d.jquery?(this._targets.splice(b--,1),this._targets=this._targets.concat(d.constructor.makeArray(d))):(this._siblings[b]=H(d,this,!1),1===this._overwrite&&1<this._siblings[b].length&&G(d,this,null,1,this._siblings[b]))}else this._propLookup={},this._siblings=H(b,this,!1),1===this._overwrite&&1<this._siblings.length&&-G(b,this,null,1,this._siblings);(this.vars.immediateRender||0===c&&0===this._delay&&!1!=this.vars.immediateRender)&&this.render(-this._delay,!1,!0)},!0);c=n.prototype=new m;c.constructor=n;c.kill()._gc=!1;c.ratio=0;c._firstPT=c._targets=c._overwrittenProps=null;c._notifyPluginsOfEnabled=!1;n.version=12;n.defaultEase=c._ease=new A(null,null,1,1);n.defaultOverwrite="auto";n.ticker=B;var P=n._plugins={},M=n._tweenLookup={},N=0,F={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,-useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,orientToBezier:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1},C={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},p=m._rootFramesTimeline=new i,D=m._rootTimeline=new i;D._startTime=B.time;p._startTime=-B.frame;D._active=p._active=!0;m._updateRoot=function(){D.render((B.time-D._startTime)*D._timeScale,!1,!1);p.render((B.frame-p._startTime)*p._timeScale,!1,!1);if(!(B.frame%120)){var b,c,d;for(d in M){c=M[d].tweens;for(b=c.length;-1<--b;)c[b]._gc&&c.splice(b,1);0===c.length&&delete M[d]}}};B.addEventListener("tick",m._updateRoot);var H=function(b,c,d){var e=b._gsTweenID,f;if(!M[e||(b._gsTweenID=e="t"+N++)])M[e]={target:b,tweens:[]};if(c&&(b=M[e].tweens,b[f=b.length]=c,d))for(;-1<--f;)b[f]===c&&b.splice(f,+G(b,this,null,1,this._siblings);(this.vars.immediateRender||0===c&&0===this._delay&&!1!=this.vars.immediateRender)&&this.render(-this._delay,!1,!0)},!0);c=p.prototype=new m;c.constructor=p;c.kill()._gc=!1;c.ratio=0;c._firstPT=c._targets=c._overwrittenProps=null;c._notifyPluginsOfEnabled=!1;p.version=12;p.defaultEase=c._ease=new A(null,null,1,1);p.defaultOverwrite="auto";p.ticker=B;var P=p._plugins={},M=p._tweenLookup={},N=0,E={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,+useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,orientToBezier:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1},C={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},n=m._rootFramesTimeline=new i,D=m._rootTimeline=new i;D._startTime=B.time;n._startTime=+B.frame;D._active=n._active=!0;m._updateRoot=function(){D.render((B.time-D._startTime)*D._timeScale,!1,!1);n.render((B.frame-n._startTime)*n._timeScale,!1,!1);if(!(B.frame%120)){var b,c,d;for(d in M){c=M[d].tweens;for(b=c.length;-1<--b;)c[b]._gc&&c.splice(b,1);0===c.length&&delete M[d]}}};B.addEventListener("tick",m._updateRoot);var H=function(b,c,d){var e=b._gsTweenID,f;if(!M[e||(b._gsTweenID=e="t"+N++)])M[e]={target:b,tweens:[]};if(c&&(b=M[e].tweens,b[f=b.length]=c,d))for(;-1<--f;)b[f]===c&&b.splice(f,1);return M[e].tweens},G=function(b,c,d,e,f){var h,i,k;if(1===e||4<=e){b=f.length;for(h=0;h<b;h++)if((k=f[h])!==c)k._gc||k._enabled(!1,!1)&&(i=!0);else if(5===e)break;return i}var m=c._startTime+1E-10,n=[],p=0,q;for(h=f.length;-1<--h;)if(!((k=f[h])===c||k._gc||k._paused))k._timeline!==c._timeline?(q=q||z(c,0),0===z(k,q)&&(n[p++]=k)):k._startTime<=m&&k._startTime+k.totalDuration()/k._timeScale+1E-10>m&&((0===c._duration||!k._initted)&&2E-10>=m-k._startTime||(n[p++]=k));for(h=p;-1<--h;)if(k=n[h],2===-e&&k._kill(d,b)&&(i=!0),2!==e||!k._firstPT&&k._initted)k._enabled(!1,!1)&&(i=!0);return i},z=function(b,c){for(var d=b._timeline,e=d._timeScale,f=b._startTime;d._timeline;){f+=d._startTime;e*=d._timeScale;if(d._paused)return-100;d=d._timeline}f/=e;return f>c?f-c:!b._initted&&2E-10>f-c?1E-10:(f+=b.totalDuration()/b._timeScale/e)>c?0:f-c-1E-10};c._init=function(){this.vars.startAt&&(this.vars.startAt.overwrite=0,this.vars.startAt.immediateRender=!0,n.to(this.target,0,this.vars.startAt));var b,c;this._ease=-this.vars.ease instanceof A?this.vars.easeParams instanceof Array?this.vars.ease.config.apply(this.vars.ease,this.vars.easeParams):this.vars.ease:"function"===typeof this.vars.ease?new A(this.vars.ease,this.vars.easeParams):n.defaultEase;this._easeType=this._ease._type;this._easePower=this._ease._power;this._firstPT=null;if(this._targets)for(b=this._targets.length;-1<--b;){if(this._initProps(this._targets[b],this._propLookup[b]={},this._siblings[b],this._overwrittenProps?this._overwrittenProps[b]:-null))c=!0}else c=this._initProps(this.target,this._propLookup,this._siblings,this._overwrittenProps);c&&n._onPluginEvent("_onInitAllProps",this);this._overwrittenProps&&null==this._firstPT&&"function"!==typeof this.target&&this._enabled(!1,!1);if(this.vars.runBackwards)for(b=this._firstPT;b;)b.s+=b.c,b.c=-b.c,b=b._next;this._onUpdate=this.vars.onUpdate;this._initted=!0};c._initProps=function(b,c,d,e){var f,h,k,i,m,n;if(null==b)return!1;for(f in this.vars){if(F[f]){if("onStartParams"===f||"onUpdateParams"===+e&&k._kill(d,b)&&(i=!0),2!==e||!k._firstPT&&k._initted)k._enabled(!1,!1)&&(i=!0);return i},z=function(b,c){for(var d=b._timeline,e=d._timeScale,f=b._startTime;d._timeline;){f+=d._startTime;e*=d._timeScale;if(d._paused)return-100;d=d._timeline}f/=e;return f>c?f-c:!b._initted&&2E-10>f-c?1E-10:(f+=b.totalDuration()/b._timeScale/e)>c?0:f-c-1E-10};c._init=function(){this.vars.startAt&&(this.vars.startAt.overwrite=0,this.vars.startAt.immediateRender=!0,p.to(this.target,0,this.vars.startAt));var b,c;this._ease=+this.vars.ease instanceof A?this.vars.easeParams instanceof Array?this.vars.ease.config.apply(this.vars.ease,this.vars.easeParams):this.vars.ease:"function"===typeof this.vars.ease?new A(this.vars.ease,this.vars.easeParams):p.defaultEase;this._easeType=this._ease._type;this._easePower=this._ease._power;this._firstPT=null;if(this._targets)for(b=this._targets.length;-1<--b;){if(this._initProps(this._targets[b],this._propLookup[b]={},this._siblings[b],this._overwrittenProps?this._overwrittenProps[b]:+null))c=!0}else c=this._initProps(this.target,this._propLookup,this._siblings,this._overwrittenProps);c&&p._onPluginEvent("_onInitAllProps",this);this._overwrittenProps&&null==this._firstPT&&"function"!==typeof this.target&&this._enabled(!1,!1);if(this.vars.runBackwards)for(b=this._firstPT;b;)b.s+=b.c,b.c=-b.c,b=b._next;this._onUpdate=this.vars.onUpdate;this._initted=!0};c._initProps=function(b,c,d,e){var f,h,k,i,m,n;if(null==b)return!1;for(f in this.vars){if(E[f]){if("onStartParams"===f||"onUpdateParams"===f||"onCompleteParams"===f||"onReverseCompleteParams"===f||"onRepeatParams"===f)if(m=this.vars[f])for(h=m.length;-1<--h;)"{self}"===m[h]&&(m=this.vars[f]=m.concat(),m[h]=this)}else if(P[f]&&(i=new P[f])._onInitTween(b,this.vars[f],this)){this._firstPT=n={_next:this._firstPT,t:i,p:"setRatio",s:0,c:1,f:!0,n:f,pg:!0,pr:i._priority};for(h=i._overwriteProps.length;-1<--h;)c[i._overwriteProps[h]]=this._firstPT;if(i._priority||i._onInitAllProps)k=!0;if(i._onDisable||i._onEnable)this._notifyPluginsOfEnabled=!0}else this._firstPT=c[f]=n={_next:this._firstPT,t:b,p:f,f:"function"===typeof b[f],n:f,pg:!1,pr:0},n.s=!n.f?parseFloat(b[f]):b[f.indexOf("set")||"function"!==typeof b["get"+f.substr(3)]?f:"get"+f.substr(3)](),n.c="number"===typeof this.vars[f]?this.vars[f]-n.s:"string"===typeof this.vars[f]?parseFloat(this.vars[f].split("=").join("")):0;n&&n._next&&(n._next._prev=n)}return e&&this._kill(e,b)?this._initProps(b,c,d,e):1<this._overwrite&&this._firstPT&&1<d.length&&G(b,this,c,this._overwrite,d)?(this._kill(c,b),this._initProps(b,c,d,e)):k};c.render=function(b,c,d){var e=this._time,f,h;if(b>=this._duration){if(this._totalTime=this._time=this._duration,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(f=!0,h="onComplete"),0===this._duration){if(0===b||0>this._rawPrevTime)this._rawPrevTime!==b&&(d=!0);this._rawPrevTime=b}}else if(0>=b){this._totalTime=this._time=0;this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0;if(0!==e||0===this._duration&&0<this._rawPrevTime)h="onReverseComplete",@@ -143,10 +142,10 @@ f=this._reversed;0>b?(this._active=!1,0===this._duration&&(0<=this._rawPrevTime&!f&&this._time&&(this.ratio=this._ease.getRatio(this._time/this._duration)));!this._active&&!this._paused&&(this._active=!0);if(0===e&&this.vars.onStart&&(0!==this._time||0===this._duration))c||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||k);for(b=this._firstPT;b;){if(b.f)b.t[b.p](b.c*this.ratio+b.s);else b.t[b.p]=b.c*this.ratio+b.s;b=b._next}this._onUpdate&&(c||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||k));h&&!this._gc&&(f&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),c||this.vars[h]&&this.vars[h].apply(this.vars[h+"Scope"]||this,this.vars[h+"Params"]||k))}};c._kill=function(b,c){"all"===b&&(b=null);if(null==b&&(null==c||c==this.target))return this._enabled(!1,!1);var c=c||this._targets||this.target,d,e,f,h,i,k,m;if((c instanceof Array||c.jquery)&&"object"===typeof c[0])for(d=c.length;-1<--d;)this._kill(b,c[d])&&(i=!0);else{if(this._targets)for(d=this._targets.length;-1<--d;){if(c===this._targets[d]){h=this._propLookup[d]||{};this._overwrittenProps=this._overwrittenProps||[];e=this._overwrittenProps[d]=b?this._overwrittenProps[d]||{}:"all";break}}else{if(c!==this.target)return!1;h=this._propLookup;e=this._overwrittenProps=b?this._overwrittenProps||{}:"all"}if(h)for(f in k=b||h,m=b!=e&&"all"!=e&&b!=h&&(null==b||!0!=b._tempKill),k){if(d=h[f]){d.pg&&d.t._kill(k)&&(i=!0);if(!d.pg||0===d.t._overwriteProps.length)d._prev?d._prev._next=d._next:d===this._firstPT&&(this._firstPT=d._next),d._next&&(d._next._prev=d._prev),d._next=-d._prev=null;delete h[f]}m&&(e[f]=1)}}return i};c.invalidate=function(){this._notifyPluginsOfEnabled&&n._onPluginEvent("_onDisable",this);this._onUpdate=this._overwrittenProps=this._firstPT=null;this._initted=this._active=this._notifyPluginsOfEnabled=!1;this._propLookup=this._targets?{}:[];return this};c._enabled=function(b,c){if(b&&this._gc)if(this._targets)for(var d=this._targets.length;-1<--d;)this._siblings[d]=H(this._targets[d],this,!0);else this._siblings=H(this.target,this,!0);m.prototype._enabled.call(this,-b,c);return this._notifyPluginsOfEnabled&&this._firstPT?n._onPluginEvent(b?"_onEnable":"_onDisable",this):!1};n.to=function(b,c,d){return new n(b,c,d)};n.from=function(b,c,d){d.runBackwards=!0;!1!=d.immediateRender&&(d.immediateRender=!0);return new n(b,c,d)};n.fromTo=function(b,c,d,e){e.startAt=d;d.immediateRender&&(e.immediateRender=!0);return new n(b,c,e)};n.delayedCall=function(b,c,d,e,f){return new n(c,0,{delay:b,onComplete:c,onCompleteParams:d,onCompleteScope:e,onReverseComplete:c,onReverseCompleteParams:d,-onReverseCompleteScope:e,immediateRender:!1,useFrames:f,overwrite:0})};n.set=function(b,c){return new n(b,0,c)};n.killTweensOf=n.killDelayedCallsTo=function(b,c){for(var d=n.getTweensOf(b),e=d.length;-1<--e;)d[e]._kill(c,b)};n.getTweensOf=function(b){if(null!=b){var c,d,e;if((b instanceof Array||b.jquery)&&"object"===typeof b[0]){c=b.length;for(d=[];-1<--c;)d=d.concat(n.getTweensOf(b[c]));for(c=d.length;-1<--c;){e=d[c];for(b=c;-1<--b;)e===d[b]&&d.splice(c,1)}}else{d=H(b).concat();for(c=d.length;-1<---c;)d[c]._gc&&d.splice(c,1)}return d}};var E=d("plugins.TweenPlugin",function(b,c){this._overwriteProps=(b||"").split(",");this._propName=this._overwriteProps[0];this._priority=c||0},!0);c=E.prototype;E.version=12;E.API=2;c._firstPT=null;c._addTween=function(b,c,d,e,f,h){var i;if(null!=e&&(i="number"===typeof e||"="!==e.charAt(1)?Number(e)-d:Number(e.split("=").join(""))))this._firstPT={_next:this._firstPT,t:b,p:c,s:d,c:i,f:"function"===typeof b[c],n:f||c,r:h},this._firstPT._next&&(this._firstPT._next._prev=+d._prev=null;delete h[f]}m&&(e[f]=1)}}return i};c.invalidate=function(){this._notifyPluginsOfEnabled&&p._onPluginEvent("_onDisable",this);this._onUpdate=this._overwrittenProps=this._firstPT=null;this._initted=this._active=this._notifyPluginsOfEnabled=!1;this._propLookup=this._targets?{}:[];return this};c._enabled=function(b,c){if(b&&this._gc)if(this._targets)for(var d=this._targets.length;-1<--d;)this._siblings[d]=H(this._targets[d],this,!0);else this._siblings=H(this.target,this,!0);m.prototype._enabled.call(this,+b,c);return this._notifyPluginsOfEnabled&&this._firstPT?p._onPluginEvent(b?"_onEnable":"_onDisable",this):!1};p.to=function(b,c,d){return new p(b,c,d)};p.from=function(b,c,d){d.runBackwards=!0;!1!=d.immediateRender&&(d.immediateRender=!0);return new p(b,c,d)};p.fromTo=function(b,c,d,e){e.startAt=d;d.immediateRender&&(e.immediateRender=!0);return new p(b,c,e)};p.delayedCall=function(b,c,d,e,f){return new p(c,0,{delay:b,onComplete:c,onCompleteParams:d,onCompleteScope:e,onReverseComplete:c,onReverseCompleteParams:d,+onReverseCompleteScope:e,immediateRender:!1,useFrames:f,overwrite:0})};p.set=function(b,c){return new p(b,0,c)};p.killTweensOf=p.killDelayedCallsTo=function(b,c){for(var d=p.getTweensOf(b),e=d.length;-1<--e;)d[e]._kill(c,b)};p.getTweensOf=function(b){if(null!=b){var c,d,e;if((b instanceof Array||b.jquery)&&"object"===typeof b[0]){c=b.length;for(d=[];-1<--c;)d=d.concat(p.getTweensOf(b[c]));for(c=d.length;-1<--c;){e=d[c];for(b=c;-1<--b;)e===d[b]&&d.splice(c,1)}}else{d=H(b).concat();for(c=d.length;-1<+--c;)d[c]._gc&&d.splice(c,1)}return d}};var F=d("plugins.TweenPlugin",function(b,c){this._overwriteProps=(b||"").split(",");this._propName=this._overwriteProps[0];this._priority=c||0},!0);c=F.prototype;F.version=12;F.API=2;c._firstPT=null;c._addTween=function(b,c,d,e,f,h){var i;if(null!=e&&(i="number"===typeof e||"="!==e.charAt(1)?Number(e)-d:Number(e.split("=").join(""))))this._firstPT={_next:this._firstPT,t:b,p:c,s:d,c:i,f:"function"===typeof b[c],n:f||c,r:h},this._firstPT._next&&(this._firstPT._next._prev=this._firstPT)};c.setRatio=function(b){for(var c=this._firstPT,d;c;){d=c.c*b+c.s;c.r&&(d=d+(0<d?0.5:-0.5)>>0);if(c.f)c.t[c.p](d);else c.t[c.p]=d;c=c._next}};c._kill=function(b){if(null!=b[this._propName])this._overwriteProps=[];else for(var c=this._overwriteProps.length;-1<--c;)null!=b[this._overwriteProps[c]]&&this._overwriteProps.splice(c,1);for(c=this._firstPT;c;)null!=b[c.n]&&(c._next&&(c._next._prev=c._prev),c._prev?(c._prev._next=c._next,c._prev=null):this._firstPT===c&&(this._firstPT=c._next)),-c=c._next;return!1};c._roundProps=function(b,c){for(var d=this._firstPT;d;){if(b[this._propName]||null!=d.n&&b[d.n.split(this._propName+"_").join("")])d.r=c;d=d._next}};n._onPluginEvent=function(b,c){var d=c._firstPT,e;if("_onInitAllProps"===b){for(var f,h,i,k;d;){k=d._next;for(f=h;f&&f.pr>d.pr;)f=f._next;(d._prev=f?f._prev:i)?d._prev._next=d:h=d;(d._next=f)?f._prev=d:i=d;d=k}d=c._firstPT=h}for(;d;)d.pg&&"function"===typeof d.t[b]&&d.t[b]()&&(e=!0),d=d._next;return e};E.activate=function(b){for(var c=-b.length;-1<--c;)b[c].API===E.API&&(n._plugins[(new b[c])._propName]=b[c]);return!0};if(q=y._gsQueue){for(s=0;s<q.length;s++)q[s]();for(c in b)b[c].def||console.log("Warning: TweenLite encountered missing dependency: com.greensock."+c)}})(window);\ No newline at end of file+c=c._next;return!1};c._roundProps=function(b,c){for(var d=this._firstPT;d;){if(b[this._propName]||null!=d.n&&b[d.n.split(this._propName+"_").join("")])d.r=c;d=d._next}};p._onPluginEvent=function(b,c){var d=c._firstPT,e;if("_onInitAllProps"===b){for(var f,h,i,k;d;){k=d._next;for(f=h;f&&f.pr>d.pr;)f=f._next;(d._prev=f?f._prev:i)?d._prev._next=d:h=d;(d._next=f)?f._prev=d:i=d;d=k}d=c._firstPT=h}for(;d;)d.pg&&"function"===typeof d.t[b]&&d.t[b]()&&(e=!0),d=d._next;return e};F.activate=function(b){for(var c=+b.length;-1<--c;)b[c].API===F.API&&(p._plugins[(new b[c])._propName]=b[c]);return!0};if(q=y._gsQueue){for(s=0;s<q.length;s++)q[s]();for(c in b)b[c].def||console.log("Warning: TweenLite encountered missing dependency: com.greensock."+c)}})(window);\ No newline at end of filediff --git a/src/minified/plugins/CSSPlugin.min.js b/src/minified/plugins/CSSPlugin.min.jsindex 9193812..2faf239 100755--- a/src/minified/plugins/CSSPlugin.min.js+++ b/src/minified/plugins/CSSPlugin.min.js@@ -1,5 +1,5 @@/*!- * VERSION: beta 1.541+ * VERSION: beta 1.542* DATE: 2012-10-01* JavaScript* UPDATES AND DOCS AT: http://www.greensock.com@@ -10,35 +10,35 @@** @author: Jack Doyle, [email protected]*/-(window._gsQueue||(window._gsQueue=[])).push(function(){_gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(B){var n=function(){B.call(this,"css");this._overwriteProps.pop()},v=n.prototype=new B("css");v.constructor=n;n.API=2;n.suffixMap={top:"px",right:"px",bottom:"px",left:"px",width:"px",height:"px",fontSize:"px",padding:"px",margin:"px"};var w=/[^\d\-\.]/g,J=/(\d|\-|\+|=|#|\.)*/g,ba=/(\d|\.)+/g,K=/opacity *= *([^)]*)/,ca=/opacity:([^;]*)/,da=/([A-Z])/g,P=/-([a-z])/gi,Q=-function(b,a){return a.toUpperCase()},ea=/(Left|Right|Width)/i,fa=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,ga=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,z=Math.PI/180,R=180/Math.PI,C={},m=document,D=m.createElement("div"),p=navigator.userAgent,S,T,L,U,x,V=p.indexOf("Android"),W=m.createElement("div");L=-1!==p.indexOf("Safari")&&-1===p.indexOf("Chrome")&&(-1===V||3<Number(p.substr(V+8,1)));/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(p);U=parseFloat(RegExp.$1);W.innerHTML="<a style='top:1px;opacity:.55;'>a</a>";-x=(p=W.getElementsByTagName("a")[0])?/^0.55/.test(p.style.opacity):!1;var X=function(b){if(!b||""===b)return E.black;if(E[b])return E[b];if("number"===typeof b)return[b>>16,b>>8&255,b&255];if("#"===b.charAt(0)){if(4===b.length)var a=b.charAt(1),g=b.charAt(2),b=b.charAt(3),b="#"+a+a+g+g+b+b;b=parseInt(b.substr(1),16);return[b>>16,b>>8&255,b&255]}return b.match(ba)||E.transparent},Y=function(b){return K.test("string"===typeof b?b:(b.currentStyle?b.currentStyle.filter:b.style.filter)||"")?parseFloat(RegExp.$1)/-100:1},A=m.defaultView?m.defaultView.getComputedStyle:function(){},t=function(b,a,g,c){return!x&&"opacity"===a?Y(b):!c&&b.style[a]?b.style[a]:(g=g||A(b,null))?(b=g.getPropertyValue(a.replace(da,"-$1").toLowerCase()))||g.length?b:g[a]:b.currentStyle?(g=b.currentStyle,c=g[a],!c&&"backgroundPosition"===a?g[a+"X"]+" "+g[a+"Y"]:c):null},G=function(b,a){var g={},c;if(a=a||A(b,null))if(c=a.length)for(;-1<--c;)g[a[c].replace(P,Q)]=a.getPropertyValue(a[c]);else for(c in a)g[c]=a[c];else if(a=b.currentStyle||-b.style)for(c in a)g[c.replace(P,Q)]=a[c];x||(g.opacity=Y(b));c=F(b,a,!1);g.rotation=c.rotation*R;g.skewX=c.skewX*R;g.scaleX=c.scaleX;g.scaleY=c.scaleY;g.x=c.x;g.y=c.y;null!=g.filters&&delete g.filters;return g},Z=function(b,a,g,c){var h={},f,d;for(d in a)if("cssText"!==d&&"length"!==d&&isNaN(d)&&b[d]!=(f=a[d]))if(f!==r&&("number"===typeof f||"string"===typeof f))h[d]=(""===f||"auto"===f)&&"string"===typeof b[d]&&""!==b[d].replace(w,"")?0:f,c&&c.props.push(d);if(g)for(d in g)"className"!==d&&(h[d]=-g[d]);return h},$={scaleX:1,scaleY:1,x:1,y:1,rotation:1,shortRotation:1,skewX:1,skewY:1,scale:1},aa="",M="",r=function(b,a){var a=a||m.body||m.documentElement,g=A(a,""),c,h;if(t(a,b))return b;b=b.substr(0,1).toUpperCase()+b.substr(1);c=["O","Moz","ms","Ms","Webkit"];for(h=5;-1<--h&&!t(a,c[h]+b,g););return 0<=h?(M=3===h?"ms":c[h],aa="-"+M.toLowerCase()+"-",M+b):null}("transform"),ha=aa+"transform",F=function(b,a,g){var c=b._gsTransform,h;r?h=t(b,ha,a,!0):b.currentStyle&&(h=(h=b.currentStyle.filter.match(fa))&&+(window._gsQueue||(window._gsQueue=[])).push(function(){_gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(C){var m=function(){C.call(this,"css");this._overwriteProps.pop()},u=m.prototype=new C("css");u.constructor=m;m.API=2;m.suffixMap={top:"px",right:"px",bottom:"px",left:"px",width:"px",height:"px",fontSize:"px",padding:"px",margin:"px"};var w=/[^\d\-\.]/g,K=/(\d|\-|\+|=|#|\.)*/g,ca=/(\d|\.)+/g,L=/opacity *= *([^)]*)/,da=/opacity:([^;]*)/,ea=/([A-Z])/g,P=/-([a-z])/gi,Q=+function(b,a){return a.toUpperCase()},fa=/(Left|Right|Width)/i,ga=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,ha=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,z=Math.PI/180,R=180/Math.PI,D={},A=document,B=A.createElement("div"),v=navigator.userAgent,S,T,U,V,x,W=v.indexOf("Android"),X=A.createElement("div");U=-1!==v.indexOf("Safari")&&-1===v.indexOf("Chrome")&&(-1===W||3<Number(v.substr(W+8,1)));/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(v);V=parseFloat(RegExp.$1);X.innerHTML="<a style='top:1px;opacity:.55;'>a</a>";+x=(v=X.getElementsByTagName("a")[0])?/^0.55/.test(v.style.opacity):!1;var Y=function(b){if(!b||""===b)return E.black;if(E[b])return E[b];if("number"===typeof b)return[b>>16,b>>8&255,b&255];if("#"===b.charAt(0)){if(4===b.length)var a=b.charAt(1),g=b.charAt(2),b=b.charAt(3),b="#"+a+a+g+g+b+b;b=parseInt(b.substr(1),16);return[b>>16,b>>8&255,b&255]}return b.match(ca)||E.transparent},Z=function(b){return L.test("string"===typeof b?b:(b.currentStyle?b.currentStyle.filter:b.style.filter)||"")?parseFloat(RegExp.$1)/+100:1},F=A.defaultView?A.defaultView.getComputedStyle:function(){},p=function(b,a,g,c){return!x&&"opacity"===a?Z(b):!c&&b.style[a]?b.style[a]:(g=g||F(b,null))?(b=g.getPropertyValue(a.replace(ea,"-$1").toLowerCase()))||g.length?b:g[a]:b.currentStyle?(g=b.currentStyle,c=g[a],!c&&"backgroundPosition"===a?g[a+"X"]+" "+g[a+"Y"]:c):null},H=function(b,a){var g={},c;if(a=a||F(b,null))if(c=a.length)for(;-1<--c;)g[a[c].replace(P,Q)]=a.getPropertyValue(a[c]);else for(c in a)g[c]=a[c];else if(a=b.currentStyle||+b.style)for(c in a)g[c.replace(P,Q)]=a[c];x||(g.opacity=Z(b));c=G(b,a,!1);g.rotation=c.rotation*R;g.skewX=c.skewX*R;g.scaleX=c.scaleX;g.scaleY=c.scaleY;g.x=c.x;g.y=c.y;null!=g.filters&&delete g.filters;return g},$=function(b,a,g,c){var h={},f,d;for(d in a)if("cssText"!==d&&"length"!==d&&isNaN(d)&&b[d]!=(f=a[d]))if(f!==q&&("number"===typeof f||"string"===typeof f))h[d]=(""===f||"auto"===f)&&"string"===typeof b[d]&&""!==b[d].replace(w,"")?0:f,c&&c.props.push(d);if(g)for(d in g)"className"!==d&&(h[d]=+g[d]);return h},aa={scaleX:1,scaleY:1,x:1,y:1,rotation:1,shortRotation:1,skewX:1,skewY:1,scale:1},ba="",M="",q=function(b,a){var a=a||B,g=a.style,c,h;if(void 0!==g[b])return b;b=b.substr(0,1).toUpperCase()+b.substr(1);c=["O","Moz","ms","Ms","Webkit"];for(h=5;-1<--h&&void 0===g[c[h]+b];);return 0<=h?(M=3===h?"ms":c[h],ba="-"+M.toLowerCase()+"-",M+b):null}("transform"),ia=ba+"transform",G=function(b,a,g){var c=b._gsTransform,h;q?h=p(b,ia,a,!0):b.currentStyle&&(h=(h=b.currentStyle.filter.match(ga))&&4===h.length?h[0].substr(4)+","+Number(h[2].substr(4))+","+Number(h[1].substr(4))+","+h[3].substr(4)+","+(c?c.x:0)+","+(c?c.y:0):null);var a=(h||"").replace(/[^\d\-\.e,]/g,"").split(","),f=(h=6<=a.length)?Number(a[0]):1,d=h?Number(a[1]):0,e=h?Number(a[2]):0,i=h?Number(a[3]):1,c=g?c||{skewY:0}:{skewY:0},l=0>c.scaleX;c.x=h?Number(a[4]):0;c.y=h?Number(a[5]):0;c.scaleX=Math.sqrt(f*f+d*d);c.scaleY=Math.sqrt(i*i+e*e);c.rotation=f||d?Math.atan2(d,f):c.rotation||0;c.skewX=e||i?Math.atan2(e,i)+c.rotation:-c.skewX||0;Math.abs(c.skewX)>Math.PI/2&&(l?(c.scaleX*=-1,c.skewX+=0>=c.rotation?Math.PI:-Math.PI,c.rotation+=0>=c.rotation?Math.PI:-Math.PI):(c.scaleY*=-1,c.skewX+=0>=c.skewX?Math.PI:-Math.PI));if(1E-6>c.rotation&&-1E-6<c.rotation&&(f||d))c.rotation=0;if(1E-6>c.skewX&&-1E-6<c.skewX&&(d||e))c.skewX=0;g&&(b._gsTransform=c);return c},ia={width:["Left","Right"],height:["Top","Bottom"]},ja=["marginLeft","marginRight","marginTop","marginBottom"],y=function(b,a,g,c,h){if("px"===c||!c)return g;if("auto"===-c||!g)return 0;var f=ea.test(a),d=b,e=D.style,i=0>g;i&&(g=-g);e.cssText="border-style:solid; border-width:0; position:absolute; line-height:0;";"%"===c||"em"===c||!d.appendChild?(d=b.parentNode||m.body,e[f?"width":"height"]=g+c):e[f?"borderLeftWidth":"borderTopWidth"]=g+c;d.appendChild(D);f=parseFloat(D[f?"offsetWidth":"offsetHeight"]);d.removeChild(D);0===f&&!h&&(f=y(b,a,g,c,!0));return i?-f:f},N=function(b,a){if(null==b||""===b||"auto"===b||"auto auto"===b)b="0 0";var a=a||{},g=-1!==b.indexOf("left")?-"0%":-1!==b.indexOf("right")?"100%":b.split(" ")[0],c=-1!==b.indexOf("top")?"0%":-1!==b.indexOf("bottom")?"100%":b.split(" ")[1];null==c?c="0":"center"===c&&(c="50%");"center"===g&&(g="50%");a.oxp=-1!==g.indexOf("%");a.oyp=-1!==c.indexOf("%");a.oxr="="===g.charAt(1);a.oyr="="===c.charAt(1);a.ox=parseFloat(g.replace(w,""));a.oy=parseFloat(c.replace(w,""));return a},H=function(b,a){return null==b?a:"string"===typeof b&&1===b.indexOf("=")?Number(b.split("=").join(""))+a:Number(b)},I=function(b,a){var g=--1===b.indexOf("rad")?z:1,c=1===b.indexOf("="),b=Number(b.replace(w,""))*g;return c?b+a:b},E={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]};L&&(p=m.createElement("style"),p.styleSheet&&m.getElementsByTagName("head")[0].appendChild(p));-v._onInitTween=function(b,a,g){if(!b.nodeType)return!1;this._target=b;this._tween=g;this._classData=this._transform=null;S=a.autoRound;var c=this._style=b.style,h=A(b,""),f,d;if(T&&""===c.zIndex&&(d=t(b,"zIndex",h),"auto"===d||""===d))c.zIndex=0;"string"===typeof a?(f=c.cssText,g=G(b,h),c.cssText=f+";"+a,d=Z(g,G(b)),!x&&ca.test(a)&&(d.opacity=parseFloat(RegExp.$1)),a=d,c.cssText=f):a.className&&(f=b.className,this._classData={b:f,e:"="!==a.className.charAt(1)?a.className:"+"===a.className.charAt(0)?-b.className+" "+a.className.substr(2):b.className.split(a.className.substr(2)).join(""),props:[]},g._duration?(g=G(b,h),b.className=this._classData.e,a=Z(g,G(b),a,this._classData),b.className=f):a={});this._parseVars(a,b,h,a.suffixMap||n.suffixMap);return!0};v._parseVars=function(b,a,g,c){var h=this._style,f,d,e,i,l,u,k;for(f in b)if(d=b[f],"transform"===f||f===r)this._parseTransform(a,d,g,c);else if($[f]||"transformOrigin"===f)this._parseTransform(a,b,g,c);else{if("alpha"===f||"autoAlpha"===f)f=-"opacity";else if("margin"===f||"padding"===f){d=(d+"").split(" ");l=d.length;e={};e[f+"Top"]=d[0];e[f+"Right"]=1<l?d[1]:d[0];e[f+"Bottom"]=4===l?d[2]:d[0];e[f+"Left"]=4===l?d[3]:2===l?d[1]:d[0];this._parseVars(e,a,g,c);continue}else if("backgroundPosition"===f||"backgroundSize"===f){e=N(d);k=N(i=t(a,f,g));this._firstPT=e={_next:this._firstPT,t:h,p:f,b:i,f:!1,n:"css_"+f,type:3,s:k.ox,c:e.oxr?e.ox:e.ox-k.ox,ys:k.oy,yc:e.oyr?e.oy:e.oy-k.oy,sfx:e.oxp?"%":"px",ysfx:e.oyp?"%":"px",r:!e.oxp&&!1!==b.autoRound};-e.e=e.s+e.c+e.sfx+" "+(e.ys+e.yc)+e.ysfx;continue}else if("border"===f){d=(d+"").split(" ");this._parseVars({borderWidth:d[0],borderStyle:d[1]||"none",borderColor:d[2]||"#000000"},a,g,c);continue}else if("bezier"===f){this._parseBezier(d,a,g,c);continue}else if("autoRound"===f)continue;i=t(a,f,g);i=null!=i?i+"":"";this._firstPT=e={_next:this._firstPT,t:h,p:f,b:i,f:!1,n:"css_"+f,sfx:"",r:!1,type:0};"opacity"===f&&null!=b.autoAlpha&&("1"===i&&"hidden"===t(a,"visibility",g)&&(i=e.b="0"),this._firstPT=-e._prev={_next:e,t:h,p:"visibility",f:!1,n:"css_visibility",r:!1,type:-1,b:0!==Number(i)?"visible":"hidden",i:"visible",e:0===Number(d)?"hidden":"visible"},this._overwriteProps.push("css_visibility"));l="string"===typeof d;if("color"===f||"fill"===f||"stroke"===f||-1!==f.indexOf("Color")||l&&!d.indexOf("rgb(")){if(l=X(i),d=X(d),e.e=e.i=(3<d.length?"rgba(":"rgb(")+d.join(",")+")",e.b=(3<l.length?"rgba(":"rgb(")+l.join(",")+")",e.s=Number(l[0]),e.c=Number(d[0])-e.s,e.gs=Number(l[1]),e.gc=Number(d[1])--e.gs,e.bs=Number(l[2]),e.bc=Number(d[2])-e.bs,e.type=1,3<l.length||3<d.length)x?(e.as=4>l.length?1:Number(l[3]),e.ac=(4>d.length?1:Number(d[3]))-e.as,e.type=2):(0==d[3]&&(e.e=e.i="transparent",e.type=-1),0==l[3]&&(e.b="transparent"))}else{u=i.replace(J,"");if(""===i||"auto"===i)if("width"===f||"height"===f){var s=f;u=a;k=g;i=parseFloat("width"===s?u.offsetWidth:u.offsetHeight);var s=ia[s],O=s.length;for(k=k||A(u,null);-1<--O;)i-=parseFloat(t(u,"padding"+s[O],k,!0))||0,i-=parseFloat(t(u,"border"+s[O]+-"Width",k,!0))||0;k=i;u="px"}else k="opacity"!==f?0:1,u="";else k=-1===i.indexOf(" ")?parseFloat(i.replace(w,"")):NaN;l?(l="="===d.charAt(1),i=d.replace(J,""),d=-1===d.indexOf(" ")?parseFloat(d.replace(w,"")):NaN):(l=!1,i="");""===i&&(i=c[f]||u);e.e=d||0===d?(l?d+k:d)+i:b[f];if(u!==i&&""!==i&&(d||0===d))if(k||0===k)if(k=y(a,f,k,u),"%"===i?(k/=y(a,f,100,"%")/100,100<k&&(k=100)):"em"===i?k/=y(a,f,1,"em"):(d=y(a,f,d,i),i="px"),l&&(d||0===d))e.e=d+k+i;if((k||0===k)&&(d||0===d)&&(e.c=l?d:d-k))if(e.s=k,-e.sfx=i,"opacity"===f)x||(e.type=4,e.p="filter",e.b="alpha(opacity="+100*e.s+")",e.e="alpha(opacity="+100*(e.s+e.c)+")",e.dup=null!=b.autoAlpha,this._style.zoom=1);else{if(!1!==S&&("px"===i||"zIndex"===f))e.r=!0}else e.type=-1,e.i="display"===f&&"none"===e.e?e.b:e.e,e.s=e.c=0}this._overwriteProps.push("css_"+f);e._next&&(e._next._prev=e)}};v._parseTransform=function(b,a,g){if(!this._transform){var c=this._transform=F(b,g,!0),h=this._style,f,d,e;if("object"===typeof a){f={scaleX:H(null!=a.scaleX?a.scaleX:-a.scale,c.scaleX),scaleY:H(null!=a.scaleY?a.scaleY:a.scale,c.scaleY),x:H(a.x,c.x),y:H(a.y,c.y)};null!=a.shortRotation?(f.rotation="number"===typeof a.shortRotation?a.shortRotation*z:I(a.shortRotation,c.rotation),d=(f.rotation-c.rotation)%(2*Math.PI),d!==d%Math.PI&&(d+=Math.PI*(0>d?2:-2)),f.rotation=c.rotation+d):f.rotation=null==a.rotation?c.rotation:"number"===typeof a.rotation?a.rotation*z:I(a.rotation,c.rotation);f.skewX=null==a.skewX?c.skewX:"number"===typeof a.skewX?a.skewX*z:I(a.skewX,c.skewX);-f.skewY=null==a.skewY?c.skewY:"number"===typeof a.skewY?a.skewY*z:I(a.skewY,c.skewY);if(d=f.skewY-c.skewY)f.skewX+=d,f.rotation+=d;1E-6>f.skewY&&-1E-6<f.skewY&&(f.skewY=0);1E-6>f.skewX&&-1E-6<f.skewX&&(f.skewX=0);1E-6>f.rotation&&-1E-6<f.rotation&&(f.rotation=0);if(null!=(a=a.transformOrigin))r?(e=r+"Origin",this._firstPT=a={_next:this._firstPT,t:h,p:e,s:0,c:0,n:e,f:!1,r:!1,b:h[e],e:a,i:a,type:-1,sfx:""},a._next&&(a._next._prev=a)):N(a,c)}else if("string"===typeof a&&r)d=h[r],h[r]=a,f=F(b,null,!1),-h[r]=d;else return;if(r){if(L&&(T=!0,""===h.WebkitBackfaceVisibility&&(h.WebkitBackfaceVisibility="hidden"),""===h.zIndex&&(d=t(b,"zIndex",g),"auto"===d||""===d)))h.zIndex=0}else h.zoom=1;for(e in $)if((c[e]!==f[e]||null!=C[e])&&"shortRotation"!==e&&"scale"!==e)this._firstPT=a={_next:this._firstPT,t:c,p:e,s:c[e],c:f[e]-c[e],n:e,f:!1,r:!1,b:c[e],e:f[e],type:0,sfx:0},a._next&&(a._next._prev=a),this._overwriteProps.push("css_"+e)}};v._parseBezier=function(b,a,g,c){if(window.com.greensock.plugins.BezierPlugin){b instanceof-Array&&(b={values:b});var h=b.values||[],f=h.length,d=[],e=this._bezier={_pt:[]},i=e._proxy={},l=0,u=0,k={},s=f-1,r=C,t=e._plugin=new window.com.greensock.plugins.BezierPlugin,q,j,p,m,n;for(q=0;q<f;q++){m={};this._transform=null;p=this._firstPT;this._parseVars(C=h[q],a,g,c);j=this._firstPT;if(0===q){for(n=this._transform;j!==p;)i[j.p]=j.s,e._pt[u++]=k[j.p]=j,1===j.type||2===j.type?(i[j.p+"_g"]=j.gs,i[j.p+"_b"]=j.bs,2===j.type&&(i[j.p+"_a"]=j.as)):3===j.type&&(i[j.p+"_y"]=j.ys),j=j._next;j=this._firstPT}else this._firstPT=-p,p._prev&&(p._prev._next=null),p=p._prev=null;for(;j!==p;)k[j.p]&&(m[j.p]=j.s+j.c,q===s&&(k[j.p].e=j.e),1===j.type||2===j.type?(m[j.p+"_g"]=j.gs+j.gc,m[j.p+"_b"]=j.bs+j.bc,2===j.type&&(m[j.p+"_a"]=j.as+j.ac)):3===j.type&&(m[j.p+"_y"]=j.ys+j.yc),0===q&&(j.c=j.ac=j.gc=j.bc=j.yc=0)),j=j._next;d[l++]=m}this._transform=n;C=r;b.values=d;0===b.autoRotate&&(b.autoRotate=!0);b.autoRotate&&!(b.autoRotate instanceof Array)&&(q=!0==b.autoRotate?0:Number(b.autoRotate)*Math.PI/180,b.autoRotate=null!=d[0].left?-[["left","top","rotation",q,!0]]:null!=d[0].x?[["x","y","rotation",q,!0]]:!1);if((e._autoRotate=b.autoRotate)&&!n)this._transform=F(a,g,!0);t._onInitTween(i,b,this._tween);b.values=h}else console.log("Error: BezierPlugin not loaded.")};v.setRatio=function(b){var a=this._firstPT,g=this._bezier,c=1E-6,h,f;if(g){g._plugin.setRatio(b);var d=g._pt,e=g._proxy;for(f=d.length;-1<--f;)a=d[f],a.s=e[a.p],1===a.type||2===a.type?(a.gs=e[a.p+"_g"],a.bs=e[a.p+"_b"],2===a.type&&(a.as=e[a.p+"_a"])):3===a.type&&(a.ys=-e[a.p+"_y"]);g._autoRotate&&(this._transform.rotation=e.rotation)}if(1===b&&(this._tween._time===this._tween._duration||0===this._tween._time))for(;a;)a.t[a.p]=a.e,4===a.type&&1===a.s+a.c&&(this._style.removeAttribute("filter"),t(this._target,"filter")&&(a.t[a.p]=a.e)),a=a._next;else if(b||!(this._tween._time===this._tween._duration||0===this._tween._time))for(;a;)h=a.c*b+a.s,a.r?h=0<h?h+0.5>>0:h-0.5>>0:h<c&&h>-c&&(h=0),a.type?1===a.type?a.t[a.p]="rgb("+(h>>0)+", "+(a.gs+b*a.gc>>0)+", "+(a.bs+b*a.bc>>-0)+")":2===a.type?a.t[a.p]="rgba("+(h>>0)+", "+(a.gs+b*a.gc>>0)+", "+(a.bs+b*a.bc>>0)+", "+(a.as+b*a.ac)+")":-1===a.type?a.t[a.p]=a.i:3===a.type?(g=a.ys+b*a.yc,a.r&&(g=0<g?g+0.5>>0:g-0.5>>0),a.t[a.p]=h+a.sfx+" "+g+a.ysfx):(a.dup&&(a.t.filter=a.t.filter||"alpha(opacity=100)"),a.t.filter=-1===a.t.filter.indexOf("opacity")?a.t.filter+(" alpha(opacity="+(100*h>>0)+")"):a.t.filter.replace(K,"opacity="+(100*h>>0))):a.t[a.p]=h+a.sfx,a=a._next;else for(;a;)a.t[a.p]=a.b,4===a.type&&1===a.s&&(this._style.removeAttribute("filter"),-t(this._target,"filter")&&(a.t[a.p]=a.b)),a=a._next;if(this._transform)if(a=this._transform,r&&!a.rotation&&!a.skewX)this._style[r]=(a.x||a.y?"translate("+a.x+"px,"+a.y+"px) ":"")+(1!==a.scaleX||1!==a.scaleY?"scale("+a.scaleX+","+a.scaleY+")":"")||"translate(0px,0px)";else{var d=r?a.rotation:-a.rotation,i=r?d-a.skewX:d+a.skewX,g=Math.cos(d)*a.scaleX,d=Math.sin(d)*a.scaleX,e=Math.sin(i)*-a.scaleY,i=Math.cos(i)*a.scaleY,l;g<c&&g>-c&&(g=0);d<c&&d>-c&&(d=0);e<c&&e>-c&&(e=0);i<c&&i>-c&&(i=0);if(r)this._style[r]=-"matrix("+g+","+d+","+e+","+i+","+a.x+","+a.y+")";else if(l=this._target.currentStyle){c=d;d=-e;e=-c;c=l.filter;this._style.filter="";f=this._target.offsetWidth;h=this._target.offsetHeight;var p="absolute"!==l.position,k="progid:DXImageTransform.Microsoft.Matrix(M11="+g+", M12="+d+", M21="+e+", M22="+i,s=a.x,m=a.y,n,q;null!=a.ox&&(n=(a.oxp?0.01*f*a.ox:a.ox)-f/2,q=(a.oyp?0.01*h*a.oy:a.oy)-h/2,s=n-(n*g+q*d)+a.x,m=q-(n*e+q*i)+a.y);if(p)n=f/2,q=h/2,k+=", Dx="+(n-(n*g+q*d)+s)+", Dy="+(q-(n*e+q*i)+m)+")";-else{var j=8>U?1:-1;n=a.ieOffsetX||0;q=a.ieOffsetY||0;a.ieOffsetX=Math.round((f-((0>g?-g:g)*f+(0>d?-d:d)*h))/2+s);a.ieOffsetY=Math.round((h-((0>i?-i:i)*h+(0>e?-e:e)*f))/2+m);for(f=0;4>f;f++)s=ja[f],h=l[s],h=-1!==h.indexOf("px")?parseFloat(h):y(this._target,s,parseFloat(h),h.replace(J,""))||0,m=h!==a[s]?2>f?-a.ieOffsetX:-a.ieOffsetY:2>f?n-a.ieOffsetX:q-a.ieOffsetY,this._style[s]=(a[s]=Math.round(h-m*(0===f||2===f?1:j)))+"px";k+=", sizingMethod='auto expand')"}this._style.filter=-1!==c.indexOf("DXImageTransform.Microsoft.Matrix(")?-c.replace(ga,k):k+" "+c;if(0===b||1===b)if(1===g&&0===d&&0===e&&1===i&&(!p||-1!==k.indexOf("Dx=0, Dy=0")))(!K.test(c)||100===parseFloat(RegExp.$1))&&this._style.removeAttribute("filter")}}if(this._classData)if(a=this._classData,1===b&&(this._tween._time===this._tween._duration||0===this._tween._time)){for(f=a.props.length;-1<--f;)this._style[a.props[f]]="";this._target.className=a.e}else this._target.className!==a.b&&(this._target.className=a.b)};v._kill=function(b){var a=b,g;if(b.autoAlpha||b.alpha){a=-{};for(g in b)a[g]=b[g];a.opacity=1;a.autoAlpha&&(a.visibility=1)}return B.prototype._kill.call(this,a)};B.activate([n]);return n},!0)});window._gsDefine&&_gsQueue.pop()();\ No newline at end of file+c.skewX||0;Math.abs(c.skewX)>Math.PI/2&&(l?(c.scaleX*=-1,c.skewX+=0>=c.rotation?Math.PI:-Math.PI,c.rotation+=0>=c.rotation?Math.PI:-Math.PI):(c.scaleY*=-1,c.skewX+=0>=c.skewX?Math.PI:-Math.PI));if(1E-6>c.rotation&&-1E-6<c.rotation&&(f||d))c.rotation=0;if(1E-6>c.skewX&&-1E-6<c.skewX&&(d||e))c.skewX=0;g&&(b._gsTransform=c);return c},ja={width:["Left","Right"],height:["Top","Bottom"]},ka=["marginLeft","marginRight","marginTop","marginBottom"],y=function(b,a,g,c,h){if("px"===c||!c)return g;if("auto"===+c||!g)return 0;var f=fa.test(a),d=b,e=B.style,i=0>g;i&&(g=-g);e.cssText="border-style:solid; border-width:0; position:absolute; line-height:0;";"%"===c||"em"===c||!d.appendChild?(d=b.parentNode||A.body,e[f?"width":"height"]=g+c):e[f?"borderLeftWidth":"borderTopWidth"]=g+c;d.appendChild(B);f=parseFloat(B[f?"offsetWidth":"offsetHeight"]);d.removeChild(B);0===f&&!h&&(f=y(b,a,g,c,!0));return i?-f:f},N=function(b,a){if(null==b||""===b||"auto"===b||"auto auto"===b)b="0 0";var a=a||{},g=-1!==b.indexOf("left")?+"0%":-1!==b.indexOf("right")?"100%":b.split(" ")[0],c=-1!==b.indexOf("top")?"0%":-1!==b.indexOf("bottom")?"100%":b.split(" ")[1];null==c?c="0":"center"===c&&(c="50%");"center"===g&&(g="50%");a.oxp=-1!==g.indexOf("%");a.oyp=-1!==c.indexOf("%");a.oxr="="===g.charAt(1);a.oyr="="===c.charAt(1);a.ox=parseFloat(g.replace(w,""));a.oy=parseFloat(c.replace(w,""));return a},I=function(b,a){return null==b?a:"string"===typeof b&&1===b.indexOf("=")?Number(b.split("=").join(""))+a:Number(b)},J=function(b,a){var g=+-1===b.indexOf("rad")?z:1,c=1===b.indexOf("="),b=Number(b.replace(w,""))*g;return c?b+a:b},E={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]};u._onInitTween=function(b,a,g){if(!b.nodeType)return!1;+this._target=b;this._tween=g;this._classData=this._transform=null;S=a.autoRound;var c=this._style=b.style,h=F(b,""),f,d;if(T&&""===c.zIndex&&(d=p(b,"zIndex",h),"auto"===d||""===d))c.zIndex=0;"string"===typeof a?(f=c.cssText,g=H(b,h),c.cssText=f+";"+a,d=$(g,H(b)),!x&&da.test(a)&&(d.opacity=parseFloat(RegExp.$1)),a=d,c.cssText=f):a.className&&(f=b.className,this._classData={b:f,e:"="!==a.className.charAt(1)?a.className:"+"===a.className.charAt(0)?b.className+" "+a.className.substr(2):b.className.split(a.className.substr(2)).join(""),+props:[]},g._duration?(g=H(b,h),b.className=this._classData.e,a=$(g,H(b),a,this._classData),b.className=f):a={});this._parseVars(a,b,h,a.suffixMap||m.suffixMap);return!0};u._parseVars=function(b,a,g,c){var h=this._style,f,d,e,i,l,s,k;for(f in b)if(d=b[f],"transform"===f||f===q)this._parseTransform(a,d,g,c);else if(aa[f]||"transformOrigin"===f)this._parseTransform(a,b,g,c);else{if("alpha"===f||"autoAlpha"===f)f="opacity";else if("margin"===f||"padding"===f){d=(d+"").split(" ");l=d.length;e={};e[f++"Top"]=d[0];e[f+"Right"]=1<l?d[1]:d[0];e[f+"Bottom"]=4===l?d[2]:d[0];e[f+"Left"]=4===l?d[3]:2===l?d[1]:d[0];this._parseVars(e,a,g,c);continue}else if("backgroundPosition"===f||"backgroundSize"===f){e=N(d);k=N(i=p(a,f,g));this._firstPT=e={_next:this._firstPT,t:h,p:f,b:i,f:!1,n:"css_"+f,type:3,s:k.ox,c:e.oxr?e.ox:e.ox-k.ox,ys:k.oy,yc:e.oyr?e.oy:e.oy-k.oy,sfx:e.oxp?"%":"px",ysfx:e.oyp?"%":"px",r:!e.oxp&&!1!==b.autoRound};e.e=e.s+e.c+e.sfx+" "+(e.ys+e.yc)+e.ysfx;continue}else if("border"===f){d=(d+"").split(" ");+this._parseVars({borderWidth:d[0],borderStyle:d[1]||"none",borderColor:d[2]||"#000000"},a,g,c);continue}else if("bezier"===f){this._parseBezier(d,a,g,c);continue}else if("autoRound"===f)continue;i=p(a,f,g);i=null!=i?i+"":"";this._firstPT=e={_next:this._firstPT,t:h,p:f,b:i,f:!1,n:"css_"+f,sfx:"",r:!1,type:0};"opacity"===f&&null!=b.autoAlpha&&("1"===i&&"hidden"===p(a,"visibility",g)&&(i=e.b="0"),this._firstPT=e._prev={_next:e,t:h,p:"visibility",f:!1,n:"css_visibility",r:!1,type:-1,b:0!==Number(i)?"visible":+"hidden",i:"visible",e:0===Number(d)?"hidden":"visible"},this._overwriteProps.push("css_visibility"));l="string"===typeof d;if("color"===f||"fill"===f||"stroke"===f||-1!==f.indexOf("Color")||l&&!d.indexOf("rgb(")){if(l=Y(i),d=Y(d),e.e=e.i=(3<d.length?"rgba(":"rgb(")+d.join(",")+")",e.b=(3<l.length?"rgba(":"rgb(")+l.join(",")+")",e.s=Number(l[0]),e.c=Number(d[0])-e.s,e.gs=Number(l[1]),e.gc=Number(d[1])-e.gs,e.bs=Number(l[2]),e.bc=Number(d[2])-e.bs,e.type=1,3<l.length||3<d.length)x?(e.as=4>l.length?+1:Number(l[3]),e.ac=(4>d.length?1:Number(d[3]))-e.as,e.type=2):(0==d[3]&&(e.e=e.i="transparent",e.type=-1),0==l[3]&&(e.b="transparent"))}else{s=i.replace(K,"");if(""===i||"auto"===i)if("width"===f||"height"===f){var r=f;s=a;k=g;i=parseFloat("width"===r?s.offsetWidth:s.offsetHeight);var r=ja[r],O=r.length;for(k=k||F(s,null);-1<--O;)i-=parseFloat(p(s,"padding"+r[O],k,!0))||0,i-=parseFloat(p(s,"border"+r[O]+"Width",k,!0))||0;k=i;s="px"}else k="opacity"!==f?0:1,s="";else k=-1===i.indexOf(" ")?parseFloat(i.replace(w,+"")):NaN;l?(l="="===d.charAt(1),i=d.replace(K,""),d=-1===d.indexOf(" ")?parseFloat(d.replace(w,"")):NaN):(l=!1,i="");""===i&&(i=c[f]||s);e.e=d||0===d?(l?d+k:d)+i:b[f];if(s!==i&&""!==i&&(d||0===d))if(k||0===k)if(k=y(a,f,k,s),"%"===i?(k/=y(a,f,100,"%")/100,100<k&&(k=100)):"em"===i?k/=y(a,f,1,"em"):(d=y(a,f,d,i),i="px"),l&&(d||0===d))e.e=d+k+i;if((k||0===k)&&(d||0===d)&&(e.c=l?d:d-k))if(e.s=k,e.sfx=i,"opacity"===f)x||(e.type=4,e.p="filter",e.b="alpha(opacity="+100*e.s+")",e.e="alpha(opacity="+100*(e.s++e.c)+")",e.dup=null!=b.autoAlpha,this._style.zoom=1);else{if(!1!==S&&("px"===i||"zIndex"===f))e.r=!0}else e.type=-1,e.i="display"===f&&"none"===e.e?e.b:e.e,e.s=e.c=0}this._overwriteProps.push("css_"+f);e._next&&(e._next._prev=e)}};u._parseTransform=function(b,a,g){if(!this._transform){var c=this._transform=G(b,g,!0),h=this._style,f,d,e;if("object"===typeof a){f={scaleX:I(null!=a.scaleX?a.scaleX:a.scale,c.scaleX),scaleY:I(null!=a.scaleY?a.scaleY:a.scale,c.scaleY),x:I(a.x,c.x),y:I(a.y,c.y)};null!=a.shortRotation?+(f.rotation="number"===typeof a.shortRotation?a.shortRotation*z:J(a.shortRotation,c.rotation),d=(f.rotation-c.rotation)%(2*Math.PI),d!==d%Math.PI&&(d+=Math.PI*(0>d?2:-2)),f.rotation=c.rotation+d):f.rotation=null==a.rotation?c.rotation:"number"===typeof a.rotation?a.rotation*z:J(a.rotation,c.rotation);f.skewX=null==a.skewX?c.skewX:"number"===typeof a.skewX?a.skewX*z:J(a.skewX,c.skewX);f.skewY=null==a.skewY?c.skewY:"number"===typeof a.skewY?a.skewY*z:J(a.skewY,c.skewY);if(d=f.skewY-c.skewY)f.skewX+=+d,f.rotation+=d;1E-6>f.skewY&&-1E-6<f.skewY&&(f.skewY=0);1E-6>f.skewX&&-1E-6<f.skewX&&(f.skewX=0);1E-6>f.rotation&&-1E-6<f.rotation&&(f.rotation=0);if(null!=(a=a.transformOrigin))q?(e=q+"Origin",this._firstPT=a={_next:this._firstPT,t:h,p:e,s:0,c:0,n:e,f:!1,r:!1,b:h[e],e:a,i:a,type:-1,sfx:""},a._next&&(a._next._prev=a)):N(a,c)}else if("string"===typeof a&&q)d=h[q],h[q]=a,f=G(b,null,!1),h[q]=d;else return;if(q){if(U&&(T=!0,""===h.WebkitBackfaceVisibility&&(h.WebkitBackfaceVisibility="hidden"),""===+h.zIndex&&(d=p(b,"zIndex",g),"auto"===d||""===d)))h.zIndex=0}else h.zoom=1;for(e in aa)if((c[e]!==f[e]||null!=D[e])&&"shortRotation"!==e&&"scale"!==e)this._firstPT=a={_next:this._firstPT,t:c,p:e,s:c[e],c:f[e]-c[e],n:e,f:!1,r:!1,b:c[e],e:f[e],type:0,sfx:0},a._next&&(a._next._prev=a),this._overwriteProps.push("css_"+e)}};u._parseBezier=function(b,a,g,c){if(window.com.greensock.plugins.BezierPlugin){b instanceof Array&&(b={values:b});var h=b.values||[],f=h.length,d=[],e=this._bezier={_pt:[]},i=e._proxy=+{},l=0,s=0,k={},r=f-1,q=D,t=e._plugin=new window.com.greensock.plugins.BezierPlugin,n,j,p,m,u;for(n=0;n<f;n++){m={};this._transform=null;p=this._firstPT;this._parseVars(D=h[n],a,g,c);j=this._firstPT;if(0===n){for(u=this._transform;j!==p;)i[j.p]=j.s,e._pt[s++]=k[j.p]=j,1===j.type||2===j.type?(i[j.p+"_g"]=j.gs,i[j.p+"_b"]=j.bs,2===j.type&&(i[j.p+"_a"]=j.as)):3===j.type&&(i[j.p+"_y"]=j.ys),j=j._next;j=this._firstPT}else this._firstPT=p,p._prev&&(p._prev._next=null),p=p._prev=null;for(;j!==p;)k[j.p]&&+(m[j.p]=j.s+j.c,n===r&&(k[j.p].e=j.e),1===j.type||2===j.type?(m[j.p+"_g"]=j.gs+j.gc,m[j.p+"_b"]=j.bs+j.bc,2===j.type&&(m[j.p+"_a"]=j.as+j.ac)):3===j.type&&(m[j.p+"_y"]=j.ys+j.yc),0===n&&(j.c=j.ac=j.gc=j.bc=j.yc=0)),j=j._next;d[l++]=m}this._transform=u;D=q;b.values=d;0===b.autoRotate&&(b.autoRotate=!0);b.autoRotate&&!(b.autoRotate instanceof Array)&&(n=!0==b.autoRotate?0:Number(b.autoRotate)*Math.PI/180,b.autoRotate=null!=d[0].left?[["left","top","rotation",n,!0]]:null!=d[0].x?[["x","y","rotation",+n,!0]]:!1);if((e._autoRotate=b.autoRotate)&&!u)this._transform=G(a,g,!0);t._onInitTween(i,b,this._tween);b.values=h}else console.log("Error: BezierPlugin not loaded.")};u.setRatio=function(b){var a=this._firstPT,g=this._bezier,c=1E-6,h,f;if(g){g._plugin.setRatio(b);var d=g._pt,e=g._proxy;for(f=d.length;-1<--f;)a=d[f],a.s=e[a.p],1===a.type||2===a.type?(a.gs=e[a.p+"_g"],a.bs=e[a.p+"_b"],2===a.type&&(a.as=e[a.p+"_a"])):3===a.type&&(a.ys=e[a.p+"_y"]);g._autoRotate&&(this._transform.rotation=e.rotation)}if(1===+b&&(this._tween._time===this._tween._duration||0===this._tween._time))for(;a;)a.t[a.p]=a.e,4===a.type&&1===a.s+a.c&&(this._style.removeAttribute("filter"),p(this._target,"filter")&&(a.t[a.p]=a.e)),a=a._next;else if(b||!(this._tween._time===this._tween._duration||0===this._tween._time))for(;a;)h=a.c*b+a.s,a.r?h=0<h?h+0.5>>0:h-0.5>>0:h<c&&h>-c&&(h=0),a.type?1===a.type?a.t[a.p]="rgb("+(h>>0)+", "+(a.gs+b*a.gc>>0)+", "+(a.bs+b*a.bc>>0)+")":2===a.type?a.t[a.p]="rgba("+(h>>0)+", "+(a.gs+b*a.gc>>0)+", "++(a.bs+b*a.bc>>0)+", "+(a.as+b*a.ac)+")":-1===a.type?a.t[a.p]=a.i:3===a.type?(g=a.ys+b*a.yc,a.r&&(g=0<g?g+0.5>>0:g-0.5>>0),a.t[a.p]=h+a.sfx+" "+g+a.ysfx):(a.dup&&(a.t.filter=a.t.filter||"alpha(opacity=100)"),a.t.filter=-1===a.t.filter.indexOf("opacity")?a.t.filter+(" alpha(opacity="+(100*h>>0)+")"):a.t.filter.replace(L,"opacity="+(100*h>>0))):a.t[a.p]=h+a.sfx,a=a._next;else for(;a;)a.t[a.p]=a.b,4===a.type&&1===a.s&&(this._style.removeAttribute("filter"),p(this._target,"filter")&&(a.t[a.p]=a.b)),a=+a._next;if(this._transform)if(a=this._transform,q&&!a.rotation&&!a.skewX)this._style[q]=(a.x||a.y?"translate("+a.x+"px,"+a.y+"px) ":"")+(1!==a.scaleX||1!==a.scaleY?"scale("+a.scaleX+","+a.scaleY+")":"")||"translate(0px,0px)";else{var d=q?a.rotation:-a.rotation,i=q?d-a.skewX:d+a.skewX,g=Math.cos(d)*a.scaleX,d=Math.sin(d)*a.scaleX,e=Math.sin(i)*-a.scaleY,i=Math.cos(i)*a.scaleY,l;g<c&&g>-c&&(g=0);d<c&&d>-c&&(d=0);e<c&&e>-c&&(e=0);i<c&&i>-c&&(i=0);if(q)this._style[q]="matrix("+g+","+d+","+e+","+i+","++a.x+","+a.y+")";else if(l=this._target.currentStyle){c=d;d=-e;e=-c;c=l.filter;this._style.filter="";f=this._target.offsetWidth;h=this._target.offsetHeight;var s="absolute"!==l.position,k="progid:DXImageTransform.Microsoft.Matrix(M11="+g+", M12="+d+", M21="+e+", M22="+i,r=a.x,m=a.y,t,n;null!=a.ox&&(t=(a.oxp?0.01*f*a.ox:a.ox)-f/2,n=(a.oyp?0.01*h*a.oy:a.oy)-h/2,r=t-(t*g+n*d)+a.x,m=n-(t*e+n*i)+a.y);if(s)t=f/2,n=h/2,k+=", Dx="+(t-(t*g+n*d)+r)+", Dy="+(n-(t*e+n*i)+m)+")";else{var j=8>V?1:-1;t=a.ieOffsetX||+0;n=a.ieOffsetY||0;a.ieOffsetX=Math.round((f-((0>g?-g:g)*f+(0>d?-d:d)*h))/2+r);a.ieOffsetY=Math.round((h-((0>i?-i:i)*h+(0>e?-e:e)*f))/2+m);for(f=0;4>f;f++)r=ka[f],h=l[r],h=-1!==h.indexOf("px")?parseFloat(h):y(this._target,r,parseFloat(h),h.replace(K,""))||0,m=h!==a[r]?2>f?-a.ieOffsetX:-a.ieOffsetY:2>f?t-a.ieOffsetX:n-a.ieOffsetY,this._style[r]=(a[r]=Math.round(h-m*(0===f||2===f?1:j)))+"px";k+=", sizingMethod='auto expand')"}this._style.filter=-1!==c.indexOf("DXImageTransform.Microsoft.Matrix(")?c.replace(ha,+k):k+" "+c;if(0===b||1===b)if(1===g&&0===d&&0===e&&1===i&&(!s||-1!==k.indexOf("Dx=0, Dy=0")))(!L.test(c)||100===parseFloat(RegExp.$1))&&this._style.removeAttribute("filter")}}if(this._classData)if(a=this._classData,1===b&&(this._tween._time===this._tween._duration||0===this._tween._time)){for(f=a.props.length;-1<--f;)this._style[a.props[f]]="";this._target.className=a.e}else this._target.className!==a.b&&(this._target.className=a.b)};u._kill=function(b){var a=b,g;if(b.autoAlpha||b.alpha){a={};for(g in b)a[g]=+b[g];a.opacity=1;a.autoAlpha&&(a.visibility=1)}return C.prototype._kill.call(this,a)};C.activate([m]);return m},!0)});window._gsDefine&&_gsQueue.pop()();\ No newline at end of filediff --git a/src/minified/plugins/CSSRulePlugin.min.js b/src/minified/plugins/CSSRulePlugin.min.jsindex ca7dcfa..e3a66ac 100755--- a/src/minified/plugins/CSSRulePlugin.min.js+++ b/src/minified/plugins/CSSRulePlugin.min.js@@ -1,13 +1,34 @@-/*!- * VERSION: beta 0.42- * DATE: 2012-09-19- * JavaScript- * UPDATES AND DOCS AT: http://www.greensock.com- *- * Copyright (c) 2008-2012, GreenSock. All rights reserved.- * This work is subject to the terms in http://www.greensock.com/terms_of_use.html or for- * Club GreenSock members, the software agreement that was issued with your membership.- *- * @author: Jack Doyle, [email protected]- */-(window._gsQueue||(window._gsQueue=[])).push(function(){_gsDefine("plugins.CSSRulePlugin",["plugins.TweenPlugin","TweenLite"],function(r){var l=function(){r.call(this,"cssRule");this._overwriteProps.pop()},n=l.prototype=new r("cssRule");n.constructor=l;l.API=2;l.suffixMap={top:"px",right:"px",bottom:"px",left:"px",width:"px",height:"px",fontSize:"px",padding:"px",margin:"px"};var p=/[^\d\-\.]/g,A=/(\d|\-|\+|=|#|\.)*/g,L=/(\d|\.)+/g,B=/opacity *= *([^)]*)/,M=/([A-Z])/g,N=/(M11|M12|M21|M22)=[\d\-\.e]+/gi, O=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,q=Math.PI/180,m=document,s=m.createElement("div"),o=navigator.userAgent,C,D,t,E=o.indexOf("Android"),F=m.createElement("div");D=-1!==o.indexOf("Safari")&&-1===o.indexOf("Chrome")&&(-1===E||3<Number(o.substr(E+8,1)));F.innerHTML="<a style='top:1px;opacity:.55;'>a</a>";t=(o=F.getElementsByTagName("a")[0])?/^0.55/.test(o.style.opacity):!1;var G=function(c){if(!c||""===c)return u.black;if(u[c])return u[c];if("number"===typeof c)return[c>>16,c>>8& 255,c&255];if("#"===c.charAt(0)){if(4===c.length)var a=c.charAt(1),d=c.charAt(2),c=c.charAt(3),c="#"+a+a+d+d+c+c;c=parseInt(c.substr(1),16);return[c>>16,c>>8&255,c&255]}return c.match(L)||u.transparent},H=m.defaultView?m.defaultView.getComputedStyle:function(){},x=function(c,a,d,b){return!t&&"opacity"===a?B.test("string"===typeof c?c:(c.currentStyle?c.currentStyle.filter:c.style.filter)||"")?parseFloat(RegExp.$1)/100:1:!b&&c.style[a]?c.style[a]:(d=d||H(c,null))?(c=d.getPropertyValue(a.replace(M,"-$1").toLowerCase()))|| d.length?c:d[a]:c.currentStyle?(d=c.currentStyle,b=d[a],!b&&"backgroundPosition"===a?d[a+"X"]+" "+d[a+"Y"]:b):null},I={scaleX:1,scaleY:1,x:1,y:1,rotation:1,shortRotation:1,skewX:1,skewY:1,scale:1},J="",y="",i=function(c,a){var a=a||m.body||m.documentElement,d=H(a,""),b,e;if(x(a,c))return c;c=c.substr(0,1).toUpperCase()+c.substr(1);b=["O","Moz","ms","Ms","Webkit"];for(e=5;-1<--e&&!x(a,b[e]+c,d););return 0<=e?(y=3===e?"ms":b[e],J="-"+y.toLowerCase()+"-",y+c):null}("transform"),P=J+"transform";l.getRule= function(c){var a=m.all?"rules":"cssRules",d=m.styleSheets,b=d.length,e=":"===c.charAt(0),f,g,h,c=(e?"":",")+c+",";for(e&&(h=[]);-1<--b;){g=d[b][a];for(f=g.length;-1<--f;)if(-1!==(","+g[f].selectorText.split("::").join(":")+",").indexOf(c))if(e)h.push(g[f].style);else return g[f].style}return h};var K=function(c,a){s.cssText=c.cssText;var d=c._gsTransform,b;i?b=x(s,P,null,!0):s.currentStyle&&(b=(b=s.currentStyle.filter.match(N))&&4===b.length?b[0].substr(4)+","+Number(b[2].substr(4))+","+Number(b[1].substr(4))+ ","+b[3].substr(4)+","+(d?d.x:0)+","+(d?d.y:0):null);b=(b||"").replace(/[^\d\-\.e,]/g,"").split(",");var e=6<=b.length,f=e?Number(b[0]):1,g=e?Number(b[1]):0,h=e?Number(b[2]):0,j=e?Number(b[3]):1,d=a?d||{skewY:0}:{skewY:0},k=0>d.scaleX;d.x=e?Number(b[4]):0;d.y=e?Number(b[5]):0;d.scaleX=Math.sqrt(f*f+g*g);d.scaleY=Math.sqrt(j*j+h*h);d.rotation=f||g?Math.atan2(g,f):d.rotation||0;d.skewX=h||j?Math.atan2(h,j)+d.rotation:d.skewX||0;Math.abs(d.skewX)>Math.PI/2&&(k?(d.scaleX*=-1,d.skewX+=0>=d.rotation?Math.PI: -Math.PI,d.rotation+=0>=d.rotation?Math.PI:-Math.PI):(d.scaleY*=-1,d.skewX+=0>=d.skewX?Math.PI:-Math.PI));if(1E-6>d.rotation&&-1E-6<d.rotation&&(f||g))d.rotation=0;if(1E-6>d.skewX&&-1E-6<d.skewX&&(g||h))d.skewX=0;a&&(c._gsTransform=d);return d},z=function(c,a){if(null==c||""===c||"auto"===c)c="0 0";var a=a||{},d=-1!==c.indexOf("left")?"0%":-1!==c.indexOf("right")?"100%":c.split(" ")[0],b=-1!==c.indexOf("top")?"0%":-1!==c.indexOf("bottom")?"100%":c.split(" ")[1];null==b?b="0":"center"===b&&(b="50%"); "center"===d&&(d="50%");a.oxp=-1!==d.indexOf("%");a.oyp=-1!==b.indexOf("%");a.oxr="="===d.charAt(1);a.oyr="="===b.charAt(1);a.ox=parseFloat(d.replace(p,""));a.oy=parseFloat(b.replace(p,""));return a},v=function(c,a){return null==c?a:"string"===typeof c&&1===c.indexOf("=")?parseInt(c.charAt(0)+"1")*Number(c.substr(2))+a:Number(c)},w=function(c,a){var d=-1===c.indexOf("rad")?q:1,b=1===c.indexOf("="),c=Number(c.replace(p,""))*d;return b?c+a:c},u={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192], black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]};n._onInitTween=function(c,a,d){this._style=c;this._tween=d;this._transform=null;if(C&&(""===this._style.zIndex||"auto"===this._style.zIndex))this._style.zIndex=0;this._parseVars(a,c,a.suffixMap|| l.suffixMap);return!0};n._parseVars=function(c,a,d){var b,e,f,g,h,j,k;for(b in c)if(e=c[b],"transform"===b||b===i)this._parseTransform(a,e,d);else if(I[b]||"transformOrigin"===b)this._parseTransform(a,c,d);else{if("alpha"===b||"autoAlpha"===b)b="opacity";else if("margin"===b||"padding"===b){e=(e+"").split(" ");g=e.length;f={};f[b+"Top"]=e[0];f[b+"Right"]=1<g?e[1]:e[0];f[b+"Bottom"]=4===g?e[2]:e[0];f[b+"Left"]=4===g?e[3]:2===g?e[1]:e[0];this._parseVars(f,a,d);continue}else if("backgroundPosition"=== b||"backgroundSize"===b){f=z(e);k=z(g=a[b]||"50% 50%");this._firstPT=f={_next:this._firstPT,t:a,p:b,b:g,f:!1,n:"css_"+b,type:3,s:k.ox,c:f.oxr?f.ox:f.ox-k.ox,ys:k.oy,yc:f.oyr?f.oy:f.oy-k.oy,sfx:f.oxp?"%":"px",ysfx:f.oyp?"%":"px",r:!f.oxp&&!1!==c.autoRound};f.e=f.s+f.c+f.sfx+" "+(f.ys+f.yc)+f.ysfx;continue}else if("border"===b){e=(e+"").split(" ");this._parseVars({borderWidth:e[0],borderStyle:e[1]||"none",borderColor:e[2]||"#000000"},a,d);continue}else if("autoRound"===b)continue;g=a[b];g=null!=g?g+ "":"";this._firstPT=f={_next:this._firstPT,t:a,p:b,b:g,f:!1,n:"css_"+b,sfx:"",r:!1,type:0};"opacity"===b&&null!=c.autoAlpha&&(this._firstPT=f._prev={_next:f,t:a,p:"visibility",f:!1,n:"css_visibility",r:!1,type:-1,b:0!==Number(g)?"visible":"hidden",i:"visible",e:0===Number(e)?"hidden":"visible"},this._overwriteProps.push("css_visibility"));if("color"===b||"fill"===b||"stroke"===b||-1!==b.indexOf("Color")||"string"===typeof e&&!e.indexOf("rgb(")){if(h=G(g),e=G(e),f.e=f.i=(3<e.length?"rgba(":"rgb(")+ e.join(",")+")",f.b=(3<h.length?"rgba(":"rgb(")+h.join(",")+")",f.s=Number(h[0]),f.c=Number(e[0])-f.s,f.gs=Number(h[1]),f.gc=Number(e[1])-f.gs,f.bs=Number(h[2]),f.bc=Number(e[2])-f.bs,f.type=1,3<h.length||3<e.length)if(t)f.as=4>h.length?1:Number(h[3]),f.ac=(4>e.length?1:Number(e[3]))-f.as,f.type=2;else if(0==e[3]&&(f.e=f.i="transparent",f.type=-1),0==h[3])f.b="transparent"}else{h=g.replace(A,"");k=""===g||"auto"===g?"opacity"!==b?0:1:-1===g.indexOf(" ")?parseFloat(g.replace(p,"")):NaN;"string"=== typeof e?(g="="===e.charAt(1),j=e.replace(A,""),e=-1===e.indexOf(" ")?parseFloat(e.replace(p,"")):NaN):(g=!1,j="");""===j&&(j=d[b]||h);f.e=e||0===e?(g?e+k:e)+j:c[b];if(h!==j&&""!==j&&(e||0===e))if(k||0===k)throw"CSSRulePlugin error: starting and ending units don't match on tween of "+b+" ("+h+" vs "+j+")";if((k||0===k)&&(e||0===e)&&(f.c=g?e:e-k))if(f.s=k,f.sfx=j,"opacity"===b)t||(f.type=4,f.p="filter",f.b="alpha(opacity="+100*f.s+")",f.e="alpha(opacity="+100*(f.s+f.c)+")",f.dup=null!=c.autoAlpha, this._style.zoom=1);else{if(!1!==c.autoRound&&("px"===j||"zIndex"===b))f.r=!0}else f.type=-1,f.i="display"===b&&"none"===f.e?f.b:f.e,f.s=f.c=0}this._overwriteProps.push("css_"+b);f._next&&(f._next._prev=f)}};n._parseTransform=function(c,a){if(!this._transform){var d=this._transform=K(c,!0),b,e,f;if("object"===typeof a){b={scaleX:v(null!=a.scaleX?a.scaleX:a.scale,d.scaleX),scaleY:v(null!=a.scaleY?a.scaleY:a.scale,d.scaleY),x:v(a.x,d.x),y:v(a.y,d.y)};null!=a.shortRotation?(b.rotation="number"===typeof a.shortRotation? a.shortRotation*q:w(a.shortRotation,d.rotation),e=(b.rotation-d.rotation)%(2*Math.PI),e!==e%Math.PI&&(e+=Math.PI*(0>e?2:-2)),b.rotation=d.rotation+e):b.rotation=null==a.rotation?d.rotation:"number"===typeof a.rotation?a.rotation*q:w(a.rotation,d.rotation);b.skewX=null==a.skewX?d.skewX:"number"===typeof a.skewX?a.skewX*q:w(a.skewX,d.skewX);b.skewY=null==a.skewY?d.skewY:"number"===typeof a.skewY?a.skewY*q:w(a.skewY,d.skewY);if(e=b.skewY-d.skewY)b.skewX+=e,b.rotation+=e;1E-6>b.skewY&&-1E-6<b.skewY&& (b.skewY=0);1E-6>b.skewX&&-1E-6<b.skewX&&(b.skewX=0);1E-6>b.rotation&&-1E-6<b.rotation&&(b.rotation=0);if(null!=(e=a.transformOrigin))i?(f=i+"Origin",this._firstPT=e={_next:this._firstPT,t:c,p:f,s:0,c:0,n:f,f:!1,r:!1,b:c[f],e:e,i:e,type:-1,sfx:""},e._next&&(e._next._prev=e)):z(e,d)}else if("string"===typeof a&&i)e=c[i],c[i]=a,b=K(c,!1),c[i]=e;else return;if(i){if(D&&(C=!0,""===c.WebkitBackfaceVisibility&&(c.WebkitBackfaceVisibility="hidden"),""===c.zIndex))c.zIndex=0}else c.zoom=1;for(f in I)d[f]!== b[f]&&("shortRotation"!==f&&"scale"!==f)&&(this._firstPT=e={_next:this._firstPT,t:d,p:f,s:d[f],c:b[f]-d[f],n:f,f:!1,r:!1,b:d[f],e:b[f],type:0,sfx:0},e._next&&(e._next._prev=e),this._overwriteProps.push("css_"+f))}};n.setRatio=function(c){var a=this._firstPT,d=1E-6,b,e;if(1===c&&(this._tween._time===this._tween._duration||0===this._tween._time))for(;a;)a.t[a.p]=a.e,a=a._next;else if(c||!(this._tween._time===this._tween._duration||0===this._tween._time))for(;a;)b=a.c*c+a.s,a.r?b=0<b?b+0.5>>0:b-0.5>> 0:b<d&&b>-d&&(b=0),a.type?1===a.type?a.t[a.p]="rgb("+(b>>0)+", "+(a.gs+c*a.gc>>0)+", "+(a.bs+c*a.bc>>0)+")":2===a.type?a.t[a.p]="rgba("+(b>>0)+", "+(a.gs+c*a.gc>>0)+", "+(a.bs+c*a.bc>>0)+", "+(a.as+c*a.ac)+")":-1===a.type?a.t[a.p]=a.i:3===a.type?(e=a.ys+c*a.yc,a.r&&(e=0<e?e+0.5>>0:e-0.5>>0),a.t[a.p]=b+a.sfx+" "+e+a.ysfx):(a.dup&&(a.t.filter=a.t.filter||"alpha(opacity=100)"),a.t.filter=-1===a.t.filter.indexOf("opacity")?a.t.filter+(" alpha(opacity="+(100*b>>0)+")"):a.t.filter.replace(B,"opacity="+ (100*b>>0))):a.t[a.p]=b+a.sfx,a=a._next;else for(;a;)a.t[a.p]=a.b,a=a._next;if(this._transform)if(a=this._transform,i&&!a.rotation&&!a.skewX)this._style[i]=(a.x||a.y?"translate("+a.x+"px,"+a.y+"px) ":"")+(1!==a.scaleX||1!==a.scaleY?"scale("+a.scaleX+","+a.scaleY+")":"")||"translate(0px,0px)";else{b=i?a.rotation:-a.rotation;e=i?b-a.skewX:b+a.skewX;c=Math.cos(b)*a.scaleX;b=Math.sin(b)*a.scaleX;var f=Math.sin(e)*-a.scaleY;e=Math.cos(e)*a.scaleY;c<d&&c>-d&&(c=0);b<d&&b>-d&&(b=0);f<d&&f>-d&&(f=0);e<d&& e>-d&&(e=0);i?this._style[i]="matrix("+c+","+b+","+f+","+e+","+a.x+","+a.y+")":(d=b,b=-f,a=this._style.filter,this._style.filter="",d="progid:DXImageTransform.Microsoft.Matrix(M11="+c+", M12="+b+", M21="+-d+", M22="+e+",sizingMethod='auto expand')",this._style.filter=-1!==a.indexOf("DXImageTransform.Microsoft.Matrix(")?a.replace(O,d):d+" "+a)}};n._kill=function(c){var a=c,d;if(c.autoAlpha||c.alpha){a={};for(d in c)a[d]=c[d];a.opacity=1;a.autoAlpha&&(a.visibility=1)}return r.prototype._kill.call(this, a)};r.activate([l]);return l},!0)});window._gsDefine&&_gsQueue.pop()();\ No newline at end of file+/*!+ * VERSION: beta 0.43+ * DATE: 2012-10-01+ * JavaScript+ * UPDATES AND DOCS AT: http://www.greensock.com+ *+ * Copyright (c) 2008-2012, GreenSock. All rights reserved.+ * This work is subject to the terms in http://www.greensock.com/terms_of_use.html or for+ * Club GreenSock members, the software agreement that was issued with your membership.+ *+ * @author: Jack Doyle, [email protected]+ */+(window._gsQueue||(window._gsQueue=[])).push(function(){_gsDefine("plugins.CSSRulePlugin",["plugins.TweenPlugin","TweenLite"],function(t){var l=function(){t.call(this,"cssRule");this._overwriteProps.pop()},m=l.prototype=new t("cssRule");m.constructor=l;l.API=2;l.suffixMap={top:"px",right:"px",bottom:"px",left:"px",width:"px",height:"px",fontSize:"px",padding:"px",margin:"px"};var q=/[^\d\-\.]/g,A=/(\d|\-|\+|=|#|\.)*/g,K=/(\d|\.)+/g,B=/opacity *= *([^)]*)/,L=/([A-Z])/g,M=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,+N=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,r=Math.PI/180,n=document,s=n.createElement("div"),p=navigator.userAgent,C,D,u,E=p.indexOf("Android"),F=n.createElement("div");D=-1!==p.indexOf("Safari")&&-1===p.indexOf("Chrome")&&(-1===E||3<Number(p.substr(E+8,1)));F.innerHTML="<a style='top:1px;opacity:.55;'>a</a>";u=(p=F.getElementsByTagName("a")[0])?/^0.55/.test(p.style.opacity):!1;var G=function(c){if(!c||""===c)return v.black;if(v[c])return v[c];if("number"===typeof c)return[c>>16,c>>8&+255,c&255];if("#"===c.charAt(0)){if(4===c.length)var a=c.charAt(1),d=c.charAt(2),c=c.charAt(3),c="#"+a+a+d+d+c+c;c=parseInt(c.substr(1),16);return[c>>16,c>>8&255,c&255]}return c.match(K)||v.transparent},O=n.defaultView?n.defaultView.getComputedStyle:function(){},P=function(c,a,d,b){return!u&&"opacity"===a?B.test("string"===typeof c?c:(c.currentStyle?c.currentStyle.filter:c.style.filter)||"")?parseFloat(RegExp.$1)/100:1:!b&&c.style[a]?c.style[a]:(d=d||O(c,null))?(c=d.getPropertyValue(a.replace(L,"-$1").toLowerCase()))||+d.length?c:d[a]:c.currentStyle?(d=c.currentStyle,b=d[a],!b&&"backgroundPosition"===a?d[a+"X"]+" "+d[a+"Y"]:b):null},H={scaleX:1,scaleY:1,x:1,y:1,rotation:1,shortRotation:1,skewX:1,skewY:1,scale:1},I="",y="",i=function(c,a){var a=a||s,d=a.style,b,e;if(void 0!==d[c])return c;c=c.substr(0,1).toUpperCase()+c.substr(1);b=["O","Moz","ms","Ms","Webkit"];for(e=5;-1<--e&&void 0===d[b[e]+c];);return 0<=e?(y=3===e?"ms":b[e],I="-"+y.toLowerCase()+"-",y+c):null}("transform"),Q=I+"transform";l.getRule=function(c){var a=+n.all?"rules":"cssRules",d=n.styleSheets,b=d.length,e=":"===c.charAt(0),f,g,h,c=(e?"":",")+c+",";for(e&&(h=[]);-1<--b;){g=d[b][a];for(f=g.length;-1<--f;)if(-1!==(","+g[f].selectorText.split("::").join(":")+",").indexOf(c))if(e)h.push(g[f].style);else return g[f].style}return h};var J=function(c,a){s.cssText=c.cssText;var d=c._gsTransform,b;i?b=P(s,Q,null,!0):s.currentStyle&&(b=(b=s.currentStyle.filter.match(M))&&4===b.length?b[0].substr(4)+","+Number(b[2].substr(4))+","+Number(b[1].substr(4))+","++b[3].substr(4)+","+(d?d.x:0)+","+(d?d.y:0):null);b=(b||"").replace(/[^\d\-\.e,]/g,"").split(",");var e=6<=b.length,f=e?Number(b[0]):1,g=e?Number(b[1]):0,h=e?Number(b[2]):0,j=e?Number(b[3]):1,d=a?d||{skewY:0}:{skewY:0},k=0>d.scaleX;d.x=e?Number(b[4]):0;d.y=e?Number(b[5]):0;d.scaleX=Math.sqrt(f*f+g*g);d.scaleY=Math.sqrt(j*j+h*h);d.rotation=f||g?Math.atan2(g,f):d.rotation||0;d.skewX=h||j?Math.atan2(h,j)+d.rotation:d.skewX||0;Math.abs(d.skewX)>Math.PI/2&&(k?(d.scaleX*=-1,d.skewX+=0>=d.rotation?Math.PI:+-Math.PI,d.rotation+=0>=d.rotation?Math.PI:-Math.PI):(d.scaleY*=-1,d.skewX+=0>=d.skewX?Math.PI:-Math.PI));if(1E-6>d.rotation&&-1E-6<d.rotation&&(f||g))d.rotation=0;if(1E-6>d.skewX&&-1E-6<d.skewX&&(g||h))d.skewX=0;a&&(c._gsTransform=d);return d},z=function(c,a){if(null==c||""===c||"auto"===c)c="0 0";var a=a||{},d=-1!==c.indexOf("left")?"0%":-1!==c.indexOf("right")?"100%":c.split(" ")[0],b=-1!==c.indexOf("top")?"0%":-1!==c.indexOf("bottom")?"100%":c.split(" ")[1];null==b?b="0":"center"===b&&(b="50%");+"center"===d&&(d="50%");a.oxp=-1!==d.indexOf("%");a.oyp=-1!==b.indexOf("%");a.oxr="="===d.charAt(1);a.oyr="="===b.charAt(1);a.ox=parseFloat(d.replace(q,""));a.oy=parseFloat(b.replace(q,""));return a},w=function(c,a){return null==c?a:"string"===typeof c&&1===c.indexOf("=")?parseInt(c.charAt(0)+"1")*Number(c.substr(2))+a:Number(c)},x=function(c,a){var d=-1===c.indexOf("rad")?r:1,b=1===c.indexOf("="),c=Number(c.replace(q,""))*d;return b?c+a:c},v={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],+black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]};m._onInitTween=function(c,a,d){this._style=c;this._tween=d;this._transform=null;if(C&&(""===this._style.zIndex||"auto"===this._style.zIndex))this._style.zIndex=0;this._parseVars(a,c,a.suffixMap||+l.suffixMap);return!0};m._parseVars=function(c,a,d){var b,e,f,g,h,j,k;for(b in c)if(e=c[b],"transform"===b||b===i)this._parseTransform(a,e,d);else if(H[b]||"transformOrigin"===b)this._parseTransform(a,c,d);else{if("alpha"===b||"autoAlpha"===b)b="opacity";else if("margin"===b||"padding"===b){e=(e+"").split(" ");g=e.length;f={};f[b+"Top"]=e[0];f[b+"Right"]=1<g?e[1]:e[0];f[b+"Bottom"]=4===g?e[2]:e[0];f[b+"Left"]=4===g?e[3]:2===g?e[1]:e[0];this._parseVars(f,a,d);continue}else if("backgroundPosition"===+b||"backgroundSize"===b){f=z(e);k=z(g=a[b]||"50% 50%");this._firstPT=f={_next:this._firstPT,t:a,p:b,b:g,f:!1,n:"css_"+b,type:3,s:k.ox,c:f.oxr?f.ox:f.ox-k.ox,ys:k.oy,yc:f.oyr?f.oy:f.oy-k.oy,sfx:f.oxp?"%":"px",ysfx:f.oyp?"%":"px",r:!f.oxp&&!1!==c.autoRound};f.e=f.s+f.c+f.sfx+" "+(f.ys+f.yc)+f.ysfx;continue}else if("border"===b){e=(e+"").split(" ");this._parseVars({borderWidth:e[0],borderStyle:e[1]||"none",borderColor:e[2]||"#000000"},a,d);continue}else if("autoRound"===b)continue;g=a[b];g=null!=g?g++"":"";this._firstPT=f={_next:this._firstPT,t:a,p:b,b:g,f:!1,n:"css_"+b,sfx:"",r:!1,type:0};"opacity"===b&&null!=c.autoAlpha&&(this._firstPT=f._prev={_next:f,t:a,p:"visibility",f:!1,n:"css_visibility",r:!1,type:-1,b:0!==Number(g)?"visible":"hidden",i:"visible",e:0===Number(e)?"hidden":"visible"},this._overwriteProps.push("css_visibility"));if("color"===b||"fill"===b||"stroke"===b||-1!==b.indexOf("Color")||"string"===typeof e&&!e.indexOf("rgb(")){if(h=G(g),e=G(e),f.e=f.i=(3<e.length?"rgba(":"rgb(")++e.join(",")+")",f.b=(3<h.length?"rgba(":"rgb(")+h.join(",")+")",f.s=Number(h[0]),f.c=Number(e[0])-f.s,f.gs=Number(h[1]),f.gc=Number(e[1])-f.gs,f.bs=Number(h[2]),f.bc=Number(e[2])-f.bs,f.type=1,3<h.length||3<e.length)u?(f.as=4>h.length?1:Number(h[3]),f.ac=(4>e.length?1:Number(e[3]))-f.as,f.type=2):(0==e[3]&&(f.e=f.i="transparent",f.type=-1),0==h[3]&&(f.b="transparent"))}else{h=g.replace(A,"");k=""===g||"auto"===g?"opacity"!==b?0:1:-1===g.indexOf(" ")?parseFloat(g.replace(q,"")):NaN;"string"===typeof e?+(g="="===e.charAt(1),j=e.replace(A,""),e=-1===e.indexOf(" ")?parseFloat(e.replace(q,"")):NaN):(g=!1,j="");""===j&&(j=d[b]||h);f.e=e||0===e?(g?e+k:e)+j:c[b];if(h!==j&&""!==j&&(e||0===e))if(k||0===k)throw"CSSRulePlugin error: starting and ending units don't match on tween of "+b+" ("+h+" vs "+j+")";if((k||0===k)&&(e||0===e)&&(f.c=g?e:e-k))if(f.s=k,f.sfx=j,"opacity"===b)u||(f.type=4,f.p="filter",f.b="alpha(opacity="+100*f.s+")",f.e="alpha(opacity="+100*(f.s+f.c)+")",f.dup=null!=c.autoAlpha,this._style.zoom=+1);else{if(!1!==c.autoRound&&("px"===j||"zIndex"===b))f.r=!0}else f.type=-1,f.i="display"===b&&"none"===f.e?f.b:f.e,f.s=f.c=0}this._overwriteProps.push("css_"+b);f._next&&(f._next._prev=f)}};m._parseTransform=function(c,a){if(!this._transform){var d=this._transform=J(c,!0),b,e,f;if("object"===typeof a){b={scaleX:w(null!=a.scaleX?a.scaleX:a.scale,d.scaleX),scaleY:w(null!=a.scaleY?a.scaleY:a.scale,d.scaleY),x:w(a.x,d.x),y:w(a.y,d.y)};null!=a.shortRotation?(b.rotation="number"===typeof a.shortRotation?+a.shortRotation*r:x(a.shortRotation,d.rotation),e=(b.rotation-d.rotation)%(2*Math.PI),e!==e%Math.PI&&(e+=Math.PI*(0>e?2:-2)),b.rotation=d.rotation+e):b.rotation=null==a.rotation?d.rotation:"number"===typeof a.rotation?a.rotation*r:x(a.rotation,d.rotation);b.skewX=null==a.skewX?d.skewX:"number"===typeof a.skewX?a.skewX*r:x(a.skewX,d.skewX);b.skewY=null==a.skewY?d.skewY:"number"===typeof a.skewY?a.skewY*r:x(a.skewY,d.skewY);if(e=b.skewY-d.skewY)b.skewX+=e,b.rotation+=e;1E-6>b.skewY&&-1E-6<b.skewY&&+(b.skewY=0);1E-6>b.skewX&&-1E-6<b.skewX&&(b.skewX=0);1E-6>b.rotation&&-1E-6<b.rotation&&(b.rotation=0);if(null!=(e=a.transformOrigin))i?(f=i+"Origin",this._firstPT=e={_next:this._firstPT,t:c,p:f,s:0,c:0,n:f,f:!1,r:!1,b:c[f],e:e,i:e,type:-1,sfx:""},e._next&&(e._next._prev=e)):z(e,d)}else if("string"===typeof a&&i)e=c[i],c[i]=a,b=J(c,!1),c[i]=e;else return;i?D&&(C=!0,""===c.WebkitBackfaceVisibility&&(c.WebkitBackfaceVisibility="hidden"),""===c.zIndex&&(c.zIndex=0)):c.zoom=1;for(f in H)d[f]!==b[f]&&+("shortRotation"!==f&&"scale"!==f)&&(this._firstPT=e={_next:this._firstPT,t:d,p:f,s:d[f],c:b[f]-d[f],n:f,f:!1,r:!1,b:d[f],e:b[f],type:0,sfx:0},e._next&&(e._next._prev=e),this._overwriteProps.push("css_"+f))}};m.setRatio=function(c){var a=this._firstPT,d=1E-6,b,e;if(1===c&&(this._tween._time===this._tween._duration||0===this._tween._time))for(;a;)a.t[a.p]=a.e,a=a._next;else if(c||!(this._tween._time===this._tween._duration||0===this._tween._time))for(;a;)b=a.c*c+a.s,a.r?b=0<b?b+0.5>>0:b-0.5>>0:b<d&&+b>-d&&(b=0),a.type?1===a.type?a.t[a.p]="rgb("+(b>>0)+", "+(a.gs+c*a.gc>>0)+", "+(a.bs+c*a.bc>>0)+")":2===a.type?a.t[a.p]="rgba("+(b>>0)+", "+(a.gs+c*a.gc>>0)+", "+(a.bs+c*a.bc>>0)+", "+(a.as+c*a.ac)+")":-1===a.type?a.t[a.p]=a.i:3===a.type?(e=a.ys+c*a.yc,a.r&&(e=0<e?e+0.5>>0:e-0.5>>0),a.t[a.p]=b+a.sfx+" "+e+a.ysfx):(a.dup&&(a.t.filter=a.t.filter||"alpha(opacity=100)"),a.t.filter=-1===a.t.filter.indexOf("opacity")?a.t.filter+(" alpha(opacity="+(100*b>>0)+")"):a.t.filter.replace(B,"opacity="+(100*b>>+0))):a.t[a.p]=b+a.sfx,a=a._next;else for(;a;)a.t[a.p]=a.b,a=a._next;if(this._transform)if(a=this._transform,i&&!a.rotation&&!a.skewX)this._style[i]=(a.x||a.y?"translate("+a.x+"px,"+a.y+"px) ":"")+(1!==a.scaleX||1!==a.scaleY?"scale("+a.scaleX+","+a.scaleY+")":"")||"translate(0px,0px)";else{b=i?a.rotation:-a.rotation;e=i?b-a.skewX:b+a.skewX;c=Math.cos(b)*a.scaleX;b=Math.sin(b)*a.scaleX;var f=Math.sin(e)*-a.scaleY;e=Math.cos(e)*a.scaleY;c<d&&c>-d&&(c=0);b<d&&b>-d&&(b=0);f<d&&f>-d&&(f=0);e<d&&e>-d&&(e=+0);i?this._style[i]="matrix("+c+","+b+","+f+","+e+","+a.x+","+a.y+")":(d=b,b=-f,a=this._style.filter,this._style.filter="",d="progid:DXImageTransform.Microsoft.Matrix(M11="+c+", M12="+b+", M21="+-d+", M22="+e+",sizingMethod='auto expand')",this._style.filter=-1!==a.indexOf("DXImageTransform.Microsoft.Matrix(")?a.replace(N,d):d+" "+a)}};m._kill=function(c){var a=c,d;if(c.autoAlpha||c.alpha){a={};for(d in c)a[d]=c[d];a.opacity=1;a.autoAlpha&&(a.visibility=1)}return t.prototype._kill.call(this,a)};t.activate([l]);+return l},!0)});window._gsDefine&&_gsQueue.pop()();\ No newline at end of filediff --git a/src/uncompressed/TweenMax.js b/src/uncompressed/TweenMax.jsindex 2f90cef..79679a6 100755--- a/src/uncompressed/TweenMax.js+++ b/src/uncompressed/TweenMax.js@@ -1,5 +1,5 @@/**- * VERSION: beta 1.541+ * VERSION: beta 1.542* DATE: 2012-10-01* JavaScript (ActionScript 3 and 2 also available)* UPDATES AND DOCS AT: http://www.greensock.com@@ -2140,16 +2140,16 @@_prefix = "", //camelCase vendor prefix like "O", "ms", "Webkit", or "Moz".//feed in a camelCase property name like "transform" and it will check to see if it is valid as-is or if it needs a vendor prefix. It returns the corrected camelCase property name (i.e. "WebkitTransform" or "MozTransform" or "transform" or null if no such property is found, like if the browser is IE8 or before, "transform" won't be found at all)_checkPropPrefix = function(p, e) {- e = e || _doc.body || _doc.documentElement;- var cs = _getComputedStyle(e, ""),+ e = e || _tempDiv;+ var s = e.style,a, i;- if (_getStyle(e, p)) {+ if (s[p] !== undefined) {return p;}p = p.substr(0,1).toUpperCase() + p.substr(1);a = ["O","Moz","ms","Ms","Webkit"];i = 5;- while ( --i > -1 && !_getStyle(e, a[i]+p, cs)) { }+ while (--i > -1 && s[a[i]+p] === undefined) { }if (i >= 0) {_prefix = (i === 3) ? "ms" : a[i];_prefixCSS = "-" + _prefix.toLowerCase() + "-";@@ -2307,15 +2307,8 @@pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]};-- //there's a bug in some versions of iOS Safari (like 6) that causes the screen not to redraw properly for a while (several seconds usually) if the WebkitTransform value is read from the computed style (of any element) when the page first loads UNLESS we change something in the DOM that would normally cause a redraw, so we add an empty style element.- if (_isSafari) {- var s = _doc.createElement("style");- if (s.styleSheet) {- _doc.getElementsByTagName("head")[0].appendChild(s);- }- }-++//gets called when the tween renders for the first time. This kicks everything off, recording start/end values, etc.diff --git a/src/uncompressed/plugins/CSSPlugin.js b/src/uncompressed/plugins/CSSPlugin.jsindex f45cf70..9cbd65a 100755--- a/src/uncompressed/plugins/CSSPlugin.js+++ b/src/uncompressed/plugins/CSSPlugin.js@@ -1,5 +1,5 @@/*!- * VERSION: beta 1.541+ * VERSION: beta 1.542* DATE: 2012-10-01* JavaScript* UPDATES AND DOCS AT: http://www.greensock.com@@ -168,16 +168,16 @@_prefix = "", //camelCase vendor prefix like "O", "ms", "Webkit", or "Moz".//feed in a camelCase property name like "transform" and it will check to see if it is valid as-is or if it needs a vendor prefix. It returns the corrected camelCase property name (i.e. "WebkitTransform" or "MozTransform" or "transform" or null if no such property is found, like if the browser is IE8 or before, "transform" won't be found at all)_checkPropPrefix = function(p, e) {- e = e || _doc.body || _doc.documentElement;- var cs = _getComputedStyle(e, ""),+ e = e || _tempDiv;+ var s = e.style,a, i;- if (_getStyle(e, p)) {+ if (s[p] !== undefined) {return p;}p = p.substr(0,1).toUpperCase() + p.substr(1);a = ["O","Moz","ms","Ms","Webkit"];i = 5;- while ( --i > -1 && !_getStyle(e, a[i]+p, cs)) { }+ while (--i > -1 && s[a[i]+p] === undefined) { }if (i >= 0) {_prefix = (i === 3) ? "ms" : a[i];_prefixCSS = "-" + _prefix.toLowerCase() + "-";@@ -335,14 +335,8 @@pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]};-- //there's a bug in some versions of iOS Safari (like 6) that causes the screen not to redraw properly for a while (several seconds usually) if the WebkitTransform value is read from the computed style (of any element) when the page first loads UNLESS we change something in the DOM that would normally cause a redraw, so we add an empty style element.- if (_isSafari) {- var s = _doc.createElement("style");- if (s.styleSheet) {- _doc.getElementsByTagName("head")[0].appendChild(s);- }- }++//gets called when the tween renders for the first time. This kicks everything off, recording start/end values, etc.diff --git a/src/uncompressed/plugins/CSSRulePlugin.js b/src/uncompressed/plugins/CSSRulePlugin.jsindex 33908d6..678f2c4 100755--- a/src/uncompressed/plugins/CSSRulePlugin.js+++ b/src/uncompressed/plugins/CSSRulePlugin.js@@ -1,682 +1,682 @@-/*!- * VERSION: beta 0.42- * DATE: 2012-09-19- * JavaScript- * UPDATES AND DOCS AT: http://www.greensock.com- *- * Copyright (c) 2008-2012, GreenSock. All rights reserved.- * This work is subject to the terms in http://www.greensock.com/terms_of_use.html or for- * Club GreenSock members, the software agreement that was issued with your membership.- *- * @author: Jack Doyle, [email protected]- */-(window._gsQueue || (window._gsQueue = [])).push( function() {-- _gsDefine("plugins.CSSRulePlugin", ["plugins.TweenPlugin","TweenLite"], function(TweenPlugin, TweenLite) {-- "use strict";-- var CSSRulePlugin = function() {- TweenPlugin.call(this, "cssRule");- this._overwriteProps.pop();- },- p = CSSRulePlugin.prototype = new TweenPlugin("cssRule");-- p.constructor = CSSRulePlugin;- CSSRulePlugin.API = 2;- CSSRulePlugin.suffixMap = {top:"px", right:"px", bottom:"px", left:"px", width:"px", height:"px", fontSize:"px", padding:"px", margin:"px"};-- //set up some local variables and functions that we can reuse for all tweens - we do this only once and cache things to improve performance- var _NaNExp = /[^\d\-\.]/g,- _suffixExp = /(\d|\-|\+|=|#|\.)*/g,- _numExp = /(\d|\.)+/g,- _opacityExp = /opacity *= *([^)]*)/,- _opacityValExp = /opacity:([^;]*)/,- _capsExp = /([A-Z])/g,- _camelExp = /-([a-z])/gi,- _camelFunc = function(s, g) { return g.toUpperCase() },- _horizExp = /(Left|Right|Width)/i,- _ieGetMatrixExp = /(M11|M12|M21|M22)=[\d\-\.e]+/gi,- _ieSetMatrixExp = /progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,- _DEG2RAD = Math.PI / 180,- _RAD2DEG = 180 / Math.PI,- _doc = document,- _tempDiv = _doc.createElement("div"),- _agent = navigator.userAgent,- _reqSafariFix, //we won't apply the Safari transform fix until we actually come across a tween that affects a transform property (to maintain best performance).-- _isSafari, //Safari (and Android 4 which uses a flavor of Safari) has a bug that prevents changes to "top" and "left" properties from rendering properly if changed on the same frame as a transform UNLESS we set the element's WebkitBackfaceVisibility to hidden (weird, I know). Doing this for Android 3 and earlier seems to actually cause other problems, though (fun!)- _supportsOpacity = (function() { //we set _isSafari and _supportsOpacity all in one function here to reduce file size slightly, especially in the minified version.- var i = _agent.indexOf("Android"),- d = _doc.createElement("div"), a;-- _isSafari = (_agent.indexOf("Safari") !== -1 && _agent.indexOf("Chrome") === -1 && (i === -1 || Number(_agent.substr(i+8, 1)) > 3));-- d.innerHTML = "<a style='top:1px;opacity:.55;'>a</a>";- a = d.getElementsByTagName("a")[0];- return a ? /^0.55/.test(a.style.opacity) : false;- })(),-- //parses a color (like #9F0, #FF9900, or rgb(255,51,153)) into an array with 3 elements for red, green, and blue. Also handles rgba() values (splits into array of 4 elements of course)- _parseColor = function(v) {- if (!v || v === "") {- return _colorLookup.black;- } else if (_colorLookup[v]) {- return _colorLookup[v];- } else if (typeof(v) === "number") {- return [v >> 16, (v >> 8) & 255, v & 255];- } else if (v.charAt(0) === "#") {- if (v.length === 4) { //for shorthand like #9F0- var c1 = v.charAt(1),- c2 = v.charAt(2),- c3 = v.charAt(3);- v = "#" + c1 + c1 + c2 + c2 + c3 + c3;- }- v = parseInt(v.substr(1), 16);- return [v >> 16, (v >> 8) & 255, v & 255];- } else {- return v.match(_numExp) || _colorLookup.transparent;- }- },- _getIEOpacity = function(obj) {- return (_opacityExp.test( ((typeof(obj) === "string") ? obj : (obj.currentStyle ? obj.currentStyle.filter : obj.style.filter) || "") ) ? ( parseFloat( RegExp.$1 ) / 100 ) : 1);- },- _getComputedStyle = (_doc.defaultView) ? _doc.defaultView.getComputedStyle : function(o,s) {},-- //gets an individual style property. cs is for computedStyle (a speed optimization - we don't want to run it more than once if we don't have to). calc forces the returned value to be based on the computedStyle, ignoring anything that's in the element's "style" property (computing normalizes certain things for us)- _getStyle = function(t, p, cs, calc) {- if (!_supportsOpacity && p === "opacity") { //several versions of IE don't use the standard "opacity" property - they use things like filter:alpha(opacity=50), so we parse that here.- return _getIEOpacity(t);- } else if (!calc && t.style[p]) {- return t.style[p];- } else if ((cs = cs || _getComputedStyle(t, null))) {- t = cs.getPropertyValue(p.replace(_capsExp, "-$1").toLowerCase());- return (t || cs.length) ? t : cs[p]; //Opera behaves VERY strangely - length is usually 0 and cs[p] is the only way to get accurate results EXCEPT when checking for -o-transform which only works with cs.getPropertyValue()!- } else if (t.currentStyle) {- cs = t.currentStyle,- calc = cs[p]; //reuse "calc" variable to reduce minification size and improve speed slightly compared to creating a new variable.- if (!calc && p === "backgroundPosition") { //IE doesn't report backgroundPosition accurately (before version 9) - instead, it only reports backgroundPositionX and backgroundPositionY, so we need to combine them manually.- return cs[p + "X"] + " " + cs[p + "Y"];- }- return calc;- }- return null;- },-- _transformMap = {scaleX:1, scaleY:1, x:1, y:1, rotation:1, shortRotation:1, skewX:1, skewY:1, scale:1},-- _prefixCSS = "", //the non-camelCase vendor prefix like "-o-", "-moz-", "-ms-", or "-webkit-"- _prefix = "", //camelCase vendor prefix like "O", "ms", "Webkit", or "Moz".- //feed in a camelCase property name like "transform" and it will check to see if it is valid as-is or if it needs a vendor prefix. It returns the corrected camelCase property name (i.e. "WebkitTransform" or "MozTransform" or "transform" or null if no such property is found, like if the browser is IE8 or before, "transform" won't be found at all)- _checkPropPrefix = function(p, e) {- e = e || _doc.body || _doc.documentElement;- var cs = _getComputedStyle(e, ""),- a, i;- if (_getStyle(e, p)) {- return p;- }- p = p.substr(0,1).toUpperCase() + p.substr(1);- a = ["O","Moz","ms","Ms","Webkit"];- i = 5;- while ( --i > -1 && !_getStyle(e, a[i]+p, cs)) { }- if (i >= 0) {- _prefix = (i === 3) ? "ms" : a[i];- _prefixCSS = "-" + _prefix.toLowerCase() + "-";- return _prefix + p;- }- return null;- },- _transformProp = _checkPropPrefix("transform"), //the Javascript (camelCase) transform property, like msTransform, WebkitTransform, MozTransform, or OTransform.- _transformPropCSS = _prefixCSS + "transform",-- _getRule = CSSRulePlugin.getRule = function(selector) {- var ruleProp = _doc.all ? 'rules' : 'cssRules',- ss = _doc.styleSheets,- i = ss.length,- pseudo = (selector.charAt(0) === ":"),- j, curSS, a;- selector = (pseudo ? "" : ",") + selector + ",";- if (pseudo) {- a = [];- }- while (--i > -1) {- curSS = ss[i][ruleProp];- j = curSS.length;- while (--j > -1) {- if ((","+curSS[j].selectorText.split("::").join(":")+",").indexOf(selector) !== -1) { //note: IE adds an extra ":" to pseudo selectors, so .myClass:after becomes .myClass::after, so we need to strip the extra one out.- if (pseudo) {- a.push(curSS[j].style);- } else {- return curSS[j].style;- }- }- }- }- return a;- },-- //parses the transform values for an element, returning an object with x, y, scaleX, scaleY, rotation, skewX, and skewY properties. Note: by default (for performance reasons), all skewing is combined into skewX and rotation but skewY still has a place in the transform object so that we can record how much of the skew is attributed to skewX vs skewY. Remember, a skewY of 10 looks the same as a rotation of 10 and skewX of -10.- _getTransform = function(style, rec) {- _tempDiv.cssText = style.cssText;- var t = _tempDiv,- tm = style._gsTransform, s;- if (_transformProp) {- s = _getStyle(t, _transformPropCSS, null, true);- } else if (t.currentStyle) {- //for older versions of IE, we need to interpret the filter portion that is in the format: progid:DXImageTransform.Microsoft.Matrix(M11=6.123233995736766e-17, M12=-1, M21=1, M22=6.123233995736766e-17, sizingMethod='auto expand') Notice that we need to swap b and c compared to a normal matrix.- s = t.currentStyle.filter.match(_ieGetMatrixExp);- s = (s && s.length === 4) ? s[0].substr(4) + "," + Number(s[2].substr(4)) + "," + Number(s[1].substr(4)) + "," + s[3].substr(4) + "," + (tm ? tm.x : 0) + "," + (tm ? tm.y : 0) : null;- }- var v = (s || "").replace(/[^\d\-\.e,]/g, "").split(","),- k = (v.length >= 6),- a = k ? Number(v[0]) : 1,- b = k ? Number(v[1]) : 0,- c = k ? Number(v[2]) : 0,- d = k ? Number(v[3]) : 1,- min = 0.000001,- m = rec ? tm || {skewY:0} : {skewY:0},- invX = (m.scaleX < 0); //in order to interpret things properly, we need to know if the user applied a negative scaleX previously so that we can adjust the rotation and skewX accordingly. Otherwise, if we always interpret a flipped matrix as affecting scaleY and the user only wants to tween the scaleX on multiple sequential tweens, it would keep the negative scaleY without that being the user's intent.-- m.x = (k ? Number(v[4]) : 0);- m.y = (k ? Number(v[5]) : 0);- m.scaleX = Math.sqrt(a * a + b * b);- m.scaleY = Math.sqrt(d * d + c * c);- m.rotation = (a || b) ? Math.atan2(b, a) : m.rotation || 0; //note: if scaleX is 0, we cannot accurately measure rotation. Same for skewX with a scaleY of 0. Therefore, we default to the previously recorded value (or zero if that doesn't exist).- m.skewX = (c || d) ? Math.atan2(c, d) + m.rotation : m.skewX || 0;- if (Math.abs(m.skewX) > Math.PI / 2) {- if (invX) {- m.scaleX *= -1;- m.skewX += (m.rotation <= 0) ? Math.PI : -Math.PI;- m.rotation += (m.rotation <= 0) ? Math.PI : -Math.PI;- } else {- m.scaleY *= -1;- m.skewX += (m.skewX <= 0) ? Math.PI : -Math.PI;- }- }- //some browsers have a hard time with very small values like 2.4492935982947064e-16 (notice the "e-" towards the end) and would render the object slightly off. So we round to 0 in these cases. The conditional logic here is faster than calling Math.abs().- if (m.rotation < min) if (m.rotation > -min) if (a || b) {- m.rotation = 0;- }- if (m.skewX < min) if (m.skewX > -min) if (b || c) {- m.skewX = 0;- }- if (rec) {- style._gsTransform = m; //record to the object's _gsTransform which we use so that tweens can control individual properties independently (we need all the properties to accurately recompose the matrix in the setRatio() method)- }- return m;- },-- _dimensions = {width:["Left","Right"], height:["Top","Bottom"]},- _margins = ["marginLeft","marginRight","marginTop","marginBottom"],-- //for parsing things like transformOrigin or backgroundPosition which must recognize keywords like top/left/right/bottom/center as well as percentages and pixel values. Decorates the supplied object with the following properties: "ox" (offsetX), "oy" (offsetY), "oxp" (if true, "ox" is a percentage not a pixel value), and "oxy" (if true, "oy" is a percentage not a pixel value)- _parsePosition = function(v, o) {- if (v == null || v === "" || v === "auto") {- v = "0 0";- }- o = o || {};- var x = (v.indexOf("left") !== -1) ? "0%" : (v.indexOf("right") !== -1) ? "100%" : v.split(" ")[0],- y = (v.indexOf("top") !== -1) ? "0%" : (v.indexOf("bottom") !== -1) ? "100%" : v.split(" ")[1];- if (y == null) {- y = "0";- } else if (y === "center") {- y = "50%";- }- if (x === "center") {- x = "50%";- }- o.oxp = (x.indexOf("%") !== -1);- o.oyp = (y.indexOf("%") !== -1);- o.oxr = (x.charAt(1) === "=");- o.oyr = (y.charAt(1) === "=");- o.ox = parseFloat(x.replace(_NaNExp, ""));- o.oy = parseFloat(y.replace(_NaNExp, ""));- return o;- },-- //takes a value and a default number, checks if the value is relative, null, or numeric and spits back a normalized number accordingly. Primarily used in the _parseTransform() function.- _parseVal = function(v, d) {- return (v == null) ? d : (typeof(v) === "string" && v.indexOf("=") === 1) ? parseInt(v.charAt(0)+"1") * Number(v.substr(2)) + d : Number(v);- },-- //translates strings like "40deg" or "40" or 40rad" or "+=40deg" to a numeric radian angle, optionally relative to a default value (if "+=" or "-=" prefix is found)- _parseAngle = function(v, d) {- var m = (v.indexOf("rad") === -1) ? _DEG2RAD : 1,- r = (v.indexOf("=") === 1);- v = Number(v.replace(_NaNExp, "")) * m;- return r ? v + d : v;- },- _colorLookup = {aqua:[0,255,255],- lime:[0,255,0],- silver:[192,192,192],- black:[0,0,0],- maroon:[128,0,0],- teal:[0,128,128],- blue:[0,0,255],- navy:[0,0,128],- white:[255,255,255],- fuchsia:[255,0,255],- olive:[128,128,0],- yellow:[255,255,0],- orange:[255,165,0],- gray:[128,128,128],- purple:[128,0,128],- green:[0,128,0],- red:[255,0,0],- pink:[255,192,203],- cyan:[0,255,255],- transparent:[255,255,255,0]};--- //gets called when the tween renders for the first time. This kicks everything off, recording start/end values, etc.- p._onInitTween = function(target, value, tween) {- this._style = target;- this._tween = tween;- this._transform = null; //_transform is only used for scaleX/scaleY/x/y/rotation/skewX/skewY tweens-- if (_reqSafariFix) if (this._style.zIndex === "" || this._style.zIndex === "auto") {- this._style.zIndex = 0;- }-- this._parseVars(value, target, value.suffixMap || CSSRulePlugin.suffixMap);- return true;- }-- //feed a vars object to this function and it will parse through its properties and add PropTweens as necessary. This is split out from the _onInitTween() so that we can recurse if necessary, like "margin" should affect "marginLeft", "marginRight", "marginTop", and "marginBottom".- p._parseVars = function(vars, s, map) {- var p, v, pt, beg, clr1, clr2, bsfx, esfx, rel, start, copy;-- for (p in vars) {-- v = vars[p];-- if (p === "transform" || p === _transformProp) {- this._parseTransform(s, v, map);- continue;- } else if (_transformMap[p] || p === "transformOrigin") {- this._parseTransform(s, vars, map);- continue;- } else if (p === "alpha" || p === "autoAlpha") { //alpha tweens are opacity tweens- p = "opacity";- } else if (p === "margin" || p === "padding") {- copy = (v + "").split(" ");- rel = copy.length;- pt = {};- pt[p + "Top"] = copy[0];- pt[p + "Right"] = (rel > 1) ? copy[1] : copy[0];- pt[p + "Bottom"] = (rel === 4) ? copy[2] : copy[0];- pt[p + "Left"] = (rel === 4) ? copy[3] : (rel === 2) ? copy[1] : copy[0];- this._parseVars(pt, s, map);- continue;- } else if (p === "backgroundPosition" || p === "backgroundSize") {- pt = _parsePosition(v); //end values- start = _parsePosition( (beg = s[p] || "50% 50%") ); //starting values- this._firstPT = pt = {_next:this._firstPT, t:s, p:p, b:beg, f:false, n:"css_" + p, type:3,- s:start.ox, //x start- c:pt.oxr ? pt.ox : pt.ox - start.ox, //change in x- ys:start.oy, //y start- yc:pt.oyr ? pt.oy : pt.oy - start.oy, //change in y- sfx:pt.oxp ? "%" : "px", //x suffix- ysfx:pt.oyp ? "%" : "px", //y suffix- r:(!pt.oxp && vars.autoRound !== false)};- pt.e = (pt.s + pt.c) + pt.sfx + " " + (pt.ys + pt.yc) + pt.ysfx; //we can't just use v because it could contain relative values, like +=50px which is an illegal final value.- continue;- } else if (p === "border") {- copy = (v + "").split(" ");- this._parseVars({borderWidth:copy[0], borderStyle:copy[1] || "none", borderColor:copy[2] || "#000000"}, s, map);- continue;- } else if (p === "autoRound") {- continue;- }-- beg = s[p];- beg = (beg != null) ? beg + "" : "";-- //Some of these properties are in place in order to conform with the standard PropTweens in TweenPlugins so that overwriting and roundProps occur properly. For example, f and r may seem unnecessary here, but they enable other functionality.- //_next:* next linked list node [object]- //t: * target [object]- //p: * property (camelCase) [string]- //s: * starting value [number]- //c: * change value [number]- //f: * is function [boolean]- //n: * name (for overwriting) [string]- //sfx: suffix [string]- //b: beginning value [string]- //i: intermediate value [string]- //e: ending value [string]- //r: * round [boolean]- //type: 0=normal, 1=color, 2=rgba, 3=positional offset (like backgroundPosition or backgroundSize), 4=unsupported opacity (ie), -1=non-tweening prop [number]- this._firstPT = pt = {_next:this._firstPT,- t:s,- p:p,- b:beg,- f:false,- n:"css_" + p,- sfx:"",- r:false,- type:0};-- //if it's an autoAlpha, add a new PropTween for "visibility". We must make sure the "visibility" PropTween comes BEFORE the "opacity" one in order to work around a bug in old versions of IE tht would ignore "visibility" changes if made right after an alpha change. Remember, we add PropTweens in reverse order - that's why we do this here, after creating the original PropTween.- if (p === "opacity") if (vars.autoAlpha != null) {- this._firstPT = pt._prev = {_next:pt, t:s, p:"visibility", f:false, n:"css_visibility", r:false, type:-1, b:(Number(beg) !== 0) ? "visible" : "hidden", i:"visible", e:(Number(v) === 0) ? "hidden" : "visible"};- this._overwriteProps.push("css_visibility");- }-- //color values must be split apart into their R, G, B (and sometimes alpha) values and tweened independently.- if (p === "color" || p === "fill" || p === "stroke" || p.indexOf("Color") !== -1 || (typeof(v) === "string" && !v.indexOf("rgb("))) { //Opera uses background: to define color sometimes in addition to backgroundColor:- clr1 = _parseColor(beg);- clr2 = _parseColor(v);- pt.e = pt.i = ((clr2.length > 3) ? "rgba(" : "rgb(") + clr2.join(",") + ")"; //don't just do pt.e = v because that won't work if the destination color is numeric, like 0xFF0000. We need to parse it.- pt.b = ((clr1.length > 3) ? "rgba(" : "rgb(") + clr1.join(",") + ")"; //normalize to rgb in case the beginning value was passed in as numeric, like 0xFF0000- pt.s = Number(clr1[0]); //red starting value- pt.c = Number(clr2[0]) - pt.s; //red change- pt.gs = Number(clr1[1]); //green starting value- pt.gc = Number(clr2[1]) - pt.gs; //green change- pt.bs = Number(clr1[2]); //blue starting value- pt.bc = Number(clr2[2]) - pt.bs; //blue change- pt.type = 1;- if (clr1.length > 3 || clr2.length > 3) { //detect an rgba() value- if (_supportsOpacity) {- pt.as = (clr1.length < 4) ? 1 : Number(clr1[3]);- pt.ac = ((clr2.length < 4) ? 1 : Number(clr2[3])) - pt.as;- pt.type = 2;- } else { //older versions of IE don't support rgba(), so if the destination alpha is 0, just use "transparent" for the color and make it a non-tweening property- if (clr2[3] == 0) {- pt.e = pt.i = "transparent";- pt.type = -1;- }- if (clr1[3] == 0) {- pt.b = "transparent";- }- }- }-- } else {-- bsfx = beg.replace(_suffixExp, ""); //beginning suffix-- if (beg === "" || beg === "auto") {- start = (p !== "opacity") ? 0 : 1;- } else {- start = (beg.indexOf(" ") === -1) ? parseFloat(beg.replace(_NaNExp, "")) : NaN;- }-- if (typeof(v) === "string") {- rel = (v.charAt(1) === "=");- esfx = v.replace(_suffixExp, "");- v = (v.indexOf(" ") === -1) ? parseFloat(v.replace(_NaNExp, "")) : NaN;- } else {- rel = false;- esfx = "";- }-- if (esfx === "") {- esfx = map[p] || bsfx; //populate the end suffix, prioritizing the map, then if none is found, use the beginning suffix.- }-- pt.e = (v || v === 0) ? (rel ? v + start : v) + esfx : vars[p]; //ensures that any += or -= prefixes are taken care of. Record the end value before normalizing the suffix because we always want to end the tween on exactly what they intended even if it doesn't match the beginning value's suffix.-- //if the beginning/ending suffixes don't match, normalize them...- if (bsfx !== esfx) if (esfx !== "") if (v || v === 0) if (start || start === 0) {- throw("CSSRulePlugin error: starting and ending units don't match on tween of " + p + " (" + bsfx + " vs " + esfx + ")");- }-- if ((start || start === 0) && (v || v === 0) && (pt.c = (rel ? v : v - start))) { //faster than isNaN(). Also, we set pt.c (change) here because if it's 0, we'll just treat it like a non-tweening value. can't do (v !== start) because if it's a relative value and the CHANGE is identical to the START, the condition will fail unnecessarily.- pt.s = start;- pt.sfx = esfx;- if (p === "opacity") {- if (!_supportsOpacity) {- pt.type = 4;- pt.p = "filter";- pt.b = "alpha(opacity=" + (pt.s * 100) + ")";- pt.e = "alpha(opacity=" + ((pt.s + pt.c) * 100) + ")";- pt.dup = (vars.autoAlpha != null); //dup = duplicate the setting of the alpha in order to work around a bug in IE7 and IE8 that prevents changes to "visibility" from taking effect if the filter is changed to a different alpha(opacity) at the same time. Setting it to the SAME value first, then the new value works around the IE7/8 bug.- this._style.zoom = 1; //helps correct an IE issue.- }- } else if (vars.autoRound !== false && (esfx === "px" || p === "zIndex")) { //always round zIndex, and as long as autoRound isn't false, round pixel values (that improves performance in browsers typically)- pt.r = true;- }- } else {- pt.type = -1;- pt.i = (p === "display" && pt.e === "none") ? pt.b : pt.e; //intermediate value is typically the same as the end value except for "display"- pt.s = pt.c = 0;- }-- }-- this._overwriteProps.push("css_" + p);- if (pt._next) {- pt._next._prev = pt;- }- }-- }--- //compares the beginning x, y, scaleX, scaleY, rotation, and skewX properties with the ending ones and adds PropTweens accordingly wherever necessary. We must tween them individually (rather than just tweening the matrix values) so that elgant overwriting can occur, like if one tween is controlling scaleX, scaleY, and rotation and then another one starts mid-tween that is trying to control the scaleX only - this tween should continue tweening scaleY and rotation.- p._parseTransform = function(s, v, map) {- if (this._transform) { return; } //only need to parse the transform once, and only if the browser supports it.-- var m1 = this._transform = _getTransform(s, true),- min = 0.000001,- m2, skewY, p, pt, copy, orig;-- if (typeof(v) === "object") { //for values like scaleX, scaleY, rotation, x, y, skewX, and skewY or transform:{...} (object)-- m2 = {scaleX:_parseVal((v.scaleX != null) ? v.scaleX : v.scale, m1.scaleX),- scaleY:_parseVal((v.scaleY != null) ? v.scaleY : v.scale, m1.scaleY),- x:_parseVal(v.x, m1.x),- y:_parseVal(v.y, m1.y)};-- if (v.shortRotation != null) {- m2.rotation = (typeof(v.shortRotation) === "number") ? v.shortRotation * _DEG2RAD : _parseAngle(v.shortRotation, m1.rotation);- var dif = (m2.rotation - m1.rotation) % (Math.PI * 2);- if (dif !== dif % Math.PI) {- dif += Math.PI * ((dif < 0) ? 2 : -2);- }- m2.rotation = m1.rotation + dif;-- } else {- m2.rotation = (v.rotation == null) ? m1.rotation : (typeof(v.rotation) === "number") ? v.rotation * _DEG2RAD : _parseAngle(v.rotation, m1.rotation);- }- m2.skewX = (v.skewX == null) ? m1.skewX : (typeof(v.skewX) === "number") ? v.skewX * _DEG2RAD : _parseAngle(v.skewX, m1.skewX);-- //note: for performance reasons, we combine all skewing into the skewX and rotation values, ignoring skewY but we must still record it so that we can discern how much of the overall skew is attributed to skewX vs. skewY. Otherwise, if the skewY would always act relative (tween skewY to 10deg, for example, multiple times and if we always combine things into skewX, we can't remember that skewY was 10 from last time). Remember, a skewY of 10 degrees looks the same as a rotation of 10 degrees plus a skewX of -10 degrees.- m2.skewY = (v.skewY == null) ? m1.skewY : (typeof(v.skewY) === "number") ? v.skewY * _DEG2RAD : _parseAngle(v.skewY, m1.skewY);- if ((skewY = m2.skewY - m1.skewY)) {- m2.skewX += skewY- m2.rotation += skewY;- }- //don't allow rotation/skew values to be a SUPER small decimal because when they're translated back to strings for setting the css property, the browser reports them in a funky way, like 1-e7. Of course we could use toFixed() to resolve that issue but that hurts performance quite a bit with all those function calls on every frame, plus it is virtually impossible to discern values that small visually (nobody will notice changing a rotation of 0.0000001 to 0, so the performance improvement is well worth it).- if (m2.skewY < min) if (m2.skewY > -min) {- m2.skewY = 0;- }- if (m2.skewX < min) if (m2.skewX > -min) {- m2.skewX = 0;- }- if (m2.rotation < min) if (m2.rotation > -min) {- m2.rotation = 0;- }-- //if a transformOrigin is defined, handle it here...- if ((orig = v.transformOrigin) != null) {- if (_transformProp) {- p = _transformProp + "Origin";- this._firstPT = pt = {_next:this._firstPT, t:s, p:p, s:0, c:0, n:p, f:false, r:false, b:s[p], e:orig, i:orig, type:-1, sfx:""};- if (pt._next) {- pt._next._prev = pt;- }-- //for older versions of IE (6-8), we need to manually calculate things inside the setRatio() function. We record origin x and y (ox and oy) and whether or not the values are percentages (oxp and oyp).- } else {- _parsePosition(orig, m1);- }- }-- } else if (typeof(v) === "string" && _transformProp) { //for values like transform:"rotate(60deg) scale(0.5, 0.8)"- copy = s[_transformProp];- s[_transformProp] = v;- m2 = _getTransform(s, false);- s[_transformProp] = copy;- } else {- return;- }-- if (!_transformProp) {- s.zoom = 1; //helps correct an IE issue.- } else if (_isSafari) {- _reqSafariFix = true;- //corrects a bug in [non-Android] Safari that causes it to skip rendering changes to "top" and "left" that are made on the same frame/render as a transform update. It also helps work around bugs in iOS Safari that can prevent it from repainting elements in their new positions. We cannot just check for a Webkit browser because some Android devices like the Atrix don't like this "fix". Setting "WebkitPerspective" to a non-zero value worked too except that on iOS Safari things would flicker randomly.- if (s.WebkitBackfaceVisibility === "") {- s.WebkitBackfaceVisibility = "hidden";- }- //if zIndex isn't set, iOS Safari doesn't repaint things correctly sometimes (seemingly at random).- if (s.zIndex === "") {- s.zIndex = 0;- }- }-- for (p in _transformMap) {- if (m1[p] !== m2[p]) if (p !== "shortRotation") if (p !== "scale") {- this._firstPT = pt = {_next:this._firstPT, t:m1, p:p, s:m1[p], c:m2[p] - m1[p], n:p, f:false, r:false, b:m1[p], e:m2[p], type:0, sfx:0};- if (pt._next) {- pt._next._prev = pt;- }- this._overwriteProps.push("css_" + p);- }- }- };--- //gets called every time the tween updates, passing the new ratio (typically a value between 0 and 1, but not always (for example, if an Elastic.easeOut is used, the value can jump above 1 mid-tween). It will always start and 0 and end at 1.- p.setRatio = function(v) {- var pt = this._firstPT,- min = 0.000001, val, y;-- //at the end of the tween, we set the values to exactly what we received in order to make sure non-tweening values (like "position" or "float" or whatever) are set and so that if the beginning/ending suffixes (units) didn't match and we normalized to px, the value that the user passed in is used here. We check to see if the tween is at its beginning in case it's a from() tween in which case the ratio will actually go from 1 to 0 over the course of the tween (backwards).- if (v === 1 && (this._tween._time === this._tween._duration || this._tween._time === 0)) {- while (pt) {- pt.t[pt.p] = pt.e;- pt = pt._next;- }-- } else if (v || !(this._tween._time === this._tween._duration || this._tween._time === 0)) {-- while (pt) {- val = pt.c * v + pt.s;- if (pt.r) {- val = (val > 0) ? (val + 0.5) >> 0 : (val - 0.5) >> 0;- } else if (val < min) if (val > -min) {- val = 0;- }- if (!pt.type) {- pt.t[pt.p] = val + pt.sfx;- } else if (pt.type === 1) { //rgb()- pt.t[pt.p] = "rgb(" + (val >> 0) + ", " + ((pt.gs + (v * pt.gc)) >> 0) + ", " + ((pt.bs + (v * pt.bc)) >> 0) + ")";- } else if (pt.type === 2) { //rgba()- pt.t[pt.p] = "rgba(" + (val >> 0) + ", " + ((pt.gs + (v * pt.gc)) >> 0) + ", " + ((pt.bs + (v * pt.bc)) >> 0) + ", " + (pt.as + (v * pt.ac)) + ")";- } else if (pt.type === -1) { //non-tweening- pt.t[pt.p] = pt.i;- } else if (pt.type === 3) { //positional property with an x and y, like backgroundPosition or backgroundSize- y = pt.ys + v * pt.yc;- if (pt.r) {- y = (y > 0) ? (y + 0.5) >> 0 : (y - 0.5) >> 0;- }- pt.t[pt.p] = val + pt.sfx + " " + y + pt.ysfx;- } else {- if (pt.dup) {- pt.t.filter = pt.t.filter || "alpha(opacity=100)"; //works around bug in IE7/8 that prevents changes to "visibility" from being applied propertly if the filter is changed to a different alpha on the same frame.- }- if (pt.t.filter.indexOf("opacity") === -1) { //only used if browser doesn't support the standard opacity style property (IE 7 and 8)- pt.t.filter += " alpha(opacity=" + ((val * 100) >> 0) + ")"; //we round the value because otherwise, bugs in IE7/8 can prevent "visibility" changes from being applied properly.- } else {- pt.t.filter = pt.t.filter.replace(_opacityExp, "opacity=" + ((val * 100) >> 0)); //we round the value because otherwise, bugs in IE7/8 can prevent "visibility" changes from being applied properly.- }- }- pt = pt._next;- }-- //if the tween is reversed all the way back to the beginning, we need to restore the original values which may have different units (like % instead of px or em or whatever).- } else {- while (pt) {- pt.t[pt.p] = pt.b;- pt = pt._next;- }- }-- //apply transform values like x, y, scaleX, scaleY, rotation, skewX, or skewY. We do these after looping through all the PropTweens because those are where the changes are made to scaleX/scaleY/rotation/skewX/skewY/x/y.- if (this._transform) {- pt = this._transform; //to improve speed and reduce size, reuse the pt variable as an alias to the _transform property- //if there is no rotation or skew, browsers render the transform faster if we just feed it the list of transforms like translate() skewX() scale(), otherwise defining the matrix() values directly is fastest.- if (_transformProp && !pt.rotation && !pt.skewX) {- this._style[_transformProp] = ((pt.x || pt.y) ? "translate(" + pt.x + "px," + pt.y + "px) " : "") + ((pt.scaleX !== 1 || pt.scaleY !== 1) ? "scale(" + pt.scaleX + "," + pt.scaleY + ")" : "") || "translate(0px,0px)"; //we need to default to translate(0px,0px) to work around a Chrome bug that rears its ugly head when the transform is set to "".- } else {- var ang = _transformProp ? pt.rotation : -pt.rotation,- skew = _transformProp ? ang - pt.skewX : ang + pt.skewX,- a = Math.cos(ang) * pt.scaleX,- b = Math.sin(ang) * pt.scaleX,- c = Math.sin(skew) * -pt.scaleY,- d = Math.cos(skew) * pt.scaleY;- //some browsers have a hard time with very small values like 2.4492935982947064e-16 (notice the "e-" towards the end) and would render the object slightly off. So we round to 0 in these cases. The conditional logic here is faster than calling Math.abs().- if (a < min) if (a > -min) {- a = 0;- }- if (b < min) if (b > -min) {- b = 0;- }- if (c < min) if (c > -min) {- c = 0;- }- if (d < min) if (d > -min) {- d = 0;- }- if (_transformProp) {- this._style[_transformProp] = "matrix(" + a + "," + b + "," + c + "," + d + "," + pt.x + "," + pt.y + ")";-- //only for older versions of IE (6-8), we use a filter and marginLeft/marginTop to simulate the transform.- } else {- min = b; //just for swapping the variables an inverting them (reused "min" to avoid creating another variable in memory). IE's filter matrix uses a non-standard matrix configuration (angle goes the opposite way, and b and c are reversed and inverted)- b = -c;- c = -min;- var filters = this._style.filter;- this._style.filter = ""; //remove filters so that we can accurately measure offsetWidth/offsetHeight- var clip = (this._style.position !== "absolute"),- m = "progid:DXImageTransform.Microsoft.Matrix(M11=" + a + ", M12=" + b + ", M21=" + c + ", M22=" + d + ",sizingMethod='auto expand')",- ox = pt.x,- oy = pt.y,- dx, dy;-- if (filters.indexOf("DXImageTransform.Microsoft.Matrix(") !== -1) {- this._style.filter = filters.replace(_ieSetMatrixExp, m);- } else {- this._style.filter = m + " " + filters;- }- }- }- }-- }-- //we need to make sure that if alpha or autoAlpha is killed, opacity is too. And autoAlpha affects the "visibility" property.- p._kill = function(lookup) {- var copy = lookup, p;- if (lookup.autoAlpha || lookup.alpha) {- copy = {};- for (p in lookup) { //copy the lookup so that we're not changing the original which may be passed elsewhere.- copy[p] = lookup[p];- }- copy.opacity = 1;- if (copy.autoAlpha) {- copy.visibility = 1;- }- }- return TweenPlugin.prototype._kill.call(this, copy);- }--- TweenPlugin.activate([CSSRulePlugin]);- return CSSRulePlugin;-- }, true);-+/*!+ * VERSION: beta 0.43+ * DATE: 2012-10-01+ * JavaScript+ * UPDATES AND DOCS AT: http://www.greensock.com+ *+ * Copyright (c) 2008-2012, GreenSock. All rights reserved.+ * This work is subject to the terms in http://www.greensock.com/terms_of_use.html or for+ * Club GreenSock members, the software agreement that was issued with your membership.+ *+ * @author: Jack Doyle, [email protected]+ */+(window._gsQueue || (window._gsQueue = [])).push( function() {++ _gsDefine("plugins.CSSRulePlugin", ["plugins.TweenPlugin","TweenLite"], function(TweenPlugin, TweenLite) {++ "use strict";++ var CSSRulePlugin = function() {+ TweenPlugin.call(this, "cssRule");+ this._overwriteProps.pop();+ },+ p = CSSRulePlugin.prototype = new TweenPlugin("cssRule");++ p.constructor = CSSRulePlugin;+ CSSRulePlugin.API = 2;+ CSSRulePlugin.suffixMap = {top:"px", right:"px", bottom:"px", left:"px", width:"px", height:"px", fontSize:"px", padding:"px", margin:"px"};++ //set up some local variables and functions that we can reuse for all tweens - we do this only once and cache things to improve performance+ var _NaNExp = /[^\d\-\.]/g,+ _suffixExp = /(\d|\-|\+|=|#|\.)*/g,+ _numExp = /(\d|\.)+/g,+ _opacityExp = /opacity *= *([^)]*)/,+ _opacityValExp = /opacity:([^;]*)/,+ _capsExp = /([A-Z])/g,+ _camelExp = /-([a-z])/gi,+ _camelFunc = function(s, g) { return g.toUpperCase() },+ _horizExp = /(Left|Right|Width)/i,+ _ieGetMatrixExp = /(M11|M12|M21|M22)=[\d\-\.e]+/gi,+ _ieSetMatrixExp = /progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,+ _DEG2RAD = Math.PI / 180,+ _RAD2DEG = 180 / Math.PI,+ _doc = document,+ _tempDiv = _doc.createElement("div"),+ _agent = navigator.userAgent,+ _reqSafariFix, //we won't apply the Safari transform fix until we actually come across a tween that affects a transform property (to maintain best performance).++ _isSafari, //Safari (and Android 4 which uses a flavor of Safari) has a bug that prevents changes to "top" and "left" properties from rendering properly if changed on the same frame as a transform UNLESS we set the element's WebkitBackfaceVisibility to hidden (weird, I know). Doing this for Android 3 and earlier seems to actually cause other problems, though (fun!)+ _supportsOpacity = (function() { //we set _isSafari and _supportsOpacity all in one function here to reduce file size slightly, especially in the minified version.+ var i = _agent.indexOf("Android"),+ d = _doc.createElement("div"), a;++ _isSafari = (_agent.indexOf("Safari") !== -1 && _agent.indexOf("Chrome") === -1 && (i === -1 || Number(_agent.substr(i+8, 1)) > 3));++ d.innerHTML = "<a style='top:1px;opacity:.55;'>a</a>";+ a = d.getElementsByTagName("a")[0];+ return a ? /^0.55/.test(a.style.opacity) : false;+ })(),++ //parses a color (like #9F0, #FF9900, or rgb(255,51,153)) into an array with 3 elements for red, green, and blue. Also handles rgba() values (splits into array of 4 elements of course)+ _parseColor = function(v) {+ if (!v || v === "") {+ return _colorLookup.black;+ } else if (_colorLookup[v]) {+ return _colorLookup[v];+ } else if (typeof(v) === "number") {+ return [v >> 16, (v >> 8) & 255, v & 255];+ } else if (v.charAt(0) === "#") {+ if (v.length === 4) { //for shorthand like #9F0+ var c1 = v.charAt(1),+ c2 = v.charAt(2),+ c3 = v.charAt(3);+ v = "#" + c1 + c1 + c2 + c2 + c3 + c3;+ }+ v = parseInt(v.substr(1), 16);+ return [v >> 16, (v >> 8) & 255, v & 255];+ } else {+ return v.match(_numExp) || _colorLookup.transparent;+ }+ },+ _getIEOpacity = function(obj) {+ return (_opacityExp.test( ((typeof(obj) === "string") ? obj : (obj.currentStyle ? obj.currentStyle.filter : obj.style.filter) || "") ) ? ( parseFloat( RegExp.$1 ) / 100 ) : 1);+ },+ _getComputedStyle = (_doc.defaultView) ? _doc.defaultView.getComputedStyle : function(o,s) {},++ //gets an individual style property. cs is for computedStyle (a speed optimization - we don't want to run it more than once if we don't have to). calc forces the returned value to be based on the computedStyle, ignoring anything that's in the element's "style" property (computing normalizes certain things for us)+ _getStyle = function(t, p, cs, calc) {+ if (!_supportsOpacity && p === "opacity") { //several versions of IE don't use the standard "opacity" property - they use things like filter:alpha(opacity=50), so we parse that here.+ return _getIEOpacity(t);+ } else if (!calc && t.style[p]) {+ return t.style[p];+ } else if ((cs = cs || _getComputedStyle(t, null))) {+ t = cs.getPropertyValue(p.replace(_capsExp, "-$1").toLowerCase());+ return (t || cs.length) ? t : cs[p]; //Opera behaves VERY strangely - length is usually 0 and cs[p] is the only way to get accurate results EXCEPT when checking for -o-transform which only works with cs.getPropertyValue()!+ } else if (t.currentStyle) {+ cs = t.currentStyle,+ calc = cs[p]; //reuse "calc" variable to reduce minification size and improve speed slightly compared to creating a new variable.+ if (!calc && p === "backgroundPosition") { //IE doesn't report backgroundPosition accurately (before version 9) - instead, it only reports backgroundPositionX and backgroundPositionY, so we need to combine them manually.+ return cs[p + "X"] + " " + cs[p + "Y"];+ }+ return calc;+ }+ return null;+ },++ _transformMap = {scaleX:1, scaleY:1, x:1, y:1, rotation:1, shortRotation:1, skewX:1, skewY:1, scale:1},++ _prefixCSS = "", //the non-camelCase vendor prefix like "-o-", "-moz-", "-ms-", or "-webkit-"+ _prefix = "", //camelCase vendor prefix like "O", "ms", "Webkit", or "Moz".+ //feed in a camelCase property name like "transform" and it will check to see if it is valid as-is or if it needs a vendor prefix. It returns the corrected camelCase property name (i.e. "WebkitTransform" or "MozTransform" or "transform" or null if no such property is found, like if the browser is IE8 or before, "transform" won't be found at all)+ _checkPropPrefix = function(p, e) {+ e = e || _tempDiv;+ var s = e.style,+ a, i;+ if (s[p] !== undefined) {+ return p;+ }+ p = p.substr(0,1).toUpperCase() + p.substr(1);+ a = ["O","Moz","ms","Ms","Webkit"];+ i = 5;+ while (--i > -1 && s[a[i]+p] === undefined) { }+ if (i >= 0) {+ _prefix = (i === 3) ? "ms" : a[i];+ _prefixCSS = "-" + _prefix.toLowerCase() + "-";+ return _prefix + p;+ }+ return null;+ },+ _transformProp = _checkPropPrefix("transform"), //the Javascript (camelCase) transform property, like msTransform, WebkitTransform, MozTransform, or OTransform.+ _transformPropCSS = _prefixCSS + "transform",++ _getRule = CSSRulePlugin.getRule = function(selector) {+ var ruleProp = _doc.all ? 'rules' : 'cssRules',+ ss = _doc.styleSheets,+ i = ss.length,+ pseudo = (selector.charAt(0) === ":"),+ j, curSS, a;+ selector = (pseudo ? "" : ",") + selector + ",";+ if (pseudo) {+ a = [];+ }+ while (--i > -1) {+ curSS = ss[i][ruleProp];+ j = curSS.length;+ while (--j > -1) {+ if ((","+curSS[j].selectorText.split("::").join(":")+",").indexOf(selector) !== -1) { //note: IE adds an extra ":" to pseudo selectors, so .myClass:after becomes .myClass::after, so we need to strip the extra one out.+ if (pseudo) {+ a.push(curSS[j].style);+ } else {+ return curSS[j].style;+ }+ }+ }+ }+ return a;+ },++ //parses the transform values for an element, returning an object with x, y, scaleX, scaleY, rotation, skewX, and skewY properties. Note: by default (for performance reasons), all skewing is combined into skewX and rotation but skewY still has a place in the transform object so that we can record how much of the skew is attributed to skewX vs skewY. Remember, a skewY of 10 looks the same as a rotation of 10 and skewX of -10.+ _getTransform = function(style, rec) {+ _tempDiv.cssText = style.cssText;+ var t = _tempDiv,+ tm = style._gsTransform, s;+ if (_transformProp) {+ s = _getStyle(t, _transformPropCSS, null, true);+ } else if (t.currentStyle) {+ //for older versions of IE, we need to interpret the filter portion that is in the format: progid:DXImageTransform.Microsoft.Matrix(M11=6.123233995736766e-17, M12=-1, M21=1, M22=6.123233995736766e-17, sizingMethod='auto expand') Notice that we need to swap b and c compared to a normal matrix.+ s = t.currentStyle.filter.match(_ieGetMatrixExp);+ s = (s && s.length === 4) ? s[0].substr(4) + "," + Number(s[2].substr(4)) + "," + Number(s[1].substr(4)) + "," + s[3].substr(4) + "," + (tm ? tm.x : 0) + "," + (tm ? tm.y : 0) : null;+ }+ var v = (s || "").replace(/[^\d\-\.e,]/g, "").split(","),+ k = (v.length >= 6),+ a = k ? Number(v[0]) : 1,+ b = k ? Number(v[1]) : 0,+ c = k ? Number(v[2]) : 0,+ d = k ? Number(v[3]) : 1,+ min = 0.000001,+ m = rec ? tm || {skewY:0} : {skewY:0},+ invX = (m.scaleX < 0); //in order to interpret things properly, we need to know if the user applied a negative scaleX previously so that we can adjust the rotation and skewX accordingly. Otherwise, if we always interpret a flipped matrix as affecting scaleY and the user only wants to tween the scaleX on multiple sequential tweens, it would keep the negative scaleY without that being the user's intent.++ m.x = (k ? Number(v[4]) : 0);+ m.y = (k ? Number(v[5]) : 0);+ m.scaleX = Math.sqrt(a * a + b * b);+ m.scaleY = Math.sqrt(d * d + c * c);+ m.rotation = (a || b) ? Math.atan2(b, a) : m.rotation || 0; //note: if scaleX is 0, we cannot accurately measure rotation. Same for skewX with a scaleY of 0. Therefore, we default to the previously recorded value (or zero if that doesn't exist).+ m.skewX = (c || d) ? Math.atan2(c, d) + m.rotation : m.skewX || 0;+ if (Math.abs(m.skewX) > Math.PI / 2) {+ if (invX) {+ m.scaleX *= -1;+ m.skewX += (m.rotation <= 0) ? Math.PI : -Math.PI;+ m.rotation += (m.rotation <= 0) ? Math.PI : -Math.PI;+ } else {+ m.scaleY *= -1;+ m.skewX += (m.skewX <= 0) ? Math.PI : -Math.PI;+ }+ }+ //some browsers have a hard time with very small values like 2.4492935982947064e-16 (notice the "e-" towards the end) and would render the object slightly off. So we round to 0 in these cases. The conditional logic here is faster than calling Math.abs().+ if (m.rotation < min) if (m.rotation > -min) if (a || b) {+ m.rotation = 0;+ }+ if (m.skewX < min) if (m.skewX > -min) if (b || c) {+ m.skewX = 0;+ }+ if (rec) {+ style._gsTransform = m; //record to the object's _gsTransform which we use so that tweens can control individual properties independently (we need all the properties to accurately recompose the matrix in the setRatio() method)+ }+ return m;+ },++ _dimensions = {width:["Left","Right"], height:["Top","Bottom"]},+ _margins = ["marginLeft","marginRight","marginTop","marginBottom"],++ //for parsing things like transformOrigin or backgroundPosition which must recognize keywords like top/left/right/bottom/center as well as percentages and pixel values. Decorates the supplied object with the following properties: "ox" (offsetX), "oy" (offsetY), "oxp" (if true, "ox" is a percentage not a pixel value), and "oxy" (if true, "oy" is a percentage not a pixel value)+ _parsePosition = function(v, o) {+ if (v == null || v === "" || v === "auto") {+ v = "0 0";+ }+ o = o || {};+ var x = (v.indexOf("left") !== -1) ? "0%" : (v.indexOf("right") !== -1) ? "100%" : v.split(" ")[0],+ y = (v.indexOf("top") !== -1) ? "0%" : (v.indexOf("bottom") !== -1) ? "100%" : v.split(" ")[1];+ if (y == null) {+ y = "0";+ } else if (y === "center") {+ y = "50%";+ }+ if (x === "center") {+ x = "50%";+ }+ o.oxp = (x.indexOf("%") !== -1);+ o.oyp = (y.indexOf("%") !== -1);+ o.oxr = (x.charAt(1) === "=");+ o.oyr = (y.charAt(1) === "=");+ o.ox = parseFloat(x.replace(_NaNExp, ""));+ o.oy = parseFloat(y.replace(_NaNExp, ""));+ return o;+ },++ //takes a value and a default number, checks if the value is relative, null, or numeric and spits back a normalized number accordingly. Primarily used in the _parseTransform() function.+ _parseVal = function(v, d) {+ return (v == null) ? d : (typeof(v) === "string" && v.indexOf("=") === 1) ? parseInt(v.charAt(0)+"1") * Number(v.substr(2)) + d : Number(v);+ },++ //translates strings like "40deg" or "40" or 40rad" or "+=40deg" to a numeric radian angle, optionally relative to a default value (if "+=" or "-=" prefix is found)+ _parseAngle = function(v, d) {+ var m = (v.indexOf("rad") === -1) ? _DEG2RAD : 1,+ r = (v.indexOf("=") === 1);+ v = Number(v.replace(_NaNExp, "")) * m;+ return r ? v + d : v;+ },+ _colorLookup = {aqua:[0,255,255],+ lime:[0,255,0],+ silver:[192,192,192],+ black:[0,0,0],+ maroon:[128,0,0],+ teal:[0,128,128],+ blue:[0,0,255],+ navy:[0,0,128],+ white:[255,255,255],+ fuchsia:[255,0,255],+ olive:[128,128,0],+ yellow:[255,255,0],+ orange:[255,165,0],+ gray:[128,128,128],+ purple:[128,0,128],+ green:[0,128,0],+ red:[255,0,0],+ pink:[255,192,203],+ cyan:[0,255,255],+ transparent:[255,255,255,0]};+++ //gets called when the tween renders for the first time. This kicks everything off, recording start/end values, etc.+ p._onInitTween = function(target, value, tween) {+ this._style = target;+ this._tween = tween;+ this._transform = null; //_transform is only used for scaleX/scaleY/x/y/rotation/skewX/skewY tweens++ if (_reqSafariFix) if (this._style.zIndex === "" || this._style.zIndex === "auto") {+ this._style.zIndex = 0;+ }++ this._parseVars(value, target, value.suffixMap || CSSRulePlugin.suffixMap);+ return true;+ }++ //feed a vars object to this function and it will parse through its properties and add PropTweens as necessary. This is split out from the _onInitTween() so that we can recurse if necessary, like "margin" should affect "marginLeft", "marginRight", "marginTop", and "marginBottom".+ p._parseVars = function(vars, s, map) {+ var p, v, pt, beg, clr1, clr2, bsfx, esfx, rel, start, copy;++ for (p in vars) {++ v = vars[p];++ if (p === "transform" || p === _transformProp) {+ this._parseTransform(s, v, map);+ continue;+ } else if (_transformMap[p] || p === "transformOrigin") {+ this._parseTransform(s, vars, map);+ continue;+ } else if (p === "alpha" || p === "autoAlpha") { //alpha tweens are opacity tweens+ p = "opacity";+ } else if (p === "margin" || p === "padding") {+ copy = (v + "").split(" ");+ rel = copy.length;+ pt = {};+ pt[p + "Top"] = copy[0];+ pt[p + "Right"] = (rel > 1) ? copy[1] : copy[0];+ pt[p + "Bottom"] = (rel === 4) ? copy[2] : copy[0];+ pt[p + "Left"] = (rel === 4) ? copy[3] : (rel === 2) ? copy[1] : copy[0];+ this._parseVars(pt, s, map);+ continue;+ } else if (p === "backgroundPosition" || p === "backgroundSize") {+ pt = _parsePosition(v); //end values+ start = _parsePosition( (beg = s[p] || "50% 50%") ); //starting values+ this._firstPT = pt = {_next:this._firstPT, t:s, p:p, b:beg, f:false, n:"css_" + p, type:3,+ s:start.ox, //x start+ c:pt.oxr ? pt.ox : pt.ox - start.ox, //change in x+ ys:start.oy, //y start+ yc:pt.oyr ? pt.oy : pt.oy - start.oy, //change in y+ sfx:pt.oxp ? "%" : "px", //x suffix+ ysfx:pt.oyp ? "%" : "px", //y suffix+ r:(!pt.oxp && vars.autoRound !== false)};+ pt.e = (pt.s + pt.c) + pt.sfx + " " + (pt.ys + pt.yc) + pt.ysfx; //we can't just use v because it could contain relative values, like +=50px which is an illegal final value.+ continue;+ } else if (p === "border") {+ copy = (v + "").split(" ");+ this._parseVars({borderWidth:copy[0], borderStyle:copy[1] || "none", borderColor:copy[2] || "#000000"}, s, map);+ continue;+ } else if (p === "autoRound") {+ continue;+ }++ beg = s[p];+ beg = (beg != null) ? beg + "" : "";++ //Some of these properties are in place in order to conform with the standard PropTweens in TweenPlugins so that overwriting and roundProps occur properly. For example, f and r may seem unnecessary here, but they enable other functionality.+ //_next:* next linked list node [object]+ //t: * target [object]+ //p: * property (camelCase) [string]+ //s: * starting value [number]+ //c: * change value [number]+ //f: * is function [boolean]+ //n: * name (for overwriting) [string]+ //sfx: suffix [string]+ //b: beginning value [string]+ //i: intermediate value [string]+ //e: ending value [string]+ //r: * round [boolean]+ //type: 0=normal, 1=color, 2=rgba, 3=positional offset (like backgroundPosition or backgroundSize), 4=unsupported opacity (ie), -1=non-tweening prop [number]+ this._firstPT = pt = {_next:this._firstPT,+ t:s,+ p:p,+ b:beg,+ f:false,+ n:"css_" + p,+ sfx:"",+ r:false,+ type:0};++ //if it's an autoAlpha, add a new PropTween for "visibility". We must make sure the "visibility" PropTween comes BEFORE the "opacity" one in order to work around a bug in old versions of IE tht would ignore "visibility" changes if made right after an alpha change. Remember, we add PropTweens in reverse order - that's why we do this here, after creating the original PropTween.+ if (p === "opacity") if (vars.autoAlpha != null) {+ this._firstPT = pt._prev = {_next:pt, t:s, p:"visibility", f:false, n:"css_visibility", r:false, type:-1, b:(Number(beg) !== 0) ? "visible" : "hidden", i:"visible", e:(Number(v) === 0) ? "hidden" : "visible"};+ this._overwriteProps.push("css_visibility");+ }++ //color values must be split apart into their R, G, B (and sometimes alpha) values and tweened independently.+ if (p === "color" || p === "fill" || p === "stroke" || p.indexOf("Color") !== -1 || (typeof(v) === "string" && !v.indexOf("rgb("))) { //Opera uses background: to define color sometimes in addition to backgroundColor:+ clr1 = _parseColor(beg);+ clr2 = _parseColor(v);+ pt.e = pt.i = ((clr2.length > 3) ? "rgba(" : "rgb(") + clr2.join(",") + ")"; //don't just do pt.e = v because that won't work if the destination color is numeric, like 0xFF0000. We need to parse it.+ pt.b = ((clr1.length > 3) ? "rgba(" : "rgb(") + clr1.join(",") + ")"; //normalize to rgb in case the beginning value was passed in as numeric, like 0xFF0000+ pt.s = Number(clr1[0]); //red starting value+ pt.c = Number(clr2[0]) - pt.s; //red change+ pt.gs = Number(clr1[1]); //green starting value+ pt.gc = Number(clr2[1]) - pt.gs; //green change+ pt.bs = Number(clr1[2]); //blue starting value+ pt.bc = Number(clr2[2]) - pt.bs; //blue change+ pt.type = 1;+ if (clr1.length > 3 || clr2.length > 3) { //detect an rgba() value+ if (_supportsOpacity) {+ pt.as = (clr1.length < 4) ? 1 : Number(clr1[3]);+ pt.ac = ((clr2.length < 4) ? 1 : Number(clr2[3])) - pt.as;+ pt.type = 2;+ } else { //older versions of IE don't support rgba(), so if the destination alpha is 0, just use "transparent" for the color and make it a non-tweening property+ if (clr2[3] == 0) {+ pt.e = pt.i = "transparent";+ pt.type = -1;+ }+ if (clr1[3] == 0) {+ pt.b = "transparent";+ }+ }+ }++ } else {++ bsfx = beg.replace(_suffixExp, ""); //beginning suffix++ if (beg === "" || beg === "auto") {+ start = (p !== "opacity") ? 0 : 1;+ } else {+ start = (beg.indexOf(" ") === -1) ? parseFloat(beg.replace(_NaNExp, "")) : NaN;+ }++ if (typeof(v) === "string") {+ rel = (v.charAt(1) === "=");+ esfx = v.replace(_suffixExp, "");+ v = (v.indexOf(" ") === -1) ? parseFloat(v.replace(_NaNExp, "")) : NaN;+ } else {+ rel = false;+ esfx = "";+ }++ if (esfx === "") {+ esfx = map[p] || bsfx; //populate the end suffix, prioritizing the map, then if none is found, use the beginning suffix.+ }++ pt.e = (v || v === 0) ? (rel ? v + start : v) + esfx : vars[p]; //ensures that any += or -= prefixes are taken care of. Record the end value before normalizing the suffix because we always want to end the tween on exactly what they intended even if it doesn't match the beginning value's suffix.++ //if the beginning/ending suffixes don't match, normalize them...+ if (bsfx !== esfx) if (esfx !== "") if (v || v === 0) if (start || start === 0) {+ throw("CSSRulePlugin error: starting and ending units don't match on tween of " + p + " (" + bsfx + " vs " + esfx + ")");+ }++ if ((start || start === 0) && (v || v === 0) && (pt.c = (rel ? v : v - start))) { //faster than isNaN(). Also, we set pt.c (change) here because if it's 0, we'll just treat it like a non-tweening value. can't do (v !== start) because if it's a relative value and the CHANGE is identical to the START, the condition will fail unnecessarily.+ pt.s = start;+ pt.sfx = esfx;+ if (p === "opacity") {+ if (!_supportsOpacity) {+ pt.type = 4;+ pt.p = "filter";+ pt.b = "alpha(opacity=" + (pt.s * 100) + ")";+ pt.e = "alpha(opacity=" + ((pt.s + pt.c) * 100) + ")";+ pt.dup = (vars.autoAlpha != null); //dup = duplicate the setting of the alpha in order to work around a bug in IE7 and IE8 that prevents changes to "visibility" from taking effect if the filter is changed to a different alpha(opacity) at the same time. Setting it to the SAME value first, then the new value works around the IE7/8 bug.+ this._style.zoom = 1; //helps correct an IE issue.+ }+ } else if (vars.autoRound !== false && (esfx === "px" || p === "zIndex")) { //always round zIndex, and as long as autoRound isn't false, round pixel values (that improves performance in browsers typically)+ pt.r = true;+ }+ } else {+ pt.type = -1;+ pt.i = (p === "display" && pt.e === "none") ? pt.b : pt.e; //intermediate value is typically the same as the end value except for "display"+ pt.s = pt.c = 0;+ }++ }++ this._overwriteProps.push("css_" + p);+ if (pt._next) {+ pt._next._prev = pt;+ }+ }++ }+++ //compares the beginning x, y, scaleX, scaleY, rotation, and skewX properties with the ending ones and adds PropTweens accordingly wherever necessary. We must tween them individually (rather than just tweening the matrix values) so that elgant overwriting can occur, like if one tween is controlling scaleX, scaleY, and rotation and then another one starts mid-tween that is trying to control the scaleX only - this tween should continue tweening scaleY and rotation.+ p._parseTransform = function(s, v, map) {+ if (this._transform) { return; } //only need to parse the transform once, and only if the browser supports it.++ var m1 = this._transform = _getTransform(s, true),+ min = 0.000001,+ m2, skewY, p, pt, copy, orig;++ if (typeof(v) === "object") { //for values like scaleX, scaleY, rotation, x, y, skewX, and skewY or transform:{...} (object)++ m2 = {scaleX:_parseVal((v.scaleX != null) ? v.scaleX : v.scale, m1.scaleX),+ scaleY:_parseVal((v.scaleY != null) ? v.scaleY : v.scale, m1.scaleY),+ x:_parseVal(v.x, m1.x),+ y:_parseVal(v.y, m1.y)};++ if (v.shortRotation != null) {+ m2.rotation = (typeof(v.shortRotation) === "number") ? v.shortRotation * _DEG2RAD : _parseAngle(v.shortRotation, m1.rotation);+ var dif = (m2.rotation - m1.rotation) % (Math.PI * 2);+ if (dif !== dif % Math.PI) {+ dif += Math.PI * ((dif < 0) ? 2 : -2);+ }+ m2.rotation = m1.rotation + dif;++ } else {+ m2.rotation = (v.rotation == null) ? m1.rotation : (typeof(v.rotation) === "number") ? v.rotation * _DEG2RAD : _parseAngle(v.rotation, m1.rotation);+ }+ m2.skewX = (v.skewX == null) ? m1.skewX : (typeof(v.skewX) === "number") ? v.skewX * _DEG2RAD : _parseAngle(v.skewX, m1.skewX);++ //note: for performance reasons, we combine all skewing into the skewX and rotation values, ignoring skewY but we must still record it so that we can discern how much of the overall skew is attributed to skewX vs. skewY. Otherwise, if the skewY would always act relative (tween skewY to 10deg, for example, multiple times and if we always combine things into skewX, we can't remember that skewY was 10 from last time). Remember, a skewY of 10 degrees looks the same as a rotation of 10 degrees plus a skewX of -10 degrees.+ m2.skewY = (v.skewY == null) ? m1.skewY : (typeof(v.skewY) === "number") ? v.skewY * _DEG2RAD : _parseAngle(v.skewY, m1.skewY);+ if ((skewY = m2.skewY - m1.skewY)) {+ m2.skewX += skewY+ m2.rotation += skewY;+ }+ //don't allow rotation/skew values to be a SUPER small decimal because when they're translated back to strings for setting the css property, the browser reports them in a funky way, like 1-e7. Of course we could use toFixed() to resolve that issue but that hurts performance quite a bit with all those function calls on every frame, plus it is virtually impossible to discern values that small visually (nobody will notice changing a rotation of 0.0000001 to 0, so the performance improvement is well worth it).+ if (m2.skewY < min) if (m2.skewY > -min) {+ m2.skewY = 0;+ }+ if (m2.skewX < min) if (m2.skewX > -min) {+ m2.skewX = 0;+ }+ if (m2.rotation < min) if (m2.rotation > -min) {+ m2.rotation = 0;+ }++ //if a transformOrigin is defined, handle it here...+ if ((orig = v.transformOrigin) != null) {+ if (_transformProp) {+ p = _transformProp + "Origin";+ this._firstPT = pt = {_next:this._firstPT, t:s, p:p, s:0, c:0, n:p, f:false, r:false, b:s[p], e:orig, i:orig, type:-1, sfx:""};+ if (pt._next) {+ pt._next._prev = pt;+ }++ //for older versions of IE (6-8), we need to manually calculate things inside the setRatio() function. We record origin x and y (ox and oy) and whether or not the values are percentages (oxp and oyp).+ } else {+ _parsePosition(orig, m1);+ }+ }++ } else if (typeof(v) === "string" && _transformProp) { //for values like transform:"rotate(60deg) scale(0.5, 0.8)"+ copy = s[_transformProp];+ s[_transformProp] = v;+ m2 = _getTransform(s, false);+ s[_transformProp] = copy;+ } else {+ return;+ }++ if (!_transformProp) {+ s.zoom = 1; //helps correct an IE issue.+ } else if (_isSafari) {+ _reqSafariFix = true;+ //corrects a bug in [non-Android] Safari that causes it to skip rendering changes to "top" and "left" that are made on the same frame/render as a transform update. It also helps work around bugs in iOS Safari that can prevent it from repainting elements in their new positions. We cannot just check for a Webkit browser because some Android devices like the Atrix don't like this "fix". Setting "WebkitPerspective" to a non-zero value worked too except that on iOS Safari things would flicker randomly.+ if (s.WebkitBackfaceVisibility === "") {+ s.WebkitBackfaceVisibility = "hidden";+ }+ //if zIndex isn't set, iOS Safari doesn't repaint things correctly sometimes (seemingly at random).+ if (s.zIndex === "") {+ s.zIndex = 0;+ }+ }++ for (p in _transformMap) {+ if (m1[p] !== m2[p]) if (p !== "shortRotation") if (p !== "scale") {+ this._firstPT = pt = {_next:this._firstPT, t:m1, p:p, s:m1[p], c:m2[p] - m1[p], n:p, f:false, r:false, b:m1[p], e:m2[p], type:0, sfx:0};+ if (pt._next) {+ pt._next._prev = pt;+ }+ this._overwriteProps.push("css_" + p);+ }+ }+ };+++ //gets called every time the tween updates, passing the new ratio (typically a value between 0 and 1, but not always (for example, if an Elastic.easeOut is used, the value can jump above 1 mid-tween). It will always start and 0 and end at 1.+ p.setRatio = function(v) {+ var pt = this._firstPT,+ min = 0.000001, val, y;++ //at the end of the tween, we set the values to exactly what we received in order to make sure non-tweening values (like "position" or "float" or whatever) are set and so that if the beginning/ending suffixes (units) didn't match and we normalized to px, the value that the user passed in is used here. We check to see if the tween is at its beginning in case it's a from() tween in which case the ratio will actually go from 1 to 0 over the course of the tween (backwards).+ if (v === 1 && (this._tween._time === this._tween._duration || this._tween._time === 0)) {+ while (pt) {+ pt.t[pt.p] = pt.e;+ pt = pt._next;+ }++ } else if (v || !(this._tween._time === this._tween._duration || this._tween._time === 0)) {++ while (pt) {+ val = pt.c * v + pt.s;+ if (pt.r) {+ val = (val > 0) ? (val + 0.5) >> 0 : (val - 0.5) >> 0;+ } else if (val < min) if (val > -min) {+ val = 0;+ }+ if (!pt.type) {+ pt.t[pt.p] = val + pt.sfx;+ } else if (pt.type === 1) { //rgb()+ pt.t[pt.p] = "rgb(" + (val >> 0) + ", " + ((pt.gs + (v * pt.gc)) >> 0) + ", " + ((pt.bs + (v * pt.bc)) >> 0) + ")";+ } else if (pt.type === 2) { //rgba()+ pt.t[pt.p] = "rgba(" + (val >> 0) + ", " + ((pt.gs + (v * pt.gc)) >> 0) + ", " + ((pt.bs + (v * pt.bc)) >> 0) + ", " + (pt.as + (v * pt.ac)) + ")";+ } else if (pt.type === -1) { //non-tweening+ pt.t[pt.p] = pt.i;+ } else if (pt.type === 3) { //positional property with an x and y, like backgroundPosition or backgroundSize+ y = pt.ys + v * pt.yc;+ if (pt.r) {+ y = (y > 0) ? (y + 0.5) >> 0 : (y - 0.5) >> 0;+ }+ pt.t[pt.p] = val + pt.sfx + " " + y + pt.ysfx;+ } else {+ if (pt.dup) {+ pt.t.filter = pt.t.filter || "alpha(opacity=100)"; //works around bug in IE7/8 that prevents changes to "visibility" from being applied propertly if the filter is changed to a different alpha on the same frame.+ }+ if (pt.t.filter.indexOf("opacity") === -1) { //only used if browser doesn't support the standard opacity style property (IE 7 and 8)+ pt.t.filter += " alpha(opacity=" + ((val * 100) >> 0) + ")"; //we round the value because otherwise, bugs in IE7/8 can prevent "visibility" changes from being applied properly.+ } else {+ pt.t.filter = pt.t.filter.replace(_opacityExp, "opacity=" + ((val * 100) >> 0)); //we round the value because otherwise, bugs in IE7/8 can prevent "visibility" changes from being applied properly.+ }+ }+ pt = pt._next;+ }++ //if the tween is reversed all the way back to the beginning, we need to restore the original values which may have different units (like % instead of px or em or whatever).+ } else {+ while (pt) {+ pt.t[pt.p] = pt.b;+ pt = pt._next;+ }+ }++ //apply transform values like x, y, scaleX, scaleY, rotation, skewX, or skewY. We do these after looping through all the PropTweens because those are where the changes are made to scaleX/scaleY/rotation/skewX/skewY/x/y.+ if (this._transform) {+ pt = this._transform; //to improve speed and reduce size, reuse the pt variable as an alias to the _transform property+ //if there is no rotation or skew, browsers render the transform faster if we just feed it the list of transforms like translate() skewX() scale(), otherwise defining the matrix() values directly is fastest.+ if (_transformProp && !pt.rotation && !pt.skewX) {+ this._style[_transformProp] = ((pt.x || pt.y) ? "translate(" + pt.x + "px," + pt.y + "px) " : "") + ((pt.scaleX !== 1 || pt.scaleY !== 1) ? "scale(" + pt.scaleX + "," + pt.scaleY + ")" : "") || "translate(0px,0px)"; //we need to default to translate(0px,0px) to work around a Chrome bug that rears its ugly head when the transform is set to "".+ } else {+ var ang = _transformProp ? pt.rotation : -pt.rotation,+ skew = _transformProp ? ang - pt.skewX : ang + pt.skewX,+ a = Math.cos(ang) * pt.scaleX,+ b = Math.sin(ang) * pt.scaleX,+ c = Math.sin(skew) * -pt.scaleY,+ d = Math.cos(skew) * pt.scaleY;+ //some browsers have a hard time with very small values like 2.4492935982947064e-16 (notice the "e-" towards the end) and would render the object slightly off. So we round to 0 in these cases. The conditional logic here is faster than calling Math.abs().+ if (a < min) if (a > -min) {+ a = 0;+ }+ if (b < min) if (b > -min) {+ b = 0;+ }+ if (c < min) if (c > -min) {+ c = 0;+ }+ if (d < min) if (d > -min) {+ d = 0;+ }+ if (_transformProp) {+ this._style[_transformProp] = "matrix(" + a + "," + b + "," + c + "," + d + "," + pt.x + "," + pt.y + ")";++ //only for older versions of IE (6-8), we use a filter and marginLeft/marginTop to simulate the transform.+ } else {+ min = b; //just for swapping the variables an inverting them (reused "min" to avoid creating another variable in memory). IE's filter matrix uses a non-standard matrix configuration (angle goes the opposite way, and b and c are reversed and inverted)+ b = -c;+ c = -min;+ var filters = this._style.filter;+ this._style.filter = ""; //remove filters so that we can accurately measure offsetWidth/offsetHeight+ var clip = (this._style.position !== "absolute"),+ m = "progid:DXImageTransform.Microsoft.Matrix(M11=" + a + ", M12=" + b + ", M21=" + c + ", M22=" + d + ",sizingMethod='auto expand')",+ ox = pt.x,+ oy = pt.y,+ dx, dy;++ if (filters.indexOf("DXImageTransform.Microsoft.Matrix(") !== -1) {+ this._style.filter = filters.replace(_ieSetMatrixExp, m);+ } else {+ this._style.filter = m + " " + filters;+ }+ }+ }+ }++ }++ //we need to make sure that if alpha or autoAlpha is killed, opacity is too. And autoAlpha affects the "visibility" property.+ p._kill = function(lookup) {+ var copy = lookup, p;+ if (lookup.autoAlpha || lookup.alpha) {+ copy = {};+ for (p in lookup) { //copy the lookup so that we're not changing the original which may be passed elsewhere.+ copy[p] = lookup[p];+ }+ copy.opacity = 1;+ if (copy.autoAlpha) {+ copy.visibility = 1;+ }+ }+ return TweenPlugin.prototype._kill.call(this, copy);+ }+++ TweenPlugin.activate([CSSRulePlugin]);+ return CSSRulePlugin;++ }, true);+}); if (window._gsDefine) { _gsQueue.pop()(); }\ No newline at end of file