Skip to content

armgit / GSAP

Public Imported from GitHub
0

GSAP (GreenSock Animation Platform): high-performance JavaScript animation for anything JavaScript can touch. 100% free, including every plugin.

Fixed iOS 3D transforms, autoRotate in BezierPlugin, improved Firefox 3D transform performance

Jack Doyle80d2fbd6ba5c
diff --git a/src/minified/TweenMax.min.js b/src/minified/TweenMax.min.js
index 2110045..056e9c8 100755
--- a/src/minified/TweenMax.min.js
+++ b/src/minified/TweenMax.min.js
@@ -1,6 +1,6 @@
/**
- * VERSION: beta 1.653
- * DATE: 2012-12-13
+ * VERSION: beta 1.66
+ * DATE: 2012-12-14
* JavaScript (ActionScript 3 and 2 also available)
* UPDATES AND DOCS AT: http://www.greensock.com
*
@@ -12,163 +12,164 @@
*
* @author: Jack Doyle, [email protected]
**/
-(window._gsQueue||(window._gsQueue=[])).push(function(){_gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(q,s,f){var j=function(F,c,e){f.call(this,F,c,e);this._cycle=0;this._yoyo=!0===this.vars.yoyo;this._repeat=this.vars.repeat||0;this._repeatDelay=this.vars.repeatDelay||0;this._dirty=!0},l=j.prototype=f.to({},0.1,{}),d=[];j.version=1.653;l.constructor=j;l.kill()._gc=!1;j.killTweensOf=j.killDelayedCallsTo=f.killTweensOf;j.getTweensOf=f.getTweensOf;j.ticker=f.ticker;
-l.invalidate=function(){this._yoyo=!0===this.vars.yoyo;this._repeat=this.vars.repeat||0;this._repeatDelay=this.vars.repeatDelay||0;this._uncache(!0);return f.prototype.invalidate.call(this)};l.updateTo=function(F,c){var e=this.ratio,a;c&&(null!=this.timeline&&this._startTime<this._timeline._time)&&(this._startTime=this._timeline._time,this._uncache(!1),this._gc?this._enabled(!0,!1):this._timeline.insert(this,this._startTime-this._delay));for(a in F)this.vars[a]=F[a];if(this._initted)if(c)this._initted=
-!1;else if(this._notifyPluginsOfEnabled&&this._firstPT&&f._onPluginEvent("_onDisable",this),0.998<this._time/this._duration)e=this._time,this.render(0,!0,!1),this._initted=!1,this.render(e,!0,!1);else if(0<this._time){this._initted=!1;this._init();e=1/(1-e);a=this._firstPT;for(var J;a;)J=a.s+a.c,a.c*=e,a.s=J-a.c,a=a._next}return this};l.render=function(a,c,e){var i=!this._dirty?this._totalDuration:this.totalDuration(),J=this._time,b=this._totalTime,v=this._cycle,h,w;if(a>=i){if(this._totalTime=i,
-this._cycle=this._repeat,this._yoyo&&0!==(this._cycle&1)?(this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0):(this._time=this._duration,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(h=!0,w="onComplete"),0===this._duration){if(0===a||0>this._rawPrevTime)this._rawPrevTime!==a&&(e=!0);this._rawPrevTime=a}}else if(0>=a){this._totalTime=this._time=this._cycle=0;this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0;if(0!==b||0===this._duration&&0<this._rawPrevTime)w=
-"onReverseComplete",h=this._reversed;0>a?(this._active=!1,0===this._duration&&(0<=this._rawPrevTime&&(e=!0),this._rawPrevTime=a)):this._initted||(e=!0)}else if(this._totalTime=this._time=a,0!==this._repeat&&(a=this._duration+this._repeatDelay,this._cycle=this._totalTime/a>>0,0!==this._cycle&&this._cycle===this._totalTime/a&&this._cycle--,this._time=this._totalTime-this._cycle*a,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 a=this._time/this._duration,i=this._easeType,r=this._easePower;if(1===i||3===i&&0.5<=a)a=1-a;3===i&&(a*=2);1===r?a*=a:2===r?a*=a*a:3===r?a*=a*a*a:4===r&&(a*=a*a*a*a);this.ratio=1===i?1-a:2===i?a:0.5>this._time/this._duration?a/2:1-a/2}else this.ratio=this._ease.getRatio(this._time/this._duration);if(J===this._time&&!e)b!==this._totalTime&&this._onUpdate&&(c||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||d));else{this._initted||
-(this._init(),!h&&this._time&&(this.ratio=this._ease.getRatio(this._time/this._duration)));!this._active&&!this._paused&&(this._active=!0);if(0===b&&this.vars.onStart&&(0!==this._totalTime||0===this._duration))c||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||d);for(e=this._firstPT;e;){if(e.f)e.t[e.p](e.c*this.ratio+e.s);else e.t[e.p]=e.c*this.ratio+e.s;e=e._next}this._onUpdate&&(c||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||d));this._cycle!==
-v&&(c||this._gc||this.vars.onRepeat&&this.vars.onRepeat.apply(this.vars.onRepeatScope||this,this.vars.onRepeatParams||d));w&&!this._gc&&(h&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),c||this.vars[w]&&this.vars[w].apply(this.vars[w+"Scope"]||this,this.vars[w+"Params"]||d))}};j.to=function(a,c,e){return new j(a,c,e)};j.from=function(a,c,e){e.runBackwards=!0;!1!==e.immediateRender&&(e.immediateRender=!0);return new j(a,c,e)};j.fromTo=function(a,c,e,i){i.startAt=e;e.immediateRender&&
-(i.immediateRender=!0);return new j(a,c,i)};j.staggerTo=j.allTo=function(a,c,e,i,b,d,v){var i=i||0,h=[],w=a.length,r=e.delay||0,A,k,f;for(k=0;k<w;k++){A={};for(f in e)A[f]=e[f];A.delay=r;k===w-1&&b&&(A.onComplete=function(){e.onComplete&&e.onComplete.apply(e.onCompleteScope,e.onCompleteParams);b.apply(v,d)});h[k]=new j(a[k],c,A);r+=i}return h};j.staggerFrom=j.allFrom=function(a,c,e,i,b,d,v){e.runBackwards=!0;!1!==e.immediateRender&&(e.immediateRender=!0);return j.staggerTo(a,c,e,i,b,d,v)};j.staggerFromTo=
-j.allFromTo=function(a,c,e,i,b,d,v,h){i.startAt=e;e.immediateRender&&(i.immediateRender=!0);return j.staggerTo(a,c,i,b,d,v,h)};j.delayedCall=function(a,c,e,i,b){return new j(c,0,{delay:a,onComplete:c,onCompleteParams:e,onCompleteScope:i,onReverseComplete:c,onReverseCompleteParams:e,onReverseCompleteScope:i,immediateRender:!1,useFrames:b,overwrite:0})};j.set=function(a,c){return new j(a,0,c)};j.isTweening=function(a){for(var a=f.getTweensOf(a),c=a.length,e;-1<--c;)if((e=a[c])._active||e._startTime===
-e.timeline._time&&e.timeline._active)return!0;return!1};var v=function(a,c){for(var e=[],i=0,b=a._first;b;)b instanceof f?e[i++]=b:(c&&(e[i++]=b),e=e.concat(v(b,c)),i=e.length),b=b._next;return e},b=j.getAllTweens=function(a){return v(q._rootTimeline,a).concat(v(q._rootFramesTimeline,a))};j.killAll=function(a,c,e,i){null==c&&(c=!0);null==e&&(e=!0);var d=b(!1!=i),v=d.length,i=c&&e&&i,f,h,w;for(w=0;w<v;w++)if(h=d[w],i||h instanceof s||(f=h.target===h.vars.onComplete)&&e||c&&!f)a?h.totalTime(h.totalDuration()):
-h._enabled(!1,!1)};j.killChildTweensOf=function(a,c){if(null!=a)if(a.jquery)a.each(function(a,e){j.killChildTweensOf(e,c)});else{var e=f._tweenLookup,i=[],b,d;for(d in e)for(b=e[d].target.parentNode;b;)b===a&&(i=i.concat(e[d].tweens)),b=b.parentNode;b=i.length;for(e=0;e<b;e++)c&&i[e].totalTime(i[e].totalDuration()),i[e]._enabled(!1,!1)}};j.pauseAll=function(F,c,e){a(!0,F,c,e)};j.resumeAll=function(F,c,e){a(!1,F,c,e)};var a=function(a,c,e,i){void 0==c&&(c=!0);void 0==e&&(e=!0);for(var d=b(i),i=c&&
-e&&i,v=d.length,f,h;-1<--v;)h=d[v],(i||h instanceof s||(f=h.target===h.vars.onComplete)&&e||c&&!f)&&h.paused(a)};l.progress=function(a){return!arguments.length?this._time/this.duration():this.totalTime(this.duration()*(this._yoyo&&0!==(this._cycle&1)?1-a:a)+this._cycle*(this._duration+this._repeatDelay),!1)};l.totalProgress=function(a){return!arguments.length?this._totalTime/this.totalDuration():this.totalTime(this.totalDuration()*a,!1)};l.time=function(a,c){if(!arguments.length)return this._time;
-this._dirty&&this.totalDuration();a>this._duration&&(a=this._duration);this._yoyo&&0!==(this._cycle&1)?a=this._duration-a+this._cycle*(this._duration+this._repeatDelay):0!=this._repeat&&(a+=this._cycle*(this._duration+this._repeatDelay));return this.totalTime(a,c)};l.totalDuration=function(a){return!arguments.length?(this._dirty&&(this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration):-1===this._repeat?
-this:this.duration((a-this._repeat*this._repeatDelay)/(this._repeat+1))};l.repeat=function(a){if(!arguments.length)return this._repeat;this._repeat=a;return this._uncache(!0)};l.repeatDelay=function(a){if(!arguments.length)return this._repeatDelay;this._repeatDelay=a;return this._uncache(!0)};l.yoyo=function(a){if(!arguments.length)return this._yoyo;this._yoyo=a;return this};return j},!0);_gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(q,s,f){var j=function(a){s.call(this,
-a);this._labels={};this.autoRemoveChildren=!0===this.vars.autoRemoveChildren;this.smoothChildTiming=!0===this.vars.smoothChildTiming;this._sortChildren=!0;this._onUpdate=this.vars.onUpdate;for(var a=l.length,b,c;-1<--a;)if(c=this.vars[l[a]])for(b=c.length;-1<--b;)"{self}"===c[b]&&(c=this.vars[l[a]]=c.concat(),c[b]=this);this.vars.tweens instanceof Array&&this.insertMultiple(this.vars.tweens,0,this.vars.align||"normal",this.vars.stagger||0)},l=["onStartParams","onUpdateParams","onCompleteParams","onReverseCompleteParams",
-"onRepeatParams"],d=[],v=function(a){var b={},c;for(c in a)b[c]=a[c];return b},b=j.prototype=new s;j.version=1.641;b.constructor=j;b.kill()._gc=!1;b.to=function(a,b,c,e,i){return this.insert(new f(a,b,c),this._parseTimeOrLabel(i,e,!0))};b.from=function(a,b,c,e,i){return this.insert(f.from(a,b,c),this._parseTimeOrLabel(i,e,!0))};b.fromTo=function(a,b,c,e,i,d){return this.insert(f.fromTo(a,b,c,e),this._parseTimeOrLabel(d,i,!0))};b.staggerTo=function(a,b,c,e,i,d,l,G,h){l=new j({onComplete:l,onCompleteParams:G,
-onCompleteScope:h});e=e||0;for(G=0;G<a.length;G++)null!=c.startAt&&(c.startAt=v(c.startAt)),l.insert(new f(a[G],b,v(c)),G*e);return this.insert(l,this._parseTimeOrLabel(d,i,!0))};b.staggerFrom=function(a,b,c,e,i,d,v,f,h){null==c.immediateRender&&(c.immediateRender=!0);c.runBackwards=!0;return this.staggerTo(a,b,c,e,i,d,v,f,h)};b.staggerFromTo=function(a,b,c,e,i,d,v,f,h,w){e.startAt=c;c.immediateRender&&(e.immediateRender=!0);return this.staggerTo(a,b,e,i,d,v,f,h,w)};b.call=function(a,b,c,e,i){return this.insert(f.delayedCall(0,
-a,b,c),this._parseTimeOrLabel(i,e,!0))};b.set=function(a,b,c,e){b.immediateRender=!1;return this.insert(new f(a,0,b),this._parseTimeOrLabel(e,c,!0))};j.exportRoot=function(a,b){a=a||{};null==a.smoothChildTiming&&(a.smoothChildTiming=!0);var c=new j(a),e=c._timeline;null==b&&(b=!0);e._remove(c,!0);c._startTime=0;c._rawPrevTime=c._time=c._totalTime=e._time;for(var i=e._first,d;i;)d=i._next,(!b||!(i instanceof f&&i.target===i.vars.onComplete))&&c.insert(i,i._startTime-i._delay),i=d;e.insert(c,0);return c};
-b.insert=function(a,b){if(!(a instanceof q)){if(a instanceof Array)return this.insertMultiple(a,b);if("string"===typeof a)return this.addLabel(a,this._parseTimeOrLabel(b||0,0,!0));if("function"===typeof a)a=f.delayedCall(0,a);else throw"ERROR: Cannot insert() "+a+" into the TimelineLite/Max because it is neither a tween, timeline, function, nor a String.";}s.prototype.insert.call(this,a,this._parseTimeOrLabel(b||0,0,!0));if(this._gc&&!this._paused&&this._time===this._duration&&this._time<this.duration())for(var c=
-this;c._gc&&c._timeline;)c._timeline.smoothChildTiming?c.totalTime(c._totalTime,!0):c._enabled(!0,!1),c=c._timeline;return this};b.remove=function(a){if(a instanceof q)return this._remove(a,!1);if(a instanceof Array){for(var b=a.length;-1<--b;)this.remove(a[b]);return this}return"string"===typeof a?this.removeLabel(a):this.kill(null,a)};b.append=function(a,b){return this.insert(a,this._parseTimeOrLabel(null,b,!0))};b.insertMultiple=function(a,b,c,e){for(var c=c||"normal",e=e||0,i,d=this._parseTimeOrLabel(b||
-0,0,!0),v=a.length,b=0;b<v;b++){if((i=a[b])instanceof Array)i=new j({tweens:i});this.insert(i,d);"string"===typeof i||"function"===typeof i||("sequence"===c?d=i._startTime+i.totalDuration()/i._timeScale:"start"===c&&(i._startTime-=i.delay()));d+=e}return this._uncache(!0)};b.appendMultiple=function(a,b,c,e){return this.insertMultiple(a,this._parseTimeOrLabel(null,b,!0),c,e)};b.addLabel=function(a,b){this._labels[a]=b;return this};b.removeLabel=function(a){delete this._labels[a];return this};b.getLabelTime=
-function(a){return null!=this._labels[a]?this._labels[a]:-1};b._parseTimeOrLabel=function(a,b,c){if("string"===typeof b)return this._parseTimeOrLabel(b,c&&"number"===typeof a&&null==this._labels[b]?a-this.duration():0,c);b=b||0;return null==a?this.duration()+b:"string"===typeof a&&isNaN(a)?null==this._labels[a]?c?this._labels[a]=this.duration()+b:b:this._labels[a]+b:Number(a)+b};b.seek=function(a,b){return this.totalTime(this._parseTimeOrLabel(a),!1!=b)};b.stop=function(){return this.paused(!0)};
-b.gotoAndPlay=function(a,b){return s.prototype.play.call(this,a,b)};b.gotoAndStop=function(a,b){return this.pause(a,b)};b.render=function(a,b,c){this._gc&&this._enabled(!0,!1);this._active=!this._paused;var e=!this._dirty?this._totalDuration:this.totalDuration(),i=this._time,v=this._startTime,f=this._timeScale,j=this._paused,h,w,r;if(a>=e){this._totalTime=this._time=e;if(!this._reversed&&!this._hasPausedChild()&&(h=!0,r="onComplete",0===this._duration&&(0===a||0>this._rawPrevTime)))this._rawPrevTime!==
-a&&(c=!0);this._rawPrevTime=a;a=e+1E-6}else if(0>=a){this._totalTime=this._time=0;if(0!==i||0===this._duration&&0<this._rawPrevTime)r="onReverseComplete",h=this._reversed;0>a?(this._active=!1,0===this._duration&&0<=this._rawPrevTime&&(c=!0)):this._initted||(c=!0);this._rawPrevTime=a;a=-1E-6}else this._totalTime=this._time=this._rawPrevTime=a;if(this._time!==i||c){this._initted||(this._initted=!0);0===i&&this.vars.onStart&&0!==this._time&&(b||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||
-d));if(this._time>i)for(c=this._first;c;){w=c._next;if(this._paused&&!j)break;else if(c._active||c._startTime<=this._time&&!c._paused&&!c._gc)c._reversed?c.render((!c._dirty?c._totalDuration:c.totalDuration())-(a-c._startTime)*c._timeScale,b,!1):c.render((a-c._startTime)*c._timeScale,b,!1);c=w}else for(c=this._last;c;){w=c._prev;if(this._paused&&!j)break;else if(c._active||c._startTime<=i&&!c._paused&&!c._gc)c._reversed?c.render((!c._dirty?c._totalDuration:c.totalDuration())-(a-c._startTime)*c._timeScale,
-b,!1):c.render((a-c._startTime)*c._timeScale,b,!1);c=w}this._onUpdate&&(b||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||d));if(r&&!this._gc&&(v===this._startTime||f!=this._timeScale))if(0===this._time||e>=this.totalDuration())h&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),b||this.vars[r]&&this.vars[r].apply(this.vars[r+"Scope"]||this,this.vars[r+"Params"]||d)}};b._hasPausedChild=function(){for(var a=this._first;a;){if(a._paused||a instanceof
-j&&a._hasPausedChild())return!0;a=a._next}return!1};b.getChildren=function(a,b,c,e){for(var e=e||-9999999999,i=[],d=this._first,v=0;d;)d._startTime<e||(d instanceof f?!1!=b&&(i[v++]=d):(!1!=c&&(i[v++]=d),!1!=a&&(i=i.concat(d.getChildren(!0,b,c)),v=i.length))),d=d._next;return i};b.getTweensOf=function(a,b){for(var c=f.getTweensOf(a),e=c.length,i=[],d=0;-1<--e;)if(c[e].timeline===this||b&&this._contains(c[e]))i[d++]=c[e];return i};b._contains=function(a){for(a=a.timeline;a;){if(a===this)return!0;a=
-a.timeline}return!1};b.shiftChildren=function(a,b,c){for(var c=c||0,e=this._first;e;)e._startTime>=c&&(e._startTime+=a),e=e._next;if(b)for(var i in this._labels)this._labels[i]>=c&&(this._labels[i]+=a);return this._uncache(!0)};b._kill=function(a,b){if(null==a&&null==b)return this._enabled(!1,!1);for(var c=null==b?this.getChildren(!0,!0,!1):this.getTweensOf(b),e=c.length,i=!1;-1<--e;)c[e]._kill(a,b)&&(i=!0);return i};b.clear=function(a){var b=this.getChildren(!1,!0,!0),c=b.length;for(this._time=this._totalTime=
-0;-1<--c;)b[c]._enabled(!1,!1);!1!=a&&(this._labels={});return this._uncache(!0)};b.invalidate=function(){for(var a=this._first;a;)a.invalidate(),a=a._next;return this};b._enabled=function(a,b){if(a===this._gc)for(var c=this._first;c;)c._enabled(a,!0),c=c._next;return s.prototype._enabled.call(this,a,b)};b.progress=function(a){return!arguments.length?this._time/this.duration():this.totalTime(this.duration()*a,!1)};b.duration=function(a){if(!arguments.length)return this._dirty&&this.totalDuration(),
-this._duration;0!==this.duration()&&0!==a&&this.timeScale(this._duration/a);return this};b.totalDuration=function(a){if(!arguments.length){if(this._dirty){for(var b=0,c=this._first,e=-999999999999,i;c;)i=c._next,c._startTime<e&&this._sortChildren?this.insert(c,c._startTime-c._delay):e=c._startTime,0>c._startTime&&(b-=c._startTime,this.shiftChildren(-c._startTime,!1,-9999999999)),c=c._startTime+(!c._dirty?c._totalDuration:c.totalDuration())/c._timeScale,c>b&&(b=c),c=i;this._duration=this._totalDuration=
-b;this._dirty=!1}return this._totalDuration}0!==this.totalDuration()&&0!==a&&this.timeScale(this._totalDuration/a);return this};b.usesFrames=function(){for(var a=this._timeline;a._timeline;)a=a._timeline;return a===q._rootFramesTimeline};b.rawTime=function(){return this._paused||0!==this._totalTime&&this._totalTime!==this._totalDuration?this._totalTime:(this._timeline.rawTime()-this._startTime)*this._timeScale};return j},!0);_gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(q,
-s,f){var j=function(d){q.call(this,d);this._repeat=this.vars.repeat||0;this._repeatDelay=this.vars.repeatDelay||0;this._cycle=0;this._yoyo=!0===this.vars.yoyo;this._dirty=!0},l=[],d=new f(null,null,1,0),f=j.prototype=new q;f.constructor=j;f.kill()._gc=!1;j.version=1.641;f.invalidate=function(){this._yoyo=!0===this.vars.yoyo;this._repeat=this.vars.repeat||0;this._repeatDelay=this.vars.repeatDelay||0;this._uncache(!0);return q.prototype.invalidate.call(this)};f.addCallback=function(d,b,a,f){return this.insert(s.delayedCall(0,
-d,a,f),b)};f.removeCallback=function(d,b){if(null==b)this._kill(null,d);else for(var a=this.getTweensOf(d,!1),f=a.length,c=this._parseTimeOrLabel(b);-1<--f;)a[f]._startTime===c&&a[f]._enabled(!1,!1);return this};f.tweenTo=function(v,b){var b=b||{},a={ease:d,overwrite:2,useFrames:this.usesFrames(),immediateRender:!1},f,c;for(f in b)a[f]=b[f];a.time=this._parseTimeOrLabel(v);c=new s(this,Math.abs(Number(a.time)-this._time)/this._timeScale||0.001,a);a.onStart=function(){c.target.paused(!0);c.vars.time!==
-c.target.time()&&c.duration(Math.abs(c.vars.time-c.target.time())/c.target._timeScale);b.onStart&&b.onStart.apply(b.onStartScope||c,b.onStartParams||l)};return c};f.tweenFromTo=function(d,b,a){a=a||{};a.startAt={time:this._parseTimeOrLabel(d)};d=this.tweenTo(b,a);return d.duration(Math.abs(d.vars.time-d.vars.startAt.time)/this._timeScale||0.001)};f.render=function(d,b,a){this._gc&&this._enabled(!0,!1);this._active=!this._paused;var f=!this._dirty?this._totalDuration:this.totalDuration(),c=this._time,
-e=this._totalTime,i=this._startTime,j=this._timeScale,s=this._rawPrevTime,G=this._paused,h=this._cycle,w,r;if(d>=f){this._locked||(this._totalTime=f,this._cycle=this._repeat);if(!this._reversed&&!this._hasPausedChild()&&(w=!0,r="onComplete",0===this._duration&&(0===d||0>this._rawPrevTime)))this._rawPrevTime!==d&&(a=!0);this._rawPrevTime=d;this._yoyo&&0!==(this._cycle&1)?(this._time=0,d=-1E-6):(this._time=this._duration,d=this._duration+1E-6)}else if(0>=d){this._locked||(this._totalTime=this._cycle=
-0);this._time=0;if(0!==c||0===this._duration&&0<this._rawPrevTime&&!this._locked)r="onReverseComplete",w=this._reversed;0>d?(this._active=!1,0===this._duration&&0<=this._rawPrevTime&&(a=!0)):this._initted||(a=!0);this._rawPrevTime=d;d=0===this._duration?0:-1E-6}else if(this._time=this._rawPrevTime=d,!this._locked&&(this._totalTime=d,0!==this._repeat)){var A=this._duration+this._repeatDelay;this._cycle=this._totalTime/A>>0;0!==this._cycle&&this._cycle===this._totalTime/A&&this._cycle--;this._time=
-this._totalTime-this._cycle*A;this._yoyo&&0!==(this._cycle&1)&&(this._time=this._duration-this._time);this._time>this._duration?(this._time=this._duration,d=this._duration+1E-6):0>this._time?this._time=d=0:d=this._time}if(this._cycle!==h&&!this._locked){var A=this._yoyo&&0!==(h&1),k=A===(this._yoyo&&0!==(this._cycle&1)),U=this._totalTime,I=this._cycle,D=this._rawPrevTime,t=this._time;this._totalTime=h*this._duration;this._cycle<h?A=!A:this._totalTime+=this._duration;this._time=c;this._rawPrevTime=
-0===this._duration?s-1E-5:s;this._cycle=h;this._locked=!0;c=A?0:this._duration;this.render(c,b,0===this._duration);b||this._gc||this.vars.onRepeat&&this.vars.onRepeat.apply(this.vars.onRepeatScope||this,this.vars.onRepeatParams||l);k&&(c=A?this._duration+1E-6:-1E-6,this.render(c,!0,!1));this._time=t;this._totalTime=U;this._cycle=I;this._rawPrevTime=D;this._locked=!1}if(this._time===c&&!a)e!==this._totalTime&&this._onUpdate&&(b||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||
-l));else{this._initted||(this._initted=!0);0===e&&this.vars.onStart&&0!==this._totalTime&&(b||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||l));if(this._time>c)for(a=this._first;a;){e=a._next;if(this._paused&&!G)break;else if(a._active||a._startTime<=this._time&&!a._paused&&!a._gc)a._reversed?a.render((!a._dirty?a._totalDuration:a.totalDuration())-(d-a._startTime)*a._timeScale,b,!1):a.render((d-a._startTime)*a._timeScale,b,!1);a=e}else for(a=this._last;a;){e=a._prev;
-if(this._paused&&!G)break;else if(a._active||a._startTime<=c&&!a._paused&&!a._gc)a._reversed?a.render((!a._dirty?a._totalDuration:a.totalDuration())-(d-a._startTime)*a._timeScale,b,!1):a.render((d-a._startTime)*a._timeScale,b,!1);a=e}this._onUpdate&&(b||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||l));if(r&&!this._locked&&!this._gc&&(i===this._startTime||j!==this._timeScale))if(0===this._time||f>=this.totalDuration())w&&(this._timeline.autoRemoveChildren&&this._enabled(!1,
-!1),this._active=!1),b||this.vars[r]&&this.vars[r].apply(this.vars[r+"Scope"]||this,this.vars[r+"Params"]||l)}};f.getActive=function(d,b,a){null==d&&(d=!0);null==b&&(b=!0);null==a&&(a=!1);var f=[],d=this.getChildren(d,b,a),b=0,a=d.length,c,e;for(c=0;c<a;c++)if(e=d[c],!e._paused&&e._timeline._time>=e._startTime&&e._timeline._time<e._startTime+e._totalDuration/e._timeScale){var i;a:{for(i=e._timeline;i;){if(i._paused){i=!0;break a}i=i._timeline}i=!1}i||(f[b++]=e)}return f};f.getLabelAfter=function(d){!d&&
-0!==d&&(d=this._time);var b=this.getLabelsArray(),a=b.length,f;for(f=0;f<a;f++)if(b[f].time>d)return b[f].name;return null};f.getLabelBefore=function(d){null==d&&(d=this._time);for(var b=this.getLabelsArray(),a=b.length;-1<--a;)if(b[a].time<d)return b[a].name;return null};f.getLabelsArray=function(){var d=[],b=0,a;for(a in this._labels)d[b++]={time:this._labels[a],name:a};d.sort(function(a,b){return a.time-b.time});return d};f.progress=function(d){return!arguments.length?this._time/this.duration():
-this.totalTime(this.duration()*(this._yoyo&&0!==(this._cycle&1)?1-d:d)+this._cycle*(this._duration+this._repeatDelay),!1)};f.totalProgress=function(d){return!arguments.length?this._totalTime/this.totalDuration():this.totalTime(this.totalDuration()*d,!1)};f.totalDuration=function(d){return!arguments.length?(this._dirty&&(q.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((d-this._repeat*this._repeatDelay)/(this._repeat+1))};f.time=function(d,b){if(!arguments.length)return this._time;this._dirty&&this.totalDuration();d>this._duration&&(d=this._duration);this._yoyo&&0!==(this._cycle&1)?d=this._duration-d+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(d+=this._cycle*(this._duration+this._repeatDelay));return this.totalTime(d,b)};f.repeat=function(d){if(!arguments.length)return this._repeat;this._repeat=d;return this._uncache(!0)};
-f.repeatDelay=function(d){if(!arguments.length)return this._repeatDelay;this._repeatDelay=d;return this._uncache(!0)};f.yoyo=function(d){if(!arguments.length)return this._yoyo;this._yoyo=d;return this};f.currentLabel=function(d){return!arguments.length?this.getLabelBefore(this._time+1E-8):this.seek(d,!0)};return j},!0);_gsDefine("plugins.BezierPlugin",["plugins.TweenPlugin"],function(q){var s=function(){q.call(this,"bezier",-1);this._overwriteProps.pop();this._func={};this._round={}},f=s.prototype=
-new q("bezier",1),j=180/Math.PI,l=[],d=[],v=[],b={},a=function(a,b,c,d){this.a=a;this.b=b;this.c=c;this.d=d;this.da=d-a;this.ca=c-a;this.ba=b-a},F=s.bezierThrough=function(e,i,f,j,G,h){var w={},r=[],A,k,s,G="string"===typeof G?","+G+",":",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,";null==i&&(i=1);for(k in e[0])r.push(k);l.length=d.length=v.length=0;for(A=r.length;-1<--A;){k=r[A];
-b[k]=-1!==G.indexOf(","+k+",");s=w;var I=k,D;D=e;var t=k,p=b[k],x=h,B=[],C=void 0,u=void 0,q=void 0,F=void 0,g=void 0,C=void 0;if(x){D=[x].concat(D);for(u=D.length;-1<--u;)if("string"===typeof(C=D[u][t]))"="===C.charAt(1)&&(D[u][t]=x[t]+Number(C.charAt(0)+C.substr(2)))}C=D.length-2;if(0>C)B[0]=new a(D[0][t],0,0,D[-1>C?0:1][t]);else{for(u=0;u<C;u++)q=D[u][t],F=D[u+1][t],B[u]=new a(q,0,0,F),p&&(g=D[u+2][t],l[u]=(l[u]||0)+(F-q)*(F-q),d[u]=(d[u]||0)+(g-F)*(g-F));B[u]=new a(D[u][t],0,0,D[u+1][t])}D=B;
-s[I]=D}for(A=l.length;-1<--A;)l[A]=Math.sqrt(l[A]),d[A]=Math.sqrt(d[A]);if(!j){for(A=r.length;-1<--A;)if(b[k]){e=w[r[A]];s=e.length-1;for(G=0;G<s;G++)h=e[G+1].da/d[G]+e[G].da/l[G],v[G]=(v[G]||0)+h*h}for(A=v.length;-1<--A;)v[A]=Math.sqrt(v[A])}for(A=r.length;-1<--A;){k=r[A];e=w[k];G=i;h=f;s=j;k=b[k];I=e.length-1;D=0;for(var t=e[0].a,m=g=F=x=C=F=q=C=u=q=B=x=p=void 0,p=0;p<I;p++)u=e[D],x=u.a,B=u.d,q=e[D+1].d,k?(F=l[p],g=d[p],m=0.25*(g+F)*G/(s?0.5:v[p]||0.5),C=B-(B-x)*(s?0.5*G:m/F),q=B+(q-B)*(s?0.5*G:
-m/g),F=B-(C+(q-C)*(3*F/(F+g)+0.5)/4)):(C=B-0.5*(B-x)*G,q=B+0.5*(q-B)*G,F=B-(C+q)/2),C+=F,q+=F,u.c=C,u.b=0!==p?t:t=u.a+0.6*(u.c-u.a),u.da=B-x,u.ca=C-x,u.ba=t-x,h?(x=c(x,t,C,B),e.splice(D,1,x[0],x[1],x[2],x[3]),D+=4):D++,t=q;u=e[D];u.b=t;u.c=t+0.4*(u.d-t);u.da=u.d-u.a;u.ca=u.c-u.a;u.ba=t-u.a;h&&(x=c(u.a,t,u.c,u.d),e.splice(D,1,x[0],x[1],x[2],x[3]))}return w},c=s.cubicToQuadratic=function(a,b,c,d){var f={a:a},h={},w={},r={c:d},j=(a+b)/2,k=(b+c)/2,c=(c+d)/2,b=(j+k)/2,k=(k+c)/2,l=(k-b)/8;f.b=j+(a-j)/4;
-h.b=b+l;f.c=h.a=(f.b+h.b)/2;h.c=w.a=(b+k)/2;w.b=k-l;r.b=c+(d-c)/4;w.c=r.a=(w.b+r.b)/2;return[f,h,w,r]};s.quadraticToCubic=function(b,c,d){return new a(b,(2*c+b)/3,(2*c+d)/3,d)};f.constructor=s;s.API=2;s._cssRegister=function(){var a=window.com.greensock.plugins.CSSPlugin;if(a){var a=a._internals,b=a._parseToProxy,c=a._setPluginRatio,d=a._specialProps,f=a.CSSPropTween;a._registerComplexSpecialProp("bezier",null,function(a,e,r,j,k,l){e instanceof Array&&(e={values:e});var l=new s,r=e.values,q=r.length-
-1,v=[],t={},p,x,B;if(0>q)return k;for(p=0;p<=q;p++)B=b(a,r[p],j,k,l,q!==p),v[p]=B.end;for(x in e)t[x]=e[x];t.values=v;k=new f(a,"bezier",0,0,B.pt,2);k.data=B;k.plugin=l;k.setRatio=c;0===t.autoRotate&&(t.autoRotate=!0);t.autoRotate&&!(t.autoRotate instanceof Array)&&(p=!0===t.autoRotate?0:Number(t.autoRotate)*_DEG2RAD,t.autoRotate=null!=B.end.left?[["left","top","rotation",p,!0]]:null!=B.end.x?[["x","y","rotation",p,!0]]:!1);t.autoRotate&&(j._transform||(k=d.rotation.parse(a,0,x,j,k,l,{})),B.autoRotate=
-j._transform);l._onInitTween(B.proxy,t,j._tween);return k})}};f._onInitTween=function(b,c,d){this._target=b;c instanceof Array&&(c={values:c});this._props=[];this._timeRes=null==c.timeResolution?6:parseInt(c.timeResolution);var f=c.values||[],j={},h=f[0],d=c.autoRotate||d.vars.orientToBezier,w,r,l;this._autoRotate=d?d instanceof Array?d:[["x","y","rotation",!0===d?0:Number(d)||0]]:null;for(w in h)this._props.push(w);for(h=this._props.length;-1<--h;)w=this._props[h],this._overwriteProps.push(w),d=
-this._func[w]="function"===typeof b[w],j[w]=!d?parseFloat(b[w]):b[w.indexOf("set")||"function"!==typeof b["get"+w.substr(3)]?w:"get"+w.substr(3)](),l||j[w]!==f[0][w]&&(l=j);if("cubic"!==c.type&&"quadratic"!==c.type&&"soft"!==c.type)j=F(f,isNaN(c.curviness)?1:c.curviness,!1,"thruBasic"===c.type,c.correlate,l);else{d=(d=c.type)||"soft";c={};l="cubic"===d?3:2;var d="soft"===d,h=[],k,s,q,v,t,p,x,B,C;d&&j&&(f=[j].concat(f));if(null==f||f.length<l+1)throw"invalid Bezier data";for(s in f[0])h.push(s);for(p=
-h.length;-1<--p;){s=h[p];c[s]=t=[];C=0;B=f.length;for(x=0;x<B;x++)k=null==j?f[x][s]:"string"===typeof(q=f[x][s])&&"="===q.charAt(1)?j[s]+Number(q.charAt(0)+q.substr(2)):Number(q),d&&1<x&&x<B-1&&(t[C++]=(k+t[C-2])/2),t[C++]=k;B=C-l+1;for(x=C=0;x<B;x+=l)k=t[x],s=t[x+1],q=t[x+2],v=2===l?0:t[x+3],t[C++]=q=3===l?new a(k,s,q,v):new a(k,(2*s+k)/3,(2*s+q)/3,q);t.length=C}j=c}this._beziers=j;this._segCount=this._beziers[w].length;if(this._timeRes){h=this._beziers;w=this._timeRes;w=w>>0||6;j=[];s=[];f=q=0;
-c=w-1;l=[];d=[];for(r in h){k=h[r];t=j;p=w;x=1/p;B=k.length;for(var u=void 0,N=void 0,L=v=C=N=void 0,g=u=void 0,m=void 0,m=L=void 0;-1<--B;){L=k[B];N=L.a;C=L.d-N;v=L.c-N;L=L.b-N;N=0;for(g=1;g<=p;g++)u=x*g,m=1-u,u=N-(N=(u*u*C+3*m*(u*v+m*L))*u),m=B*p+g-1,t[m]=(t[m]||0)+u*u}}h=j.length;for(r=0;r<h;r++)q+=Math.sqrt(j[r]),k=r%w,d[k]=q,k===c&&(f+=q,k=r/w>>0,l[k]=d,s[k]=f,q=0,d=[]);this._length=f;this._lengths=s;this._segments=l;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(d=this._autoRotate){d[0]instanceof Array||(this._autoRotate=d=[d]);for(h=d.length;-1<--h;)for(r=0;3>r;r++)w=d[h][r],this._func[w]="function"===typeof b[w]?b[w.indexOf("set")||"function"!==typeof b["get"+w.substr(3)]?w:"get"+w.substr(3)]:!1}return!0};f.setRatio=function(a){var c=this._segCount,b=this._func,d=this._target,f,h,l,r,q;if(this._timeRes){f=this._lengths;r=this._curSeg;a*=this._length;h=this._li;if(a>this._l2&&
-h<c-1){for(c-=1;h<c&&(this._l2=f[++h])<=a;);this._l1=f[h-1];this._li=h;this._curSeg=r=this._segments[h];this._s2=r[this._s1=this._si=0]}else if(a<this._l1&&0<h){for(;0<h&&(this._l1=f[--h])>=a;);0===h&&a<this._l1?this._l1=0:h++;this._l2=f[h];this._li=h;this._curSeg=r=this._segments[h];this._s1=r[(this._si=r.length-1)-1]||0;this._s2=r[this._si]}f=h;a-=this._l1;h=this._si;if(a>this._s2&&h<r.length-1){for(c=r.length-1;h<c&&(this._s2=r[++h])<=a;);this._s1=r[h-1];this._si=h}else if(a<this._s1&&0<h){for(;0<
-h&&(this._s1=r[--h])>=a;);0===h&&a<this._s1?this._s1=0:h++;this._s2=r[h];this._si=h}r=(h+(a-this._s1)/(this._s2-this._s1))*this._prec}else f=0>a?0:1<=a?c-1:c*a>>0,r=(a-f*(1/c))*c;c=1-r;for(h=this._props.length;-1<--h;)if(a=this._props[h],l=this._beziers[a][f],q=(r*r*l.da+3*c*(r*l.ca+c*l.ba))*r+l.a,this._round[a]&&(q=q+(0<q?0.5:-0.5)>>0),b[a])d[a](q);else d[a]=q;if(this._autoRotate){var c=this._autoRotate,k,s,v,F,t;for(h=c.length;-1<--h;)a=c[h][2],F=c[h][3]||0,t=!0===c[h][4]?1:j,l=this._beziers[c[h][0]][f],
-q=this._beziers[c[h][1]][f],k=l.a+(l.b-l.a)*r,s=l.b+(l.c-l.b)*r,k+=(s-k)*r,s+=(l.c+(l.d-l.c)*r-s)*r,l=q.a+(q.b-q.a)*r,v=q.b+(q.c-q.b)*r,l+=(v-l)*r,v+=(q.c+(q.d-q.c)*r-v)*r,q=Math.atan2(v-l,s-k)*t+F,b[a]?b[a].call(d,q):d[a]=q}};f._roundProps=function(a,c){for(var b=this._overwriteProps,d=b.length;-1<--d;)if(a[b[d]]||a.bezier||a.bezierThrough)this._round[b[d]]=c};f._kill=function(a){var c=this._props,b,d;for(b in this._beziers)if(b in a){delete this._beziers[b];delete this._func[b];for(d=c.length;-1<
---d;)c[d]===b&&c.splice(d,1)}return q.prototype._kill.call(this,a)};q.activate([s]);return s},!0);_gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(q){var s=function(){q.call(this,"css");this._overwriteProps.length=0},f,j,l,d,v={},b=s.prototype=new q("css");b.constructor=s;s.version=1.653;s.API=2;s.defaultTransformPerspective=0;b="px";s.suffixMap={top:b,right:b,bottom:b,left:b,width:b,height:b,fontSize:b,padding:b,margin:b,perspective:b};var a=/(?:\d|\-\d|\.\d|\-\.\d)+/g,
-F=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,c=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,e=/[^\d\-\.]/g,i=/(?:\d|\-|\+|=|#|\.)*/g,J=/opacity *= *([^)]*)/,Y=/opacity:([^;]*)/,G=/([A-Z])/g,h=/-([a-z])/gi,w=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,r=function(a,Q){return Q.toUpperCase()},A=/(?:Left|Right|Width)/i,k=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,U=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,I=Math.PI/180,D=180/Math.PI,t={},p=document,x=p.createElement("div"),B=p.createElement("img"),
-C=s._internals={_specialProps:v},u=navigator.userAgent,N,L,g,m,n,z,E,S=u.indexOf("Android"),la=p.createElement("div");n=(g=-1!==u.indexOf("Safari")&&-1===u.indexOf("Chrome")&&(-1===S||3<Number(u.substr(S+8,1))))&&6>Number(u.substr(u.indexOf("Version/")+8,1));m=-1!==u.indexOf("Mozilla");/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(u);z=parseFloat(RegExp.$1);la.innerHTML="<a style='top:1px;opacity:.55;'>a</a>";E=(u=la.getElementsByTagName("a")[0])?/^0.55/.test(u.style.opacity):!1;var H=function(a){return J.test("string"===
-typeof a?a:(a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100:1},ma="",fa="",aa=function(a,Q){var Q=Q||x,g=Q.style,c,b;if(void 0!==g[a])return a;a=a.charAt(0).toUpperCase()+a.substr(1);c=["O","Moz","ms","Ms","Webkit"];for(b=5;-1<--b&&void 0===g[c[b]+a];);return 0<=b?(fa=3===b?"ms":c[b],ma="-"+fa.toLowerCase()+"-",fa+a):null},ba=p.defaultView?p.defaultView.getComputedStyle:function(){},M=s.getStyle=function(a,Q,g,c,b){var d;if(!E&&"opacity"===Q)return H(a);!c&&a.style[Q]?
-d=a.style[Q]:(g=g||ba(a,null))?d=(a=g.getPropertyValue(Q.replace(G,"-$1").toLowerCase()))||g.length?a:g[Q]:a.currentStyle&&(g=a.currentStyle,d=g[Q]);return null!=b&&(!d||"none"===d||"auto"===d||"auto auto"===d)?b:d},da=function(a,g,c){var b={},d=a._gsOverwrittenClassNamePT,n;if(d&&!c){for(;d;)d.setRatio(0),d=d._next;a._gsOverwrittenClassNamePT=null}if(g=g||ba(a,null))if(n=g.length)for(;-1<--n;)b[g[n].replace(h,r)]=g.getPropertyValue(g[n]);else for(n in g)b[n]=g[n];else if(g=a.currentStyle||a.style)for(n in g)b[n.replace(h,
-r)]=g[n];E||(b.opacity=H(a));a=ga(a,g,!1);b.rotation=a.rotation*D;b.rotationX=a.rotationX*D;b.rotationY=a.rotationY*D;b.skewX=a.skewX*D;b.scaleX=a.scaleX;b.scaleY=a.scaleY;b.scaleZ=a.scaleZ;b.x=a.x;b.y=a.y;b.z=a.z;b.filters&&delete b.filters;return b},na=function(a,g,b,c){var d={},a=a.style,n,y,m;for(y in b)if("cssText"!==y&&"length"!==y&&isNaN(y)&&g[y]!==(n=b[y]))if(-1===y.indexOf("Origin")&&("number"===typeof n||"string"===typeof n))d[y]=(""===n||"auto"===n||"none"===n)&&"string"===typeof g[y]&&
-""!==g[y].replace(e,"")?0:n,void 0!==a[y]&&(m=new ha(a,y,a[y],m));if(c)for(y in c)"className"!==y&&(d[y]=c[y]);return{difs:d,firstMPT:m}},ta={width:["Left","Right"],height:["Top","Bottom"]},ua=["marginLeft","marginRight","marginTop","marginBottom"],T=function(a,g,b,c,d){if("px"===c||!c)return b;if("auto"===c||!b)return 0;var n=A.test(g),y=a,m=x.style,e=0>b;e&&(b=-b);"%"===c&&-1!==g.indexOf("border")?n=b/100*(n?a.clientWidth:a.clientHeight):(m.cssText="border-style:solid; border-width:0; position:absolute; line-height:0;",
-"%"===c||"em"===c||!y.appendChild?(y=a.parentNode||p.body,m[n?"width":"height"]=b+c):m[n?"borderLeftWidth":"borderTopWidth"]=b+c,y.appendChild(x),n=parseFloat(x[n?"offsetWidth":"offsetHeight"]),y.removeChild(x),0===n&&!d&&(n=T(a,g,b,c,!0)));return e?-n:n},ia=function(a,g){if(null==a||""===a||"auto"===a||"auto auto"===a)a="0 0";var b=a.split(" "),c=-1!==a.indexOf("left")?"0%":-1!==a.indexOf("right")?"100%":b[0],d=-1!==a.indexOf("top")?"0%":-1!==a.indexOf("bottom")?"100%":b[1];null==d?d="0":"center"===
-d&&(d="50%");if("center"===c||isNaN(parseFloat(c)))c="50%";g&&(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(e,"")),g.oy=parseFloat(d.replace(e,"")));return c+" "+d+(2<b.length?" "+b[2]:"")},oa=function(a,g){return"string"===typeof a&&"="===a.charAt(1)?parseInt(a.charAt(0)+"1")*parseFloat(a.substr(2)):parseFloat(a)-parseFloat(g)},V=function(a,g){return null==a?g:"string"===typeof a&&"="===a.charAt(1)?parseInt(a.charAt(0)+
-"1")*Number(a.substr(2))+g:Number(a)},Z=function(a,g){if(null==a)return g;var b=-1===a.indexOf("rad")?I:1,c="="===a.charAt(1),a=Number(a.replace(e,""))*b;return c?a+g:a},ja=function(a,g){var b=(("number"===typeof a?a*I:Z(a,g))-g)%(2*Math.PI);b!==b%Math.PI&&(b+=Math.PI*(0>b?2:-2));return g+b},$={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]},ka=function(g){if(!g||""===g)return $.black;if($[g])return $[g];if("number"===typeof g)return[g>>16,g>>8&255,g&255];if("#"===g.charAt(0)){if(4===g.length)var b=g.charAt(1),c=g.charAt(2),g=g.charAt(3),g="#"+b+b+c+c+g+g;g=parseInt(g.substr(1),16);return[g>>16,g>>8&255,g&255]}g=g.match(a)||$.transparent;g[0]=Number(g[0]);g[1]=Number(g[1]);g[2]=Number(g[2]);
-3<g.length&&(g[3]=Number(g[3]));return g},W="(?:\\b(?:(?:rgb|rgba)\\(.+?\\))|\\B#.+?\\b";for(b in $)W+="|"+b+"\\b";var W=RegExp(W+")","gi"),pa=function(g,b,d){if(null==g)return function(a){return a};var n=b?(g.match(W)||[""])[0]:"",m=g.split(n).join("").match(c)||[],p=g.substr(0,g.indexOf(m[0])),y=")"===g.charAt(g.length-1)?")":"",e=-1!==g.indexOf(" ")?" ":",",f=m.length,ca=0<f?m[0].replace(a,""):"";return b?function(a){"number"===typeof a&&(a+=ca);var g=(a.match(W)||[n])[0],a=a.split(g).join("").match(c)||
-[],b=a.length;if(f>b--)for(;++b<f;)a[b]=d?a[(b-1)/2>>0]:m[b];return p+a.join(e)+e+g+y}:function(a){"number"===typeof a&&(a+=ca);var a=a.match(c)||[],g=a.length;if(f>g--)for(;++g<f;)a[g]=d?a[(g-1)/2>>0]:m[g];return p+a.join(e)+y}},u=function(a){a=a.split(",");return function(g,b,c,d,n,y,m){b=(b+"").split(" ");m={};for(c=0;4>c;c++)m[a[c]]=b[c]=b[c]||b[(c-1)/2>>0];return d.parse(g,m,n,y)}};C._setPluginRatio=function(a){this.plugin.setRatio(a);for(var g=this.data,b=g.proxy,c=g.firstMPT,d;c;)d=b[c.v],
-c.r?d=0<d?d+0.5>>0:d-0.5>>0:1E-6>d&&-1E-6<d&&(d=0),c.t[c.p]=d,c=c._next;g.autoRotate&&(g.autoRotate.rotation=b.rotation);if(1===a)for(c=g.firstMPT;c;){a=c.t;if(a.type){if(1===a.type){b=a.xs0+a.s+a.xs1;for(g=1;g<a.l;g++)b+=a["xn"+g]+a["xs"+(g+1)];a.e=b}}else a.e=a.s+a.xs0;c=c._next}};var ha=function(a,g,b,c,d){this.t=a;this.p=g;this.v=b;this.r=d;c&&(c._prev=this,this._next=c)};C._parseToProxy=function(a,g,b,c,d,n){var y=c,m={},p={},e=b._transform,f=t,i;b._transform=null;t=g;c=a=b.parse(a,g,c,d);t=
-f;n&&(b._transform=e,y&&(y._prev=null,y._prev&&(y._prev._next=null)));for(;c&&c!==y;){if(1>=c.type&&(e=c.p,p[e]=c.s+c.c,m[e]=c.s,n||(i=new ha(c,"s",e,i,c.r),c.c=0),1===c.type))for(b=c.l;0<--b;)f="xn"+b,e=c.p+"_"+f,p[e]=c.data[f],m[e]=c[f],n||(i=new ha(c,f,e,i,c.rxp[f]));c=c._next}return{proxy:m,end:p,firstMPT:i,pt:a}};var O=C.CSSPropTween=function(a,g,c,b,n,m,y,e,p,ca,i){this.t=a;this.p=g;this.s=c;this.c=b;this.n=y||"css_"+g;a instanceof O||d.push(this.n);this.r=e;this.type=m||0;p&&(this.pr=p,f=!0);
-this.b=void 0===ca?c:ca;this.e=void 0===i?c+b:i;n&&(this._next=n,n._prev=this)},ea=s.parseComplex=function(g,c,b,d,n,m,y,p,e,f){var y=new O(g,c,0,0,y,f?2:1,null,!1,p,b,d),g=b.split(", ").join(",").split(" "),c=(d+"").split(", ").join(",").split(" "),b=g.length,p=!1!==N,i,l,h,j,z;b!==c.length&&(g=(m||"").split(" "),b=g.length);y.plugin=e;y.setRatio=f;for(m=0;m<b;m++)if(e=g[m],i=c[m],(f=parseFloat(e))||0===f)y.appendXtra("",f,oa(i,f),i.replace(F,""),p&&-1!==i.indexOf("px"),!0);else if(n&&("#"===e.charAt(0)||
-0===e.indexOf("rgb")||$[e]))e=ka(e),i=ka(i),(f=6<e.length+i.length)&&!E&&0===i[3]?(y["xs"+y.l]+=y.l?" transparent":"transparent",y.e=y.e.split(c[m]).join("transparent")):(y.appendXtra(f?"rgba(":"rgb(",e[0],i[0]-e[0],",",!0,!0).appendXtra("",e[1],i[1]-e[1],",",!0).appendXtra("",e[2],i[2]-e[2],f?",":")",!0),f&&(e=4>e.length?1:e[3],y.appendXtra("",e,(4>i.length?1:i[3])-e,")",!1)));else if(f=e.match(a)){h=i.match(F);if(!h||h.length!==f.length)return y;for(i=l=0;i<f.length;i++)z=f[i],j=e.indexOf(z,l),
-y.appendXtra(e.substr(l,j-l),Number(z),oa(h[i],z),"",p&&"px"===e.substr(j+z.length,2),0===i),l=j+z.length;y["xs"+y.l]+=e.substr(l)}else y["xs"+y.l]+=y.l?" "+e:e;if(-1!==d.indexOf("=")&&y.data){d=y.xs0+y.data.s;for(m=1;m<y.l;m++)d+=y["xs"+m]+y.data["xn"+m];y.e=d+y["xs"+m]}y.l||(y.type=-1,y.xs0=y.e);return y.xfirst||y},P=9,b=O.prototype;for(b.l=b.pr=0;0<--P;)b["xn"+P]=0,b["xs"+P]="";b.xs0="";b._next=b._prev=b.xfirst=b.data=b.plugin=b.setRatio=b.rxp=null;b.appendXtra=function(a,g,c,b,d,n){var m=this.l;
-this["xs"+m]+=n&&m?" "+a:a||"";if(!c&&0!==m&&!this.plugin)return this["xs"+m]+=g+(b||""),this;this.l++;this.type=this.setRatio?2:1;this["xs"+this.l]=b||"";if(0<m)return this.data["xn"+m]=g+c,this.rxp["xn"+m]=d,this["xn"+m]=g,this.plugin||(this.xfirst=new O(this,"xn"+m,g,c,this.xfirst||this,0,this.n,d,this.pr),this.xfirst.xs0=0),this;this.data={s:g+c};this.rxp={};this.s=g;this.c=c;this.r=d;return this};var qa=function(a,g,c,b,d,m,n){this.p=b?aa(a)||a:a;v[a]=v[this.p]=this;this.format=m||pa(g,d);c&&
-(this.parse=c);this.clrs=d;this.dflt=g;this.pr=n||0},K=C._registerComplexSpecialProp=function(a,g,c,b,d,m,n){for(var a=a.split(","),g=g instanceof Array?g:[g],e=a.length;-1<--e;)new qa(a[e],g[e],c,b&&0===e,d,m,n)},C=function(a){if(!v[a]){var g=a.charAt(0).toUpperCase()+a.substr(1)+"Plugin";K(a,null,function(a,c,b,d,m,n,e){var p=window.com.greensock.plugins[g];if(!p)return window.console&&console.log("Error: "+g+" js file not loaded."),m;p._cssRegister();return v[b].parse(a,c,b,d,m,n,e)})}},b=qa.prototype;
-b.parseComplex=function(a,g,c,b,d,m){return ea(a,this.p,g,c,this.clrs,this.dflt,b,this.pr,d,m)};b.parse=function(a,g,c,b,d,m){return this.parseComplex(a.style,this.format(M(a,c,l,!1,this.dflt)),this.format(g),d,m)};s.registerSpecialProp=function(a,g,c){K(a,null,function(a,b,d,m,n,e){n=new O(a,d,0,0,n,2,d,!1,c);n.plugin=e;n.setRatio=g(a,b,m._tween,d);return n},!1,!1,null,c)};var ra="scaleX scaleY scaleZ x y z skewX rotation rotationX rotationY perspective".split(" "),R=aa("transform"),va=ma+"transform",
-sa=aa("transformOrigin"),X=null!==aa("perspective"),ga=function(a,g,c){var b=c?a._gsTransform||{skewY:0}:{skewY:0},d=0>b.scaleX,m=X?parseFloat(M(a,sa,g,!1,"0 0 0").split(" ")[2])||b.zOrigin||0:0,n,e,p,f,i,l,h,j;R?n=M(a,va,g,!0):a.currentStyle&&(n=(n=a.currentStyle.filter.match(k))&&4===n.length?n[0].substr(4)+","+Number(n[2].substr(4))+","+Number(n[1].substr(4))+","+n[3].substr(4)+","+(b?b.x:0)+","+(b?b.y:0):null);e=(n||"").match(/(?:\-|\b)[\d\-\.e]+\b/gi)||[];for(g=e.length;-1<--g;)e[g]=Number(e[g]);
-if(16===e.length){if(d=e[8],n=e[9],p=e[10],f=e[12],i=e[13],l=e[14],b.zOrigin&&(l=-b.zOrigin,f=d*l-e[12],i=n*l-e[13],l=p*l+b.zOrigin-e[14]),!c||f!==b.x||i!==b.y||l!==b.z){h=e[0];j=e[1];var z=e[2],q=e[3],r=e[4],E=e[5],u=e[6],S=e[7];e=e[11];var x=b.rotationX=Math.atan2(u,p),v,w,H,t;x&&(H=Math.cos(-x),t=Math.sin(-x),x=r*H+d*t,v=E*H+n*t,w=u*H+p*t,d=r*-t+d*H,n=E*-t+n*H,p=u*-t+p*H,e=S*-t+e*H,r=x,E=v,u=w);if(x=b.rotationY=Math.atan2(d,h))H=Math.cos(-x),t=Math.sin(-x),v=j*H-n*t,w=z*H-p*t,n=j*t+n*H,p=z*t+p*
-H,e=q*t+e*H,h=h*H-d*t,j=v,z=w;if(x=b.rotation=Math.atan2(j,E))H=Math.cos(-x),t=Math.sin(-x),h=h*H+r*t,v=j*H+E*t,E=j*-t+E*H,u=z*-t+u*H,j=v;Math.abs(b.rotationY)>Math.PI/2&&(b.rotationY*=-1,b.rotationX+=Math.PI,b.rotation=Math.PI-b.rotation);b.scaleX=Math.sqrt(h*h+j*j);b.scaleY=Math.sqrt(E*E+n*n);b.scaleZ=Math.sqrt(u*u+p*p);b.skewX=0;b.perspective=e?1/e:0;b.x=f;b.y=i;b.z=l}}else if(!X||0===e.length||b.x!==e[4]||b.y!==e[5]||!b.rotationX&&!b.rotationY){f=(n=6<=e.length)?e[0]:1;l=e[1]||0;i=e[2]||0;h=n?
-e[3]:1;b.x=e[4]||0;b.y=e[5]||0;n=Math.sqrt(f*f+l*l);p=Math.sqrt(h*h+i*i);f=f||l?Math.atan2(l,f):b.rotation||0;i=i||h?Math.atan2(i,h)+f:b.skewX||0;l=n-Math.abs(b.scaleX||0);h=p-Math.abs(b.scaleY||0);Math.abs(i)>Math.PI/2&&Math.abs(i)<1.5*Math.PI&&(d?(n*=-1,i+=0>=f?Math.PI:-Math.PI,f+=0>=f?Math.PI:-Math.PI):(p*=-1,i+=0>=i?Math.PI:-Math.PI));d=(f-b.rotation)%Math.PI;j=(i-b.skewX)%Math.PI;if(void 0===b.skewX||1E-6<l||-1E-6>l||1E-6<h||-1E-6>h||1E-6<d||-1E-6>d||1E-6<j||-1E-6>j)b.scaleX=n,b.scaleY=p,b.rotation=
-f,b.skewX=i;X&&(b.rotationX=b.rotationY=b.z=0,b.perspective=parseFloat(s.defaultTransformPerspective)||0,b.scaleZ=1)}b.zOrigin=m;for(g in b)1E-6>b[g]&&-1E-6<b[g]&&(b[g]=0);c&&(a._gsTransform=b);return b},wa=function(a){var g=this.data,b=-g.rotation,c=b+g.skewX,d=Math.cos(b)*g.scaleX,b=Math.sin(b)*g.scaleX,n=Math.sin(c)*-g.scaleY,c=Math.cos(c)*g.scaleY,e=1E-6,m=this.t.style,p=this.t.currentStyle,f;if(p){d<e&&d>-e&&(d=0);b<e&&b>-e&&(b=0);n<e&&n>-e&&(n=0);c<e&&c>-e&&(c=0);e=b;b=-n;n=-e;e=p.filter;m.filter=
-"";var l=this.t.offsetWidth;f=this.t.offsetHeight;var h="absolute"!==p.position,j="progid:DXImageTransform.Microsoft.Matrix(M11="+d+", M12="+b+", M21="+n+", M22="+c,q=g.x,r=g.y,E,k;null!=g.ox&&(E=(g.oxp?0.01*l*g.ox:g.ox)-l/2,k=(g.oyp?0.01*f*g.oy:g.oy)-f/2,q+=E-(E*d+k*b),r+=k-(E*n+k*c));if(h)E=l/2,k=f/2,j+=", Dx="+(E-(E*d+k*b)+q)+", Dy="+(k-(E*n+k*c)+r)+")";else{var H=8>z?1:-1;E=g.ieOffsetX||0;k=g.ieOffsetY||0;g.ieOffsetX=Math.round((l-((0>d?-d:d)*l+(0>b?-b:b)*f))/2+q);g.ieOffsetY=Math.round((f-((0>
-c?-c:c)*f+(0>n?-n:n)*l))/2+r);for(P=0;4>P;P++)l=ua[P],f=p[l],f=-1!==f.indexOf("px")?parseFloat(f):T(this.t,l,parseFloat(f),f.replace(i,""))||0,q=f!==g[l]?2>P?-g.ieOffsetX:-g.ieOffsetY:2>P?E-g.ieOffsetX:k-g.ieOffsetY,m[l]=(g[l]=Math.round(f-q*(0===P||2===P?1:H)))+"px";j+=", sizingMethod='auto expand')"}m.filter=-1!==e.indexOf("DXImageTransform.Microsoft.Matrix(")?e.replace(U,j):j+" "+e;if(0===a||1===a)if(1===d&&0===b&&0===n&&1===c&&(!h||-1!==j.indexOf("Dx=0, Dy=0")))(!J.test(e)||100===parseFloat(RegExp.$1))&&
--1===e.indexOf("gradient(")&&m.removeAttribute("filter")}},xa=function(){var a=this.data,g=a.perspective,b=a.scaleX,c=0,d=0,e=0,n=0,p=a.scaleY,f=0,i=0,l=0,j=0,h=a.scaleZ,z=0,E=0,q=0,r=g?-1/g:0,k=a.rotation,H=a.zOrigin,u=this.t.style,s,x,t,v,S;k&&(s=Math.cos(k),k=Math.sin(k),t=p*k,c=b*-k,p*=s,b*=s,n=t);if(k=a.rotationY)s=Math.cos(k),k=Math.sin(k),v=h*-k,S=r*-k,d=b*k,f=n*k,h*=s,r*=s,b*=s,n*=s,l=v,E=S;if(k=a.rotationX)s=Math.cos(k),k=Math.sin(k),x=c*s+d*k,t=p*s+f*k,v=j*s+h*k,S=q*s+r*k,d=c*-k+d*s,f=p*
--k+f*s,h=j*-k+h*s,r=q*-k+r*s,c=x,p=t,j=v,q=S;H&&(z-=H,e=d*z,i=f*z,z=h*z+H);e+=a.x;i+=a.y;z+=a.z;1E-6>z&&-1E-6<z&&(z=0);u[R]="matrix3d("+(1E-6>b&&-1E-6<b?0:b)+","+(1E-6>n&&-1E-6<n?0:n)+","+(1E-6>l&&-1E-6<l?0:l)+","+(1E-6>E&&-1E-6<E?0:E)+","+(1E-6>c&&-1E-6<c?0:c)+","+(1E-6>p&&-1E-6<p?0:p)+","+(1E-6>j&&-1E-6<j?0:j)+","+(1E-6>q&&-1E-6<q?0:q)+","+(1E-6>d&&-1E-6<d?0:d)+","+(1E-6>f&&-1E-6<f?0:f)+","+(1E-6>h&&-1E-6<h?0:h)+","+(1E-6>r&&-1E-6<r?0:r)+","+(1E-6>e&&-1E-6<e?0:e)+","+(1E-6>i&&-1E-6<i?0:i)+","+z+
-","+(g?1+-z/g:1)+")";if(m)return x=u.display,u.display="none",t=this.t.offsetWidth,u.display=x,t},ya=function(){var a=this.data;if(!a.rotation&&!a.skewX)this.t.style[R]="matrix("+a.scaleX+",0,0,"+a.scaleY+","+a.x+","+a.y+")";else{var g=a.rotation,b=g-a.skewX,c=Math.cos(g)*a.scaleX,g=Math.sin(g)*a.scaleX,d=Math.sin(b)*-a.scaleY,b=Math.cos(b)*a.scaleY;this.t.style[R]="matrix("+(1E-6>c&&-1E-6<c?0:c)+","+(1E-6>g&&-1E-6<g?0:g)+","+(1E-6>d&&-1E-6<d?0:d)+","+(1E-6>b&&-1E-6<b?0:b)+","+a.x+","+a.y+")"}};K("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,transformPerspective",
-null,function(a,b,c,e,m,p,f){if(e._transform)return m;var b=e._transform=ga(a,l,!0),i=a.style,h=ra.length,j,k,z,r;if("string"===typeof f.transform&&R)k=i[R],i[R]=f.transform,j=ga(a,null,!1),i[R]=k;else if("object"===typeof f){k=null!=f.rotation?f.rotation:null!=f.rotationZ?f.rotationZ:b.rotation*D;j={scaleX:V(null!=f.scaleX?f.scaleX:f.scale,b.scaleX),scaleY:V(null!=f.scaleY?f.scaleY:f.scale,b.scaleY),scaleZ:V(null!=f.scaleZ?f.scaleZ:f.scale,b.scaleZ),x:V(f.x,b.x),y:V(f.y,b.y),z:V(f.z,b.z),perspective:V(f.transformPerspective,
-b.perspective)};j.rotation=null!=f.shortRotation||null!=f.shortRotationZ?ja(f.shortRotation||f.shortRotationZ||0,b.rotation):"number"===typeof k?k*I:Z(k,b.rotation);X&&(j.rotationX=null!=f.shortRotationX?ja(f.shortRotationX,b.rotationX):"number"===typeof f.rotationX?f.rotationX*I:Z(f.rotationX,b.rotationX),j.rotationY=null!=f.shortRotationY?ja(f.shortRotationY,b.rotationY):"number"===typeof f.rotationY?f.rotationY*I:Z(f.rotationY,b.rotationY),1E-6>j.rotationX&&-1E-6<j.rotationX&&(j.rotationX=0),1E-6>
-j.rotationY&&-1E-6<j.rotationY&&(j.rotationY=0));j.skewX=null==f.skewX?b.skewX:"number"===typeof f.skewX?f.skewX*I:Z(f.skewX,b.skewX);j.skewY=null==f.skewY?b.skewY:"number"===typeof f.skewY?f.skewY*I:Z(f.skewY,b.skewY);if(k=j.skewY-b.skewY)j.skewX+=k,j.rotation+=k;1E-6>j.skewY&&-1E-6<j.skewY&&(j.skewY=0);1E-6>j.skewX&&-1E-6<j.skewX&&(j.skewX=0);1E-6>j.rotation&&-1E-6<j.rotation&&(j.rotation=0)}r=b.z||b.rotationX||b.rotationY||j.z||j.rotationX||j.rotationY||j.perspective;!r&&null!=j.scale&&(j.scaleZ=
-1);if(R){if(g){L=!0;if(""===i.zIndex&&(k=M(a,"zIndex",l),"auto"===k||""===k))i.zIndex=0;n&&(i.WebkitBackfaceVisibility=f.WebkitBackfaceVisibility||(r?"visible":"hidden"))}}else i.zoom=1;m=new O(a,"transform",0,0,m,2);m.setRatio=r&&X?xa:R?ya:wa;m.plugin=p;m.data=b;for(d.pop();-1<--h;)if(c=ra[h],z=j[c]-b[c],1E-6<z||-1E-6>z||null!=t[c])m=new O(b,c,b[c],z,m),m.xs0=0,m.plugin=p,e._overwriteProps.push(m.n);if((z=f.transformOrigin)||X&&r&&b.zOrigin)R?(z=(z||M(a,c,l,!1,"50% 50%"))+"",c=sa,m=new O(i,c,0,0,
-m,-1,"css_transformOrigin"),m.b=i[c],m.plugin=p,X?(k=b.zOrigin,z=z.split(" "),b.zOrigin=(2<z.length?parseFloat(z[2]):k)||0,m.xs0=m.e=i[c]=z[0]+" "+(z[1]||"50%")+" 0px",m=new O(b,"zOrigin",0,0,m,-1,m.n),m.b=k,m.xs0=m.e=b.zOrigin):m.xs0=m.e=i[c]=z):ia(z+"",b);return m.t===a?(m._next&&(m._next._prev=null),m._next):m},!0);K("boxShadow","0px 0px 0px 0px #999",null,!0,!0);K("borderRadius","0px",function(a,g,b,c,d){var g=this.format(g),c=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius",
-"borderBottomLeftRadius"],e=a.style,n,m,f,p,i,h,k,z,r,q,E,s;z=parseFloat(a.offsetWidth);r=parseFloat(a.offsetHeight);g=g.split(" ");for(n=0;n<c.length;n++)this.p.indexOf("border")&&(c[n]=aa(c[n])),p=f=M(a,c[n],l,!1,"0px"),-1!==p.indexOf(" ")&&(f=p.split(" "),p=f[0],f=f[1]),i=m=g[n],h=parseFloat(p),E=p.substr((h+"").length),(s="="===i.charAt(1))?(k=parseInt(i.charAt(0)+"1"),i=i.substr(2),k*=parseFloat(i),q=i.substr((k+"").length-(0>k?1:0))||""):(k=parseFloat(i),q=i.substr((k+"").length)),""===q&&(q=
-j[b]||E),q!==E&&(p=T(a,"borderLeft",h,E),h=T(a,"borderTop",h,E),"%"===q?(p=100*(p/z)+"%",f=100*(h/r)+"%"):"em"===q?(E=T(a,"borderLeft",1,"em"),p=p/E+"em",f=h/E+"em"):(p+="px",f=h+"px"),s&&(i=parseFloat(p)+k+q,m=parseFloat(f)+k+q)),d=ea(e,c[n],p+" "+f,i+" "+m,!1,"0px",d);return d},!0,!1,pa("0px 0px 0px 0px",!1,!0));K("backgroundPosition","0 0",function(a,g,b,c,d,n){var b=l||ba(a,null),b=this.format((b?z?b.getPropertyValue("background-position-x")+" "+b.getPropertyValue("background-position-y"):b.getPropertyValue("background-position"):
-a.currentStyle.backgroundPositionX+" "+a.currentStyle.backgroundPositionY)||"0 0"),g=this.format(g),e,m,f,p;if(-1!==b.indexOf("%")!==(-1!==g.indexOf("%"))){c=b.split(" ");e=g.split(" ");B.setAttribute("src",M(a,"backgroundImage").replace(w,""));for(m=2;-1<--m;)b=c[m],f=-1!==b.indexOf("%"),f!==(-1!==e[m].indexOf("%"))&&(p=0===m?a.offsetWidth-B.width:a.offsetHeight-B.height,c[m]=f?parseFloat(b)/100*p+"px":100*(parseFloat(b)/p)+"%");b=c.join(" ")}return this.parseComplex(a.style,b,g,d,n)},!1,!1,ia);
-K("backgroundSize","0 0",null,!1,!1,ia);K("perspective","0px",null,!0);K("perspectiveOrigin","50% 50%",null,!0);K("transformStyle","preserve-3d",null,!0);K("margin",null,u("marginTop,marginRight,marginBottom,marginLeft"));K("padding",null,u("paddingTop,paddingRight,paddingBottom,paddingLeft"));K("clip","rect(0px,0px,0px,0px)");K("textShadow","0px 0px 0px #999",null,!1,!0);K("autoRound",null,function(a,g,b,c,d){return d});K("border","0px solid #000",function(a,g,b,c,d,n){return this.parseComplex(a.style,
-this.format(M(a,"borderTopWidth",l,!1,"0px")+" "+M(a,"borderTopStyle",l,!1,"solid")+" "+M(a,"borderTopColor",l,!1,"#000")),this.format(g),d,n)},!1,!0,function(a){var g=a.split(" ");return g[0]+" "+(g[1]||"solid")+" "+(a.match(W)||["#000"])[0]});var za=function(a){var g=this.t,a=this.s+this.c*a,b;100===a&&(g.removeAttribute("filter"),b=!M(this.data,"filter"));b||(this.xn1&&(g.filter=g.filter||"alpha(opacity=100)"),g.filter=-1===g.filter.indexOf("opacity")?g.filter+(" alpha(opacity="+(a>>0)+")"):g.filter.replace(J,
-"opacity="+(a>>0)))};K("opacity,alpha,autoAlpha","1",function(a,g,b,c,d,n){var e=parseFloat(M(a,"opacity",l,!1,"1")),g=parseFloat(g),m=a.style,f;"autoAlpha"===b&&(f=M(a,"visibility",l),1===e&&"hidden"===f&&(e=0),d=new O(m,"visibility",0,0,d,-1,null,!1,0,0!==e?"visible":"hidden",0===g?"hidden":"visible"),d.xs0="visible",c._overwriteProps.push(d.n));E?d=new O(m,"opacity",e,g-e,d):(d=new O(m,"opacity",100*e,100*(g-e),d),d.xn1="autoAlpha"===b?1:0,m.zoom=1,d.type=2,d.b="alpha(opacity="+d.s+")",d.e="alpha(opacity="+
-(d.s+d.c)+")",d.data=a,d.plugin=n,d.setRatio=za);return d});var Aa=function(a){if(1===a||0===a){this.t.className=1===a?this.e:this.b;for(var a=this.data,g=this.t.style,b=g.removeProperty?"removeProperty":"removeAttribute";a;){if(a.v)g[a.p]=a.v;else g[b](a.p.replace(G,"-$1").toLowerCase());a=a._next}}else this.t.className!==this.b&&(this.t.className=this.b)};K("className",null,function(a,g,b,c,d,e,n){var m=a.className,f=a.style.cssText,d=c._classNamePT=new O(a,b,0,0,d,2);d.setRatio=Aa;d.b=m;d.e="="!==
-g.charAt(1)?g:"+"===g.charAt(0)?m+" "+g.substr(2):m.split(g.substr(2)).join("");c._tween._duration&&(g=da(a,l,!0),a.className=d.e,n=na(a,g,da(a),n),a.className=m,d.data=n.firstMPT,a.style.cssText=f,d=d.xfirst=c.parse(a,n.difs,d,e));return d});b=["bezier","throwProps","physicsProps","physics2D"];for(P=b.length;P--;)C(b[P]);b=s.prototype;b._firstPT=null;b._onInitTween=function(a,g,b){if(!a.nodeType)return!1;this._target=a;this._tween=b;N=g.autoRound;f=!1;j=g.suffixMap||s.suffixMap;l=ba(a,"");d=this._overwriteProps;
-var b=a.style,c,n,e;if(L&&""===b.zIndex&&(c=M(a,"zIndex",l),"auto"===c||""===c))b.zIndex=0;"string"===typeof g&&(n=b.cssText,c=da(a,l),b.cssText=n+";"+g,c=na(a,c,da(a)).difs,!E&&Y.test(g)&&(c.opacity=parseFloat(RegExp.$1)),g=c,b.cssText=n);this._firstPT=a=this.parse(a,g,null);if(f){for(;a;){b=a._next;for(g=n;g&&g.pr>a.pr;)g=g._next;(a._prev=g?g._prev:e)?a._prev._next=a:n=a;(a._next=g)?g._prev=a:e=a;a=b}this._firstPT=n}return!0};b.parse=function(a,g,b,c){var d=a.style,n,e,m,f,p,i,h,k;for(n in g){p=
-g[n];if(e=v[n])b=e.parse(a,p,n,this,b,c,g);else if(e=M(a,n,l)+"",h="string"===typeof p,"color"===n||"fill"===n||"stroke"===n||-1!==n.indexOf("Color")||h&&!p.indexOf("rgb"))h||(p=ka(p),p=(3<p.length?"rgba(":"rgb(")+p.join(",")+")"),b=ea(d,n,e,p,!0,"transparent",b,0,c);else if(h&&(-1!==p.indexOf(" ")||-1!==p.indexOf(",")))b=ea(d,n,e,p,!0,null,b,0,c);else{m=parseFloat(e);i=e.substr((m+"").length);if(""===e||"auto"===e)if("width"===n||"height"===n){m=a;k=n;f=l;i=parseFloat("width"===k?m.offsetWidth:m.offsetHeight);
-k=ta[k];var z=k.length;for(f=f||ba(m,null);-1<--z;)i-=parseFloat(M(m,"padding"+k[z],f,!0))||0,i-=parseFloat(M(m,"border"+k[z]+"Width",f,!0))||0;m=i;i="px"}else m="opacity"!==n?0:1,i="";(k=h&&"="===p.charAt(1))?(f=parseInt(p.charAt(0)+"1"),p=p.substr(2),f*=parseFloat(p),h=p.substr((f+"").length-(0>f?1:0))||""):(f=parseFloat(p),h=h?p.substr((f+"").length)||"":"");""===h&&(h=j[n]||i);p=f||0===f?(k?f+m:f)+h:g[n];if(i!==h&&""!==h&&(f||0===f))if(m||0===m)if(m=T(a,n,m,i),"%"===h?(m/=T(a,n,100,"%")/100,100<
-m&&(m=100)):"em"===h?m/=T(a,n,1,"em"):(f=T(a,n,f,h),h="px"),k&&(f||0===f))p=f+m+h;k&&(f+=m);(m||0===m)&&(f||0===f)?(b=new O(d,n,m,f-m,b,0,"css_"+n,!1!==N&&("px"===h||"zIndex"===n),0,e,p),b.xs0=h):(b=new O(d,n,f||m||0,0,b,-1,"css_"+n,!1,0,e,p),b.xs0="display"===n&&"none"===p?e:p)}c&&(b&&!b.plugin)&&(b.plugin=c)}return b};b.setRatio=function(a){var g=this._firstPT,b,c;if(1===a&&(this._tween._time===this._tween._duration||0===this._tween._time))for(;g;)2!==g.type?g.t[g.p]=g.e:g.setRatio(a),g=g._next;
-else if(a||!(this._tween._time===this._tween._duration||0===this._tween._time)||-1E-6===this._tween._rawPrevTime)for(;g;){b=g.c*a+g.s;g.r?b=0<b?b+0.5>>0:b-0.5>>0:1E-6>b&&-1E-6<b&&(b=0);if(g.type)if(1===g.type)if(c=g.l,2===c)g.t[g.p]=g.xs0+b+g.xs1+g.xn1+g.xs2;else if(3===c)g.t[g.p]=g.xs0+b+g.xs1+g.xn1+g.xs2+g.xn2+g.xs3;else if(4===c)g.t[g.p]=g.xs0+b+g.xs1+g.xn1+g.xs2+g.xn2+g.xs3+g.xn3+g.xs4;else if(5===c)g.t[g.p]=g.xs0+b+g.xs1+g.xn1+g.xs2+g.xn2+g.xs3+g.xn3+g.xs4+g.xn4+g.xs5;else{b=g.xs0+b+g.xs1;for(c=
-1;c<g.l;c++)b+=g["xn"+c]+g["xs"+(c+1)];g.t[g.p]=b}else-1===g.type?g.t[g.p]=g.xs0:g.setRatio&&g.setRatio(a);else g.t[g.p]=b+g.xs0;g=g._next}else for(;g;)2!==g.type?g.t[g.p]=g.b:g.setRatio(a),g=g._next};b._linkCSSP=function(a,g,b){a&&(g&&(g._prev=a),a._next&&(a._next._prev=a._prev),b&&(b._next=a),a._prev?a._prev._next=a._next:this._firstPT===a&&(this._firstPT=a._next),a._next=g,a._prev=b);return a};b._kill=function(a){var g=a,b=!1,c,d;if(a.css_autoAlpha||a.css_alpha){g={};for(d in a)g[d]=a[d];g.css_opacity=
-1;g.css_autoAlpha&&(g.css_visibility=1)}if(a.css_className&&(c=this._classNamePT))(a=c.xfirst)&&a._prev?this._linkCSSP(a._prev,c._next,a._prev._prev):a===this._firstPT&&(this._firstPT=null),c._next&&this._linkCSSP(c._next,c._next._next,a._prev),this._target._gsOverwrittenClassNamePT=this._linkCSSP(c,this._target._gsOverwrittenClassNamePT),this._classNamePT=null,b=!0;return q.prototype._kill.call(this,g)||b};q.activate([s]);return s},!0);_gsDefine("plugins.RoundPropsPlugin",["plugins.TweenPlugin"],
-function(q){var s=function(){q.call(this,"roundProps",-1);this._overwriteProps.length=0},f=s.prototype=new q("roundProps",-1);f.constructor=s;s.API=2;f._onInitTween=function(f,l,d){this._tween=d;return!0};f._onInitAllProps=function(){for(var f=this._tween,l=f.vars.roundProps instanceof Array?f.vars.roundProps:f.vars.roundProps.split(","),d=l.length,q={},b=f._propLookup.roundProps,a,s,c;-1<--d;)q[l[d]]=1;for(d=l.length;-1<--d;){a=l[d];for(s=f._firstPT;s;)c=s._next,s.pg?s.t._roundProps(q,!0):s.n===
-a&&(this._add(s.t,a,s.s,s.c),c&&(c._prev=s._prev),s._prev?s._prev._next=c:f._firstPT===s&&(f._firstPT=c),s._next=s._prev=null,f._propLookup[a]=b),s=c}return!1};f._add=function(f,l,d,q){this._addTween(f,l,d,d+q,l,!0);this._overwriteProps.push(l)};q.activate([s]);return s},!0);_gsDefine("easing.Back",["easing.Ease"],function(q){var s=window.com.greensock._class,f=function(a,b){var c=s("easing."+a,function(){},!0),d=c.prototype=new q;d.constructor=c;d.getRatio=b;return c},j=function(a,b){var c=s("easing."+
-a,function(a){this._p1=a||0===a?a:1.70158;this._p2=1.525*this._p1},!0),d=c.prototype=new q;d.constructor=c;d.getRatio=b;d.config=function(a){return new c(a)};return c},l=j("BackOut",function(a){return(a-=1)*a*((this._p1+1)*a+this._p1)+1}),d=j("BackIn",function(a){return a*a*((this._p1+1)*a-this._p1)}),j=j("BackInOut",function(a){return 1>(a*=2)?0.5*a*a*((this._p2+1)*a-this._p2):0.5*((a-=2)*a*((this._p2+1)*a+this._p2)+2)}),v=f("BounceOut",function(a){return a<1/2.75?7.5625*a*a:a<2/2.75?7.5625*(a-=
-1.5/2.75)*a+0.75:a<2.5/2.75?7.5625*(a-=2.25/2.75)*a+0.9375:7.5625*(a-=2.625/2.75)*a+0.984375}),b=f("BounceIn",function(a){return(a=1-a)<1/2.75?1-7.5625*a*a:a<2/2.75?1-(7.5625*(a-=1.5/2.75)*a+0.75):a<2.5/2.75?1-(7.5625*(a-=2.25/2.75)*a+0.9375):1-(7.5625*(a-=2.625/2.75)*a+0.984375)}),a=f("BounceInOut",function(a){var b=0.5>a,a=b?1-2*a:2*a-1,a=a<1/2.75?7.5625*a*a:a<2/2.75?7.5625*(a-=1.5/2.75)*a+0.75:a<2.5/2.75?7.5625*(a-=2.25/2.75)*a+0.9375:7.5625*(a-=2.625/2.75)*a+0.984375;return b?0.5*(1-a):0.5*a+
-0.5}),F=f("CircOut",function(a){return Math.sqrt(1-(a-=1)*a)}),c=f("CircIn",function(a){return-(Math.sqrt(1-a*a)-1)}),e=f("CircInOut",function(a){return 1>(a*=2)?-0.5*(Math.sqrt(1-a*a)-1):0.5*(Math.sqrt(1-(a-=2)*a)+1)}),i=2*Math.PI,J=function(a,b,c){var d=s("easing."+a,function(a,b){this._p1=a||1;this._p2=b||c;this._p3=this._p2/i*(Math.asin(1/this._p1)||0)},!0),a=d.prototype=new q;a.constructor=d;a.getRatio=b;a.config=function(a,b){return new d(a,b)};return d},Y=J("ElasticOut",function(a){return this._p1*
-Math.pow(2,-10*a)*Math.sin((a-this._p3)*i/this._p2)+1},0.3),G=J("ElasticIn",function(a){return-(this._p1*Math.pow(2,10*(a-=1))*Math.sin((a-this._p3)*i/this._p2))},0.3),J=J("ElasticInOut",function(a){return 1>(a*=2)?-0.5*this._p1*Math.pow(2,10*(a-=1))*Math.sin((a-this._p3)*i/this._p2):0.5*this._p1*Math.pow(2,-10*(a-=1))*Math.sin((a-this._p3)*i/this._p2)+1},0.45),h=f("ExpoOut",function(a){return 1-Math.pow(2,-10*a)}),w=f("ExpoIn",function(a){return Math.pow(2,10*(a-1))-0.001}),r=f("ExpoInOut",function(a){return 1>
-(a*=2)?0.5*Math.pow(2,10*(a-1)):0.5*(2-Math.pow(2,-10*(a-1)))}),A=Math.PI/2,k=f("SineOut",function(a){return Math.sin(a*A)}),U=f("SineIn",function(a){return-Math.cos(a*A)+1}),f=f("SineInOut",function(a){return-0.5*(Math.cos(Math.PI*a)-1)}),I=s("easing.SlowMo",function(a,b,c){null==a?a=0.7:1<a&&(a=1);this._p=1!=a?b||0===b?b:0.7:0;this._p1=(1-a)/2;this._p2=a;this._p3=this._p1+this._p2;this._calcEnd=!0===c},!0),D=I.prototype=new q;D.constructor=I;D.getRatio=function(a){var b=a+(0.5-a)*this._p;return a<
-this._p1?this._calcEnd?1-(a=1-a/this._p1)*a:b-(a=1-a/this._p1)*a*a*a*b:a>this._p3?this._calcEnd?1-(a=(a-this._p3)/this._p1)*a:b+(a-b)*(a=(a-this._p3)/this._p1)*a*a*a:this._calcEnd?1:b};I.ease=new I(0.7,0.7);D.config=I.config=function(a,b,c){return new I(a,b,c)};var t=s("easing.SteppedEase",function(a){a=a||1;this._p1=1/a;this._p2=a+1},!0),D=t.prototype=new q;D.constructor=t;D.getRatio=function(a){0>a?a=0:1<=a&&(a=0.999999999);return(this._p2*a>>0)*this._p1};D.config=t.config=function(a){return new t(a)};
-s("easing.Bounce",{easeOut:new v,easeIn:new b,easeInOut:new a},!0);s("easing.Circ",{easeOut:new F,easeIn:new c,easeInOut:new e},!0);s("easing.Elastic",{easeOut:new Y,easeIn:new G,easeInOut:new J},!0);s("easing.Expo",{easeOut:new h,easeIn:new w,easeInOut:new r},!0);s("easing.Sine",{easeOut:new k,easeIn:new U,easeInOut:new f},!0);return{easeOut:new l,easeIn:new d,easeInOut:new j}},!0)});
-(function(q){var s=function(a){var a=a.split("."),b=q,c;for(c=0;c<a.length;c++)b[a[c]]=b=b[a[c]]||{};return b},f=s("com.greensock"),j,l,d,v,b,a={},F=function(g,b,c,d){this.sc=a[g]?a[g].sc:[];a[g]=this;this.gsClass=null;this.def=c;var e=b||[],f=[];this.check=function(b){for(var m=e.length,i=0,h;-1<--m;)(h=a[e[m]]||new F(e[m])).gsClass?f[m]=h.gsClass:(i++,b&&h.sc.push(this));if(0===i&&c){var b=("com.greensock."+g).split("."),m=b.pop(),j=s(b.join("."))[m]=this.gsClass=c.apply(c,f);d&&((q.GreenSockGlobals||
-q)[m]=j,"function"===typeof define&&define.amd?define((q.GreenSockAMDPath?q.GreenSockAMDPath+"/":"")+g.split(".").join("/"),[],function(){return j}):"undefined"!==typeof module&&module.exports&&(module.exports=j));for(m=0;m<this.sc.length;m++)this.sc[m].check(!1)}};this.check(!0)},c=f._class=function(a,b,c){b=b||function(){};new F(a,[],function(){return b},c);return b};q._gsDefine=function(a,b,c,d){return new F(a,b,c,d)};var e=[0,0,1,1],i=[],J=c("easing.Ease",function(a,b,c,d){this._func=a;this._type=
-c||0;this._power=d||0;this._params=b?e.concat(b):e},!0);d=J.prototype;d._calcEnd=!1;d.getRatio=function(a){if(this._func)return this._params[0]=a,this._func.apply(null,this._params);var b=this._type,c=this._power,d=1===b?1-a:2===b?a:0.5>a?2*a:2*(1-a);1===c?d*=d:2===c?d*=d*d:3===c?d*=d*d*d:4===c&&(d*=d*d*d*d);return 1===b?1-d:2===b?d:0.5>a?d/2:1-d/2};j=["Linear","Quad","Cubic","Quart","Quint"];for(l=j.length;-1<--l;)d=c("easing."+j[l],null,!0),v=c("easing.Power"+l,null,!0),d.easeOut=v.easeOut=new J(null,
-null,1,l),d.easeIn=v.easeIn=new J(null,null,2,l),d.easeInOut=v.easeInOut=new J(null,null,3,l);c("easing.Strong",f.easing.Power4,!0);f.easing.Linear.easeNone=f.easing.Linear.easeIn;var Y=c("events.EventDispatcher",function(a){this._listeners={};this._eventTarget=a||this});d=Y.prototype;d.addEventListener=function(a,b,c,d,e){var e=e||0,f=this._listeners[a],i=0,h;null==f&&(this._listeners[a]=f=[]);for(h=f.length;-1<--h;)a=f[h],a.c===b?f.splice(h,1):0===i&&a.pr<e&&(i=h+1);f.splice(i,0,{c:b,s:c,up:d,pr:e})};
-d.removeEventListener=function(a,b){var c=this._listeners[a],d;if(c)for(d=c.length;-1<--d;)if(c[d].c===b){c.splice(d,1);break}};d.dispatchEvent=function(a){var b=this._listeners[a];if(b)for(var c=b.length,d=this._eventTarget,e;-1<--c;)e=b[c],e.up?e.c.call(e.s||d,{type:a,target:d}):e.c.call(e.s||d)};var G=q.requestAnimationFrame,h=q.cancelAnimationFrame,w=Date.now||function(){return(new Date).getTime()};j=["ms","moz","webkit","o"];for(l=j.length;-1<--l&&!G;)G=q[j[l]+"RequestAnimationFrame"],h=q[j[l]+
-"CancelAnimationFrame"]||q[j[l]+"CancelRequestAnimationFrame"];c("Ticker",function(a,b){var c=this,d=w(),e=!1!==b&&G,f,i,j,k,l,p=function(){null!=j&&(!e||!h?q.clearTimeout(j):h(j),j=null)},r=function(a){c.time=(w()-d)/1E3;if(!f||c.time>=l||!0===a)c.frame++,l=c.time>l?c.time+k-(c.time-l):c.time+k-0.001,l<c.time+0.001&&(l=c.time+0.001),c.dispatchEvent("tick");!0!==a&&(j=i(r))};Y.call(c);this.time=this.frame=0;this.tick=function(){r(!0)};this.fps=function(a){if(!arguments.length)return f;f=a;k=1/(f||
-60);l=this.time+k;i=0===f?function(){}:!e||!G?function(a){return q.setTimeout(a,1E3*(l-c.time)+1>>0||1)}:G;p();j=i(r)};this.useRAF=function(a){if(!arguments.length)return e;p();e=a;c.fps(f)};c.fps(a);q.setTimeout(function(){e&&!j&&c.useRAF(!1)},1E3)});d=f.Ticker.prototype=new f.events.EventDispatcher;d.constructor=f.Ticker;var r=c("core.Animation",function(a,c){this.vars=c||{};this._duration=this._totalDuration=a||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(B){b||(A.tick(),b=!0);var d=this.vars.useFrames?x:B;d.insert(this,d._time);this.vars.paused&&this.paused(!0)}}),A=r.ticker=new f.Ticker;d=r.prototype;d._dirty=d._gc=d._initted=d._paused=!1;d._totalTime=d._time=0;d._rawPrevTime=-1;d._next=d._last=d._onUpdate=d._timeline=d.timeline=null;d._paused=!1;d.play=function(a,b){arguments.length&&this.seek(a,b);this.reversed(!1);return this.paused(!1)};d.pause=function(a,b){arguments.length&&
-this.seek(a,b);return this.paused(!0)};d.resume=function(a,b){arguments.length&&this.seek(a,b);return this.paused(!1)};d.seek=function(a,b){return this.totalTime(Number(a),!1!=b)};d.restart=function(a,b){this.reversed(!1);this.paused(!1);return this.totalTime(a?-this._delay:0,!1!==b)};d.reverse=function(a,b){arguments.length&&this.seek(a||this.totalDuration(),b);this.reversed(!0);return this.paused(!1)};d.render=function(){};d.invalidate=function(){return this};d._enabled=function(a,b){this._gc=!a;
-this._active=a&&!this._paused&&0<this._totalTime&&this._totalTime<this._totalDuration;!0!==b&&(a&&null==this.timeline?this._timeline.insert(this,this._startTime-this._delay):!a&&null!=this.timeline&&this._timeline._remove(this,!0));return!1};d._kill=function(){return this._enabled(!1,!1)};d.kill=function(a,b){this._kill(a,b);return this};d._uncache=function(a){for(a=a?this:this.timeline;a;)a._dirty=!0,a=a.timeline;return this};d.eventCallback=function(a,b,c,d){if(null==a)return null;if("on"===a.substr(0,
-2)){if(1===arguments.length)return this.vars[a];if(null==b)delete this.vars[a];else if(this.vars[a]=b,this.vars[a+"Params"]=c,this.vars[a+"Scope"]=d,c)for(var e=c.length;-1<--e;)"{self}"===c[e]&&(c=this.vars[a+"Params"]=c.concat(),c[e]=this);"onUpdate"===a&&(this._onUpdate=b)}return this};d.delay=function(a){if(!arguments.length)return this._delay;this._timeline.smoothChildTiming&&this.startTime(this._startTime+a-this._delay);this._delay=a;return this};d.duration=function(a){if(!arguments.length)return this._dirty=
-!1,this._duration;this._duration=this._totalDuration=a;this._uncache(!0);this._timeline.smoothChildTiming&&0<this._time&&this._time<this._duration&&0!==a&&this.totalTime(this._totalTime*(a/this._duration),!0);return this};d.totalDuration=function(a){this._dirty=!1;return!arguments.length?this._totalDuration:this.duration(a)};d.time=function(a,b){if(!arguments.length)return this._time;this._dirty&&this.totalDuration();a>this._duration&&(a=this._duration);return this.totalTime(a,b)};d.totalTime=function(a,
+(window._gsQueue||(window._gsQueue=[])).push(function(){_gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(s,m,j){var p=function(f,d,a){j.call(this,f,d,a);this._cycle=0;this._yoyo=!0===this.vars.yoyo;this._repeat=this.vars.repeat||0;this._repeatDelay=this.vars.repeatDelay||0;this._dirty=!0},k=p.prototype=j.to({},0.1,{}),b=[];p.version=1.66;k.constructor=p;k.kill()._gc=!1;p.killTweensOf=p.killDelayedCallsTo=j.killTweensOf;p.getTweensOf=j.getTweensOf;p.ticker=j.ticker;
+k.invalidate=function(){this._yoyo=!0===this.vars.yoyo;this._repeat=this.vars.repeat||0;this._repeatDelay=this.vars.repeatDelay||0;this._uncache(!0);return j.prototype.invalidate.call(this)};k.updateTo=function(f,d){var a=this.ratio,g;d&&(null!=this.timeline&&this._startTime<this._timeline._time)&&(this._startTime=this._timeline._time,this._uncache(!1),this._gc?this._enabled(!0,!1):this._timeline.insert(this,this._startTime-this._delay));for(g in f)this.vars[g]=f[g];if(this._initted)if(d)this._initted=
+!1;else if(this._notifyPluginsOfEnabled&&this._firstPT&&j._onPluginEvent("_onDisable",this),0.998<this._time/this._duration)a=this._time,this.render(0,!0,!1),this._initted=!1,this.render(a,!0,!1);else if(0<this._time){this._initted=!1;this._init();a=1/(1-a);g=this._firstPT;for(var r;g;)r=g.s+g.c,g.c*=a,g.s=r-g.c,g=g._next}return this};k.render=function(f,d,a){var g=!this._dirty?this._totalDuration:this.totalDuration(),r=this._time,c=this._totalTime,t=this._cycle,v,D;if(f>=g){if(this._totalTime=g,
+this._cycle=this._repeat,this._yoyo&&0!==(this._cycle&1)?(this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0):(this._time=this._duration,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(v=!0,D="onComplete"),0===this._duration){if(0===f||0>this._rawPrevTime)this._rawPrevTime!==f&&(a=!0);this._rawPrevTime=f}}else if(0>=f){this._totalTime=this._time=this._cycle=0;this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0;if(0!==c||0===this._duration&&0<this._rawPrevTime)D=
+"onReverseComplete",v=this._reversed;0>f?(this._active=!1,0===this._duration&&(0<=this._rawPrevTime&&(a=!0),this._rawPrevTime=f)):this._initted||(a=!0)}else if(this._totalTime=this._time=f,0!==this._repeat&&(f=this._duration+this._repeatDelay,this._cycle=this._totalTime/f>>0,0!==this._cycle&&this._cycle===this._totalTime/f&&this._cycle--,this._time=this._totalTime-this._cycle*f,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){f=this._time/this._duration;var g=this._easeType,u=this._easePower;if(1===g||3===g&&0.5<=f)f=1-f;3===g&&(f*=2);1===u?f*=f:2===u?f*=f*f:3===u?f*=f*f*f:4===u&&(f*=f*f*f*f);this.ratio=1===g?1-f:2===g?f:0.5>this._time/this._duration?f/2:1-f/2}else this.ratio=this._ease.getRatio(this._time/this._duration);if(r===this._time&&!a)c!==this._totalTime&&this._onUpdate&&(d||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||b));else{this._initted||
+(this._init(),!v&&this._time&&(this.ratio=this._ease.getRatio(this._time/this._duration)));!this._active&&!this._paused&&(this._active=!0);if(0===c&&this.vars.onStart&&(0!==this._totalTime||0===this._duration))d||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||b);for(a=this._firstPT;a;){if(a.f)a.t[a.p](a.c*this.ratio+a.s);else a.t[a.p]=a.c*this.ratio+a.s;a=a._next}this._onUpdate&&(d||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||b));this._cycle!==
+t&&(d||this._gc||this.vars.onRepeat&&this.vars.onRepeat.apply(this.vars.onRepeatScope||this,this.vars.onRepeatParams||b));D&&!this._gc&&(v&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),d||this.vars[D]&&this.vars[D].apply(this.vars[D+"Scope"]||this,this.vars[D+"Params"]||b))}};p.to=function(a,d,y){return new p(a,d,y)};p.from=function(a,d,y){y.runBackwards=!0;!1!==y.immediateRender&&(y.immediateRender=!0);return new p(a,d,y)};p.fromTo=function(a,d,y,g){g.startAt=y;y.immediateRender&&
+(g.immediateRender=!0);return new p(a,d,g)};p.staggerTo=p.allTo=function(a,d,y,g,r,c,b){g=g||0;var t=[],D=a.length,u=y.delay||0,C,q,j;for(q=0;q<D;q++){C={};for(j in y)C[j]=y[j];C.delay=u;q===D-1&&r&&(C.onComplete=function(){y.onComplete&&y.onComplete.apply(y.onCompleteScope,y.onCompleteParams);r.apply(b,c)});t[q]=new p(a[q],d,C);u+=g}return t};p.staggerFrom=p.allFrom=function(a,d,y,g,r,c,b){y.runBackwards=!0;!1!==y.immediateRender&&(y.immediateRender=!0);return p.staggerTo(a,d,y,g,r,c,b)};p.staggerFromTo=
+p.allFromTo=function(a,d,y,g,c,b,t,v){g.startAt=y;y.immediateRender&&(g.immediateRender=!0);return p.staggerTo(a,d,g,c,b,t,v)};p.delayedCall=function(a,d,c,g,r){return new p(d,0,{delay:a,onComplete:d,onCompleteParams:c,onCompleteScope:g,onReverseComplete:d,onReverseCompleteParams:c,onReverseCompleteScope:g,immediateRender:!1,useFrames:r,overwrite:0})};p.set=function(a,d){return new p(a,0,d)};p.isTweening=function(a){a=j.getTweensOf(a);for(var d=a.length,c;-1<--d;)if((c=a[d])._active||c._startTime===
+c.timeline._time&&c.timeline._active)return!0;return!1};var t=function(a,d){for(var c=[],g=0,r=a._first;r;)r instanceof j?c[g++]=r:(d&&(c[g++]=r),c=c.concat(t(r,d)),g=c.length),r=r._next;return c},c=p.getAllTweens=function(a){return t(s._rootTimeline,a).concat(t(s._rootFramesTimeline,a))};p.killAll=function(a,d,y,g){null==d&&(d=!0);null==y&&(y=!0);var r=c(!1!=g),b=r.length;g=d&&y&&g;var t,v,D;for(D=0;D<b;D++)if(v=r[D],g||v instanceof m||(t=v.target===v.vars.onComplete)&&y||d&&!t)a?v.totalTime(v.totalDuration()):
+v._enabled(!1,!1)};p.killChildTweensOf=function(a,d){if(null!=a)if(a.jquery)a.each(function(a,g){p.killChildTweensOf(g,d)});else{var c=j._tweenLookup,g=[],r,b;for(b in c)for(r=c[b].target.parentNode;r;)r===a&&(g=g.concat(c[b].tweens)),r=r.parentNode;r=g.length;for(c=0;c<r;c++)d&&g[c].totalTime(g[c].totalDuration()),g[c]._enabled(!1,!1)}};p.pauseAll=function(f,d,c){a(!0,f,d,c)};p.resumeAll=function(f,d,c){a(!1,f,d,c)};var a=function(a,d,b,g){void 0==d&&(d=!0);void 0==b&&(b=!0);var r=c(g);g=d&&b&&g;
+for(var t=r.length,j,v;-1<--t;)v=r[t],(g||v instanceof m||(j=v.target===v.vars.onComplete)&&b||d&&!j)&&v.paused(a)};k.progress=function(a){return!arguments.length?this._time/this.duration():this.totalTime(this.duration()*(this._yoyo&&0!==(this._cycle&1)?1-a:a)+this._cycle*(this._duration+this._repeatDelay),!1)};k.totalProgress=function(a){return!arguments.length?this._totalTime/this.totalDuration():this.totalTime(this.totalDuration()*a,!1)};k.time=function(a,d){if(!arguments.length)return this._time;
+this._dirty&&this.totalDuration();a>this._duration&&(a=this._duration);this._yoyo&&0!==(this._cycle&1)?a=this._duration-a+this._cycle*(this._duration+this._repeatDelay):0!=this._repeat&&(a+=this._cycle*(this._duration+this._repeatDelay));return this.totalTime(a,d)};k.totalDuration=function(a){return!arguments.length?(this._dirty&&(this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration):-1===this._repeat?
+this:this.duration((a-this._repeat*this._repeatDelay)/(this._repeat+1))};k.repeat=function(a){if(!arguments.length)return this._repeat;this._repeat=a;return this._uncache(!0)};k.repeatDelay=function(a){if(!arguments.length)return this._repeatDelay;this._repeatDelay=a;return this._uncache(!0)};k.yoyo=function(a){if(!arguments.length)return this._yoyo;this._yoyo=a;return this};return p},!0);_gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(s,m,j){var p=function(a){m.call(this,
+a);this._labels={};this.autoRemoveChildren=!0===this.vars.autoRemoveChildren;this.smoothChildTiming=!0===this.vars.smoothChildTiming;this._sortChildren=!0;this._onUpdate=this.vars.onUpdate;a=k.length;for(var f,d;-1<--a;)if(d=this.vars[k[a]])for(f=d.length;-1<--f;)"{self}"===d[f]&&(d=this.vars[k[a]]=d.concat(),d[f]=this);this.vars.tweens instanceof Array&&this.insertMultiple(this.vars.tweens,0,this.vars.align||"normal",this.vars.stagger||0)},k=["onStartParams","onUpdateParams","onCompleteParams","onReverseCompleteParams",
+"onRepeatParams"],b=[],t=function(a){var f={},d;for(d in a)f[d]=a[d];return f},c=p.prototype=new m;p.version=1.641;c.constructor=p;c.kill()._gc=!1;c.to=function(a,f,d,c,g){return this.insert(new j(a,f,d),this._parseTimeOrLabel(g,c,!0))};c.from=function(a,f,d,c,g){return this.insert(j.from(a,f,d),this._parseTimeOrLabel(g,c,!0))};c.fromTo=function(a,f,d,c,g,r){return this.insert(j.fromTo(a,f,d,c),this._parseTimeOrLabel(r,g,!0))};c.staggerTo=function(a,f,d,c,g,r,b,k,v){b=new p({onComplete:b,onCompleteParams:k,
+onCompleteScope:v});c=c||0;for(k=0;k<a.length;k++)null!=d.startAt&&(d.startAt=t(d.startAt)),b.insert(new j(a[k],f,t(d)),k*c);return this.insert(b,this._parseTimeOrLabel(r,g,!0))};c.staggerFrom=function(a,f,d,c,g,r,b,t,v){null==d.immediateRender&&(d.immediateRender=!0);d.runBackwards=!0;return this.staggerTo(a,f,d,c,g,r,b,t,v)};c.staggerFromTo=function(a,f,d,c,g,r,b,t,v,D){c.startAt=d;d.immediateRender&&(c.immediateRender=!0);return this.staggerTo(a,f,c,g,r,b,t,v,D)};c.call=function(a,f,d,c,g){return this.insert(j.delayedCall(0,
+a,f,d),this._parseTimeOrLabel(g,c,!0))};c.set=function(a,f,d,c){f.immediateRender=!1;return this.insert(new j(a,0,f),this._parseTimeOrLabel(c,d,!0))};p.exportRoot=function(a,c){a=a||{};null==a.smoothChildTiming&&(a.smoothChildTiming=!0);var d=new p(a),b=d._timeline;null==c&&(c=!0);b._remove(d,!0);d._startTime=0;d._rawPrevTime=d._time=d._totalTime=b._time;for(var g=b._first,r;g;)r=g._next,(!c||!(g instanceof j&&g.target===g.vars.onComplete))&&d.insert(g,g._startTime-g._delay),g=r;b.insert(d,0);return d};
+c.insert=function(a,c){if(!(a instanceof s)){if(a instanceof Array)return this.insertMultiple(a,c);if("string"===typeof a)return this.addLabel(a,this._parseTimeOrLabel(c||0,0,!0));if("function"===typeof a)a=j.delayedCall(0,a);else throw"ERROR: Cannot insert() "+a+" into the TimelineLite/Max because it is neither a tween, timeline, function, nor a String.";}m.prototype.insert.call(this,a,this._parseTimeOrLabel(c||0,0,!0));if(this._gc&&!this._paused&&this._time===this._duration&&this._time<this.duration())for(var d=
+this;d._gc&&d._timeline;)d._timeline.smoothChildTiming?d.totalTime(d._totalTime,!0):d._enabled(!0,!1),d=d._timeline;return this};c.remove=function(a){if(a instanceof s)return this._remove(a,!1);if(a instanceof Array){for(var c=a.length;-1<--c;)this.remove(a[c]);return this}return"string"===typeof a?this.removeLabel(a):this.kill(null,a)};c.append=function(a,c){return this.insert(a,this._parseTimeOrLabel(null,c,!0))};c.insertMultiple=function(a,c,d,b){d=d||"normal";b=b||0;var g,r=this._parseTimeOrLabel(c||
+0,0,!0),t=a.length;for(c=0;c<t;c++){if((g=a[c])instanceof Array)g=new p({tweens:g});this.insert(g,r);"string"===typeof g||"function"===typeof g||("sequence"===d?r=g._startTime+g.totalDuration()/g._timeScale:"start"===d&&(g._startTime-=g.delay()));r+=b}return this._uncache(!0)};c.appendMultiple=function(a,c,d,b){return this.insertMultiple(a,this._parseTimeOrLabel(null,c,!0),d,b)};c.addLabel=function(a,c){this._labels[a]=c;return this};c.removeLabel=function(a){delete this._labels[a];return this};c.getLabelTime=
+function(a){return null!=this._labels[a]?this._labels[a]:-1};c._parseTimeOrLabel=function(a,c,d){if("string"===typeof c)return this._parseTimeOrLabel(c,d&&"number"===typeof a&&null==this._labels[c]?a-this.duration():0,d);c=c||0;return null==a?this.duration()+c:"string"===typeof a&&isNaN(a)?null==this._labels[a]?d?this._labels[a]=this.duration()+c:c:this._labels[a]+c:Number(a)+c};c.seek=function(a,c){return this.totalTime(this._parseTimeOrLabel(a),!1!=c)};c.stop=function(){return this.paused(!0)};
+c.gotoAndPlay=function(a,c){return m.prototype.play.call(this,a,c)};c.gotoAndStop=function(a,c){return this.pause(a,c)};c.render=function(a,c,d){this._gc&&this._enabled(!0,!1);this._active=!this._paused;var t=!this._dirty?this._totalDuration:this.totalDuration(),g=this._time,r=this._startTime,j=this._timeScale,p=this._paused,v,D,u;if(a>=t){this._totalTime=this._time=t;if(!this._reversed&&!this._hasPausedChild()&&(v=!0,u="onComplete",0===this._duration&&(0===a||0>this._rawPrevTime)))this._rawPrevTime!==
+a&&(d=!0);this._rawPrevTime=a;a=t+1E-6}else if(0>=a){this._totalTime=this._time=0;if(0!==g||0===this._duration&&0<this._rawPrevTime)u="onReverseComplete",v=this._reversed;0>a?(this._active=!1,0===this._duration&&0<=this._rawPrevTime&&(d=!0)):this._initted||(d=!0);this._rawPrevTime=a;a=-1E-6}else this._totalTime=this._time=this._rawPrevTime=a;if(this._time!==g||d){this._initted||(this._initted=!0);0===g&&this.vars.onStart&&0!==this._time&&(c||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||
+b));if(this._time>g)for(d=this._first;d;){D=d._next;if(this._paused&&!p)break;else if(d._active||d._startTime<=this._time&&!d._paused&&!d._gc)d._reversed?d.render((!d._dirty?d._totalDuration:d.totalDuration())-(a-d._startTime)*d._timeScale,c,!1):d.render((a-d._startTime)*d._timeScale,c,!1);d=D}else for(d=this._last;d;){D=d._prev;if(this._paused&&!p)break;else if(d._active||d._startTime<=g&&!d._paused&&!d._gc)d._reversed?d.render((!d._dirty?d._totalDuration:d.totalDuration())-(a-d._startTime)*d._timeScale,
+c,!1):d.render((a-d._startTime)*d._timeScale,c,!1);d=D}this._onUpdate&&(c||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||b));if(u&&!this._gc&&(r===this._startTime||j!=this._timeScale))if(0===this._time||t>=this.totalDuration())v&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),c||this.vars[u]&&this.vars[u].apply(this.vars[u+"Scope"]||this,this.vars[u+"Params"]||b)}};c._hasPausedChild=function(){for(var a=this._first;a;){if(a._paused||a instanceof
+p&&a._hasPausedChild())return!0;a=a._next}return!1};c.getChildren=function(a,c,d,b){b=b||-9999999999;for(var g=[],r=this._first,t=0;r;)r._startTime<b||(r instanceof j?!1!=c&&(g[t++]=r):(!1!=d&&(g[t++]=r),!1!=a&&(g=g.concat(r.getChildren(!0,c,d)),t=g.length))),r=r._next;return g};c.getTweensOf=function(a,c){for(var d=j.getTweensOf(a),b=d.length,g=[],r=0;-1<--b;)if(d[b].timeline===this||c&&this._contains(d[b]))g[r++]=d[b];return g};c._contains=function(a){for(a=a.timeline;a;){if(a===this)return!0;a=
+a.timeline}return!1};c.shiftChildren=function(a,c,d){d=d||0;for(var b=this._first;b;)b._startTime>=d&&(b._startTime+=a),b=b._next;if(c)for(var g in this._labels)this._labels[g]>=d&&(this._labels[g]+=a);return this._uncache(!0)};c._kill=function(a,c){if(null==a&&null==c)return this._enabled(!1,!1);for(var d=null==c?this.getChildren(!0,!0,!1):this.getTweensOf(c),b=d.length,g=!1;-1<--b;)d[b]._kill(a,c)&&(g=!0);return g};c.clear=function(a){var c=this.getChildren(!1,!0,!0),d=c.length;for(this._time=this._totalTime=
+0;-1<--d;)c[d]._enabled(!1,!1);!1!=a&&(this._labels={});return this._uncache(!0)};c.invalidate=function(){for(var a=this._first;a;)a.invalidate(),a=a._next;return this};c._enabled=function(a,c){if(a===this._gc)for(var d=this._first;d;)d._enabled(a,!0),d=d._next;return m.prototype._enabled.call(this,a,c)};c.progress=function(a){return!arguments.length?this._time/this.duration():this.totalTime(this.duration()*a,!1)};c.duration=function(a){if(!arguments.length)return this._dirty&&this.totalDuration(),
+this._duration;0!==this.duration()&&0!==a&&this.timeScale(this._duration/a);return this};c.totalDuration=function(a){if(!arguments.length){if(this._dirty){for(var c=0,d=this._first,b=-999999999999,g;d;)g=d._next,d._startTime<b&&this._sortChildren?this.insert(d,d._startTime-d._delay):b=d._startTime,0>d._startTime&&(c-=d._startTime,this.shiftChildren(-d._startTime,!1,-9999999999)),d=d._startTime+(!d._dirty?d._totalDuration:d.totalDuration())/d._timeScale,d>c&&(c=d),d=g;this._duration=this._totalDuration=
+c;this._dirty=!1}return this._totalDuration}0!==this.totalDuration()&&0!==a&&this.timeScale(this._totalDuration/a);return this};c.usesFrames=function(){for(var a=this._timeline;a._timeline;)a=a._timeline;return a===s._rootFramesTimeline};c.rawTime=function(){return this._paused||0!==this._totalTime&&this._totalTime!==this._totalDuration?this._totalTime:(this._timeline.rawTime()-this._startTime)*this._timeScale};return p},!0);_gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(s,
+m,j){var p=function(b){s.call(this,b);this._repeat=this.vars.repeat||0;this._repeatDelay=this.vars.repeatDelay||0;this._cycle=0;this._yoyo=!0===this.vars.yoyo;this._dirty=!0},k=[],b=new j(null,null,1,0);j=p.prototype=new s;j.constructor=p;j.kill()._gc=!1;p.version=1.641;j.invalidate=function(){this._yoyo=!0===this.vars.yoyo;this._repeat=this.vars.repeat||0;this._repeatDelay=this.vars.repeatDelay||0;this._uncache(!0);return s.prototype.invalidate.call(this)};j.addCallback=function(b,c,a,f){return this.insert(m.delayedCall(0,
+b,a,f),c)};j.removeCallback=function(b,c){if(null==c)this._kill(null,b);else for(var a=this.getTweensOf(b,!1),f=a.length,d=this._parseTimeOrLabel(c);-1<--f;)a[f]._startTime===d&&a[f]._enabled(!1,!1);return this};j.tweenTo=function(t,c){c=c||{};var a={ease:b,overwrite:2,useFrames:this.usesFrames(),immediateRender:!1},f,d;for(f in c)a[f]=c[f];a.time=this._parseTimeOrLabel(t);d=new m(this,Math.abs(Number(a.time)-this._time)/this._timeScale||0.001,a);a.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);c.onStart&&c.onStart.apply(c.onStartScope||d,c.onStartParams||k)};return d};j.tweenFromTo=function(b,c,a){a=a||{};a.startAt={time:this._parseTimeOrLabel(b)};b=this.tweenTo(c,a);return b.duration(Math.abs(b.vars.time-b.vars.startAt.time)/this._timeScale||0.001)};j.render=function(b,c,a){this._gc&&this._enabled(!0,!1);this._active=!this._paused;var f=!this._dirty?this._totalDuration:this.totalDuration(),d=this._time,
+j=this._totalTime,g=this._startTime,r=this._timeScale,p=this._rawPrevTime,m=this._paused,v=this._cycle,D,u;if(b>=f){this._locked||(this._totalTime=f,this._cycle=this._repeat);if(!this._reversed&&!this._hasPausedChild()&&(D=!0,u="onComplete",0===this._duration&&(0===b||0>this._rawPrevTime)))this._rawPrevTime!==b&&(a=!0);this._rawPrevTime=b;this._yoyo&&0!==(this._cycle&1)?(this._time=0,b=-1E-6):(this._time=this._duration,b=this._duration+1E-6)}else if(0>=b){this._locked||(this._totalTime=this._cycle=
+0);this._time=0;if(0!==d||0===this._duration&&0<this._rawPrevTime&&!this._locked)u="onReverseComplete",D=this._reversed;0>b?(this._active=!1,0===this._duration&&0<=this._rawPrevTime&&(a=!0)):this._initted||(a=!0);this._rawPrevTime=b;b=0===this._duration?0:-1E-6}else if(this._time=this._rawPrevTime=b,!this._locked&&(this._totalTime=b,0!==this._repeat)){var 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,b=this._duration+1E-6):0>this._time?this._time=b=0:b=this._time}if(this._cycle!==v&&!this._locked){var C=this._yoyo&&0!==(v&1),q=C===(this._yoyo&&0!==(this._cycle&1)),T=this._totalTime,I=this._cycle,J=this._rawPrevTime,A=this._time;this._totalTime=v*this._duration;this._cycle<v?C=!C:this._totalTime+=this._duration;this._time=d;this._rawPrevTime=
+0===this._duration?p-1E-5:p;this._cycle=v;this._locked=!0;d=C?0:this._duration;this.render(d,c,0===this._duration);c||this._gc||this.vars.onRepeat&&this.vars.onRepeat.apply(this.vars.onRepeatScope||this,this.vars.onRepeatParams||k);q&&(d=C?this._duration+1E-6:-1E-6,this.render(d,!0,!1));this._time=A;this._totalTime=T;this._cycle=I;this._rawPrevTime=J;this._locked=!1}if(this._time===d&&!a)j!==this._totalTime&&this._onUpdate&&(c||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||
+k));else{this._initted||(this._initted=!0);0===j&&this.vars.onStart&&0!==this._totalTime&&(c||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||k));if(this._time>d)for(a=this._first;a;){j=a._next;if(this._paused&&!m)break;else if(a._active||a._startTime<=this._time&&!a._paused&&!a._gc)a._reversed?a.render((!a._dirty?a._totalDuration:a.totalDuration())-(b-a._startTime)*a._timeScale,c,!1):a.render((b-a._startTime)*a._timeScale,c,!1);a=j}else for(a=this._last;a;){j=a._prev;
+if(this._paused&&!m)break;else if(a._active||a._startTime<=d&&!a._paused&&!a._gc)a._reversed?a.render((!a._dirty?a._totalDuration:a.totalDuration())-(b-a._startTime)*a._timeScale,c,!1):a.render((b-a._startTime)*a._timeScale,c,!1);a=j}this._onUpdate&&(c||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||k));if(u&&!this._locked&&!this._gc&&(g===this._startTime||r!==this._timeScale))if(0===this._time||f>=this.totalDuration())D&&(this._timeline.autoRemoveChildren&&this._enabled(!1,
+!1),this._active=!1),c||this.vars[u]&&this.vars[u].apply(this.vars[u+"Scope"]||this,this.vars[u+"Params"]||k)}};j.getActive=function(b,c,a){null==b&&(b=!0);null==c&&(c=!0);null==a&&(a=!1);var f=[];b=this.getChildren(b,c,a);c=0;a=b.length;var d,j;for(d=0;d<a;d++)if(j=b[d],!j._paused&&j._timeline._time>=j._startTime&&j._timeline._time<j._startTime+j._totalDuration/j._timeScale){var g;a:{for(g=j._timeline;g;){if(g._paused){g=!0;break a}g=g._timeline}g=!1}g||(f[c++]=j)}return f};j.getLabelAfter=function(b){!b&&
+0!==b&&(b=this._time);var c=this.getLabelsArray(),a=c.length,f;for(f=0;f<a;f++)if(c[f].time>b)return c[f].name;return null};j.getLabelBefore=function(b){null==b&&(b=this._time);for(var c=this.getLabelsArray(),a=c.length;-1<--a;)if(c[a].time<b)return c[a].name;return null};j.getLabelsArray=function(){var b=[],c=0,a;for(a in this._labels)b[c++]={time:this._labels[a],name:a};b.sort(function(a,c){return a.time-c.time});return b};j.progress=function(b){return!arguments.length?this._time/this.duration():
+this.totalTime(this.duration()*(this._yoyo&&0!==(this._cycle&1)?1-b:b)+this._cycle*(this._duration+this._repeatDelay),!1)};j.totalProgress=function(b){return!arguments.length?this._totalTime/this.totalDuration():this.totalTime(this.totalDuration()*b,!1)};j.totalDuration=function(b){return!arguments.length?(this._dirty&&(s.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((b-this._repeat*this._repeatDelay)/(this._repeat+1))};j.time=function(b,c){if(!arguments.length)return this._time;this._dirty&&this.totalDuration();b>this._duration&&(b=this._duration);this._yoyo&&0!==(this._cycle&1)?b=this._duration-b+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(b+=this._cycle*(this._duration+this._repeatDelay));return this.totalTime(b,c)};j.repeat=function(b){if(!arguments.length)return this._repeat;this._repeat=b;return this._uncache(!0)};
+j.repeatDelay=function(b){if(!arguments.length)return this._repeatDelay;this._repeatDelay=b;return this._uncache(!0)};j.yoyo=function(b){if(!arguments.length)return this._yoyo;this._yoyo=b;return this};j.currentLabel=function(b){return!arguments.length?this.getLabelBefore(this._time+1E-8):this.seek(b,!0)};return p},!0);_gsDefine("plugins.BezierPlugin",["plugins.TweenPlugin"],function(s){var m=function(){s.call(this,"bezier",-1);this._overwriteProps.pop();this._func={};this._round={}},j=m.prototype=
+new s("bezier",1),p=180/Math.PI,k=Math.PI/180,b=[],t=[],c=[],a={},f=function(a,c,d,b){this.a=a;this.b=c;this.c=d;this.d=b;this.da=b-a;this.ca=d-a;this.ba=c-a},d=m.bezierThrough=function(d,r,j,p,v,D){var u={},C=[],q,k,m;v="string"===typeof v?","+v+",":",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,";null==r&&(r=1);for(k in d[0])C.push(k);b.length=t.length=c.length=0;for(q=C.length;-1<
+--q;){k=C[q];a[k]=-1!==v.indexOf(","+k+",");m=u;var J=k,A;A=d;var h=k,F=a[k],w=D,E=[],B=void 0,x=void 0,s=void 0,e=void 0,n=void 0,B=void 0;if(w){A=[w].concat(A);for(x=A.length;-1<--x;)if("string"===typeof(B=A[x][h]))"="===B.charAt(1)&&(A[x][h]=w[h]+Number(B.charAt(0)+B.substr(2)))}B=A.length-2;if(0>B)E[0]=new f(A[0][h],0,0,A[-1>B?0:1][h]);else{for(x=0;x<B;x++)s=A[x][h],e=A[x+1][h],E[x]=new f(s,0,0,e),F&&(n=A[x+2][h],b[x]=(b[x]||0)+(e-s)*(e-s),t[x]=(t[x]||0)+(n-e)*(n-e));E[x]=new f(A[x][h],0,0,A[x+
+1][h])}A=E;m[J]=A}for(q=b.length;-1<--q;)b[q]=Math.sqrt(b[q]),t[q]=Math.sqrt(t[q]);if(!p){for(q=C.length;-1<--q;)if(a[k]){d=u[C[q]];m=d.length-1;for(v=0;v<m;v++)D=d[v+1].da/t[v]+d[v].da/b[v],c[v]=(c[v]||0)+D*D}for(q=c.length;-1<--q;)c[q]=Math.sqrt(c[q])}for(q=C.length;-1<--q;){k=C[q];d=u[k];v=r;D=j;m=p;k=a[k];J=d.length-1;A=0;for(var h=d[0].a,l=n=e=w=B=e=s=B=x=s=E=w=F=void 0,F=0;F<J;F++)x=d[A],w=x.a,E=x.d,s=d[A+1].d,k?(e=b[F],n=t[F],l=0.25*(n+e)*v/(m?0.5:c[F]||0.5),B=E-(E-w)*(m?0.5*v:l/e),s=E+(s-
+E)*(m?0.5*v:l/n),e=E-(B+(s-B)*(3*e/(e+n)+0.5)/4)):(B=E-0.5*(E-w)*v,s=E+0.5*(s-E)*v,e=E-(B+s)/2),B+=e,s+=e,x.c=B,x.b=0!==F?h:h=x.a+0.6*(x.c-x.a),x.da=E-w,x.ca=B-w,x.ba=h-w,D?(w=y(w,h,B,E),d.splice(A,1,w[0],w[1],w[2],w[3]),A+=4):A++,h=s;x=d[A];x.b=h;x.c=h+0.4*(x.d-h);x.da=x.d-x.a;x.ca=x.c-x.a;x.ba=h-x.a;D&&(w=y(x.a,h,x.c,x.d),d.splice(A,1,w[0],w[1],w[2],w[3]))}return u},y=m.cubicToQuadratic=function(a,c,d,b){var f={a:a},j={},u={},k={c:b},q=(a+c)/2,p=(c+d)/2;d=(d+b)/2;c=(q+p)/2;var p=(p+d)/2,m=(p-c)/
+8;f.b=q+(a-q)/4;j.b=c+m;f.c=j.a=(f.b+j.b)/2;j.c=u.a=(c+p)/2;u.b=p-m;k.b=d+(b-d)/4;u.c=k.a=(u.b+k.b)/2;return[f,j,u,k]};m.quadraticToCubic=function(a,c,d){return new f(a,(2*c+a)/3,(2*c+d)/3,d)};j.constructor=m;m.API=2;m._cssRegister=function(){var a=window.com.greensock.plugins.CSSPlugin;if(a){var a=a._internals,c=a._parseToProxy,d=a._setPluginRatio,b=a.CSSPropTween;a._registerComplexSpecialProp("bezier",null,function(a,g,f,j,q,p){g instanceof Array&&(g={values:g});p=new m;var s=g.values,t=s.length-
+1,A=[];f={};var h,F,w;if(0>t)return q;for(h=0;h<=t;h++)w=c(a,s[h],j,q,p,t!==h),A[h]=w.end;for(F in g)f[F]=g[F];f.values=A;q=new b(a,"bezier",0,0,w.pt,2);q.data=w;q.plugin=p;q.setRatio=d;0===f.autoRotate&&(f.autoRotate=!0);f.autoRotate&&!(f.autoRotate instanceof Array)&&(h=!0===f.autoRotate?0:Number(f.autoRotate)*k,f.autoRotate=null!=w.end.left?[["left","top","rotation",h,!0]]:null!=w.end.x?[["x","y","rotation",h,!0]]:!1);f.autoRotate&&(j._transform||(a=j._enableTransforms(!1,q,p),a._next=q._next,
+a._prev=q,q._next=a,q._prev=null),w.autoRotate=j._target._gsTransform);p._onInitTween(w.proxy,f,j._tween);return q})}};j._onInitTween=function(a,c,b){this._target=a;c instanceof Array&&(c={values:c});this._props=[];this._timeRes=null==c.timeResolution?6:parseInt(c.timeResolution);var j=c.values||[],p={},k=j[0];b=c.autoRotate||b.vars.orientToBezier;var u,C,q;this._autoRotate=b?b instanceof Array?b:[["x","y","rotation",!0===b?0:Number(b)||0]]:null;for(u in k)this._props.push(u);for(k=this._props.length;-1<
+--k;)u=this._props[k],this._overwriteProps.push(u),b=this._func[u]="function"===typeof a[u],p[u]=!b?parseFloat(a[u]):a[u.indexOf("set")||"function"!==typeof a["get"+u.substr(3)]?u:"get"+u.substr(3)](),q||p[u]!==j[0][u]&&(q=p);if("cubic"!==c.type&&"quadratic"!==c.type&&"soft"!==c.type)p=d(j,isNaN(c.curviness)?1:c.curviness,!1,"thruBasic"===c.type,c.correlate,q);else{b=(b=c.type)||"soft";c={};q="cubic"===b?3:2;b="soft"===b;var k=[],m,s,t,A,h,F,w,E,B;b&&p&&(j=[p].concat(j));if(null==j||j.length<q+1)throw"invalid Bezier data";
+for(s in j[0])k.push(s);for(F=k.length;-1<--F;){s=k[F];c[s]=h=[];B=0;E=j.length;for(w=0;w<E;w++)m=null==p?j[w][s]:"string"===typeof(t=j[w][s])&&"="===t.charAt(1)?p[s]+Number(t.charAt(0)+t.substr(2)):Number(t),b&&1<w&&w<E-1&&(h[B++]=(m+h[B-2])/2),h[B++]=m;E=B-q+1;for(w=B=0;w<E;w+=q)m=h[w],s=h[w+1],t=h[w+2],A=2===q?0:h[w+3],h[B++]=t=3===q?new f(m,s,t,A):new f(m,(2*s+m)/3,(2*s+t)/3,t);h.length=B}p=c}this._beziers=p;this._segCount=this._beziers[u].length;if(this._timeRes){k=this._beziers;u=this._timeRes;
+u=u>>0||6;p=[];s=[];j=t=0;c=u-1;q=[];b=[];for(C in k){m=k[C];h=p;F=u;w=1/F;E=m.length;for(var x=void 0,y=void 0,e=A=B=y=void 0,n=x=void 0,l=void 0,l=e=void 0;-1<--E;){e=m[E];y=e.a;B=e.d-y;A=e.c-y;e=e.b-y;y=0;for(n=1;n<=F;n++)x=w*n,l=1-x,x=y-(y=(x*x*B+3*l*(x*A+l*e))*x),l=E*F+n-1,h[l]=(h[l]||0)+x*x}}k=p.length;for(C=0;C<k;C++)t+=Math.sqrt(p[C]),m=C%u,b[m]=t,m===c&&(j+=t,m=C/u>>0,q[m]=b,s[m]=j,t=0,b=[]);this._length=j;this._lengths=s;this._segments=q;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(b=this._autoRotate){b[0]instanceof Array||(this._autoRotate=b=[b]);for(k=b.length;-1<--k;)for(C=0;3>C;C++)u=b[k][C],this._func[u]="function"===typeof a[u]?a[u.indexOf("set")||"function"!==typeof a["get"+u.substr(3)]?u:"get"+u.substr(3)]:!1}return!0};j.setRatio=function(a){var c=this._segCount,b=this._func,d=this._target,f,j,k,m,q;if(this._timeRes){f=this._lengths;m=this._curSeg;a*=this._length;j=this._li;if(a>
+this._l2&&j<c-1){for(c-=1;j<c&&(this._l2=f[++j])<=a;);this._l1=f[j-1];this._li=j;this._curSeg=m=this._segments[j];this._s2=m[this._s1=this._si=0]}else if(a<this._l1&&0<j){for(;0<j&&(this._l1=f[--j])>=a;);0===j&&a<this._l1?this._l1=0:j++;this._l2=f[j];this._li=j;this._curSeg=m=this._segments[j];this._s1=m[(this._si=m.length-1)-1]||0;this._s2=m[this._si]}f=j;a-=this._l1;j=this._si;if(a>this._s2&&j<m.length-1){for(c=m.length-1;j<c&&(this._s2=m[++j])<=a;);this._s1=m[j-1];this._si=j}else if(a<this._s1&&
+0<j){for(;0<j&&(this._s1=m[--j])>=a;);0===j&&a<this._s1?this._s1=0:j++;this._s2=m[j];this._si=j}m=(j+(a-this._s1)/(this._s2-this._s1))*this._prec}else f=0>a?0:1<=a?c-1:c*a>>0,m=(a-f*(1/c))*c;c=1-m;for(j=this._props.length;-1<--j;)if(a=this._props[j],k=this._beziers[a][f],q=(m*m*k.da+3*c*(m*k.ca+c*k.ba))*m+k.a,this._round[a]&&(q=q+(0<q?0.5:-0.5)>>0),b[a])d[a](q);else d[a]=q;if(this._autoRotate){var c=this._autoRotate,t,s,y,A,h;for(j=c.length;-1<--j;)a=c[j][2],A=c[j][3]||0,h=!0===c[j][4]?1:p,k=this._beziers[c[j][0]][f],
+q=this._beziers[c[j][1]][f],t=k.a+(k.b-k.a)*m,s=k.b+(k.c-k.b)*m,t+=(s-t)*m,s+=(k.c+(k.d-k.c)*m-s)*m,k=q.a+(q.b-q.a)*m,y=q.b+(q.c-q.b)*m,k+=(y-k)*m,y+=(q.c+(q.d-q.c)*m-y)*m,q=Math.atan2(y-k,s-t)*h+A,b[a]?b[a].call(d,q):d[a]=q}};j._roundProps=function(a,c){for(var b=this._overwriteProps,d=b.length;-1<--d;)if(a[b[d]]||a.bezier||a.bezierThrough)this._round[b[d]]=c};j._kill=function(a){var c=this._props,b,d;for(b in this._beziers)if(b in a){delete this._beziers[b];delete this._func[b];for(d=c.length;-1<
+--d;)c[d]===b&&c.splice(d,1)}return s.prototype._kill.call(this,a)};s.activate([m]);return m},!0);_gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(s){var m=function(){s.call(this,"css");this._overwriteProps.length=0},j,p,k,b,t={},c=m.prototype=new s("css");c.constructor=m;m.version=1.66;m.API=2;m.defaultTransformPerspective=0;c="px";m.suffixMap={top:c,right:c,bottom:c,left:c,width:c,height:c,fontSize:c,padding:c,margin:c,perspective:c};var a=/(?:\d|\-\d|\.\d|\-\.\d)+/g,f=
+/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,d=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,y=/[^\d\-\.]/g,g=/(?:\d|\-|\+|=|#|\.)*/g,r=/opacity *= *([^)]*)/,Y=/opacity:([^;]*)/,Q=/([A-Z])/g,v=/-([a-z])/gi,D=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,u=function(a,e){return e.toUpperCase()},C=/(?:Left|Right|Width)/i,q=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,T=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,I=Math.PI/180,J=180/Math.PI,A={},h=document,F=h.createElement("div"),w=h.createElement("img"),
+E=m._internals={_specialProps:t},B=navigator.userAgent,x,U,e,n,l,z,H,R=B.indexOf("Android"),G=h.createElement("div");l=(e=-1!==B.indexOf("Safari")&&-1===B.indexOf("Chrome")&&(-1===R||3<Number(B.substr(R+8,1))))&&6>Number(B.substr(B.indexOf("Version/")+8,1));n=-1!==B.indexOf("Firefox");/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(B);z=parseFloat(RegExp.$1);G.innerHTML="<a style='top:1px;opacity:.55;'>a</a>";H=(B=G.getElementsByTagName("a")[0])?/^0.55/.test(B.style.opacity):!1;var N=function(a){return r.test("string"===
+typeof a?a:(a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100:1},la="",ga="",$=function(a,e){e=e||F;var c=e.style,b,d;if(void 0!==c[a])return a;a=a.charAt(0).toUpperCase()+a.substr(1);b=["O","Moz","ms","Ms","Webkit"];for(d=5;-1<--d&&void 0===c[b[d]+a];);return 0<=d?(ga=3===d?"ms":b[d],la="-"+ga.toLowerCase()+"-",ga+a):null},aa=h.defaultView?h.defaultView.getComputedStyle:function(){},L=m.getStyle=function(a,e,c,b,d){var h;if(!H&&"opacity"===e)return N(a);!b&&a.style[e]?
+h=a.style[e]:(c=c||aa(a,null))?h=(a=c.getPropertyValue(e.replace(Q,"-$1").toLowerCase()))||c.length?a:c[e]:a.currentStyle&&(c=a.currentStyle,h=c[e]);return null!=d&&(!h||"none"===h||"auto"===h||"auto auto"===h)?d:h},ea=function(a,e,c){var b={},d=a._gsOverwrittenClassNamePT,h;if(d&&!c){for(;d;)d.setRatio(0),d=d._next;a._gsOverwrittenClassNamePT=null}if(e=e||aa(a,null))if(h=e.length)for(;-1<--h;)b[e[h].replace(v,u)]=e.getPropertyValue(e[h]);else for(h in e)b[h]=e[h];else if(e=a.currentStyle||a.style)for(h in e)b[h.replace(v,
+u)]=e[h];H||(b.opacity=N(a));a=da(a,e,!1);b.rotation=a.rotation*J;b.rotationX=a.rotationX*J;b.rotationY=a.rotationY*J;b.skewX=a.skewX*J;b.scaleX=a.scaleX;b.scaleY=a.scaleY;b.scaleZ=a.scaleZ;b.x=a.x;b.y=a.y;b.z=a.z;b.filters&&delete b.filters;return b},na=function(a,e,c,b){var d={};a=a.style;var h,l,n;for(l in c)if("cssText"!==l&&"length"!==l&&isNaN(l)&&e[l]!==(h=c[l]))if(-1===l.indexOf("Origin")&&("number"===typeof h||"string"===typeof h))d[l]=(""===h||"auto"===h||"none"===h)&&"string"===typeof e[l]&&
+""!==e[l].replace(y,"")?0:h,void 0!==a[l]&&(n=new ha(a,l,a[l],n));if(b)for(l in b)"className"!==l&&(d[l]=b[l]);return{difs:d,firstMPT:n}},ua={width:["Left","Right"],height:["Top","Bottom"]},va=["marginLeft","marginRight","marginTop","marginBottom"],S=function(a,e,c,b,d){if("px"===b||!b)return c;if("auto"===b||!c)return 0;var l=C.test(e),n=a,j=F.style,f=0>c;f&&(c=-c);"%"===b&&-1!==e.indexOf("border")?l=c/100*(l?a.clientWidth:a.clientHeight):(j.cssText="border-style:solid; border-width:0; position:absolute; line-height:0;",
+"%"===b||"em"===b||!n.appendChild?(n=a.parentNode||h.body,j[l?"width":"height"]=c+b):j[l?"borderLeftWidth":"borderTopWidth"]=c+b,n.appendChild(F),l=parseFloat(F[l?"offsetWidth":"offsetHeight"]),n.removeChild(F),0===l&&!d&&(l=S(a,e,c,b,!0)));return f?-l:l},ia=function(a,e){if(null==a||""===a||"auto"===a||"auto auto"===a)a="0 0";var c=a.split(" "),b=-1!==a.indexOf("left")?"0%":-1!==a.indexOf("right")?"100%":c[0],d=-1!==a.indexOf("top")?"0%":-1!==a.indexOf("bottom")?"100%":c[1];null==d?d="0":"center"===
+d&&(d="50%");if("center"===b||isNaN(parseFloat(b)))b="50%";e&&(e.oxp=-1!==b.indexOf("%"),e.oyp=-1!==d.indexOf("%"),e.oxr="="===b.charAt(1),e.oyr="="===d.charAt(1),e.ox=parseFloat(b.replace(y,"")),e.oy=parseFloat(d.replace(y,"")));return b+" "+d+(2<c.length?" "+c[2]:"")},oa=function(a,e){return"string"===typeof a&&"="===a.charAt(1)?parseInt(a.charAt(0)+"1")*parseFloat(a.substr(2)):parseFloat(a)-parseFloat(e)},W=function(a,e){return null==a?e:"string"===typeof a&&"="===a.charAt(1)?parseInt(a.charAt(0)+
+"1")*Number(a.substr(2))+e:Number(a)},ba=function(a,e){if(null==a)return e;var c=-1===a.indexOf("rad")?I:1,b="="===a.charAt(1);a=Number(a.replace(y,""))*c;return b?a+e:a},ja=function(a,e){var c=(("number"===typeof a?a*I:ba(a,e))-e)%(2*Math.PI);c!==c%Math.PI&&(c+=Math.PI*(0>c?2:-2));return e+c},Z={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]},ka=function(e){if(!e||""===e)return Z.black;if(Z[e])return Z[e];if("number"===typeof e)return[e>>16,e>>8&255,e&255];if("#"===e.charAt(0)){if(4===e.length){var c=e.charAt(1),b=e.charAt(2);e=e.charAt(3);e="#"+c+c+b+b+e+e}e=parseInt(e.substr(1),16);return[e>>16,e>>8&255,e&255]}e=e.match(a)||Z.transparent;e[0]=Number(e[0]);e[1]=Number(e[1]);e[2]=Number(e[2]);
+3<e.length&&(e[3]=Number(e[3]));return e},X="(?:\\b(?:(?:rgb|rgba)\\(.+?\\))|\\B#.+?\\b";for(c in Z)X+="|"+c+"\\b";var X=RegExp(X+")","gi"),pa=function(e,c,b){if(null==e)return function(a){return a};var h=c?(e.match(X)||[""])[0]:"",l=e.split(h).join("").match(d)||[],n=e.substr(0,e.indexOf(l[0])),ma=")"===e.charAt(e.length-1)?")":"",j=-1!==e.indexOf(" ")?" ":",",f=l.length,ca=0<f?l[0].replace(a,""):"";return c?function(a){"number"===typeof a&&(a+=ca);var e=(a.match(X)||[h])[0];a=a.split(e).join("").match(d)||
+[];var c=a.length;if(f>c--)for(;++c<f;)a[c]=b?a[(c-1)/2>>0]:l[c];return n+a.join(j)+j+e+ma}:function(a){"number"===typeof a&&(a+=ca);a=a.match(d)||[];var e=a.length;if(f>e--)for(;++e<f;)a[e]=b?a[(e-1)/2>>0]:l[e];return n+a.join(j)+ma}},B=function(a){a=a.split(",");return function(e,c,b,d,h,l,n){c=(c+"").split(" ");n={};for(b=0;4>b;b++)n[a[b]]=c[b]=c[b]||c[(b-1)/2>>0];return d.parse(e,n,h,l)}};E._setPluginRatio=function(a){this.plugin.setRatio(a);for(var e=this.data,c=e.proxy,b=e.firstMPT,d;b;)d=c[b.v],
+b.r?d=0<d?d+0.5>>0:d-0.5>>0:1E-6>d&&-1E-6<d&&(d=0),b.t[b.p]=d,b=b._next;e.autoRotate&&(e.autoRotate.rotation=c.rotation);if(1===a)for(b=e.firstMPT;b;){a=b.t;if(a.type){if(1===a.type){c=a.xs0+a.s+a.xs1;for(e=1;e<a.l;e++)c+=a["xn"+e]+a["xs"+(e+1)];a.e=c}}else a.e=a.s+a.xs0;b=b._next}};var ha=function(a,e,c,b,d){this.t=a;this.p=e;this.v=c;this.r=d;b&&(b._prev=this,this._next=b)};E._parseToProxy=function(a,e,c,b,d,h){var l=b,n={},j={},f=c._transform,g=A,k;c._transform=null;A=e;b=a=c.parse(a,e,b,d);A=
+g;h&&(c._transform=f,l&&(l._prev=null,l._prev&&(l._prev._next=null)));for(;b&&b!==l;){if(1>=b.type&&(f=b.p,j[f]=b.s+b.c,n[f]=b.s,h||(k=new ha(b,"s",f,k,b.r),b.c=0),1===b.type))for(c=b.l;0<--c;)g="xn"+c,f=b.p+"_"+g,j[f]=b.data[g],n[f]=b[g],h||(k=new ha(b,g,f,k,b.rxp[g]));b=b._next}return{proxy:n,end:j,firstMPT:k,pt:a}};var M=E.CSSPropTween=function(a,e,c,d,l,h,n,f,g,ca,k){this.t=a;this.p=e;this.s=c;this.c=d;this.n=n||"css_"+e;a instanceof M||b.push(this.n);this.r=f;this.type=h||0;g&&(this.pr=g,j=!0);
+this.b=void 0===ca?c:ca;this.e=void 0===k?c+d:k;l&&(this._next=l,l._prev=this)},fa=m.parseComplex=function(e,c,b,d,l,h,n,j,g,k){n=new M(e,c,0,0,n,k?2:1,null,!1,j,b,d);e=b.split(", ").join(",").split(" ");c=(d+"").split(", ").join(",").split(" ");b=e.length;j=!1!==x;var p,m,q,z,t;b!==c.length&&(e=(h||"").split(" "),b=e.length);n.plugin=g;n.setRatio=k;for(h=0;h<b;h++)if(g=e[h],p=c[h],(k=parseFloat(g))||0===k)n.appendXtra("",k,oa(p,k),p.replace(f,""),j&&-1!==p.indexOf("px"),!0);else if(l&&("#"===g.charAt(0)||
+0===g.indexOf("rgb")||Z[g]))g=ka(g),p=ka(p),(k=6<g.length+p.length)&&!H&&0===p[3]?(n["xs"+n.l]+=n.l?" transparent":"transparent",n.e=n.e.split(c[h]).join("transparent")):(n.appendXtra(k?"rgba(":"rgb(",g[0],p[0]-g[0],",",!0,!0).appendXtra("",g[1],p[1]-g[1],",",!0).appendXtra("",g[2],p[2]-g[2],k?",":")",!0),k&&(g=4>g.length?1:g[3],n.appendXtra("",g,(4>p.length?1:p[3])-g,")",!1)));else if(k=g.match(a)){q=p.match(f);if(!q||q.length!==k.length)return n;for(p=m=0;p<k.length;p++)t=k[p],z=g.indexOf(t,m),
+n.appendXtra(g.substr(m,z-m),Number(t),oa(q[p],t),"",j&&"px"===g.substr(z+t.length,2),0===p),m=z+t.length;n["xs"+n.l]+=g.substr(m)}else n["xs"+n.l]+=n.l?" "+g:g;if(-1!==d.indexOf("=")&&n.data){d=n.xs0+n.data.s;for(h=1;h<n.l;h++)d+=n["xs"+h]+n.data["xn"+h];n.e=d+n["xs"+h]}n.l||(n.type=-1,n.xs0=n.e);return n.xfirst||n},O=9,c=M.prototype;for(c.l=c.pr=0;0<--O;)c["xn"+O]=0,c["xs"+O]="";c.xs0="";c._next=c._prev=c.xfirst=c.data=c.plugin=c.setRatio=c.rxp=null;c.appendXtra=function(a,e,c,b,d,h){var n=this.l;
+this["xs"+n]+=h&&n?" "+a:a||"";if(!c&&0!==n&&!this.plugin)return this["xs"+n]+=e+(b||""),this;this.l++;this.type=this.setRatio?2:1;this["xs"+this.l]=b||"";if(0<n)return this.data["xn"+n]=e+c,this.rxp["xn"+n]=d,this["xn"+n]=e,this.plugin||(this.xfirst=new M(this,"xn"+n,e,c,this.xfirst||this,0,this.n,d,this.pr),this.xfirst.xs0=0),this;this.data={s:e+c};this.rxp={};this.s=e;this.c=c;this.r=d;return this};var qa=function(a,e,c,b,d,n,h){this.p=b?$(a)||a:a;t[a]=t[this.p]=this;this.format=n||pa(e,d);c&&
+(this.parse=c);this.clrs=d;this.dflt=e;this.pr=h||0},K=E._registerComplexSpecialProp=function(a,e,c,b,d,n,h){a=a.split(",");e=e instanceof Array?e:[e];for(var l=a.length;-1<--l;)new qa(a[l],e[l],c,b&&0===l,d,n,h)},E=function(a){if(!t[a]){var e=a.charAt(0).toUpperCase()+a.substr(1)+"Plugin";K(a,null,function(a,c,b,d,n,h,l){var j=window.com.greensock.plugins[e];if(!j)return window.console&&console.log("Error: "+e+" js file not loaded."),n;j._cssRegister();return t[b].parse(a,c,b,d,n,h,l)})}},c=qa.prototype;
+c.parseComplex=function(a,e,c,b,d,n){return fa(a,this.p,e,c,this.clrs,this.dflt,b,this.pr,d,n)};c.parse=function(a,e,c,b,d,n){return this.parseComplex(a.style,this.format(L(a,c,k,!1,this.dflt)),this.format(e),d,n)};m.registerSpecialProp=function(a,e,c){K(a,null,function(a,b,d,n,h,l){h=new M(a,d,0,0,h,2,d,!1,c);h.plugin=l;h.setRatio=e(a,b,n._tween,d);return h},!1,!1,null,c)};var ra="scaleX scaleY scaleZ x y z skewX rotation rotationX rotationY perspective".split(" "),P=$("transform"),wa=la+"transform",
+sa=$("transformOrigin"),V=null!==$("perspective"),da=function(a,e,c){var b=c?a._gsTransform||{skewY:0}:{skewY:0},d=0>b.scaleX,n=V?parseFloat(L(a,sa,e,!1,"0 0 0").split(" ")[2])||b.zOrigin||0:0,h,l,j,g,f,k,p,z;P?h=L(a,wa,e,!0):a.currentStyle&&(h=(h=a.currentStyle.filter.match(q))&&4===h.length?h[0].substr(4)+","+Number(h[2].substr(4))+","+Number(h[1].substr(4))+","+h[3].substr(4)+","+(b?b.x:0)+","+(b?b.y:0):null);l=(h||"").match(/(?:\-|\b)[\d\-\.e]+\b/gi)||[];for(e=l.length;-1<--e;)l[e]=Number(l[e]);
+if(16===l.length){if(d=l[8],h=l[9],j=l[10],g=l[12],f=l[13],k=l[14],b.zOrigin&&(k=-b.zOrigin,g=d*k-l[12],f=h*k-l[13],k=j*k+b.zOrigin-l[14]),!c||g!==b.x||f!==b.y||k!==b.z){p=l[0];z=l[1];var t=l[2],H=l[3],s=l[4],r=l[5],u=l[6],R=l[7];l=l[11];var w=b.rotationX=Math.atan2(u,j),N,x,v,G;w&&(v=Math.cos(-w),G=Math.sin(-w),w=s*v+d*G,N=r*v+h*G,x=u*v+j*G,d=s*-G+d*v,h=r*-G+h*v,j=u*-G+j*v,l=R*-G+l*v,s=w,r=N,u=x);if(w=b.rotationY=Math.atan2(d,p))v=Math.cos(-w),G=Math.sin(-w),N=z*v-h*G,x=t*v-j*G,h=z*G+h*v,j=t*G+j*
+v,l=H*G+l*v,p=p*v-d*G,z=N,t=x;if(w=b.rotation=Math.atan2(z,r))v=Math.cos(-w),G=Math.sin(-w),p=p*v+s*G,N=z*v+r*G,r=z*-G+r*v,u=t*-G+u*v,z=N;Math.abs(b.rotationY)>Math.PI/2&&(b.rotationY*=-1,b.rotationX+=Math.PI,b.rotation=Math.PI-b.rotation);b.scaleX=Math.sqrt(p*p+z*z);b.scaleY=Math.sqrt(r*r+h*h);b.scaleZ=Math.sqrt(u*u+j*j);b.skewX=0;b.perspective=l?1/l:0;b.x=g;b.y=f;b.z=k}}else if(!V||0===l.length||b.x!==l[4]||b.y!==l[5]||!b.rotationX&&!b.rotationY){g=(h=6<=l.length)?l[0]:1;k=l[1]||0;f=l[2]||0;p=h?
+l[3]:1;b.x=l[4]||0;b.y=l[5]||0;h=Math.sqrt(g*g+k*k);j=Math.sqrt(p*p+f*f);g=g||k?Math.atan2(k,g):b.rotation||0;f=f||p?Math.atan2(f,p)+g:b.skewX||0;k=h-Math.abs(b.scaleX||0);p=j-Math.abs(b.scaleY||0);Math.abs(f)>Math.PI/2&&Math.abs(f)<1.5*Math.PI&&(d?(h*=-1,f+=0>=g?Math.PI:-Math.PI,g+=0>=g?Math.PI:-Math.PI):(j*=-1,f+=0>=f?Math.PI:-Math.PI));d=(g-b.rotation)%Math.PI;z=(f-b.skewX)%Math.PI;if(void 0===b.skewX||1E-6<k||-1E-6>k||1E-6<p||-1E-6>p||1E-6<d||-1E-6>d||1E-6<z||-1E-6>z)b.scaleX=h,b.scaleY=j,b.rotation=
+g,b.skewX=f;V&&(b.rotationX=b.rotationY=b.z=0,b.perspective=parseFloat(m.defaultTransformPerspective)||0,b.scaleZ=1)}b.zOrigin=n;for(e in b)1E-6>b[e]&&-1E-6<b[e]&&(b[e]=0);c&&(a._gsTransform=b);return b},xa=function(a){var e=this.data,b=-e.rotation,c=b+e.skewX,d=Math.cos(b)*e.scaleX,b=Math.sin(b)*e.scaleX,l=Math.sin(c)*-e.scaleY,c=Math.cos(c)*e.scaleY,h=1E-6,n=this.t.style,j=this.t.currentStyle,f;if(j){d<h&&d>-h&&(d=0);b<h&&b>-h&&(b=0);l<h&&l>-h&&(l=0);c<h&&c>-h&&(c=0);h=b;b=-l;l=-h;h=j.filter;n.filter=
+"";var k=this.t.offsetWidth;f=this.t.offsetHeight;var p="absolute"!==j.position,m="progid:DXImageTransform.Microsoft.Matrix(M11="+d+", M12="+b+", M21="+l+", M22="+c,q=e.x,t=e.y,H,s;null!=e.ox&&(H=(e.oxp?0.01*k*e.ox:e.ox)-k/2,s=(e.oyp?0.01*f*e.oy:e.oy)-f/2,q+=H-(H*d+s*b),t+=s-(H*l+s*c));if(p)H=k/2,s=f/2,m+=", Dx="+(H-(H*d+s*b)+q)+", Dy="+(s-(H*l+s*c)+t)+")";else{var u=8>z?1:-1;H=e.ieOffsetX||0;s=e.ieOffsetY||0;e.ieOffsetX=Math.round((k-((0>d?-d:d)*k+(0>b?-b:b)*f))/2+q);e.ieOffsetY=Math.round((f-((0>
+c?-c:c)*f+(0>l?-l:l)*k))/2+t);for(O=0;4>O;O++)k=va[O],f=j[k],f=-1!==f.indexOf("px")?parseFloat(f):S(this.t,k,parseFloat(f),f.replace(g,""))||0,q=f!==e[k]?2>O?-e.ieOffsetX:-e.ieOffsetY:2>O?H-e.ieOffsetX:s-e.ieOffsetY,n[k]=(e[k]=Math.round(f-q*(0===O||2===O?1:u)))+"px";m+=", sizingMethod='auto expand')"}n.filter=-1!==h.indexOf("DXImageTransform.Microsoft.Matrix(")?h.replace(T,m):m+" "+h;if(0===a||1===a)if(1===d&&0===b&&0===l&&1===c&&(!p||-1!==m.indexOf("Dx=0, Dy=0")))(!r.test(h)||100===parseFloat(RegExp.$1))&&
+-1===h.indexOf("gradient(")&&n.removeAttribute("filter")}},ta=function(){var a=this.data,e=this.t.style,b=a.perspective,c=a.scaleX,d=0,h=0,l=0,j=0,f=a.scaleY,g=0,k=0,p=0,m=0,z=a.scaleZ,q=0,H=0,t=0,s=b?-1/b:0,r=a.rotation,u=a.zOrigin,w,v,G,R,N;n&&(v=e.top+"",w=parseFloat(v)||0,v=v.substr((w+"").length),a._ffFix=!a._ffFix,e.top=(a._ffFix?w+0.05:w-0.05)+(""===v?"px":v));r&&(w=Math.cos(r),r=Math.sin(r),G=f*r,d=c*-r,f*=w,c*=w,j=G);if(r=a.rotationY)w=Math.cos(r),r=Math.sin(r),R=z*-r,N=s*-r,h=c*r,g=j*r,
+z*=w,s*=w,c*=w,j*=w,p=R,H=N;if(r=a.rotationX)w=Math.cos(r),r=Math.sin(r),v=d*w+h*r,G=f*w+g*r,R=m*w+z*r,N=t*w+s*r,h=d*-r+h*w,g=f*-r+g*w,z=m*-r+z*w,s=t*-r+s*w,d=v,f=G,m=R,t=N;u&&(q-=u,l=h*q,k=g*q,q=z*q+u);l+=a.x;k+=a.y;q=1E-5*(1E5*(q+a.z)>>0);e[P]="matrix3d("+1E-5*(1E5*c>>0)+","+1E-5*(1E5*j>>0)+","+1E-5*(1E5*p>>0)+","+1E-5*(1E5*H>>0)+","+1E-5*(1E5*d>>0)+","+1E-5*(1E5*f>>0)+","+1E-5*(1E5*m>>0)+","+1E-5*(1E5*t>>0)+","+1E-5*(1E5*h>>0)+","+1E-5*(1E5*g>>0)+","+1E-5*(1E5*z>>0)+","+1E-5*(1E5*s>>0)+","+1E-5*
+(1E5*l>>0)+","+1E-5*(1E5*k>>0)+","+q+","+(b?1+-q/b:1)+")"},ya=function(){var a=this.data;if(!a.rotation&&!a.skewX)this.t.style[P]="matrix("+a.scaleX+",0,0,"+a.scaleY+","+a.x+","+a.y+")";else{var e=a.rotation,b=e-a.skewX,c=Math.cos(e)*a.scaleX,e=Math.sin(e)*a.scaleX,d=Math.sin(b)*-a.scaleY,b=Math.cos(b)*a.scaleY;this.t.style[P]="matrix("+(1E-6>c&&-1E-6<c?0:c)+","+(1E-6>e&&-1E-6<e?0:e)+","+(1E-6>d&&-1E-6<d?0:d)+","+(1E-6>b&&-1E-6<b?0:b)+","+a.x+","+a.y+")"}};K("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,transformPerspective",
+null,function(a,e,b,c,d,h,l){if(c._transform)return d;e=c._transform=da(a,k,!0);var n=a.style,j=ra.length,f,g,p;if("string"===typeof l.transform&&P)p=n[P],n[P]=l.transform,f=da(a,null,!1),n[P]=p;else if("object"===typeof l){g=null!=l.rotation?l.rotation:null!=l.rotationZ?l.rotationZ:e.rotation*J;f={scaleX:W(null!=l.scaleX?l.scaleX:l.scale,e.scaleX),scaleY:W(null!=l.scaleY?l.scaleY:l.scale,e.scaleY),scaleZ:W(null!=l.scaleZ?l.scaleZ:l.scale,e.scaleZ),x:W(l.x,e.x),y:W(l.y,e.y),z:W(l.z,e.z),perspective:W(l.transformPerspective,
+e.perspective)};f.rotation=null!=l.shortRotation||null!=l.shortRotationZ?ja(l.shortRotation||l.shortRotationZ||0,e.rotation):"number"===typeof g?g*I:ba(g,e.rotation);V&&(f.rotationX=null!=l.shortRotationX?ja(l.shortRotationX,e.rotationX):"number"===typeof l.rotationX?l.rotationX*I:ba(l.rotationX,e.rotationX),f.rotationY=null!=l.shortRotationY?ja(l.shortRotationY,e.rotationY):"number"===typeof l.rotationY?l.rotationY*I:ba(l.rotationY,e.rotationY),1E-6>f.rotationX&&-1E-6<f.rotationX&&(f.rotationX=0),
+1E-6>f.rotationY&&-1E-6<f.rotationY&&(f.rotationY=0));f.skewY=null==l.skewY?e.skewY:"number"===typeof l.skewY?l.skewY*I:ba(l.skewY,e.skewY);if(g=f.skewY-e.skewY)f.skewX+=g,f.rotation+=g;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)}p=e.z||e.rotationX||e.rotationY||f.z||f.rotationX||f.rotationY||f.perspective;!p&&null!=f.scale&&(f.scaleZ=1);for(d=c._enableTransforms(p,d,h);-1<--j;)if(b=ra[j],g=f[b]-e[b],1E-6<g||-1E-6>
+g||null!=A[b])d=new M(e,b,e[b],g,d),d.xs0=0,d.plugin=h,c._overwriteProps.push(d.n);if((g=l.transformOrigin)||V&&p&&e.zOrigin)P?(g=(g||L(a,b,k,!1,"50% 50%"))+"",b=sa,d=new M(n,b,0,0,d,-1,"css_transformOrigin"),d.b=n[b],d.plugin=h,V?(p=e.zOrigin,g=g.split(" "),e.zOrigin=(2<g.length?parseFloat(g[2]):p)||0,d.xs0=d.e=n[b]=g[0]+" "+(g[1]||"50%")+" 0px",d=new M(e,"zOrigin",0,0,d,-1,d.n),d.b=p,d.xs0=d.e=e.zOrigin):d.xs0=d.e=n[b]=g):ia(g+"",e);return d.t===a?(d._next&&(d._next._prev=null),d._next):d},!0);
+K("boxShadow","0px 0px 0px 0px #999",null,!0,!0);K("borderRadius","0px",function(a,e,b,c,d){e=this.format(e);c=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];var l=a.style,h,n,f,g,j,m,z,q,r,s,t,H;q=parseFloat(a.offsetWidth);r=parseFloat(a.offsetHeight);e=e.split(" ");for(h=0;h<c.length;h++)this.p.indexOf("border")&&(c[h]=$(c[h])),g=f=L(a,c[h],k,!1,"0px"),-1!==g.indexOf(" ")&&(f=g.split(" "),g=f[0],f=f[1]),j=n=e[h],m=parseFloat(g),t=g.substr((m+"").length),
+(H="="===j.charAt(1))?(z=parseInt(j.charAt(0)+"1"),j=j.substr(2),z*=parseFloat(j),s=j.substr((z+"").length-(0>z?1:0))||""):(z=parseFloat(j),s=j.substr((z+"").length)),""===s&&(s=p[b]||t),s!==t&&(g=S(a,"borderLeft",m,t),m=S(a,"borderTop",m,t),"%"===s?(g=100*(g/q)+"%",f=100*(m/r)+"%"):"em"===s?(t=S(a,"borderLeft",1,"em"),g=g/t+"em",f=m/t+"em"):(g+="px",f=m+"px"),H&&(j=parseFloat(g)+z+s,n=parseFloat(f)+z+s)),d=fa(l,c[h],g+" "+f,j+" "+n,!1,"0px",d);return d},!0,!1,pa("0px 0px 0px 0px",!1,!0));K("backgroundPosition",
+"0 0",function(a,e,b,c,d,l){b=k||aa(a,null);b=this.format((b?z?b.getPropertyValue("background-position-x")+" "+b.getPropertyValue("background-position-y"):b.getPropertyValue("background-position"):a.currentStyle.backgroundPositionX+" "+a.currentStyle.backgroundPositionY)||"0 0");e=this.format(e);var h,n,f,g;if(-1!==b.indexOf("%")!==(-1!==e.indexOf("%"))){c=b.split(" ");h=e.split(" ");w.setAttribute("src",L(a,"backgroundImage").replace(D,""));for(n=2;-1<--n;)b=c[n],f=-1!==b.indexOf("%"),f!==(-1!==
+h[n].indexOf("%"))&&(g=0===n?a.offsetWidth-w.width:a.offsetHeight-w.height,c[n]=f?parseFloat(b)/100*g+"px":100*(parseFloat(b)/g)+"%");b=c.join(" ")}return this.parseComplex(a.style,b,e,d,l)},!1,!1,ia);K("backgroundSize","0 0",null,!1,!1,ia);K("perspective","0px",null,!0);K("perspectiveOrigin","50% 50%",null,!0);K("transformStyle","preserve-3d",null,!0);K("margin",null,B("marginTop,marginRight,marginBottom,marginLeft"));K("padding",null,B("paddingTop,paddingRight,paddingBottom,paddingLeft"));K("clip",
+"rect(0px,0px,0px,0px)");K("textShadow","0px 0px 0px #999",null,!1,!0);K("autoRound",null,function(a,e,b,c,d){return d});K("border","0px solid #000",function(a,e,b,c,d,l){return this.parseComplex(a.style,this.format(L(a,"borderTopWidth",k,!1,"0px")+" "+L(a,"borderTopStyle",k,!1,"solid")+" "+L(a,"borderTopColor",k,!1,"#000")),this.format(e),d,l)},!1,!0,function(a){var e=a.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(a.match(X)||["#000"])[0]});var za=function(a){var e=this.t;a=this.s+this.c*a;var b;
+100===a&&(e.removeAttribute("filter"),b=!L(this.data,"filter"));b||(this.xn1&&(e.filter=e.filter||"alpha(opacity=100)"),e.filter=-1===e.filter.indexOf("opacity")?e.filter+(" alpha(opacity="+(a>>0)+")"):e.filter.replace(r,"opacity="+(a>>0)))};K("opacity,alpha,autoAlpha","1",function(a,e,b,c,d,l){var h=parseFloat(L(a,"opacity",k,!1,"1"));e=parseFloat(e);var n=a.style,f;"autoAlpha"===b&&(f=L(a,"visibility",k),1===h&&"hidden"===f&&(h=0),d=new M(n,"visibility",0,0,d,-1,null,!1,0,0!==h?"visible":"hidden",
+0===e?"hidden":"visible"),d.xs0="visible",c._overwriteProps.push(d.n));H?d=new M(n,"opacity",h,e-h,d):(d=new M(n,"opacity",100*h,100*(e-h),d),d.xn1="autoAlpha"===b?1:0,n.zoom=1,d.type=2,d.b="alpha(opacity="+d.s+")",d.e="alpha(opacity="+(d.s+d.c)+")",d.data=a,d.plugin=l,d.setRatio=za);return d});var Aa=function(a){if(1===a||0===a){this.t.className=1===a?this.e:this.b;a=this.data;for(var e=this.t.style,b=e.removeProperty?"removeProperty":"removeAttribute";a;){if(a.v)e[a.p]=a.v;else e[b](a.p.replace(Q,
+"-$1").toLowerCase());a=a._next}}else this.t.className!==this.b&&(this.t.className=this.b)};K("className",null,function(a,e,b,c,d,l,h){var n=a.className,f=a.style.cssText;d=c._classNamePT=new M(a,b,0,0,d,2);d.setRatio=Aa;d.b=n;d.e="="!==e.charAt(1)?e:"+"===e.charAt(0)?n+" "+e.substr(2):n.split(e.substr(2)).join("");c._tween._duration&&(e=ea(a,k,!0),a.className=d.e,h=na(a,e,ea(a),h),a.className=n,d.data=h.firstMPT,a.style.cssText=f,d=d.xfirst=c.parse(a,h.difs,d,l));return d});c=["bezier","throwProps",
+"physicsProps","physics2D"];for(O=c.length;O--;)E(c[O]);c=m.prototype;c._firstPT=null;c._onInitTween=function(a,e,c){if(!a.nodeType)return!1;this._target=a;this._tween=c;this._vars=e;x=e.autoRound;j=!1;p=e.suffixMap||m.suffixMap;k=aa(a,"");b=this._overwriteProps;c=a.style;var d,l,h;if(U&&""===c.zIndex&&(d=L(a,"zIndex",k),"auto"===d||""===d))c.zIndex=0;"string"===typeof e&&(l=c.cssText,d=ea(a,k),c.cssText=l+";"+e,d=na(a,d,ea(a)).difs,!H&&Y.test(e)&&(d.opacity=parseFloat(RegExp.$1)),e=d,c.cssText=l);
+this._firstPT=a=this.parse(a,e,null);if(j){for(;a;){c=a._next;for(e=l;e&&e.pr>a.pr;)e=e._next;(a._prev=e?e._prev:h)?a._prev._next=a:l=a;(a._next=e)?e._prev=a:h=a;a=c}this._firstPT=l}return!0};c.parse=function(a,e,b,c){var d=a.style,l,h,n,f,g,j,m,z;for(l in e){g=e[l];if(h=t[l])b=h.parse(a,g,l,this,b,c,e);else if(h=L(a,l,k)+"",m="string"===typeof g,"color"===l||"fill"===l||"stroke"===l||-1!==l.indexOf("Color")||m&&!g.indexOf("rgb"))m||(g=ka(g),g=(3<g.length?"rgba(":"rgb(")+g.join(",")+")"),b=fa(d,l,
+h,g,!0,"transparent",b,0,c);else if(m&&(-1!==g.indexOf(" ")||-1!==g.indexOf(",")))b=fa(d,l,h,g,!0,null,b,0,c);else{n=parseFloat(h);j=h.substr((n+"").length);if(""===h||"auto"===h)if("width"===l||"height"===l){n=a;z=l;f=k;j=parseFloat("width"===z?n.offsetWidth:n.offsetHeight);z=ua[z];var q=z.length;for(f=f||aa(n,null);-1<--q;)j-=parseFloat(L(n,"padding"+z[q],f,!0))||0,j-=parseFloat(L(n,"border"+z[q]+"Width",f,!0))||0;n=j;j="px"}else n="opacity"!==l?0:1,j="";(z=m&&"="===g.charAt(1))?(f=parseInt(g.charAt(0)+
+"1"),g=g.substr(2),f*=parseFloat(g),m=g.substr((f+"").length-(0>f?1:0))||""):(f=parseFloat(g),m=m?g.substr((f+"").length)||"":"");""===m&&(m=p[l]||j);g=f||0===f?(z?f+n:f)+m:e[l];if(j!==m&&""!==m&&(f||0===f))if(n||0===n)if(n=S(a,l,n,j),"%"===m?(n/=S(a,l,100,"%")/100,100<n&&(n=100)):"em"===m?n/=S(a,l,1,"em"):(f=S(a,l,f,m),m="px"),z&&(f||0===f))g=f+n+m;z&&(f+=n);(n||0===n)&&(f||0===f)?(b=new M(d,l,n,f-n,b,0,"css_"+l,!1!==x&&("px"===m||"zIndex"===l),0,h,g),b.xs0=m):(b=new M(d,l,f||n||0,0,b,-1,"css_"+
+l,!1,0,h,g),b.xs0="display"===l&&"none"===g?h:g)}c&&(b&&!b.plugin)&&(b.plugin=c)}return b};c.setRatio=function(a){var e=this._firstPT,b,c;if(1===a&&(this._tween._time===this._tween._duration||0===this._tween._time))for(;e;)2!==e.type?e.t[e.p]=e.e:e.setRatio(a),e=e._next;else if(a||!(this._tween._time===this._tween._duration||0===this._tween._time)||-1E-6===this._tween._rawPrevTime)for(;e;){b=e.c*a+e.s;e.r?b=0<b?b+0.5>>0:b-0.5>>0:1E-6>b&&-1E-6<b&&(b=0);if(e.type)if(1===e.type)if(c=e.l,2===c)e.t[e.p]=
+e.xs0+b+e.xs1+e.xn1+e.xs2;else if(3===c)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3;else if(4===c)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3+e.xn3+e.xs4;else if(5===c)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3+e.xn3+e.xs4+e.xn4+e.xs5;else{b=e.xs0+b+e.xs1;for(c=1;c<e.l;c++)b+=e["xn"+c]+e["xs"+(c+1)];e.t[e.p]=b}else-1===e.type?e.t[e.p]=e.xs0:e.setRatio&&e.setRatio(a);else e.t[e.p]=b+e.xs0;e=e._next}else for(;e;)2!==e.type?e.t[e.p]=e.b:e.setRatio(a),e=e._next};c._enableTransforms=function(a,
+c,d){var h=this._transformPT,n=this._target,f=n.style;if(h)a&&V&&(h.setRatio=ta);else{if(P){if(e){U=!0;if(""===f.zIndex&&(h=L(n,"zIndex",k),"auto"===h||""===h))f.zIndex=0;l&&(f.WebkitBackfaceVisibility=this._vars.WebkitBackfaceVisibility||(a?"visible":"hidden"))}}else f.zoom=1;this._transformPT=c=new M(n,"transform",0,0,c,2);c.setRatio=a&&V?ta:P?ya:xa;c.plugin=d;c.data=this._transform||da(n,k,!0);b.pop()}return c};c._linkCSSP=function(e,a,b){e&&(a&&(a._prev=e),e._next&&(e._next._prev=e._prev),b&&
+(b._next=e),e._prev?e._prev._next=e._next:this._firstPT===e&&(this._firstPT=e._next),e._next=a,e._prev=b);return e};c._kill=function(e){var a=e,b=!1,c,d;if(e.css_autoAlpha||e.css_alpha){a={};for(d in e)a[d]=e[d];a.css_opacity=1;a.css_autoAlpha&&(a.css_visibility=1)}if(e.css_className&&(c=this._classNamePT))(e=c.xfirst)&&e._prev?this._linkCSSP(e._prev,c._next,e._prev._prev):e===this._firstPT&&(this._firstPT=null),c._next&&this._linkCSSP(c._next,c._next._next,e._prev),this._target._gsOverwrittenClassNamePT=
+this._linkCSSP(c,this._target._gsOverwrittenClassNamePT),this._classNamePT=null,b=!0;return s.prototype._kill.call(this,a)||b};s.activate([m]);return m},!0);_gsDefine("plugins.RoundPropsPlugin",["plugins.TweenPlugin"],function(s){var m=function(){s.call(this,"roundProps",-1);this._overwriteProps.length=0},j=m.prototype=new s("roundProps",-1);j.constructor=m;m.API=2;j._onInitTween=function(j,k,b){this._tween=b;return!0};j._onInitAllProps=function(){for(var j=this._tween,k=j.vars.roundProps instanceof
+Array?j.vars.roundProps:j.vars.roundProps.split(","),b=k.length,m={},c=j._propLookup.roundProps,a,f,d;-1<--b;)m[k[b]]=1;for(b=k.length;-1<--b;){a=k[b];for(f=j._firstPT;f;)d=f._next,f.pg?f.t._roundProps(m,!0):f.n===a&&(this._add(f.t,a,f.s,f.c),d&&(d._prev=f._prev),f._prev?f._prev._next=d:j._firstPT===f&&(j._firstPT=d),f._next=f._prev=null,j._propLookup[a]=c),f=d}return!1};j._add=function(j,k,b,m){this._addTween(j,k,b,b+m,k,!0);this._overwriteProps.push(k)};s.activate([m]);return m},!0);_gsDefine("easing.Back",
+["easing.Ease"],function(s){var m=window.com.greensock._class,j=function(a,b){var c=m("easing."+a,function(){},!0),d=c.prototype=new s;d.constructor=c;d.getRatio=b;return c},p=function(a,b){var c=m("easing."+a,function(a){this._p1=a||0===a?a:1.70158;this._p2=1.525*this._p1},!0),d=c.prototype=new s;d.constructor=c;d.getRatio=b;d.config=function(a){return new c(a)};return c},k=p("BackOut",function(a){return(a-=1)*a*((this._p1+1)*a+this._p1)+1}),b=p("BackIn",function(a){return a*a*((this._p1+1)*a-this._p1)}),
+p=p("BackInOut",function(a){return 1>(a*=2)?0.5*a*a*((this._p2+1)*a-this._p2):0.5*((a-=2)*a*((this._p2+1)*a+this._p2)+2)}),t=j("BounceOut",function(a){return a<1/2.75?7.5625*a*a:a<2/2.75?7.5625*(a-=1.5/2.75)*a+0.75:a<2.5/2.75?7.5625*(a-=2.25/2.75)*a+0.9375:7.5625*(a-=2.625/2.75)*a+0.984375}),c=j("BounceIn",function(a){return(a=1-a)<1/2.75?1-7.5625*a*a:a<2/2.75?1-(7.5625*(a-=1.5/2.75)*a+0.75):a<2.5/2.75?1-(7.5625*(a-=2.25/2.75)*a+0.9375):1-(7.5625*(a-=2.625/2.75)*a+0.984375)}),a=j("BounceInOut",function(a){var b=
+0.5>a;a=b?1-2*a:2*a-1;a=a<1/2.75?7.5625*a*a:a<2/2.75?7.5625*(a-=1.5/2.75)*a+0.75:a<2.5/2.75?7.5625*(a-=2.25/2.75)*a+0.9375:7.5625*(a-=2.625/2.75)*a+0.984375;return b?0.5*(1-a):0.5*a+0.5}),f=j("CircOut",function(a){return Math.sqrt(1-(a-=1)*a)}),d=j("CircIn",function(a){return-(Math.sqrt(1-a*a)-1)}),y=j("CircInOut",function(a){return 1>(a*=2)?-0.5*(Math.sqrt(1-a*a)-1):0.5*(Math.sqrt(1-(a-=2)*a)+1)}),g=2*Math.PI,r=function(a,b,c){var d=m("easing."+a,function(a,b){this._p1=a||1;this._p2=b||c;this._p3=
+this._p2/g*(Math.asin(1/this._p1)||0)},!0);a=d.prototype=new s;a.constructor=d;a.getRatio=b;a.config=function(a,b){return new d(a,b)};return d},Y=r("ElasticOut",function(a){return this._p1*Math.pow(2,-10*a)*Math.sin((a-this._p3)*g/this._p2)+1},0.3),Q=r("ElasticIn",function(a){return-(this._p1*Math.pow(2,10*(a-=1))*Math.sin((a-this._p3)*g/this._p2))},0.3),r=r("ElasticInOut",function(a){return 1>(a*=2)?-0.5*this._p1*Math.pow(2,10*(a-=1))*Math.sin((a-this._p3)*g/this._p2):0.5*this._p1*Math.pow(2,-10*
+(a-=1))*Math.sin((a-this._p3)*g/this._p2)+1},0.45),v=j("ExpoOut",function(a){return 1-Math.pow(2,-10*a)}),D=j("ExpoIn",function(a){return Math.pow(2,10*(a-1))-0.001}),u=j("ExpoInOut",function(a){return 1>(a*=2)?0.5*Math.pow(2,10*(a-1)):0.5*(2-Math.pow(2,-10*(a-1)))}),C=Math.PI/2,q=j("SineOut",function(a){return Math.sin(a*C)}),T=j("SineIn",function(a){return-Math.cos(a*C)+1}),j=j("SineInOut",function(a){return-0.5*(Math.cos(Math.PI*a)-1)}),I=m("easing.SlowMo",function(a,b,c){null==a?a=0.7:1<a&&(a=
+1);this._p=1!=a?b||0===b?b:0.7:0;this._p1=(1-a)/2;this._p2=a;this._p3=this._p1+this._p2;this._calcEnd=!0===c},!0),J=I.prototype=new s;J.constructor=I;J.getRatio=function(a){var b=a+(0.5-a)*this._p;return a<this._p1?this._calcEnd?1-(a=1-a/this._p1)*a:b-(a=1-a/this._p1)*a*a*a*b:a>this._p3?this._calcEnd?1-(a=(a-this._p3)/this._p1)*a:b+(a-b)*(a=(a-this._p3)/this._p1)*a*a*a:this._calcEnd?1:b};I.ease=new I(0.7,0.7);J.config=I.config=function(a,b,c){return new I(a,b,c)};var A=m("easing.SteppedEase",function(a){a=
+a||1;this._p1=1/a;this._p2=a+1},!0),J=A.prototype=new s;J.constructor=A;J.getRatio=function(a){0>a?a=0:1<=a&&(a=0.999999999);return(this._p2*a>>0)*this._p1};J.config=A.config=function(a){return new A(a)};m("easing.Bounce",{easeOut:new t,easeIn:new c,easeInOut:new a},!0);m("easing.Circ",{easeOut:new f,easeIn:new d,easeInOut:new y},!0);m("easing.Elastic",{easeOut:new Y,easeIn:new Q,easeInOut:new r},!0);m("easing.Expo",{easeOut:new v,easeIn:new D,easeInOut:new u},!0);m("easing.Sine",{easeOut:new q,easeIn:new T,
+easeInOut:new j},!0);return{easeOut:new k,easeIn:new b,easeInOut:new p}},!0)});
+(function(s){var m=function(a){a=a.split(".");var b=s,c;for(c=0;c<a.length;c++)b[a[c]]=b=b[a[c]]||{};return b},j=m("com.greensock"),p,k,b,t,c,a={},f=function(e,b,c,d){this.sc=a[e]?a[e].sc:[];a[e]=this;this.gsClass=null;this.def=c;var g=b||[],j=[];this.check=function(b){for(var n=g.length,h=0,k;-1<--n;)(k=a[g[n]]||new f(g[n])).gsClass?j[n]=k.gsClass:(h++,b&&k.sc.push(this));if(0===h&&c){b=("com.greensock."+e).split(".");var n=b.pop(),p=m(b.join("."))[n]=this.gsClass=c.apply(c,j);d&&((s.GreenSockGlobals||
+s)[n]=p,"function"===typeof define&&define.amd?define((s.GreenSockAMDPath?s.GreenSockAMDPath+"/":"")+e.split(".").join("/"),[],function(){return p}):"undefined"!==typeof module&&module.exports&&(module.exports=p));for(n=0;n<this.sc.length;n++)this.sc[n].check(!1)}};this.check(!0)},d=j._class=function(a,b,c){b=b||function(){};new f(a,[],function(){return b},c);return b};s._gsDefine=function(a,b,c,d){return new f(a,b,c,d)};var y=[0,0,1,1],g=[],r=d("easing.Ease",function(a,b,c,d){this._func=a;this._type=
+c||0;this._power=d||0;this._params=b?y.concat(b):y},!0);b=r.prototype;b._calcEnd=!1;b.getRatio=function(a){if(this._func)return this._params[0]=a,this._func.apply(null,this._params);var b=this._type,c=this._power,d=1===b?1-a:2===b?a:0.5>a?2*a:2*(1-a);1===c?d*=d:2===c?d*=d*d:3===c?d*=d*d*d:4===c&&(d*=d*d*d*d);return 1===b?1-d:2===b?d:0.5>a?d/2:1-d/2};p=["Linear","Quad","Cubic","Quart","Quint"];for(k=p.length;-1<--k;)b=d("easing."+p[k],null,!0),t=d("easing.Power"+k,null,!0),b.easeOut=t.easeOut=new r(null,
+null,1,k),b.easeIn=t.easeIn=new r(null,null,2,k),b.easeInOut=t.easeInOut=new r(null,null,3,k);d("easing.Strong",j.easing.Power4,!0);j.easing.Linear.easeNone=j.easing.Linear.easeIn;var Y=d("events.EventDispatcher",function(a){this._listeners={};this._eventTarget=a||this});b=Y.prototype;b.addEventListener=function(a,b,c,d,f){f=f||0;var g=this._listeners[a],j=0,h;null==g&&(this._listeners[a]=g=[]);for(h=g.length;-1<--h;)a=g[h],a.c===b?g.splice(h,1):0===j&&a.pr<f&&(j=h+1);g.splice(j,0,{c:b,s:c,up:d,pr:f})};
+b.removeEventListener=function(a,b){var c=this._listeners[a],d;if(c)for(d=c.length;-1<--d;)if(c[d].c===b){c.splice(d,1);break}};b.dispatchEvent=function(a){var b=this._listeners[a];if(b)for(var c=b.length,d=this._eventTarget,f;-1<--c;)f=b[c],f.up?f.c.call(f.s||d,{type:a,target:d}):f.c.call(f.s||d)};var Q=s.requestAnimationFrame,v=s.cancelAnimationFrame,D=Date.now||function(){return(new Date).getTime()};p=["ms","moz","webkit","o"];for(k=p.length;-1<--k&&!Q;)Q=s[p[k]+"RequestAnimationFrame"],v=s[p[k]+
+"CancelAnimationFrame"]||s[p[k]+"CancelRequestAnimationFrame"];d("Ticker",function(a,b){var c=this,d=D(),f=!1!==b&&Q,g,j,h,k,m,p=function(){null!=h&&(!f||!v?s.clearTimeout(h):v(h),h=null)},q=function(a){c.time=(D()-d)/1E3;if(!g||c.time>=m||!0===a)c.frame++,m=c.time>m?c.time+k-(c.time-m):c.time+k-0.001,m<c.time+0.001&&(m=c.time+0.001),c.dispatchEvent("tick");!0!==a&&(h=j(q))};Y.call(c);this.time=this.frame=0;this.tick=function(){q(!0)};this.fps=function(a){if(!arguments.length)return g;g=a;k=1/(g||
+60);m=this.time+k;j=0===g?function(){}:!f||!Q?function(a){return s.setTimeout(a,1E3*(m-c.time)+1>>0||1)}:Q;p();h=j(q)};this.useRAF=function(a){if(!arguments.length)return f;p();f=a;c.fps(g)};c.fps(a);s.setTimeout(function(){f&&!h&&c.useRAF(!1)},1E3)});b=j.Ticker.prototype=new j.events.EventDispatcher;b.constructor=j.Ticker;var u=d("core.Animation",function(a,b){this.vars=b||{};this._duration=this._totalDuration=a||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(w){c||(C.tick(),c=!0);var d=this.vars.useFrames?F:w;d.insert(this,d._time);this.vars.paused&&this.paused(!0)}}),C=u.ticker=new j.Ticker;b=u.prototype;b._dirty=b._gc=b._initted=b._paused=!1;b._totalTime=b._time=0;b._rawPrevTime=-1;b._next=b._last=b._onUpdate=b._timeline=b.timeline=null;b._paused=!1;b.play=function(a,b){arguments.length&&this.seek(a,b);this.reversed(!1);return this.paused(!1)};b.pause=function(a,b){arguments.length&&
+this.seek(a,b);return this.paused(!0)};b.resume=function(a,b){arguments.length&&this.seek(a,b);return this.paused(!1)};b.seek=function(a,b){return this.totalTime(Number(a),!1!=b)};b.restart=function(a,b){this.reversed(!1);this.paused(!1);return this.totalTime(a?-this._delay:0,!1!==b)};b.reverse=function(a,b){arguments.length&&this.seek(a||this.totalDuration(),b);this.reversed(!0);return this.paused(!1)};b.render=function(){};b.invalidate=function(){return this};b._enabled=function(a,b){this._gc=!a;
+this._active=a&&!this._paused&&0<this._totalTime&&this._totalTime<this._totalDuration;!0!==b&&(a&&null==this.timeline?this._timeline.insert(this,this._startTime-this._delay):!a&&null!=this.timeline&&this._timeline._remove(this,!0));return!1};b._kill=function(){return this._enabled(!1,!1)};b.kill=function(a,b){this._kill(a,b);return this};b._uncache=function(a){for(a=a?this:this.timeline;a;)a._dirty=!0,a=a.timeline;return this};b.eventCallback=function(a,b,c,d){if(null==a)return null;if("on"===a.substr(0,
+2)){if(1===arguments.length)return this.vars[a];if(null==b)delete this.vars[a];else if(this.vars[a]=b,this.vars[a+"Params"]=c,this.vars[a+"Scope"]=d,c)for(var f=c.length;-1<--f;)"{self}"===c[f]&&(c=this.vars[a+"Params"]=c.concat(),c[f]=this);"onUpdate"===a&&(this._onUpdate=b)}return this};b.delay=function(a){if(!arguments.length)return this._delay;this._timeline.smoothChildTiming&&this.startTime(this._startTime+a-this._delay);this._delay=a;return this};b.duration=function(a){if(!arguments.length)return this._dirty=
+!1,this._duration;this._duration=this._totalDuration=a;this._uncache(!0);this._timeline.smoothChildTiming&&0<this._time&&this._time<this._duration&&0!==a&&this.totalTime(this._totalTime*(a/this._duration),!0);return this};b.totalDuration=function(a){this._dirty=!1;return!arguments.length?this._totalDuration:this.duration(a)};b.time=function(a,b){if(!arguments.length)return this._time;this._dirty&&this.totalDuration();a>this._duration&&(a=this._duration);return this.totalTime(a,b)};b.totalTime=function(a,
b){if(!arguments.length)return this._totalTime;if(this._timeline){0>a&&(a+=this.totalDuration());if(this._timeline.smoothChildTiming&&(this._dirty&&this.totalDuration(),a>this._totalDuration&&(a=this._totalDuration),this._startTime=(this._paused?this._pauseTime:this._timeline._time)-(!this._reversed?a:this._totalDuration-a)/this._timeScale,this._timeline._dirty||this._uncache(!1),!this._timeline._active))for(var c=this._timeline;c._timeline;)c.totalTime(c._totalTime,!0),c=c._timeline;this._gc&&this._enabled(!0,
-!1);this._totalTime!==a&&this.render(a,b,!1)}return this};d.startTime=function(a){if(!arguments.length)return this._startTime;a!=this._startTime&&(this._startTime=a,this.timeline&&this.timeline._sortChildren&&this.timeline.insert(this,a-this._delay));return this};d.timeScale=function(a){if(!arguments.length)return this._timeScale;a=a||1E-6;if(this._timeline&&this._timeline.smoothChildTiming){var b=this._pauseTime||0===this._pauseTime?this._pauseTime:this._timeline._totalTime;this._startTime=b-(b-
-this._startTime)*this._timeScale/a}this._timeScale=a;return this._uncache(!1)};d.reversed=function(a){if(!arguments.length)return this._reversed;a!==this._reversed&&(this._reversed=a,this.totalTime(this._totalTime,!0));return this};d.paused=function(a){if(!arguments.length)return this._paused;a!==this._paused&&this._timeline&&(!a&&this._timeline.smoothChildTiming&&(this._startTime+=this._timeline.rawTime()-this._pauseTime,this._uncache(!1)),this._pauseTime=a?this._timeline.rawTime():null,this._paused=
-a,this._active=!this._paused&&0<this._totalTime&&this._totalTime<this._totalDuration);this._gc&&(a||this._enabled(!0,!1));return this};f=c("core.SimpleTimeline",function(a){r.call(this,0,a);this.autoRemoveChildren=this.smoothChildTiming=!0});d=f.prototype=new r;d.constructor=f;d.kill()._gc=!1;d._first=d._last=null;d._sortChildren=!1;d.insert=function(a,b){a._startTime=Number(b||0)+a._delay;a._paused&&this!==a._timeline&&(a._pauseTime=a._startTime+(this.rawTime()-a._startTime)/a._timeScale);a.timeline&&
-a.timeline._remove(a,!0);a.timeline=a._timeline=this;a._gc&&a._enabled(!0,!0);var c=this._last;if(this._sortChildren)for(var d=a._startTime;c&&c._startTime>d;)c=c._prev;c?(a._next=c._next,c._next=a):(a._next=this._first,this._first=a);a._next?a._next._prev=a:this._last=a;a._prev=c;this._timeline&&this._uncache(!0);return this};d._remove=function(a,b){a.timeline===this&&(b||a._enabled(!1,!0),a.timeline=null,a._prev?a._prev._next=a._next:this._first===a&&(this._first=a._next),a._next?a._next._prev=
-a._prev:this._last===a&&(this._last=a._prev),this._timeline&&this._uncache(!0));return this};d.render=function(a,b){var c=this._first,d;for(this._totalTime=this._time=this._rawPrevTime=a;c;){d=c._next;if(c._active||a>=c._startTime&&!c._paused)c._reversed?c.render((!c._dirty?c._totalDuration:c.totalDuration())-(a-c._startTime)*c._timeScale,b,!1):c.render((a-c._startTime)*c._timeScale,b,!1);c=d}};d.rawTime=function(){return this._totalTime};var k=c("TweenLite",function(a,b,c){r.call(this,b,c);if(null==
-a)throw"Cannot tween an undefined reference.";this.target=a;this._overwrite=null==this.vars.overwrite?p[k.defaultOverwrite]:"number"===typeof this.vars.overwrite?this.vars.overwrite>>0:p[this.vars.overwrite];if((a instanceof Array||a.jquery)&&"object"===typeof a[0]){this._targets=a.slice(0);this._propLookup=[];this._siblings=[];for(a=0;a<this._targets.length;a++)c=this._targets[a],c.jquery?(this._targets.splice(a--,1),this._targets=this._targets.concat(c.constructor.makeArray(c))):(this._siblings[a]=
-C(c,this,!1),1===this._overwrite&&1<this._siblings[a].length&&u(c,this,null,1,this._siblings[a]))}else this._propLookup={},this._siblings=C(a,this,!1),1===this._overwrite&&1<this._siblings.length&&u(a,this,null,1,this._siblings);(this.vars.immediateRender||0===b&&0===this._delay&&!1!==this.vars.immediateRender)&&this.render(-this._delay,!1,!0)},!0);d=k.prototype=new r;d.constructor=k;d.kill()._gc=!1;d.ratio=0;d._firstPT=d._targets=d._overwrittenProps=null;d._notifyPluginsOfEnabled=!1;k.version=1.651;
-k.defaultEase=d._ease=new J(null,null,1,1);k.defaultOverwrite="auto";k.ticker=A;var U=k._plugins={},I=k._tweenLookup={},D=0,t={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},p={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},x=r._rootFramesTimeline=new f,B=r._rootTimeline=new f;B._startTime=A.time;x._startTime=A.frame;B._active=x._active=!0;r._updateRoot=function(){B.render((A.time-B._startTime)*B._timeScale,!1,!1);x.render((A.frame-x._startTime)*x._timeScale,!1,!1);if(!(A.frame%120)){var a,b,c;for(c in I){b=I[c].tweens;for(a=b.length;-1<--a;)b[a]._gc&&b.splice(a,1);0===b.length&&delete I[c]}}};
-A.addEventListener("tick",r._updateRoot);var C=function(a,b,c){var d=a._gsTweenID,e;if(!I[d||(a._gsTweenID=d="t"+D++)])I[d]={target:a,tweens:[]};if(b&&(a=I[d].tweens,a[e=a.length]=b,c))for(;-1<--e;)a[e]===b&&a.splice(e,1);return I[d].tweens},u=function(a,b,c,d,e){var f,i,h;if(1===d||4<=d){a=e.length;for(f=0;f<a;f++)if((h=e[f])!==b)h._gc||h._enabled(!1,!1)&&(i=!0);else if(5===d)break;return i}var j=b._startTime+1E-10,k=[],l=0,p=0===b._duration,q;for(f=e.length;-1<--f;)if(!((h=e[f])===b||h._gc||h._paused))h._timeline!==
-b._timeline?(q=q||N(b,0,p),0===N(h,q,p)&&(k[l++]=h)):h._startTime<=j&&h._startTime+h.totalDuration()/h._timeScale+1E-10>j&&((p||!h._initted)&&2E-10>=j-h._startTime||(k[l++]=h));for(f=l;-1<--f;)if(h=k[f],2===d&&h._kill(c,a)&&(i=!0),2!==d||!h._firstPT&&h._initted)h._enabled(!1,!1)&&(i=!0);return i},N=function(a,b,c){for(var d=a._timeline,e=d._timeScale,f=a._startTime;d._timeline;){f+=d._startTime;e*=d._timeScale;if(d._paused)return-100;d=d._timeline}f/=e;return f>b?f-b:c&&f===b||!a._initted&&2E-10>
-f-b?1E-10:(f+=a.totalDuration()/a._timeScale/e)>b?0:f-b-1E-10};d._init=function(){this.vars.startAt&&(this.vars.startAt.overwrite=0,this.vars.startAt.immediateRender=!0,k.to(this.target,0,this.vars.startAt));var a,b;this._ease=this.vars.ease instanceof J?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 J(this.vars.ease,this.vars.easeParams):k.defaultEase;this._easeType=this._ease._type;this._easePower=
-this._ease._power;this._firstPT=null;if(this._targets)for(a=this._targets.length;-1<--a;){if(this._initProps(this._targets[a],this._propLookup[a]={},this._siblings[a],this._overwrittenProps?this._overwrittenProps[a]:null))b=!0}else b=this._initProps(this.target,this._propLookup,this._siblings,this._overwrittenProps);b&&k._onPluginEvent("_onInitAllProps",this);this._overwrittenProps&&null==this._firstPT&&"function"!==typeof this.target&&this._enabled(!1,!1);if(this.vars.runBackwards)for(a=this._firstPT;a;)a.s+=
-a.c,a.c=-a.c,a=a._next;this._onUpdate=this.vars.onUpdate;this._initted=!0};d._initProps=function(a,b,c,d){var e,f,i,h,j,k;if(null==a)return!1;for(e in this.vars){if(t[e]){if("onStartParams"===e||"onUpdateParams"===e||"onCompleteParams"===e||"onReverseCompleteParams"===e||"onRepeatParams"===e)if(j=this.vars[e])for(f=j.length;-1<--f;)"{self}"===j[f]&&(j=this.vars[e]=j.concat(),j[f]=this)}else if(U[e]&&(h=new U[e])._onInitTween(a,this.vars[e],this)){this._firstPT=k={_next:this._firstPT,t:h,p:"setRatio",
-s:0,c:1,f:!0,n:e,pg:!0,pr:h._priority};for(f=h._overwriteProps.length;-1<--f;)b[h._overwriteProps[f]]=this._firstPT;if(h._priority||h._onInitAllProps)i=!0;if(h._onDisable||h._onEnable)this._notifyPluginsOfEnabled=!0}else this._firstPT=b[e]=k={_next:this._firstPT,t:a,p:e,f:"function"===typeof a[e],n:e,pg:!1,pr:0},k.s=!k.f?parseFloat(a[e]):a[e.indexOf("set")||"function"!==typeof a["get"+e.substr(3)]?e:"get"+e.substr(3)](),f=this.vars[e],k.c="number"===typeof f?f-k.s:"string"===typeof f&&"="===f.charAt(1)?
-parseInt(f.charAt(0)+"1")*Number(f.substr(2)):Number(f)||0;k&&k._next&&(k._next._prev=k)}return d&&this._kill(d,a)?this._initProps(a,b,c,d):1<this._overwrite&&this._firstPT&&1<c.length&&u(a,this,b,this._overwrite,c)?(this._kill(b,a),this._initProps(a,b,c,d)):i};d.render=function(a,b,c){var d=this._time,e,f;if(a>=this._duration){if(this._totalTime=this._time=this._duration,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(e=!0,f="onComplete"),0===this._duration){if(0===a||0>
-this._rawPrevTime)this._rawPrevTime!==a&&(c=!0);this._rawPrevTime=a}}else if(0>=a){this._totalTime=this._time=0;this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0;if(0!==d||0===this._duration&&0<this._rawPrevTime)f="onReverseComplete",e=this._reversed;0>a?(this._active=!1,0===this._duration&&(0<=this._rawPrevTime&&(c=!0),this._rawPrevTime=a)):this._initted||(c=!0)}else if(this._totalTime=this._time=a,this._easeType){var h=a/this._duration,j=this._easeType,k=this._easePower;if(1===j||3===j&&0.5<=
-h)h=1-h;3===j&&(h*=2);1===k?h*=h:2===k?h*=h*h:3===k?h*=h*h*h:4===k&&(h*=h*h*h*h);this.ratio=1===j?1-h:2===j?h:0.5>a/this._duration?h/2:1-h/2}else this.ratio=this._ease.getRatio(a/this._duration);if(this._time!==d||c){this._initted||(this._init(),!e&&this._time&&(this.ratio=this._ease.getRatio(this._time/this._duration)));!this._active&&!this._paused&&(this._active=!0);if(0===d&&this.vars.onStart&&(0!==this._time||0===this._duration))b||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||
-i);for(a=this._firstPT;a;){if(a.f)a.t[a.p](a.c*this.ratio+a.s);else a.t[a.p]=a.c*this.ratio+a.s;a=a._next}this._onUpdate&&(b||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||i));f&&!this._gc&&(e&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),b||this.vars[f]&&this.vars[f].apply(this.vars[f+"Scope"]||this,this.vars[f+"Params"]||i))}};d._kill=function(a,b){"all"===a&&(a=null);if(null==a&&(null==b||b==this.target))return this._enabled(!1,!1);var b=
-b||this._targets||this.target,c,d,e,f,h,i,j;if((b instanceof Array||b.jquery)&&"object"===typeof b[0])for(c=b.length;-1<--c;)this._kill(a,b[c])&&(h=!0);else{if(this._targets)for(c=this._targets.length;-1<--c;){if(b===this._targets[c]){f=this._propLookup[c]||{};this._overwrittenProps=this._overwrittenProps||[];d=this._overwrittenProps[c]=a?this._overwrittenProps[c]||{}:"all";break}}else{if(b!==this.target)return!1;f=this._propLookup;d=this._overwrittenProps=a?this._overwrittenProps||{}:"all"}if(f)for(e in i=
-a||f,j=a!=d&&"all"!=d&&a!=f&&(null==a||!0!=a._tempKill),i){if(c=f[e]){c.pg&&c.t._kill(i)&&(h=!0);if(!c.pg||0===c.t._overwriteProps.length)c._prev?c._prev._next=c._next:c===this._firstPT&&(this._firstPT=c._next),c._next&&(c._next._prev=c._prev),c._next=c._prev=null;delete f[e]}j&&(d[e]=1)}}return h};d.invalidate=function(){this._notifyPluginsOfEnabled&&k._onPluginEvent("_onDisable",this);this._onUpdate=this._overwrittenProps=this._firstPT=null;this._initted=this._active=this._notifyPluginsOfEnabled=
-!1;this._propLookup=this._targets?{}:[];return this};d._enabled=function(a,b){if(a&&this._gc)if(this._targets)for(var c=this._targets.length;-1<--c;)this._siblings[c]=C(this._targets[c],this,!0);else this._siblings=C(this.target,this,!0);r.prototype._enabled.call(this,a,b);return this._notifyPluginsOfEnabled&&this._firstPT?k._onPluginEvent(a?"_onEnable":"_onDisable",this):!1};k.to=function(a,b,c){return new k(a,b,c)};k.from=function(a,b,c){c.runBackwards=!0;!1!=c.immediateRender&&(c.immediateRender=
-!0);return new k(a,b,c)};k.fromTo=function(a,b,c,d){d.startAt=c;c.immediateRender&&(d.immediateRender=!0);return new k(a,b,d)};k.delayedCall=function(a,b,c,d,e){return new k(b,0,{delay:a,onComplete:b,onCompleteParams:c,onCompleteScope:d,onReverseComplete:b,onReverseCompleteParams:c,onReverseCompleteScope:d,immediateRender:!1,useFrames:e,overwrite:0})};k.set=function(a,b){return new k(a,0,b)};k.killTweensOf=k.killDelayedCallsTo=function(a,b){for(var c=k.getTweensOf(a),d=c.length;-1<--d;)c[d]._kill(b,
-a)};k.getTweensOf=function(a){if(null!=a){var b,c,d;if((a instanceof Array||a.jquery)&&"object"===typeof a[0]){b=a.length;for(c=[];-1<--b;)c=c.concat(k.getTweensOf(a[b]));for(b=c.length;-1<--b;){d=c[b];for(a=b;-1<--a;)d===c[a]&&c.splice(b,1)}}else{c=C(a).concat();for(b=c.length;-1<--b;)c[b]._gc&&c.splice(b,1)}return c}};var L=c("plugins.TweenPlugin",function(a,b){this._overwriteProps=(a||"").split(",");this._propName=this._overwriteProps[0];this._priority=b||0},!0);d=L.prototype;L.version=12;L.API=
-2;d._firstPT=null;d._addTween=function(a,b,c,d,e,f){var h;if(null!=d&&(h="number"===typeof d||"="!==d.charAt(1)?Number(d)-c:parseInt(d.charAt(0)+"1")*Number(d.substr(2))))this._firstPT=a={_next:this._firstPT,t:a,p:b,s:c,c:h,f:"function"===typeof a[b],n:e||b,r:f},a._next&&(a._next._prev=a)};d.setRatio=function(a){for(var b=this._firstPT,c;b;){c=b.c*a+b.s;b.r&&(c=c+(0<c?0.5:-0.5)>>0);if(b.f)b.t[b.p](c);else b.t[b.p]=c;b=b._next}};d._kill=function(a){if(null!=a[this._propName])this._overwriteProps=[];
-else for(var b=this._overwriteProps.length;-1<--b;)null!=a[this._overwriteProps[b]]&&this._overwriteProps.splice(b,1);for(b=this._firstPT;b;)null!=a[b.n]&&(b._next&&(b._next._prev=b._prev),b._prev?(b._prev._next=b._next,b._prev=null):this._firstPT===b&&(this._firstPT=b._next)),b=b._next;return!1};d._roundProps=function(a,b){for(var c=this._firstPT;c;){if(a[this._propName]||null!=c.n&&a[c.n.split(this._propName+"_").join("")])c.r=b;c=c._next}};k._onPluginEvent=function(a,b){var c=b._firstPT,d;if("_onInitAllProps"===
-a){for(var e,f,h,i;c;){i=c._next;for(e=f;e&&e.pr>c.pr;)e=e._next;(c._prev=e?e._prev:h)?c._prev._next=c:f=c;(c._next=e)?e._prev=c:h=c;c=i}c=b._firstPT=f}for(;c;)c.pg&&"function"===typeof c.t[a]&&c.t[a]()&&(d=!0),c=c._next;return d};L.activate=function(a){for(var b=a.length;-1<--b;)a[b].API===L.API&&(k._plugins[(new a[b])._propName]=a[b]);return!0};if(j=q._gsQueue){for(l=0;l<j.length;l++)j[l]();for(d in a)a[d].def||console.log("Warning: TweenLite encountered missing dependency: com.greensock."+d)}})(window);
\ No newline at end of file
+!1);this._totalTime!==a&&this.render(a,b,!1)}return this};b.startTime=function(a){if(!arguments.length)return this._startTime;a!=this._startTime&&(this._startTime=a,this.timeline&&this.timeline._sortChildren&&this.timeline.insert(this,a-this._delay));return this};b.timeScale=function(a){if(!arguments.length)return this._timeScale;a=a||1E-6;if(this._timeline&&this._timeline.smoothChildTiming){var b=this._pauseTime||0===this._pauseTime?this._pauseTime:this._timeline._totalTime;this._startTime=b-(b-
+this._startTime)*this._timeScale/a}this._timeScale=a;return this._uncache(!1)};b.reversed=function(a){if(!arguments.length)return this._reversed;a!==this._reversed&&(this._reversed=a,this.totalTime(this._totalTime,!0));return this};b.paused=function(a){if(!arguments.length)return this._paused;a!==this._paused&&this._timeline&&(!a&&this._timeline.smoothChildTiming&&(this._startTime+=this._timeline.rawTime()-this._pauseTime,this._uncache(!1)),this._pauseTime=a?this._timeline.rawTime():null,this._paused=
+a,this._active=!this._paused&&0<this._totalTime&&this._totalTime<this._totalDuration);this._gc&&(a||this._enabled(!0,!1));return this};j=d("core.SimpleTimeline",function(a){u.call(this,0,a);this.autoRemoveChildren=this.smoothChildTiming=!0});b=j.prototype=new u;b.constructor=j;b.kill()._gc=!1;b._first=b._last=null;b._sortChildren=!1;b.insert=function(a,b){a._startTime=Number(b||0)+a._delay;a._paused&&this!==a._timeline&&(a._pauseTime=a._startTime+(this.rawTime()-a._startTime)/a._timeScale);a.timeline&&
+a.timeline._remove(a,!0);a.timeline=a._timeline=this;a._gc&&a._enabled(!0,!0);var c=this._last;if(this._sortChildren)for(var d=a._startTime;c&&c._startTime>d;)c=c._prev;c?(a._next=c._next,c._next=a):(a._next=this._first,this._first=a);a._next?a._next._prev=a:this._last=a;a._prev=c;this._timeline&&this._uncache(!0);return this};b._remove=function(a,b){a.timeline===this&&(b||a._enabled(!1,!0),a.timeline=null,a._prev?a._prev._next=a._next:this._first===a&&(this._first=a._next),a._next?a._next._prev=
+a._prev:this._last===a&&(this._last=a._prev),this._timeline&&this._uncache(!0));return this};b.render=function(a,b){var c=this._first,d;for(this._totalTime=this._time=this._rawPrevTime=a;c;){d=c._next;if(c._active||a>=c._startTime&&!c._paused)c._reversed?c.render((!c._dirty?c._totalDuration:c.totalDuration())-(a-c._startTime)*c._timeScale,b,!1):c.render((a-c._startTime)*c._timeScale,b,!1);c=d}};b.rawTime=function(){return this._totalTime};var q=d("TweenLite",function(a,b,c){u.call(this,b,c);if(null==
+a)throw"Cannot tween an undefined reference.";this.target=a;this._overwrite=null==this.vars.overwrite?h[q.defaultOverwrite]:"number"===typeof this.vars.overwrite?this.vars.overwrite>>0:h[this.vars.overwrite];if((a instanceof Array||a.jquery)&&"object"===typeof a[0]){this._targets=a.slice(0);this._propLookup=[];this._siblings=[];for(a=0;a<this._targets.length;a++)c=this._targets[a],c.jquery?(this._targets.splice(a--,1),this._targets=this._targets.concat(c.constructor.makeArray(c))):(this._siblings[a]=
+E(c,this,!1),1===this._overwrite&&1<this._siblings[a].length&&B(c,this,null,1,this._siblings[a]))}else this._propLookup={},this._siblings=E(a,this,!1),1===this._overwrite&&1<this._siblings.length&&B(a,this,null,1,this._siblings);(this.vars.immediateRender||0===b&&0===this._delay&&!1!==this.vars.immediateRender)&&this.render(-this._delay,!1,!0)},!0);b=q.prototype=new u;b.constructor=q;b.kill()._gc=!1;b.ratio=0;b._firstPT=b._targets=b._overwrittenProps=null;b._notifyPluginsOfEnabled=!1;q.version=1.651;
+q.defaultEase=b._ease=new r(null,null,1,1);q.defaultOverwrite="auto";q.ticker=C;var T=q._plugins={},I=q._tweenLookup={},J=0,A={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},h={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},F=u._rootFramesTimeline=new j,w=u._rootTimeline=new j;w._startTime=C.time;F._startTime=C.frame;w._active=F._active=!0;u._updateRoot=function(){w.render((C.time-w._startTime)*w._timeScale,!1,!1);F.render((C.frame-F._startTime)*F._timeScale,!1,!1);if(!(C.frame%120)){var a,b,c;for(c in I){b=I[c].tweens;for(a=b.length;-1<--a;)b[a]._gc&&b.splice(a,1);0===b.length&&delete I[c]}}};
+C.addEventListener("tick",u._updateRoot);var E=function(a,b,c){var d=a._gsTweenID,f;if(!I[d||(a._gsTweenID=d="t"+J++)])I[d]={target:a,tweens:[]};if(b&&(a=I[d].tweens,a[f=a.length]=b,c))for(;-1<--f;)a[f]===b&&a.splice(f,1);return I[d].tweens},B=function(a,b,c,d,f){var g,j,h;if(1===d||4<=d){a=f.length;for(g=0;g<a;g++)if((h=f[g])!==b)h._gc||h._enabled(!1,!1)&&(j=!0);else if(5===d)break;return j}var k=b._startTime+1E-10,m=[],p=0,q=0===b._duration,r;for(g=f.length;-1<--g;)if(!((h=f[g])===b||h._gc||h._paused))h._timeline!==
+b._timeline?(r=r||x(b,0,q),0===x(h,r,q)&&(m[p++]=h)):h._startTime<=k&&h._startTime+h.totalDuration()/h._timeScale+1E-10>k&&((q||!h._initted)&&2E-10>=k-h._startTime||(m[p++]=h));for(g=p;-1<--g;)if(h=m[g],2===d&&h._kill(c,a)&&(j=!0),2!==d||!h._firstPT&&h._initted)h._enabled(!1,!1)&&(j=!0);return j},x=function(a,b,c){for(var d=a._timeline,f=d._timeScale,g=a._startTime;d._timeline;){g+=d._startTime;f*=d._timeScale;if(d._paused)return-100;d=d._timeline}g/=f;return g>b?g-b:c&&g===b||!a._initted&&2E-10>
+g-b?1E-10:(g+=a.totalDuration()/a._timeScale/f)>b?0:g-b-1E-10};b._init=function(){this.vars.startAt&&(this.vars.startAt.overwrite=0,this.vars.startAt.immediateRender=!0,q.to(this.target,0,this.vars.startAt));var a,b;this._ease=this.vars.ease instanceof r?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 r(this.vars.ease,this.vars.easeParams):q.defaultEase;this._easeType=this._ease._type;this._easePower=
+this._ease._power;this._firstPT=null;if(this._targets)for(a=this._targets.length;-1<--a;){if(this._initProps(this._targets[a],this._propLookup[a]={},this._siblings[a],this._overwrittenProps?this._overwrittenProps[a]:null))b=!0}else b=this._initProps(this.target,this._propLookup,this._siblings,this._overwrittenProps);b&&q._onPluginEvent("_onInitAllProps",this);this._overwrittenProps&&null==this._firstPT&&"function"!==typeof this.target&&this._enabled(!1,!1);if(this.vars.runBackwards)for(a=this._firstPT;a;)a.s+=
+a.c,a.c=-a.c,a=a._next;this._onUpdate=this.vars.onUpdate;this._initted=!0};b._initProps=function(a,b,c,d){var f,g,j,h,k,m;if(null==a)return!1;for(f in this.vars){if(A[f]){if("onStartParams"===f||"onUpdateParams"===f||"onCompleteParams"===f||"onReverseCompleteParams"===f||"onRepeatParams"===f)if(k=this.vars[f])for(g=k.length;-1<--g;)"{self}"===k[g]&&(k=this.vars[f]=k.concat(),k[g]=this)}else if(T[f]&&(h=new T[f])._onInitTween(a,this.vars[f],this)){this._firstPT=m={_next:this._firstPT,t:h,p:"setRatio",
+s:0,c:1,f:!0,n:f,pg:!0,pr:h._priority};for(g=h._overwriteProps.length;-1<--g;)b[h._overwriteProps[g]]=this._firstPT;if(h._priority||h._onInitAllProps)j=!0;if(h._onDisable||h._onEnable)this._notifyPluginsOfEnabled=!0}else this._firstPT=b[f]=m={_next:this._firstPT,t:a,p:f,f:"function"===typeof a[f],n:f,pg:!1,pr:0},m.s=!m.f?parseFloat(a[f]):a[f.indexOf("set")||"function"!==typeof a["get"+f.substr(3)]?f:"get"+f.substr(3)](),g=this.vars[f],m.c="number"===typeof g?g-m.s:"string"===typeof g&&"="===g.charAt(1)?
+parseInt(g.charAt(0)+"1")*Number(g.substr(2)):Number(g)||0;m&&m._next&&(m._next._prev=m)}return d&&this._kill(d,a)?this._initProps(a,b,c,d):1<this._overwrite&&this._firstPT&&1<c.length&&B(a,this,b,this._overwrite,c)?(this._kill(b,a),this._initProps(a,b,c,d)):j};b.render=function(a,b,c){var d=this._time,f,j;if(a>=this._duration){if(this._totalTime=this._time=this._duration,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(f=!0,j="onComplete"),0===this._duration){if(0===a||0>
+this._rawPrevTime)this._rawPrevTime!==a&&(c=!0);this._rawPrevTime=a}}else if(0>=a){this._totalTime=this._time=0;this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0;if(0!==d||0===this._duration&&0<this._rawPrevTime)j="onReverseComplete",f=this._reversed;0>a?(this._active=!1,0===this._duration&&(0<=this._rawPrevTime&&(c=!0),this._rawPrevTime=a)):this._initted||(c=!0)}else if(this._totalTime=this._time=a,this._easeType){var h=a/this._duration,k=this._easeType,m=this._easePower;if(1===k||3===k&&0.5<=
+h)h=1-h;3===k&&(h*=2);1===m?h*=h:2===m?h*=h*h:3===m?h*=h*h*h:4===m&&(h*=h*h*h*h);this.ratio=1===k?1-h:2===k?h:0.5>a/this._duration?h/2:1-h/2}else this.ratio=this._ease.getRatio(a/this._duration);if(this._time!==d||c){this._initted||(this._init(),!f&&this._time&&(this.ratio=this._ease.getRatio(this._time/this._duration)));!this._active&&!this._paused&&(this._active=!0);if(0===d&&this.vars.onStart&&(0!==this._time||0===this._duration))b||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||
+g);for(a=this._firstPT;a;){if(a.f)a.t[a.p](a.c*this.ratio+a.s);else a.t[a.p]=a.c*this.ratio+a.s;a=a._next}this._onUpdate&&(b||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||g));j&&!this._gc&&(f&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),b||this.vars[j]&&this.vars[j].apply(this.vars[j+"Scope"]||this,this.vars[j+"Params"]||g))}};b._kill=function(a,b){"all"===a&&(a=null);if(null==a&&(null==b||b==this.target))return this._enabled(!1,!1);b=
+b||this._targets||this.target;var c,d,f,g,h,j,k;if((b instanceof Array||b.jquery)&&"object"===typeof b[0])for(c=b.length;-1<--c;)this._kill(a,b[c])&&(h=!0);else{if(this._targets)for(c=this._targets.length;-1<--c;){if(b===this._targets[c]){g=this._propLookup[c]||{};this._overwrittenProps=this._overwrittenProps||[];d=this._overwrittenProps[c]=a?this._overwrittenProps[c]||{}:"all";break}}else{if(b!==this.target)return!1;g=this._propLookup;d=this._overwrittenProps=a?this._overwrittenProps||{}:"all"}if(g)for(f in j=
+a||g,k=a!=d&&"all"!=d&&a!=g&&(null==a||!0!=a._tempKill),j){if(c=g[f]){c.pg&&c.t._kill(j)&&(h=!0);if(!c.pg||0===c.t._overwriteProps.length)c._prev?c._prev._next=c._next:c===this._firstPT&&(this._firstPT=c._next),c._next&&(c._next._prev=c._prev),c._next=c._prev=null;delete g[f]}k&&(d[f]=1)}}return h};b.invalidate=function(){this._notifyPluginsOfEnabled&&q._onPluginEvent("_onDisable",this);this._onUpdate=this._overwrittenProps=this._firstPT=null;this._initted=this._active=this._notifyPluginsOfEnabled=
+!1;this._propLookup=this._targets?{}:[];return this};b._enabled=function(a,b){if(a&&this._gc)if(this._targets)for(var c=this._targets.length;-1<--c;)this._siblings[c]=E(this._targets[c],this,!0);else this._siblings=E(this.target,this,!0);u.prototype._enabled.call(this,a,b);return this._notifyPluginsOfEnabled&&this._firstPT?q._onPluginEvent(a?"_onEnable":"_onDisable",this):!1};q.to=function(a,b,c){return new q(a,b,c)};q.from=function(a,b,c){c.runBackwards=!0;!1!=c.immediateRender&&(c.immediateRender=
+!0);return new q(a,b,c)};q.fromTo=function(a,b,c,d){d.startAt=c;c.immediateRender&&(d.immediateRender=!0);return new q(a,b,d)};q.delayedCall=function(a,b,c,d,f){return new q(b,0,{delay:a,onComplete:b,onCompleteParams:c,onCompleteScope:d,onReverseComplete:b,onReverseCompleteParams:c,onReverseCompleteScope:d,immediateRender:!1,useFrames:f,overwrite:0})};q.set=function(a,b){return new q(a,0,b)};q.killTweensOf=q.killDelayedCallsTo=function(a,b){for(var c=q.getTweensOf(a),d=c.length;-1<--d;)c[d]._kill(b,
+a)};q.getTweensOf=function(a){if(null!=a){var b,c,d;if((a instanceof Array||a.jquery)&&"object"===typeof a[0]){b=a.length;for(c=[];-1<--b;)c=c.concat(q.getTweensOf(a[b]));for(b=c.length;-1<--b;){d=c[b];for(a=b;-1<--a;)d===c[a]&&c.splice(b,1)}}else{c=E(a).concat();for(b=c.length;-1<--b;)c[b]._gc&&c.splice(b,1)}return c}};var U=d("plugins.TweenPlugin",function(a,b){this._overwriteProps=(a||"").split(",");this._propName=this._overwriteProps[0];this._priority=b||0},!0);b=U.prototype;U.version=12;U.API=
+2;b._firstPT=null;b._addTween=function(a,b,c,d,f,g){var h;if(null!=d&&(h="number"===typeof d||"="!==d.charAt(1)?Number(d)-c:parseInt(d.charAt(0)+"1")*Number(d.substr(2))))this._firstPT=a={_next:this._firstPT,t:a,p:b,s:c,c:h,f:"function"===typeof a[b],n:f||b,r:g},a._next&&(a._next._prev=a)};b.setRatio=function(a){for(var b=this._firstPT,c;b;){c=b.c*a+b.s;b.r&&(c=c+(0<c?0.5:-0.5)>>0);if(b.f)b.t[b.p](c);else b.t[b.p]=c;b=b._next}};b._kill=function(a){if(null!=a[this._propName])this._overwriteProps=[];
+else for(var b=this._overwriteProps.length;-1<--b;)null!=a[this._overwriteProps[b]]&&this._overwriteProps.splice(b,1);for(b=this._firstPT;b;)null!=a[b.n]&&(b._next&&(b._next._prev=b._prev),b._prev?(b._prev._next=b._next,b._prev=null):this._firstPT===b&&(this._firstPT=b._next)),b=b._next;return!1};b._roundProps=function(a,b){for(var c=this._firstPT;c;){if(a[this._propName]||null!=c.n&&a[c.n.split(this._propName+"_").join("")])c.r=b;c=c._next}};q._onPluginEvent=function(a,b){var c=b._firstPT,d;if("_onInitAllProps"===
+a){for(var f,g,h,j;c;){j=c._next;for(f=g;f&&f.pr>c.pr;)f=f._next;(c._prev=f?f._prev:h)?c._prev._next=c:g=c;(c._next=f)?f._prev=c:h=c;c=j}c=b._firstPT=g}for(;c;)c.pg&&"function"===typeof c.t[a]&&c.t[a]()&&(d=!0),c=c._next;return d};U.activate=function(a){for(var b=a.length;-1<--b;)a[b].API===U.API&&(q._plugins[(new a[b])._propName]=a[b]);return!0};if(p=s._gsQueue){for(k=0;k<p.length;k++)p[k]();for(b in a)a[b].def||console.log("Warning: TweenLite encountered missing dependency: com.greensock."+b)}})(window);
\ No newline at end of file
diff --git a/src/minified/plugins/BezierPlugin.min.js b/src/minified/plugins/BezierPlugin.min.js
index fa2271d..d651c8e 100755
--- a/src/minified/plugins/BezierPlugin.min.js
+++ b/src/minified/plugins/BezierPlugin.min.js
@@ -1,6 +1,6 @@
/*!
- * VERSION: beta 1.13
- * DATE: 2012-11-14
+ * VERSION: beta 1.14
+ * DATE: 2012-12-14
* JavaScript (also available in AS3 and AS2)
* UPDATES AND DOCS AT: http://www.greensock.com
*
@@ -10,18 +10,18 @@
*
* @author: Jack Doyle, [email protected]
*/
-(window._gsQueue||(window._gsQueue=[])).push(function(){_gsDefine("plugins.BezierPlugin",["plugins.TweenPlugin"],function(E){var y=function(){E.call(this,"bezier",-1);this._overwriteProps.pop();this._func={};this._round={}},D=y.prototype=new E("bezier",1),H=180/Math.PI,z=[],A=[],B=[],F={},C=function(a,d,g,m){this.a=a;this.b=d;this.c=g;this.d=m;this.da=m-a;this.ca=g-a;this.ba=d-a},I=y.bezierThrough=function(a,d,g,m,j,b){var c={},f=[],e,i,n,j="string"===typeof j?","+j+",":",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,";
-null==d&&(d=1);for(i in a[0])f.push(i);z.length=A.length=B.length=0;for(e=f.length;-1<--e;){i=f[e];F[i]=-1!==j.indexOf(","+i+",");n=c;var s=i,p;p=a;var k=i,t=F[i],l=b,q=[],r=void 0,h=void 0,v=void 0,u=void 0,w=void 0,r=void 0;if(l){p=[l].concat(p);for(h=p.length;-1<--h;)if("string"===typeof(r=p[h][k]))"="===r.charAt(1)&&(p[h][k]=l[k]+Number(r.charAt(0)+r.substr(2)))}r=p.length-2;if(0>r)q[0]=new C(p[0][k],0,0,p[-1>r?0:1][k]);else{for(h=0;h<r;h++)v=p[h][k],u=p[h+1][k],q[h]=new C(v,0,0,u),t&&(w=p[h+
-2][k],z[h]=(z[h]||0)+(u-v)*(u-v),A[h]=(A[h]||0)+(w-u)*(w-u));q[h]=new C(p[h][k],0,0,p[h+1][k])}p=q;n[s]=p}for(e=z.length;-1<--e;)z[e]=Math.sqrt(z[e]),A[e]=Math.sqrt(A[e]);if(!m){for(e=f.length;-1<--e;)if(F[i]){a=c[f[e]];n=a.length-1;for(j=0;j<n;j++)b=a[j+1].da/A[j]+a[j].da/z[j],B[j]=(B[j]||0)+b*b}for(e=B.length;-1<--e;)B[e]=Math.sqrt(B[e])}for(e=f.length;-1<--e;){i=f[e];a=c[i];j=d;b=g;n=m;i=F[i];s=a.length-1;p=0;for(var k=a[0].a,x=w=u=l=r=u=v=r=h=v=q=l=t=void 0,t=0;t<s;t++)h=a[p],l=h.a,q=h.d,v=a[p+
-1].d,i?(u=z[t],w=A[t],x=0.25*(w+u)*j/(n?0.5:B[t]||0.5),r=q-(q-l)*(n?0.5*j:x/u),v=q+(v-q)*(n?0.5*j:x/w),u=q-(r+(v-r)*(3*u/(u+w)+0.5)/4)):(r=q-0.5*(q-l)*j,v=q+0.5*(v-q)*j,u=q-(r+v)/2),r+=u,v+=u,h.c=r,h.b=0!==t?k:k=h.a+0.6*(h.c-h.a),h.da=q-l,h.ca=r-l,h.ba=k-l,b?(l=G(l,k,r,q),a.splice(p,1,l[0],l[1],l[2],l[3]),p+=4):p++,k=v;h=a[p];h.b=k;h.c=k+0.4*(h.d-k);h.da=h.d-h.a;h.ca=h.c-h.a;h.ba=k-h.a;b&&(l=G(h.a,k,h.c,h.d),a.splice(p,1,l[0],l[1],l[2],l[3]))}return c},G=y.cubicToQuadratic=function(a,d,g,m){var j=
-{a:a},b={},c={},f={c:m},e=(a+d)/2,i=(d+g)/2,g=(g+m)/2,d=(e+i)/2,i=(i+g)/2,n=(i-d)/8;j.b=e+(a-e)/4;b.b=d+n;j.c=b.a=(j.b+b.b)/2;b.c=c.a=(d+i)/2;c.b=i-n;f.b=g+(m-g)/4;c.c=f.a=(c.b+f.b)/2;return[j,b,c,f]};y.quadraticToCubic=function(a,d,g){return new C(a,(2*d+a)/3,(2*d+g)/3,g)};D.constructor=y;y.API=2;y._cssRegister=function(){var a=window.com.greensock.plugins.CSSPlugin;if(a){var a=a._internals,d=a._parseToProxy,g=a._setPluginRatio,m=a._specialProps,j=a.CSSPropTween;a._registerComplexSpecialProp("bezier",
-null,function(a,c,f,e,i,n){c instanceof Array&&(c={values:c});var n=new y,f=c.values,s=f.length-1,p=[],k={},t,l,q;if(0>s)return i;for(t=0;t<=s;t++)q=d(a,f[t],e,i,n,s!==t),p[t]=q.end;for(l in c)k[l]=c[l];k.values=p;i=new j(a,"bezier",0,0,q.pt,2);i.data=q;i.plugin=n;i.setRatio=g;0===k.autoRotate&&(k.autoRotate=!0);k.autoRotate&&!(k.autoRotate instanceof Array)&&(t=!0===k.autoRotate?0:Number(k.autoRotate)*_DEG2RAD,k.autoRotate=null!=q.end.left?[["left","top","rotation",t,!0]]:null!=q.end.x?[["x","y",
-"rotation",t,!0]]:!1);k.autoRotate&&(e._transform||(i=m.rotation.parse(a,0,l,e,i,n,{})),q.autoRotate=e._transform);n._onInitTween(q.proxy,k,e._tween);return i})}};D._onInitTween=function(a,d,g){this._target=a;d instanceof Array&&(d={values:d});this._props=[];this._timeRes=null==d.timeResolution?6:parseInt(d.timeResolution);var m=d.values||[],j={},b=m[0],g=d.autoRotate||g.vars.orientToBezier,c,f,e;this._autoRotate=g?g instanceof Array?g:[["x","y","rotation",!0===g?0:Number(g)||0]]:null;for(c in b)this._props.push(c);
-for(b=this._props.length;-1<--b;)c=this._props[b],this._overwriteProps.push(c),g=this._func[c]="function"===typeof a[c],j[c]=!g?parseFloat(a[c]):a[c.indexOf("set")||"function"!==typeof a["get"+c.substr(3)]?c:"get"+c.substr(3)](),e||j[c]!==m[0][c]&&(e=j);if("cubic"!==d.type&&"quadratic"!==d.type&&"soft"!==d.type)j=I(m,isNaN(d.curviness)?1:d.curviness,!1,"thruBasic"===d.type,d.correlate,e);else{g=(g=d.type)||"soft";d={};e="cubic"===g?3:2;var g="soft"===g,b=[],i,n,s,p,k,t,l,q,r;g&&j&&(m=[j].concat(m));
-if(null==m||m.length<e+1)throw"invalid Bezier data";for(n in m[0])b.push(n);for(t=b.length;-1<--t;){n=b[t];d[n]=k=[];r=0;q=m.length;for(l=0;l<q;l++)i=null==j?m[l][n]:"string"===typeof(s=m[l][n])&&"="===s.charAt(1)?j[n]+Number(s.charAt(0)+s.substr(2)):Number(s),g&&1<l&&l<q-1&&(k[r++]=(i+k[r-2])/2),k[r++]=i;q=r-e+1;for(l=r=0;l<q;l+=e)i=k[l],n=k[l+1],s=k[l+2],p=2===e?0:k[l+3],k[r++]=s=3===e?new C(i,n,s,p):new C(i,(2*n+i)/3,(2*n+s)/3,s);k.length=r}j=d}this._beziers=j;this._segCount=this._beziers[c].length;
-if(this._timeRes){b=this._beziers;c=this._timeRes;c=c>>0||6;j=[];n=[];m=s=0;d=c-1;e=[];g=[];for(f in b){i=b[f];k=j;t=c;l=1/t;q=i.length;for(var h=void 0,v=void 0,u=p=r=v=void 0,w=h=void 0,x=void 0,x=u=void 0;-1<--q;){u=i[q];v=u.a;r=u.d-v;p=u.c-v;u=u.b-v;v=0;for(w=1;w<=t;w++)h=l*w,x=1-h,h=v-(v=(h*h*r+3*x*(h*p+x*u))*h),x=q*t+w-1,k[x]=(k[x]||0)+h*h}}b=j.length;for(f=0;f<b;f++)s+=Math.sqrt(j[f]),i=f%c,g[i]=s,i===d&&(m+=s,i=f/c>>0,e[i]=g,n[i]=m,s=0,g=[]);this._length=m;this._lengths=n;this._segments=e;
-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(g=this._autoRotate){g[0]instanceof Array||(this._autoRotate=g=[g]);for(b=g.length;-1<--b;)for(f=0;3>f;f++)c=g[b][f],this._func[c]="function"===typeof a[c]?a[c.indexOf("set")||"function"!==typeof a["get"+c.substr(3)]?c:"get"+c.substr(3)]:!1}return!0};D.setRatio=function(a){var d=this._segCount,g=this._func,m=this._target,j,b,c,f,e;if(this._timeRes){j=
-this._lengths;f=this._curSeg;a*=this._length;b=this._li;if(a>this._l2&&b<d-1){for(d-=1;b<d&&(this._l2=j[++b])<=a;);this._l1=j[b-1];this._li=b;this._curSeg=f=this._segments[b];this._s2=f[this._s1=this._si=0]}else if(a<this._l1&&0<b){for(;0<b&&(this._l1=j[--b])>=a;);0===b&&a<this._l1?this._l1=0:b++;this._l2=j[b];this._li=b;this._curSeg=f=this._segments[b];this._s1=f[(this._si=f.length-1)-1]||0;this._s2=f[this._si]}j=b;a-=this._l1;b=this._si;if(a>this._s2&&b<f.length-1){for(d=f.length-1;b<d&&(this._s2=
-f[++b])<=a;);this._s1=f[b-1];this._si=b}else if(a<this._s1&&0<b){for(;0<b&&(this._s1=f[--b])>=a;);0===b&&a<this._s1?this._s1=0:b++;this._s2=f[b];this._si=b}f=(b+(a-this._s1)/(this._s2-this._s1))*this._prec}else j=0>a?0:1<=a?d-1:d*a>>0,f=(a-j*(1/d))*d;d=1-f;for(b=this._props.length;-1<--b;)if(a=this._props[b],c=this._beziers[a][j],e=(f*f*c.da+3*d*(f*c.ca+d*c.ba))*f+c.a,this._round[a]&&(e=e+(0<e?0.5:-0.5)>>0),g[a])m[a](e);else m[a]=e;if(this._autoRotate){var d=this._autoRotate,i,n,s,p,k;for(b=d.length;-1<
---b;)a=d[b][2],p=d[b][3]||0,k=!0===d[b][4]?1:H,c=this._beziers[d[b][0]][j],e=this._beziers[d[b][1]][j],i=c.a+(c.b-c.a)*f,n=c.b+(c.c-c.b)*f,i+=(n-i)*f,n+=(c.c+(c.d-c.c)*f-n)*f,c=e.a+(e.b-e.a)*f,s=e.b+(e.c-e.b)*f,c+=(s-c)*f,s+=(e.c+(e.d-e.c)*f-s)*f,e=Math.atan2(s-c,n-i)*k+p,g[a]?g[a].call(m,e):m[a]=e}};D._roundProps=function(a,d){for(var g=this._overwriteProps,m=g.length;-1<--m;)if(a[g[m]]||a.bezier||a.bezierThrough)this._round[g[m]]=d};D._kill=function(a){var d=this._props,g,m;for(g in this._beziers)if(g in
-a){delete this._beziers[g];delete this._func[g];for(m=d.length;-1<--m;)d[m]===g&&d.splice(m,1)}return E.prototype._kill.call(this,a)};E.activate([y]);return y},!0)});window._gsDefine&&_gsQueue.pop()();
\ No newline at end of file
+(window._gsQueue||(window._gsQueue=[])).push(function(){_gsDefine("plugins.BezierPlugin",["plugins.TweenPlugin"],function(F){var z=function(){F.call(this,"bezier",-1);this._overwriteProps.pop();this._func={};this._round={}},E=z.prototype=new F("bezier",1),I=180/Math.PI,J=Math.PI/180,A=[],B=[],C=[],G={},D=function(a,e,g,n){this.a=a;this.b=e;this.c=g;this.d=n;this.da=n-a;this.ca=g-a;this.ba=e-a},K=z.bezierThrough=function(a,e,g,n,j,b){var c={},f=[],d,k,q;j="string"===typeof j?","+j+",":",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,";
+null==e&&(e=1);for(k in a[0])f.push(k);A.length=B.length=C.length=0;for(d=f.length;-1<--d;){k=f[d];G[k]=-1!==j.indexOf(","+k+",");q=c;var s=k,p;p=a;var m=k,w=G[k],l=b,t=[],r=void 0,h=void 0,v=void 0,u=void 0,x=void 0,r=void 0;if(l){p=[l].concat(p);for(h=p.length;-1<--h;)if("string"===typeof(r=p[h][m]))"="===r.charAt(1)&&(p[h][m]=l[m]+Number(r.charAt(0)+r.substr(2)))}r=p.length-2;if(0>r)t[0]=new D(p[0][m],0,0,p[-1>r?0:1][m]);else{for(h=0;h<r;h++)v=p[h][m],u=p[h+1][m],t[h]=new D(v,0,0,u),w&&(x=p[h+
+2][m],A[h]=(A[h]||0)+(u-v)*(u-v),B[h]=(B[h]||0)+(x-u)*(x-u));t[h]=new D(p[h][m],0,0,p[h+1][m])}p=t;q[s]=p}for(d=A.length;-1<--d;)A[d]=Math.sqrt(A[d]),B[d]=Math.sqrt(B[d]);if(!n){for(d=f.length;-1<--d;)if(G[k]){a=c[f[d]];q=a.length-1;for(j=0;j<q;j++)b=a[j+1].da/B[j]+a[j].da/A[j],C[j]=(C[j]||0)+b*b}for(d=C.length;-1<--d;)C[d]=Math.sqrt(C[d])}for(d=f.length;-1<--d;){k=f[d];a=c[k];j=e;b=g;q=n;k=G[k];s=a.length-1;p=0;for(var m=a[0].a,y=x=u=l=r=u=v=r=h=v=t=l=w=void 0,w=0;w<s;w++)h=a[p],l=h.a,t=h.d,v=a[p+
+1].d,k?(u=A[w],x=B[w],y=0.25*(x+u)*j/(q?0.5:C[w]||0.5),r=t-(t-l)*(q?0.5*j:y/u),v=t+(v-t)*(q?0.5*j:y/x),u=t-(r+(v-r)*(3*u/(u+x)+0.5)/4)):(r=t-0.5*(t-l)*j,v=t+0.5*(v-t)*j,u=t-(r+v)/2),r+=u,v+=u,h.c=r,h.b=0!==w?m:m=h.a+0.6*(h.c-h.a),h.da=t-l,h.ca=r-l,h.ba=m-l,b?(l=H(l,m,r,t),a.splice(p,1,l[0],l[1],l[2],l[3]),p+=4):p++,m=v;h=a[p];h.b=m;h.c=m+0.4*(h.d-m);h.da=h.d-h.a;h.ca=h.c-h.a;h.ba=m-h.a;b&&(l=H(h.a,m,h.c,h.d),a.splice(p,1,l[0],l[1],l[2],l[3]))}return c},H=z.cubicToQuadratic=function(a,e,g,n){var j=
+{a:a},b={},c={},f={c:n},d=(a+e)/2,k=(e+g)/2;g=(g+n)/2;e=(d+k)/2;var k=(k+g)/2,q=(k-e)/8;j.b=d+(a-d)/4;b.b=e+q;j.c=b.a=(j.b+b.b)/2;b.c=c.a=(e+k)/2;c.b=k-q;f.b=g+(n-g)/4;c.c=f.a=(c.b+f.b)/2;return[j,b,c,f]};z.quadraticToCubic=function(a,e,g){return new D(a,(2*e+a)/3,(2*e+g)/3,g)};E.constructor=z;z.API=2;z._cssRegister=function(){var a=window.com.greensock.plugins.CSSPlugin;if(a){var a=a._internals,e=a._parseToProxy,g=a._setPluginRatio,n=a.CSSPropTween;a._registerComplexSpecialProp("bezier",null,function(a,
+b,c,f,d,k){b instanceof Array&&(b={values:b});k=new z;var q=b.values,s=q.length-1,p=[];c={};var m,w,l;if(0>s)return d;for(m=0;m<=s;m++)l=e(a,q[m],f,d,k,s!==m),p[m]=l.end;for(w in b)c[w]=b[w];c.values=p;d=new n(a,"bezier",0,0,l.pt,2);d.data=l;d.plugin=k;d.setRatio=g;0===c.autoRotate&&(c.autoRotate=!0);c.autoRotate&&!(c.autoRotate instanceof Array)&&(m=!0===c.autoRotate?0:Number(c.autoRotate)*J,c.autoRotate=null!=l.end.left?[["left","top","rotation",m,!0]]:null!=l.end.x?[["x","y","rotation",m,!0]]:
+!1);c.autoRotate&&(f._transform||(a=f._enableTransforms(!1,d,k),a._next=d._next,a._prev=d,d._next=a,d._prev=null),l.autoRotate=f._target._gsTransform);k._onInitTween(l.proxy,c,f._tween);return d})}};E._onInitTween=function(a,e,g){this._target=a;e instanceof Array&&(e={values:e});this._props=[];this._timeRes=null==e.timeResolution?6:parseInt(e.timeResolution);var n=e.values||[],j={},b=n[0];g=e.autoRotate||g.vars.orientToBezier;var c,f,d;this._autoRotate=g?g instanceof Array?g:[["x","y","rotation",
+!0===g?0:Number(g)||0]]:null;for(c in b)this._props.push(c);for(b=this._props.length;-1<--b;)c=this._props[b],this._overwriteProps.push(c),g=this._func[c]="function"===typeof a[c],j[c]=!g?parseFloat(a[c]):a[c.indexOf("set")||"function"!==typeof a["get"+c.substr(3)]?c:"get"+c.substr(3)](),d||j[c]!==n[0][c]&&(d=j);if("cubic"!==e.type&&"quadratic"!==e.type&&"soft"!==e.type)j=K(n,isNaN(e.curviness)?1:e.curviness,!1,"thruBasic"===e.type,e.correlate,d);else{g=(g=e.type)||"soft";e={};d="cubic"===g?3:2;g=
+"soft"===g;var b=[],k,q,s,p,m,w,l,t,r;g&&j&&(n=[j].concat(n));if(null==n||n.length<d+1)throw"invalid Bezier data";for(q in n[0])b.push(q);for(w=b.length;-1<--w;){q=b[w];e[q]=m=[];r=0;t=n.length;for(l=0;l<t;l++)k=null==j?n[l][q]:"string"===typeof(s=n[l][q])&&"="===s.charAt(1)?j[q]+Number(s.charAt(0)+s.substr(2)):Number(s),g&&1<l&&l<t-1&&(m[r++]=(k+m[r-2])/2),m[r++]=k;t=r-d+1;for(l=r=0;l<t;l+=d)k=m[l],q=m[l+1],s=m[l+2],p=2===d?0:m[l+3],m[r++]=s=3===d?new D(k,q,s,p):new D(k,(2*q+k)/3,(2*q+s)/3,s);m.length=
+r}j=e}this._beziers=j;this._segCount=this._beziers[c].length;if(this._timeRes){b=this._beziers;c=this._timeRes;c=c>>0||6;j=[];q=[];n=s=0;e=c-1;d=[];g=[];for(f in b){k=b[f];m=j;w=c;l=1/w;t=k.length;for(var h=void 0,v=void 0,u=p=r=v=void 0,x=h=void 0,y=void 0,y=u=void 0;-1<--t;){u=k[t];v=u.a;r=u.d-v;p=u.c-v;u=u.b-v;v=0;for(x=1;x<=w;x++)h=l*x,y=1-h,h=v-(v=(h*h*r+3*y*(h*p+y*u))*h),y=t*w+x-1,m[y]=(m[y]||0)+h*h}}b=j.length;for(f=0;f<b;f++)s+=Math.sqrt(j[f]),k=f%c,g[k]=s,k===e&&(n+=s,k=f/c>>0,d[k]=g,q[k]=
+n,s=0,g=[]);this._length=n;this._lengths=q;this._segments=d;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(g=this._autoRotate){g[0]instanceof Array||(this._autoRotate=g=[g]);for(b=g.length;-1<--b;)for(f=0;3>f;f++)c=g[b][f],this._func[c]="function"===typeof a[c]?a[c.indexOf("set")||"function"!==typeof a["get"+c.substr(3)]?c:"get"+c.substr(3)]:!1}return!0};E.setRatio=function(a){var e=this._segCount,
+g=this._func,n=this._target,j,b,c,f,d;if(this._timeRes){j=this._lengths;f=this._curSeg;a*=this._length;b=this._li;if(a>this._l2&&b<e-1){for(e-=1;b<e&&(this._l2=j[++b])<=a;);this._l1=j[b-1];this._li=b;this._curSeg=f=this._segments[b];this._s2=f[this._s1=this._si=0]}else if(a<this._l1&&0<b){for(;0<b&&(this._l1=j[--b])>=a;);0===b&&a<this._l1?this._l1=0:b++;this._l2=j[b];this._li=b;this._curSeg=f=this._segments[b];this._s1=f[(this._si=f.length-1)-1]||0;this._s2=f[this._si]}j=b;a-=this._l1;b=this._si;
+if(a>this._s2&&b<f.length-1){for(e=f.length-1;b<e&&(this._s2=f[++b])<=a;);this._s1=f[b-1];this._si=b}else if(a<this._s1&&0<b){for(;0<b&&(this._s1=f[--b])>=a;);0===b&&a<this._s1?this._s1=0:b++;this._s2=f[b];this._si=b}f=(b+(a-this._s1)/(this._s2-this._s1))*this._prec}else j=0>a?0:1<=a?e-1:e*a>>0,f=(a-j*(1/e))*e;e=1-f;for(b=this._props.length;-1<--b;)if(a=this._props[b],c=this._beziers[a][j],d=(f*f*c.da+3*e*(f*c.ca+e*c.ba))*f+c.a,this._round[a]&&(d=d+(0<d?0.5:-0.5)>>0),g[a])n[a](d);else n[a]=d;if(this._autoRotate){var e=
+this._autoRotate,k,q,s,p,m;for(b=e.length;-1<--b;)a=e[b][2],p=e[b][3]||0,m=!0===e[b][4]?1:I,c=this._beziers[e[b][0]][j],d=this._beziers[e[b][1]][j],k=c.a+(c.b-c.a)*f,q=c.b+(c.c-c.b)*f,k+=(q-k)*f,q+=(c.c+(c.d-c.c)*f-q)*f,c=d.a+(d.b-d.a)*f,s=d.b+(d.c-d.b)*f,c+=(s-c)*f,s+=(d.c+(d.d-d.c)*f-s)*f,d=Math.atan2(s-c,q-k)*m+p,g[a]?g[a].call(n,d):n[a]=d}};E._roundProps=function(a,e){for(var g=this._overwriteProps,n=g.length;-1<--n;)if(a[g[n]]||a.bezier||a.bezierThrough)this._round[g[n]]=e};E._kill=function(a){var e=
+this._props,g,n;for(g in this._beziers)if(g in a){delete this._beziers[g];delete this._func[g];for(n=e.length;-1<--n;)e[n]===g&&e.splice(n,1)}return F.prototype._kill.call(this,a)};F.activate([z]);return z},!0)});window._gsDefine&&_gsQueue.pop()();
\ No newline at end of file
diff --git a/src/minified/plugins/CSSPlugin.min.js b/src/minified/plugins/CSSPlugin.min.js
index f1bcfa1..c771d73 100755
--- a/src/minified/plugins/CSSPlugin.min.js
+++ b/src/minified/plugins/CSSPlugin.min.js
@@ -1,6 +1,6 @@
/*!
- * VERSION: beta 1.653
- * DATE: 2012-12-13
+ * VERSION: beta 1.66
+ * DATE: 2012-12-14
* JavaScript
* UPDATES AND DOCS AT: http://www.greensock.com
*
@@ -10,55 +10,55 @@
*
* @author: Jack Doyle, [email protected]
*/
-(window._gsQueue||(window._gsQueue=[])).push(function(){_gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(S){var B=function(){S.call(this,"css");this._overwriteProps.length=0},Y,Z,q,$,I={},k=B.prototype=new S("css");k.constructor=B;B.version=1.653;B.API=2;B.defaultTransformPerspective=0;k="px";B.suffixMap={top:k,right:k,bottom:k,left:k,width:k,height:k,fontSize:k,padding:k,margin:k,perspective:k};var aa=/(?:\d|\-\d|\.\d|\-\.\d)+/g,ma=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,
-ba=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,T=/[^\d\-\.]/g,Ea=/(?:\d|\-|\+|=|#|\.)*/g,ca=/opacity *= *([^)]*)/,Fa=/opacity:([^;]*)/,na=/([A-Z])/g,oa=/-([a-z])/gi,Ga=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,pa=function(a,b){return b.toUpperCase()},Ha=/(?:Left|Right|Width)/i,Ia=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,Ja=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,E=Math.PI/180,O=180/Math.PI,U={},J=document,P=J.createElement("div"),da=J.createElement("img"),K=B._internals={_specialProps:I},
-z=navigator.userAgent,ea,qa,ra,sa,ta,fa,L,ua=z.indexOf("Android"),va=J.createElement("div");ta=(ra=-1!==z.indexOf("Safari")&&-1===z.indexOf("Chrome")&&(-1===ua||3<Number(z.substr(ua+8,1))))&&6>Number(z.substr(z.indexOf("Version/")+8,1));sa=-1!==z.indexOf("Mozilla");/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(z);fa=parseFloat(RegExp.$1);va.innerHTML="<a style='top:1px;opacity:.55;'>a</a>";L=(z=va.getElementsByTagName("a")[0])?/^0.55/.test(z.style.opacity):!1;var wa=function(a){return ca.test("string"===typeof a?
-a:(a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100:1},xa="",ga="",Q=function(a,b){var b=b||P,e=b.style,c,f;if(void 0!==e[a])return a;a=a.charAt(0).toUpperCase()+a.substr(1);c=["O","Moz","ms","Ms","Webkit"];for(f=5;-1<--f&&void 0===e[c[f]+a];);return 0<=f?(ga=3===f?"ms":c[f],xa="-"+ga.toLowerCase()+"-",ga+a):null},R=J.defaultView?J.defaultView.getComputedStyle:function(){},y=B.getStyle=function(a,b,e,c,f){var i;if(!L&&"opacity"===b)return wa(a);!c&&a.style[b]?i=
-a.style[b]:(e=e||R(a,null))?i=(a=e.getPropertyValue(b.replace(na,"-$1").toLowerCase()))||e.length?a:e[b]:a.currentStyle&&(e=a.currentStyle,i=e[b]);return null!=f&&(!i||"none"===i||"auto"===i||"auto auto"===i)?f:i},V=function(a,b,e){var c={},f=a._gsOverwrittenClassNamePT,i;if(f&&!e){for(;f;)f.setRatio(0),f=f._next;a._gsOverwrittenClassNamePT=null}if(b=b||R(a,null))if(i=b.length)for(;-1<--i;)c[b[i].replace(oa,pa)]=b.getPropertyValue(b[i]);else for(i in b)c[i]=b[i];else if(b=a.currentStyle||a.style)for(i in b)c[i.replace(oa,
-pa)]=b[i];L||(c.opacity=wa(a));a=ha(a,b,!1);c.rotation=a.rotation*O;c.rotationX=a.rotationX*O;c.rotationY=a.rotationY*O;c.skewX=a.skewX*O;c.scaleX=a.scaleX;c.scaleY=a.scaleY;c.scaleZ=a.scaleZ;c.x=a.x;c.y=a.y;c.z=a.z;c.filters&&delete c.filters;return c},ya=function(a,b,e,c){var f={},a=a.style,i,d,g;for(d in e)if("cssText"!==d&&"length"!==d&&isNaN(d)&&b[d]!==(i=e[d]))if(-1===d.indexOf("Origin")&&("number"===typeof i||"string"===typeof i))f[d]=(""===i||"auto"===i||"none"===i)&&"string"===typeof b[d]&&
-""!==b[d].replace(T,"")?0:i,void 0!==a[d]&&(g=new ia(a,d,a[d],g));if(c)for(d in c)"className"!==d&&(f[d]=c[d]);return{difs:f,firstMPT:g}},Ka={width:["Left","Right"],height:["Top","Bottom"]},La=["marginLeft","marginRight","marginTop","marginBottom"],D=function(a,b,e,c,f){if("px"===c||!c)return e;if("auto"===c||!e)return 0;var i=Ha.test(b),d=a,g=P.style,j=0>e;j&&(e=-e);"%"===c&&-1!==b.indexOf("border")?i=e/100*(i?a.clientWidth:a.clientHeight):(g.cssText="border-style:solid; border-width:0; position:absolute; line-height:0;",
-"%"===c||"em"===c||!d.appendChild?(d=a.parentNode||J.body,g[i?"width":"height"]=e+c):g[i?"borderLeftWidth":"borderTopWidth"]=e+c,d.appendChild(P),i=parseFloat(P[i?"offsetWidth":"offsetHeight"]),d.removeChild(P),0===i&&!f&&(i=D(a,b,e,c,!0)));return j?-i:i},ja=function(a,b){if(null==a||""===a||"auto"===a||"auto auto"===a)a="0 0";var e=a.split(" "),c=-1!==a.indexOf("left")?"0%":-1!==a.indexOf("right")?"100%":e[0],f=-1!==a.indexOf("top")?"0%":-1!==a.indexOf("bottom")?"100%":e[1];null==f?f="0":"center"===
-f&&(f="50%");if("center"===c||isNaN(parseFloat(c)))c="50%";b&&(b.oxp=-1!==c.indexOf("%"),b.oyp=-1!==f.indexOf("%"),b.oxr="="===c.charAt(1),b.oyr="="===f.charAt(1),b.ox=parseFloat(c.replace(T,"")),b.oy=parseFloat(f.replace(T,"")));return c+" "+f+(2<e.length?" "+e[2]:"")},za=function(a,b){return"string"===typeof a&&"="===a.charAt(1)?parseInt(a.charAt(0)+"1")*parseFloat(a.substr(2)):parseFloat(a)-parseFloat(b)},F=function(a,b){return null==a?b:"string"===typeof a&&"="===a.charAt(1)?parseInt(a.charAt(0)+
-"1")*Number(a.substr(2))+b:Number(a)},M=function(a,b){if(null==a)return b;var e=-1===a.indexOf("rad")?E:1,c="="===a.charAt(1),a=Number(a.replace(T,""))*e;return c?a+b:a},ka=function(a,b){var e=(("number"===typeof a?a*E:M(a,b))-b)%(2*Math.PI);e!==e%Math.PI&&(e+=Math.PI*(0>e?2:-2));return b+e},N={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]},la=function(a){if(!a||""===a)return N.black;if(N[a])return N[a];if("number"===typeof a)return[a>>16,a>>8&255,a&255];if("#"===a.charAt(0)){if(4===a.length)var b=a.charAt(1),e=a.charAt(2),a=a.charAt(3),a="#"+b+b+e+e+a+a;a=parseInt(a.substr(1),16);return[a>>16,a>>8&255,a&255]}a=a.match(aa)||N.transparent;a[0]=Number(a[0]);a[1]=Number(a[1]);a[2]=Number(a[2]);
-3<a.length&&(a[3]=Number(a[3]));return a},G="(?:\\b(?:(?:rgb|rgba)\\(.+?\\))|\\B#.+?\\b";for(k in N)G+="|"+k+"\\b";var G=RegExp(G+")","gi"),Aa=function(a,b,e){if(null==a)return function(a){return a};var c=b?(a.match(G)||[""])[0]:"",f=a.split(c).join("").match(ba)||[],i=a.substr(0,a.indexOf(f[0])),d=")"===a.charAt(a.length-1)?")":"",g=-1!==a.indexOf(" ")?" ":",",j=f.length,h=0<j?f[0].replace(aa,""):"";return b?function(a){"number"===typeof a&&(a+=h);var b=(a.match(G)||[c])[0],a=a.split(b).join("").match(ba)||
-[],m=a.length;if(j>m--)for(;++m<j;)a[m]=e?a[(m-1)/2>>0]:f[m];return i+a.join(g)+g+b+d}:function(a){"number"===typeof a&&(a+=h);var a=a.match(ba)||[],b=a.length;if(j>b--)for(;++b<j;)a[b]=e?a[(b-1)/2>>0]:f[b];return i+a.join(g)+d}},z=function(a){a=a.split(",");return function(b,e,c,f,i,d,g){e=(e+"").split(" ");g={};for(c=0;4>c;c++)g[a[c]]=e[c]=e[c]||e[(c-1)/2>>0];return f.parse(b,g,i,d)}};K._setPluginRatio=function(a){this.plugin.setRatio(a);for(var b=this.data,e=b.proxy,c=b.firstMPT,f;c;)f=e[c.v],
-c.r?f=0<f?f+0.5>>0:f-0.5>>0:1E-6>f&&-1E-6<f&&(f=0),c.t[c.p]=f,c=c._next;b.autoRotate&&(b.autoRotate.rotation=e.rotation);if(1===a)for(c=b.firstMPT;c;){a=c.t;if(a.type){if(1===a.type){e=a.xs0+a.s+a.xs1;for(b=1;b<a.l;b++)e+=a["xn"+b]+a["xs"+(b+1)];a.e=e}}else a.e=a.s+a.xs0;c=c._next}};var ia=function(a,b,e,c,f){this.t=a;this.p=b;this.v=e;this.r=f;c&&(c._prev=this,this._next=c)};K._parseToProxy=function(a,b,e,c,f,i){var d=c,g={},j={},h=e._transform,l=U,n;e._transform=null;U=b;c=a=e.parse(a,b,c,f);U=
-l;i&&(e._transform=h,d&&(d._prev=null,d._prev&&(d._prev._next=null)));for(;c&&c!==d;){if(1>=c.type&&(h=c.p,j[h]=c.s+c.c,g[h]=c.s,i||(n=new ia(c,"s",h,n,c.r),c.c=0),1===c.type))for(e=c.l;0<--e;)l="xn"+e,h=c.p+"_"+l,j[h]=c.data[l],g[h]=c[l],i||(n=new ia(c,l,h,n,c.rxp[l]));c=c._next}return{proxy:g,end:j,firstMPT:n,pt:a}};var A=K.CSSPropTween=function(a,b,e,c,f,i,d,g,j,h,l){this.t=a;this.p=b;this.s=e;this.c=c;this.n=d||"css_"+b;a instanceof A||$.push(this.n);this.r=g;this.type=i||0;j&&(this.pr=j,Y=!0);
-this.b=void 0===h?e:h;this.e=void 0===l?e+c:l;f&&(this._next=f,f._prev=this)},X=B.parseComplex=function(a,b,e,c,f,i,d,g,j,h){var d=new A(a,b,0,0,d,h?2:1,null,!1,g,e,c),a=e.split(", ").join(",").split(" "),b=(c+"").split(", ").join(",").split(" "),e=a.length,g=!1!==ea,l,n,m,W,k;e!==b.length&&(a=(i||"").split(" "),e=a.length);d.plugin=j;d.setRatio=h;for(i=0;i<e;i++)if(j=a[i],l=b[i],(h=parseFloat(j))||0===h)d.appendXtra("",h,za(l,h),l.replace(ma,""),g&&-1!==l.indexOf("px"),!0);else if(f&&("#"===j.charAt(0)||
-0===j.indexOf("rgb")||N[j]))j=la(j),l=la(l),(h=6<j.length+l.length)&&!L&&0===l[3]?(d["xs"+d.l]+=d.l?" transparent":"transparent",d.e=d.e.split(b[i]).join("transparent")):(d.appendXtra(h?"rgba(":"rgb(",j[0],l[0]-j[0],",",!0,!0).appendXtra("",j[1],l[1]-j[1],",",!0).appendXtra("",j[2],l[2]-j[2],h?",":")",!0),h&&(j=4>j.length?1:j[3],d.appendXtra("",j,(4>l.length?1:l[3])-j,")",!1)));else if(h=j.match(aa)){m=l.match(ma);if(!m||m.length!==h.length)return d;for(l=n=0;l<h.length;l++)k=h[l],W=j.indexOf(k,n),
-d.appendXtra(j.substr(n,W-n),Number(k),za(m[l],k),"",g&&"px"===j.substr(W+k.length,2),0===l),n=W+k.length;d["xs"+d.l]+=j.substr(n)}else d["xs"+d.l]+=d.l?" "+j:j;if(-1!==c.indexOf("=")&&d.data){c=d.xs0+d.data.s;for(i=1;i<d.l;i++)c+=d["xs"+i]+d.data["xn"+i];d.e=c+d["xs"+i]}d.l||(d.type=-1,d.xs0=d.e);return d.xfirst||d},t=9,k=A.prototype;for(k.l=k.pr=0;0<--t;)k["xn"+t]=0,k["xs"+t]="";k.xs0="";k._next=k._prev=k.xfirst=k.data=k.plugin=k.setRatio=k.rxp=null;k.appendXtra=function(a,b,e,c,f,i){var d=this.l;
-this["xs"+d]+=i&&d?" "+a:a||"";if(!e&&0!==d&&!this.plugin)return this["xs"+d]+=b+(c||""),this;this.l++;this.type=this.setRatio?2:1;this["xs"+this.l]=c||"";if(0<d)return this.data["xn"+d]=b+e,this.rxp["xn"+d]=f,this["xn"+d]=b,this.plugin||(this.xfirst=new A(this,"xn"+d,b,e,this.xfirst||this,0,this.n,f,this.pr),this.xfirst.xs0=0),this;this.data={s:b+e};this.rxp={};this.s=b;this.c=e;this.r=f;return this};var Ba=function(a,b,e,c,f,i,d){this.p=c?Q(a)||a:a;I[a]=I[this.p]=this;this.format=i||Aa(b,f);e&&
-(this.parse=e);this.clrs=f;this.dflt=b;this.pr=d||0},r=K._registerComplexSpecialProp=function(a,b,e,c,f,i,d){for(var a=a.split(","),b=b instanceof Array?b:[b],g=a.length;-1<--g;)new Ba(a[g],b[g],e,c&&0===g,f,i,d)},K=function(a){if(!I[a]){var b=a.charAt(0).toUpperCase()+a.substr(1)+"Plugin";r(a,null,function(a,c,f,i,d,g,j){var h=window.com.greensock.plugins[b];if(!h)return window.console&&console.log("Error: "+b+" js file not loaded."),d;h._cssRegister();return I[f].parse(a,c,f,i,d,g,j)})}},k=Ba.prototype;
-k.parseComplex=function(a,b,e,c,f,i){return X(a,this.p,b,e,this.clrs,this.dflt,c,this.pr,f,i)};k.parse=function(a,b,e,c,f,i){return this.parseComplex(a.style,this.format(y(a,e,q,!1,this.dflt)),this.format(b),f,i)};B.registerSpecialProp=function(a,b,e){r(a,null,function(a,f,i,d,g,j){g=new A(a,i,0,0,g,2,i,!1,e);g.plugin=j;g.setRatio=b(a,f,d._tween,i);return g},!1,!1,null,e)};var Ca="scaleX scaleY scaleZ x y z skewX rotation rotationX rotationY perspective".split(" "),C=Q("transform"),Ma=xa+"transform",
-Da=Q("transformOrigin"),H=null!==Q("perspective"),ha=function(a,b,e){var c=e?a._gsTransform||{skewY:0}:{skewY:0},f=0>c.scaleX,i=H?parseFloat(y(a,Da,b,!1,"0 0 0").split(" ")[2])||c.zOrigin||0:0,d,g,j,h,l,n,m,k;C?d=y(a,Ma,b,!0):a.currentStyle&&(d=(d=a.currentStyle.filter.match(Ia))&&4===d.length?d[0].substr(4)+","+Number(d[2].substr(4))+","+Number(d[1].substr(4))+","+d[3].substr(4)+","+(c?c.x:0)+","+(c?c.y:0):null);g=(d||"").match(/(?:\-|\b)[\d\-\.e]+\b/gi)||[];for(b=g.length;-1<--b;)g[b]=Number(g[b]);
-if(16===g.length){if(f=g[8],d=g[9],j=g[10],h=g[12],l=g[13],n=g[14],c.zOrigin&&(n=-c.zOrigin,h=f*n-g[12],l=d*n-g[13],n=j*n+c.zOrigin-g[14]),!e||h!==c.x||l!==c.y||n!==c.z){m=g[0];k=g[1];var r=g[2],u=g[3],s=g[4],p=g[5],q=g[6],A=g[7];g=g[11];var v=c.rotationX=Math.atan2(q,j),t,z,w,x;v&&(w=Math.cos(-v),x=Math.sin(-v),v=s*w+f*x,t=p*w+d*x,z=q*w+j*x,f=s*-x+f*w,d=p*-x+d*w,j=q*-x+j*w,g=A*-x+g*w,s=v,p=t,q=z);if(v=c.rotationY=Math.atan2(f,m))w=Math.cos(-v),x=Math.sin(-v),t=k*w-d*x,z=r*w-j*x,d=k*x+d*w,j=r*x+j*
-w,g=u*x+g*w,m=m*w-f*x,k=t,r=z;if(v=c.rotation=Math.atan2(k,p))w=Math.cos(-v),x=Math.sin(-v),m=m*w+s*x,t=k*w+p*x,p=k*-x+p*w,q=r*-x+q*w,k=t;Math.abs(c.rotationY)>Math.PI/2&&(c.rotationY*=-1,c.rotationX+=Math.PI,c.rotation=Math.PI-c.rotation);c.scaleX=Math.sqrt(m*m+k*k);c.scaleY=Math.sqrt(p*p+d*d);c.scaleZ=Math.sqrt(q*q+j*j);c.skewX=0;c.perspective=g?1/g:0;c.x=h;c.y=l;c.z=n}}else if(!H||0===g.length||c.x!==g[4]||c.y!==g[5]||!c.rotationX&&!c.rotationY){h=(d=6<=g.length)?g[0]:1;n=g[1]||0;l=g[2]||0;m=d?
-g[3]:1;c.x=g[4]||0;c.y=g[5]||0;d=Math.sqrt(h*h+n*n);j=Math.sqrt(m*m+l*l);h=h||n?Math.atan2(n,h):c.rotation||0;l=l||m?Math.atan2(l,m)+h:c.skewX||0;n=d-Math.abs(c.scaleX||0);m=j-Math.abs(c.scaleY||0);Math.abs(l)>Math.PI/2&&Math.abs(l)<1.5*Math.PI&&(f?(d*=-1,l+=0>=h?Math.PI:-Math.PI,h+=0>=h?Math.PI:-Math.PI):(j*=-1,l+=0>=l?Math.PI:-Math.PI));f=(h-c.rotation)%Math.PI;k=(l-c.skewX)%Math.PI;if(void 0===c.skewX||1E-6<n||-1E-6>n||1E-6<m||-1E-6>m||1E-6<f||-1E-6>f||1E-6<k||-1E-6>k)c.scaleX=d,c.scaleY=j,c.rotation=
-h,c.skewX=l;H&&(c.rotationX=c.rotationY=c.z=0,c.perspective=parseFloat(B.defaultTransformPerspective)||0,c.scaleZ=1)}c.zOrigin=i;for(b in c)1E-6>c[b]&&-1E-6<c[b]&&(c[b]=0);e&&(a._gsTransform=c);return c},Na=function(a){var b=this.data,e=-b.rotation,c=e+b.skewX,f=Math.cos(e)*b.scaleX,e=Math.sin(e)*b.scaleX,i=Math.sin(c)*-b.scaleY,c=Math.cos(c)*b.scaleY,d=1E-6,g=this.t.style,j=this.t.currentStyle,h;if(j){f<d&&f>-d&&(f=0);e<d&&e>-d&&(e=0);i<d&&i>-d&&(i=0);c<d&&c>-d&&(c=0);d=e;e=-i;i=-d;d=j.filter;g.filter=
-"";var l=this.t.offsetWidth;h=this.t.offsetHeight;var n="absolute"!==j.position,m="progid:DXImageTransform.Microsoft.Matrix(M11="+f+", M12="+e+", M21="+i+", M22="+c,k=b.x,q=b.y,u,s;null!=b.ox&&(u=(b.oxp?0.01*l*b.ox:b.ox)-l/2,s=(b.oyp?0.01*h*b.oy:b.oy)-h/2,k+=u-(u*f+s*e),q+=s-(u*i+s*c));if(n)u=l/2,s=h/2,m+=", Dx="+(u-(u*f+s*e)+k)+", Dy="+(s-(u*i+s*c)+q)+")";else{var p=8>fa?1:-1;u=b.ieOffsetX||0;s=b.ieOffsetY||0;b.ieOffsetX=Math.round((l-((0>f?-f:f)*l+(0>e?-e:e)*h))/2+k);b.ieOffsetY=Math.round((h-((0>
-c?-c:c)*h+(0>i?-i:i)*l))/2+q);for(t=0;4>t;t++)l=La[t],h=j[l],h=-1!==h.indexOf("px")?parseFloat(h):D(this.t,l,parseFloat(h),h.replace(Ea,""))||0,k=h!==b[l]?2>t?-b.ieOffsetX:-b.ieOffsetY:2>t?u-b.ieOffsetX:s-b.ieOffsetY,g[l]=(b[l]=Math.round(h-k*(0===t||2===t?1:p)))+"px";m+=", sizingMethod='auto expand')"}g.filter=-1!==d.indexOf("DXImageTransform.Microsoft.Matrix(")?d.replace(Ja,m):m+" "+d;if(0===a||1===a)if(1===f&&0===e&&0===i&&1===c&&(!n||-1!==m.indexOf("Dx=0, Dy=0")))(!ca.test(d)||100===parseFloat(RegExp.$1))&&
--1===d.indexOf("gradient(")&&g.removeAttribute("filter")}},Oa=function(){var a=this.data,b=a.perspective,e=a.scaleX,c=0,f=0,i=0,d=0,g=a.scaleY,j=0,h=0,l=0,n=0,m=a.scaleZ,k=0,q=0,u=0,s=b?-1/b:0,p=a.rotation,r=a.zOrigin,t=this.t.style,v,z,y,w,x;p&&(v=Math.cos(p),p=Math.sin(p),y=g*p,c=e*-p,g*=v,e*=v,d=y);if(p=a.rotationY)v=Math.cos(p),p=Math.sin(p),w=m*-p,x=s*-p,f=e*p,j=d*p,m*=v,s*=v,e*=v,d*=v,l=w,q=x;if(p=a.rotationX)v=Math.cos(p),p=Math.sin(p),z=c*v+f*p,y=g*v+j*p,w=n*v+m*p,x=u*v+s*p,f=c*-p+f*v,j=g*
--p+j*v,m=n*-p+m*v,s=u*-p+s*v,c=z,g=y,n=w,u=x;r&&(k-=r,i=f*k,h=j*k,k=m*k+r);i+=a.x;h+=a.y;k+=a.z;1E-6>k&&-1E-6<k&&(k=0);t[C]="matrix3d("+(1E-6>e&&-1E-6<e?0:e)+","+(1E-6>d&&-1E-6<d?0:d)+","+(1E-6>l&&-1E-6<l?0:l)+","+(1E-6>q&&-1E-6<q?0:q)+","+(1E-6>c&&-1E-6<c?0:c)+","+(1E-6>g&&-1E-6<g?0:g)+","+(1E-6>n&&-1E-6<n?0:n)+","+(1E-6>u&&-1E-6<u?0:u)+","+(1E-6>f&&-1E-6<f?0:f)+","+(1E-6>j&&-1E-6<j?0:j)+","+(1E-6>m&&-1E-6<m?0:m)+","+(1E-6>s&&-1E-6<s?0:s)+","+(1E-6>i&&-1E-6<i?0:i)+","+(1E-6>h&&-1E-6<h?0:h)+","+k+
-","+(b?1+-k/b:1)+")";if(sa)return z=t.display,t.display="none",y=this.t.offsetWidth,t.display=z,y},Pa=function(){var a=this.data;if(!a.rotation&&!a.skewX)this.t.style[C]="matrix("+a.scaleX+",0,0,"+a.scaleY+","+a.x+","+a.y+")";else{var b=a.rotation,e=b-a.skewX,c=Math.cos(b)*a.scaleX,b=Math.sin(b)*a.scaleX,f=Math.sin(e)*-a.scaleY,e=Math.cos(e)*a.scaleY;this.t.style[C]="matrix("+(1E-6>c&&-1E-6<c?0:c)+","+(1E-6>b&&-1E-6<b?0:b)+","+(1E-6>f&&-1E-6<f?0:f)+","+(1E-6>e&&-1E-6<e?0:e)+","+a.x+","+a.y+")"}};
-r("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,transformPerspective",null,function(a,b,e,c,f,i,d){if(c._transform)return f;var b=c._transform=ha(a,q,!0),g=a.style,j=Ca.length,h,l,n,k;if("string"===typeof d.transform&&C)l=g[C],g[C]=d.transform,h=ha(a,null,!1),g[C]=l;else if("object"===typeof d){l=null!=d.rotation?d.rotation:null!=d.rotationZ?d.rotationZ:b.rotation*O;h={scaleX:F(null!=
-d.scaleX?d.scaleX:d.scale,b.scaleX),scaleY:F(null!=d.scaleY?d.scaleY:d.scale,b.scaleY),scaleZ:F(null!=d.scaleZ?d.scaleZ:d.scale,b.scaleZ),x:F(d.x,b.x),y:F(d.y,b.y),z:F(d.z,b.z),perspective:F(d.transformPerspective,b.perspective)};h.rotation=null!=d.shortRotation||null!=d.shortRotationZ?ka(d.shortRotation||d.shortRotationZ||0,b.rotation):"number"===typeof l?l*E:M(l,b.rotation);H&&(h.rotationX=null!=d.shortRotationX?ka(d.shortRotationX,b.rotationX):"number"===typeof d.rotationX?d.rotationX*E:M(d.rotationX,
-b.rotationX),h.rotationY=null!=d.shortRotationY?ka(d.shortRotationY,b.rotationY):"number"===typeof d.rotationY?d.rotationY*E:M(d.rotationY,b.rotationY),1E-6>h.rotationX&&-1E-6<h.rotationX&&(h.rotationX=0),1E-6>h.rotationY&&-1E-6<h.rotationY&&(h.rotationY=0));h.skewX=null==d.skewX?b.skewX:"number"===typeof d.skewX?d.skewX*E:M(d.skewX,b.skewX);h.skewY=null==d.skewY?b.skewY:"number"===typeof d.skewY?d.skewY*E:M(d.skewY,b.skewY);if(l=h.skewY-b.skewY)h.skewX+=l,h.rotation+=l;1E-6>h.skewY&&-1E-6<h.skewY&&
-(h.skewY=0);1E-6>h.skewX&&-1E-6<h.skewX&&(h.skewX=0);1E-6>h.rotation&&-1E-6<h.rotation&&(h.rotation=0)}k=b.z||b.rotationX||b.rotationY||h.z||h.rotationX||h.rotationY||h.perspective;!k&&null!=h.scale&&(h.scaleZ=1);if(C){if(ra){qa=!0;if(""===g.zIndex&&(l=y(a,"zIndex",q),"auto"===l||""===l))g.zIndex=0;ta&&(g.WebkitBackfaceVisibility=d.WebkitBackfaceVisibility||(k?"visible":"hidden"))}}else g.zoom=1;f=new A(a,"transform",0,0,f,2);f.setRatio=k&&H?Oa:C?Pa:Na;f.plugin=i;f.data=b;for($.pop();-1<--j;)if(e=
-Ca[j],n=h[e]-b[e],1E-6<n||-1E-6>n||null!=U[e])f=new A(b,e,b[e],n,f),f.xs0=0,f.plugin=i,c._overwriteProps.push(f.n);if((n=d.transformOrigin)||H&&k&&b.zOrigin)C?(n=(n||y(a,e,q,!1,"50% 50%"))+"",e=Da,f=new A(g,e,0,0,f,-1,"css_transformOrigin"),f.b=g[e],f.plugin=i,H?(l=b.zOrigin,n=n.split(" "),b.zOrigin=(2<n.length?parseFloat(n[2]):l)||0,f.xs0=f.e=g[e]=n[0]+" "+(n[1]||"50%")+" 0px",f=new A(b,"zOrigin",0,0,f,-1,f.n),f.b=l,f.xs0=f.e=b.zOrigin):f.xs0=f.e=g[e]=n):ja(n+"",b);return f.t===a?(f._next&&(f._next._prev=
-null),f._next):f},!0);r("boxShadow","0px 0px 0px 0px #999",null,!0,!0);r("borderRadius","0px",function(a,b,e,c,f){var b=this.format(b),c=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],i=a.style,d,g,j,h,l,k,m,r,t,u,s,p;r=parseFloat(a.offsetWidth);t=parseFloat(a.offsetHeight);b=b.split(" ");for(d=0;d<c.length;d++)this.p.indexOf("border")&&(c[d]=Q(c[d])),h=j=y(a,c[d],q,!1,"0px"),-1!==h.indexOf(" ")&&(j=h.split(" "),h=j[0],j=j[1]),l=g=b[d],k=parseFloat(h),
-s=h.substr((k+"").length),(p="="===l.charAt(1))?(m=parseInt(l.charAt(0)+"1"),l=l.substr(2),m*=parseFloat(l),u=l.substr((m+"").length-(0>m?1:0))||""):(m=parseFloat(l),u=l.substr((m+"").length)),""===u&&(u=Z[e]||s),u!==s&&(h=D(a,"borderLeft",k,s),k=D(a,"borderTop",k,s),"%"===u?(h=100*(h/r)+"%",j=100*(k/t)+"%"):"em"===u?(s=D(a,"borderLeft",1,"em"),h=h/s+"em",j=k/s+"em"):(h+="px",j=k+"px"),p&&(l=parseFloat(h)+m+u,g=parseFloat(j)+m+u)),f=X(i,c[d],h+" "+j,l+" "+g,!1,"0px",f);return f},!0,!1,Aa("0px 0px 0px 0px",
-!1,!0));r("backgroundPosition","0 0",function(a,b,e,c,f,i){var e=q||R(a,null),e=this.format((e?fa?e.getPropertyValue("background-position-x")+" "+e.getPropertyValue("background-position-y"):e.getPropertyValue("background-position"):a.currentStyle.backgroundPositionX+" "+a.currentStyle.backgroundPositionY)||"0 0"),b=this.format(b),d,g,j,h;if(-1!==e.indexOf("%")!==(-1!==b.indexOf("%"))){c=e.split(" ");d=b.split(" ");da.setAttribute("src",y(a,"backgroundImage").replace(Ga,""));for(g=2;-1<--g;)e=c[g],
-j=-1!==e.indexOf("%"),j!==(-1!==d[g].indexOf("%"))&&(h=0===g?a.offsetWidth-da.width:a.offsetHeight-da.height,c[g]=j?parseFloat(e)/100*h+"px":100*(parseFloat(e)/h)+"%");e=c.join(" ")}return this.parseComplex(a.style,e,b,f,i)},!1,!1,ja);r("backgroundSize","0 0",null,!1,!1,ja);r("perspective","0px",null,!0);r("perspectiveOrigin","50% 50%",null,!0);r("transformStyle","preserve-3d",null,!0);r("margin",null,z("marginTop,marginRight,marginBottom,marginLeft"));r("padding",null,z("paddingTop,paddingRight,paddingBottom,paddingLeft"));
-r("clip","rect(0px,0px,0px,0px)");r("textShadow","0px 0px 0px #999",null,!1,!0);r("autoRound",null,function(a,b,e,c,f){return f});r("border","0px solid #000",function(a,b,e,c,f,i){return this.parseComplex(a.style,this.format(y(a,"borderTopWidth",q,!1,"0px")+" "+y(a,"borderTopStyle",q,!1,"solid")+" "+y(a,"borderTopColor",q,!1,"#000")),this.format(b),f,i)},!1,!0,function(a){var b=a.split(" ");return b[0]+" "+(b[1]||"solid")+" "+(a.match(G)||["#000"])[0]});var Qa=function(a){var b=this.t,a=this.s+this.c*
-a,e;100===a&&(b.removeAttribute("filter"),e=!y(this.data,"filter"));e||(this.xn1&&(b.filter=b.filter||"alpha(opacity=100)"),b.filter=-1===b.filter.indexOf("opacity")?b.filter+(" alpha(opacity="+(a>>0)+")"):b.filter.replace(ca,"opacity="+(a>>0)))};r("opacity,alpha,autoAlpha","1",function(a,b,e,c,f,i){var d=parseFloat(y(a,"opacity",q,!1,"1")),b=parseFloat(b),g=a.style,j;"autoAlpha"===e&&(j=y(a,"visibility",q),1===d&&"hidden"===j&&(d=0),f=new A(g,"visibility",0,0,f,-1,null,!1,0,0!==d?"visible":"hidden",
-0===b?"hidden":"visible"),f.xs0="visible",c._overwriteProps.push(f.n));L?f=new A(g,"opacity",d,b-d,f):(f=new A(g,"opacity",100*d,100*(b-d),f),f.xn1="autoAlpha"===e?1:0,g.zoom=1,f.type=2,f.b="alpha(opacity="+f.s+")",f.e="alpha(opacity="+(f.s+f.c)+")",f.data=a,f.plugin=i,f.setRatio=Qa);return f});var Ra=function(a){if(1===a||0===a){this.t.className=1===a?this.e:this.b;for(var a=this.data,b=this.t.style,e=b.removeProperty?"removeProperty":"removeAttribute";a;){if(a.v)b[a.p]=a.v;else b[e](a.p.replace(na,
-"-$1").toLowerCase());a=a._next}}else this.t.className!==this.b&&(this.t.className=this.b)};r("className",null,function(a,b,e,c,f,i,d){var g=a.className,j=a.style.cssText,f=c._classNamePT=new A(a,e,0,0,f,2);f.setRatio=Ra;f.b=g;f.e="="!==b.charAt(1)?b:"+"===b.charAt(0)?g+" "+b.substr(2):g.split(b.substr(2)).join("");c._tween._duration&&(b=V(a,q,!0),a.className=f.e,d=ya(a,b,V(a),d),a.className=g,f.data=d.firstMPT,a.style.cssText=j,f=f.xfirst=c.parse(a,d.difs,f,i));return f});k=["bezier","throwProps",
-"physicsProps","physics2D"];for(t=k.length;t--;)K(k[t]);k=B.prototype;k._firstPT=null;k._onInitTween=function(a,b,e){if(!a.nodeType)return!1;this._target=a;this._tween=e;ea=b.autoRound;Y=!1;Z=b.suffixMap||B.suffixMap;q=R(a,"");$=this._overwriteProps;var e=a.style,c,f,i;if(qa&&""===e.zIndex&&(c=y(a,"zIndex",q),"auto"===c||""===c))e.zIndex=0;"string"===typeof b&&(f=e.cssText,c=V(a,q),e.cssText=f+";"+b,c=ya(a,c,V(a)).difs,!L&&Fa.test(b)&&(c.opacity=parseFloat(RegExp.$1)),b=c,e.cssText=f);this._firstPT=
-a=this.parse(a,b,null);if(Y){for(;a;){e=a._next;for(b=f;b&&b.pr>a.pr;)b=b._next;(a._prev=b?b._prev:i)?a._prev._next=a:f=a;(a._next=b)?b._prev=a:i=a;a=e}this._firstPT=f}return!0};k.parse=function(a,b,e,c){var f=a.style,i,d,g,j,h,l,k,m;for(i in b){h=b[i];if(d=I[i])e=d.parse(a,h,i,this,e,c,b);else if(d=y(a,i,q)+"",k="string"===typeof h,"color"===i||"fill"===i||"stroke"===i||-1!==i.indexOf("Color")||k&&!h.indexOf("rgb"))k||(h=la(h),h=(3<h.length?"rgba(":"rgb(")+h.join(",")+")"),e=X(f,i,d,h,!0,"transparent",
-e,0,c);else if(k&&(-1!==h.indexOf(" ")||-1!==h.indexOf(",")))e=X(f,i,d,h,!0,null,e,0,c);else{g=parseFloat(d);l=d.substr((g+"").length);if(""===d||"auto"===d)if("width"===i||"height"===i){g=a;m=i;j=q;l=parseFloat("width"===m?g.offsetWidth:g.offsetHeight);m=Ka[m];var r=m.length;for(j=j||R(g,null);-1<--r;)l-=parseFloat(y(g,"padding"+m[r],j,!0))||0,l-=parseFloat(y(g,"border"+m[r]+"Width",j,!0))||0;g=l;l="px"}else g="opacity"!==i?0:1,l="";(m=k&&"="===h.charAt(1))?(j=parseInt(h.charAt(0)+"1"),h=h.substr(2),
-j*=parseFloat(h),k=h.substr((j+"").length-(0>j?1:0))||""):(j=parseFloat(h),k=k?h.substr((j+"").length)||"":"");""===k&&(k=Z[i]||l);h=j||0===j?(m?j+g:j)+k:b[i];if(l!==k&&""!==k&&(j||0===j))if(g||0===g)if(g=D(a,i,g,l),"%"===k?(g/=D(a,i,100,"%")/100,100<g&&(g=100)):"em"===k?g/=D(a,i,1,"em"):(j=D(a,i,j,k),k="px"),m&&(j||0===j))h=j+g+k;m&&(j+=g);(g||0===g)&&(j||0===j)?(e=new A(f,i,g,j-g,e,0,"css_"+i,!1!==ea&&("px"===k||"zIndex"===i),0,d,h),e.xs0=k):(e=new A(f,i,j||g||0,0,e,-1,"css_"+i,!1,0,d,h),e.xs0=
-"display"===i&&"none"===h?d:h)}c&&(e&&!e.plugin)&&(e.plugin=c)}return e};k.setRatio=function(a){var b=this._firstPT,e,c;if(1===a&&(this._tween._time===this._tween._duration||0===this._tween._time))for(;b;)2!==b.type?b.t[b.p]=b.e:b.setRatio(a),b=b._next;else if(a||!(this._tween._time===this._tween._duration||0===this._tween._time)||-1E-6===this._tween._rawPrevTime)for(;b;){e=b.c*a+b.s;b.r?e=0<e?e+0.5>>0:e-0.5>>0:1E-6>e&&-1E-6<e&&(e=0);if(b.type)if(1===b.type)if(c=b.l,2===c)b.t[b.p]=b.xs0+e+b.xs1+b.xn1+
-b.xs2;else if(3===c)b.t[b.p]=b.xs0+e+b.xs1+b.xn1+b.xs2+b.xn2+b.xs3;else if(4===c)b.t[b.p]=b.xs0+e+b.xs1+b.xn1+b.xs2+b.xn2+b.xs3+b.xn3+b.xs4;else if(5===c)b.t[b.p]=b.xs0+e+b.xs1+b.xn1+b.xs2+b.xn2+b.xs3+b.xn3+b.xs4+b.xn4+b.xs5;else{e=b.xs0+e+b.xs1;for(c=1;c<b.l;c++)e+=b["xn"+c]+b["xs"+(c+1)];b.t[b.p]=e}else-1===b.type?b.t[b.p]=b.xs0:b.setRatio&&b.setRatio(a);else b.t[b.p]=e+b.xs0;b=b._next}else for(;b;)2!==b.type?b.t[b.p]=b.b:b.setRatio(a),b=b._next};k._linkCSSP=function(a,b,e){a&&(b&&(b._prev=a),a._next&&
-(a._next._prev=a._prev),e&&(e._next=a),a._prev?a._prev._next=a._next:this._firstPT===a&&(this._firstPT=a._next),a._next=b,a._prev=e);return a};k._kill=function(a){var b=a,e=!1,c,f;if(a.css_autoAlpha||a.css_alpha){b={};for(f in a)b[f]=a[f];b.css_opacity=1;b.css_autoAlpha&&(b.css_visibility=1)}if(a.css_className&&(c=this._classNamePT))(a=c.xfirst)&&a._prev?this._linkCSSP(a._prev,c._next,a._prev._prev):a===this._firstPT&&(this._firstPT=null),c._next&&this._linkCSSP(c._next,c._next._next,a._prev),this._target._gsOverwrittenClassNamePT=
-this._linkCSSP(c,this._target._gsOverwrittenClassNamePT),this._classNamePT=null,e=!0;return S.prototype._kill.call(this,b)||e};S.activate([B]);return B},!0)});window._gsDefine&&_gsQueue.pop()();
\ No newline at end of file
+(window._gsQueue||(window._gsQueue=[])).push(function(){_gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(U){var z=function(){U.call(this,"css");this._overwriteProps.length=0},$,aa,A,ba,J={},m=z.prototype=new U("css");m.constructor=z;z.version=1.66;z.API=2;z.defaultTransformPerspective=0;m="px";z.suffixMap={top:m,right:m,bottom:m,left:m,width:m,height:m,fontSize:m,padding:m,margin:m,perspective:m};var ca=/(?:\d|\-\d|\.\d|\-\.\d)+/g,na=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,
+da=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,V=/[^\d\-\.]/g,Ga=/(?:\d|\-|\+|=|#|\.)*/g,ea=/opacity *= *([^)]*)/,Ha=/opacity:([^;]*)/,oa=/([A-Z])/g,pa=/-([a-z])/gi,Ia=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,qa=function(a,b){return b.toUpperCase()},Ja=/(?:Left|Right|Width)/i,Ka=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,La=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,K=Math.PI/180,P=180/Math.PI,W={},L=document,Q=L.createElement("div"),fa=L.createElement("img"),M=z._internals={_specialProps:J},
+D=navigator.userAgent,ga,ra,sa,ta,ua,ha,N,va=D.indexOf("Android"),wa=L.createElement("div");ua=(sa=-1!==D.indexOf("Safari")&&-1===D.indexOf("Chrome")&&(-1===va||3<Number(D.substr(va+8,1))))&&6>Number(D.substr(D.indexOf("Version/")+8,1));ta=-1!==D.indexOf("Firefox");/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(D);ha=parseFloat(RegExp.$1);wa.innerHTML="<a style='top:1px;opacity:.55;'>a</a>";N=(D=wa.getElementsByTagName("a")[0])?/^0.55/.test(D.style.opacity):!1;var xa=function(a){return ea.test("string"===typeof a?
+a:(a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100:1},ya="",ia="",R=function(a,b){b=b||Q;var d=b.style,c,f;if(void 0!==d[a])return a;a=a.charAt(0).toUpperCase()+a.substr(1);c=["O","Moz","ms","Ms","Webkit"];for(f=5;-1<--f&&void 0===d[c[f]+a];);return 0<=f?(ia=3===f?"ms":c[f],ya="-"+ia.toLowerCase()+"-",ia+a):null},S=L.defaultView?L.defaultView.getComputedStyle:function(){},w=z.getStyle=function(a,b,d,c,f){var h;if(!N&&"opacity"===b)return xa(a);!c&&a.style[b]?h=
+a.style[b]:(d=d||S(a,null))?h=(a=d.getPropertyValue(b.replace(oa,"-$1").toLowerCase()))||d.length?a:d[b]:a.currentStyle&&(d=a.currentStyle,h=d[b]);return null!=f&&(!h||"none"===h||"auto"===h||"auto auto"===h)?f:h},Y=function(a,b,d){var c={},f=a._gsOverwrittenClassNamePT,h;if(f&&!d){for(;f;)f.setRatio(0),f=f._next;a._gsOverwrittenClassNamePT=null}if(b=b||S(a,null))if(h=b.length)for(;-1<--h;)c[b[h].replace(pa,qa)]=b.getPropertyValue(b[h]);else for(h in b)c[h]=b[h];else if(b=a.currentStyle||a.style)for(h in b)c[h.replace(pa,
+qa)]=b[h];N||(c.opacity=xa(a));a=X(a,b,!1);c.rotation=a.rotation*P;c.rotationX=a.rotationX*P;c.rotationY=a.rotationY*P;c.skewX=a.skewX*P;c.scaleX=a.scaleX;c.scaleY=a.scaleY;c.scaleZ=a.scaleZ;c.x=a.x;c.y=a.y;c.z=a.z;c.filters&&delete c.filters;return c},za=function(a,b,d,c){var f={};a=a.style;var h,e,j;for(e in d)if("cssText"!==e&&"length"!==e&&isNaN(e)&&b[e]!==(h=d[e]))if(-1===e.indexOf("Origin")&&("number"===typeof h||"string"===typeof h))f[e]=(""===h||"auto"===h||"none"===h)&&"string"===typeof b[e]&&
+""!==b[e].replace(V,"")?0:h,void 0!==a[e]&&(j=new ja(a,e,a[e],j));if(c)for(e in c)"className"!==e&&(f[e]=c[e]);return{difs:f,firstMPT:j}},Ma={width:["Left","Right"],height:["Top","Bottom"]},Na=["marginLeft","marginRight","marginTop","marginBottom"],F=function(a,b,d,c,f){if("px"===c||!c)return d;if("auto"===c||!d)return 0;var h=Ja.test(b),e=a,j=Q.style,k=0>d;k&&(d=-d);"%"===c&&-1!==b.indexOf("border")?h=d/100*(h?a.clientWidth:a.clientHeight):(j.cssText="border-style:solid; border-width:0; position:absolute; line-height:0;",
+"%"===c||"em"===c||!e.appendChild?(e=a.parentNode||L.body,j[h?"width":"height"]=d+c):j[h?"borderLeftWidth":"borderTopWidth"]=d+c,e.appendChild(Q),h=parseFloat(Q[h?"offsetWidth":"offsetHeight"]),e.removeChild(Q),0===h&&!f&&(h=F(a,b,d,c,!0)));return k?-h:h},ka=function(a,b){if(null==a||""===a||"auto"===a||"auto auto"===a)a="0 0";var d=a.split(" "),c=-1!==a.indexOf("left")?"0%":-1!==a.indexOf("right")?"100%":d[0],f=-1!==a.indexOf("top")?"0%":-1!==a.indexOf("bottom")?"100%":d[1];null==f?f="0":"center"===
+f&&(f="50%");if("center"===c||isNaN(parseFloat(c)))c="50%";b&&(b.oxp=-1!==c.indexOf("%"),b.oyp=-1!==f.indexOf("%"),b.oxr="="===c.charAt(1),b.oyr="="===f.charAt(1),b.ox=parseFloat(c.replace(V,"")),b.oy=parseFloat(f.replace(V,"")));return c+" "+f+(2<d.length?" "+d[2]:"")},Aa=function(a,b){return"string"===typeof a&&"="===a.charAt(1)?parseInt(a.charAt(0)+"1")*parseFloat(a.substr(2)):parseFloat(a)-parseFloat(b)},H=function(a,b){return null==a?b:"string"===typeof a&&"="===a.charAt(1)?parseInt(a.charAt(0)+
+"1")*Number(a.substr(2))+b:Number(a)},T=function(a,b){if(null==a)return b;var d=-1===a.indexOf("rad")?K:1,c="="===a.charAt(1);a=Number(a.replace(V,""))*d;return c?a+b:a},la=function(a,b){var d=(("number"===typeof a?a*K:T(a,b))-b)%(2*Math.PI);d!==d%Math.PI&&(d+=Math.PI*(0>d?2:-2));return b+d},O={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]},ma=function(a){if(!a||""===a)return O.black;if(O[a])return O[a];if("number"===typeof a)return[a>>16,a>>8&255,a&255];if("#"===a.charAt(0)){if(4===a.length){var b=a.charAt(1),d=a.charAt(2);a=a.charAt(3);a="#"+b+b+d+d+a+a}a=parseInt(a.substr(1),16);return[a>>16,a>>8&255,a&255]}a=a.match(ca)||O.transparent;a[0]=Number(a[0]);a[1]=Number(a[1]);a[2]=Number(a[2]);
+3<a.length&&(a[3]=Number(a[3]));return a},I="(?:\\b(?:(?:rgb|rgba)\\(.+?\\))|\\B#.+?\\b";for(m in O)I+="|"+m+"\\b";var I=RegExp(I+")","gi"),Ba=function(a,b,d){if(null==a)return function(a){return a};var c=b?(a.match(I)||[""])[0]:"",f=a.split(c).join("").match(da)||[],h=a.substr(0,a.indexOf(f[0])),e=")"===a.charAt(a.length-1)?")":"",j=-1!==a.indexOf(" ")?" ":",",k=f.length,g=0<k?f[0].replace(ca,""):"";return b?function(a){"number"===typeof a&&(a+=g);var b=(a.match(I)||[c])[0];a=a.split(b).join("").match(da)||
+[];var q=a.length;if(k>q--)for(;++q<k;)a[q]=d?a[(q-1)/2>>0]:f[q];return h+a.join(j)+j+b+e}:function(a){"number"===typeof a&&(a+=g);a=a.match(da)||[];var b=a.length;if(k>b--)for(;++b<k;)a[b]=d?a[(b-1)/2>>0]:f[b];return h+a.join(j)+e}},D=function(a){a=a.split(",");return function(b,d,c,f,h,e,j){d=(d+"").split(" ");j={};for(c=0;4>c;c++)j[a[c]]=d[c]=d[c]||d[(c-1)/2>>0];return f.parse(b,j,h,e)}};M._setPluginRatio=function(a){this.plugin.setRatio(a);for(var b=this.data,d=b.proxy,c=b.firstMPT,f;c;)f=d[c.v],
+c.r?f=0<f?f+0.5>>0:f-0.5>>0:1E-6>f&&-1E-6<f&&(f=0),c.t[c.p]=f,c=c._next;b.autoRotate&&(b.autoRotate.rotation=d.rotation);if(1===a)for(c=b.firstMPT;c;){a=c.t;if(a.type){if(1===a.type){d=a.xs0+a.s+a.xs1;for(b=1;b<a.l;b++)d+=a["xn"+b]+a["xs"+(b+1)];a.e=d}}else a.e=a.s+a.xs0;c=c._next}};var ja=function(a,b,d,c,f){this.t=a;this.p=b;this.v=d;this.r=f;c&&(c._prev=this,this._next=c)};M._parseToProxy=function(a,b,d,c,f,h){var e=c,j={},k={},g=d._transform,l=W,p;d._transform=null;W=b;c=a=d.parse(a,b,c,f);W=
+l;h&&(d._transform=g,e&&(e._prev=null,e._prev&&(e._prev._next=null)));for(;c&&c!==e;){if(1>=c.type&&(g=c.p,k[g]=c.s+c.c,j[g]=c.s,h||(p=new ja(c,"s",g,p,c.r),c.c=0),1===c.type))for(d=c.l;0<--d;)l="xn"+d,g=c.p+"_"+l,k[g]=c.data[l],j[g]=c[l],h||(p=new ja(c,l,g,p,c.rxp[l]));c=c._next}return{proxy:j,end:k,firstMPT:p,pt:a}};var s=M.CSSPropTween=function(a,b,d,c,f,h,e,j,k,g,l){this.t=a;this.p=b;this.s=d;this.c=c;this.n=e||"css_"+b;a instanceof s||ba.push(this.n);this.r=j;this.type=h||0;k&&(this.pr=k,$=!0);
+this.b=void 0===g?d:g;this.e=void 0===l?d+c:l;f&&(this._next=f,f._prev=this)},Z=z.parseComplex=function(a,b,d,c,f,h,e,j,k,g){e=new s(a,b,0,0,e,g?2:1,null,!1,j,d,c);a=d.split(", ").join(",").split(" ");b=(c+"").split(", ").join(",").split(" ");d=a.length;j=!1!==ga;var l,p,q,m,u;d!==b.length&&(a=(h||"").split(" "),d=a.length);e.plugin=k;e.setRatio=g;for(h=0;h<d;h++)if(k=a[h],l=b[h],(g=parseFloat(k))||0===g)e.appendXtra("",g,Aa(l,g),l.replace(na,""),j&&-1!==l.indexOf("px"),!0);else if(f&&("#"===k.charAt(0)||
+0===k.indexOf("rgb")||O[k]))k=ma(k),l=ma(l),(g=6<k.length+l.length)&&!N&&0===l[3]?(e["xs"+e.l]+=e.l?" transparent":"transparent",e.e=e.e.split(b[h]).join("transparent")):(e.appendXtra(g?"rgba(":"rgb(",k[0],l[0]-k[0],",",!0,!0).appendXtra("",k[1],l[1]-k[1],",",!0).appendXtra("",k[2],l[2]-k[2],g?",":")",!0),g&&(k=4>k.length?1:k[3],e.appendXtra("",k,(4>l.length?1:l[3])-k,")",!1)));else if(g=k.match(ca)){q=l.match(na);if(!q||q.length!==g.length)return e;for(l=p=0;l<g.length;l++)u=g[l],m=k.indexOf(u,p),
+e.appendXtra(k.substr(p,m-p),Number(u),Aa(q[l],u),"",j&&"px"===k.substr(m+u.length,2),0===l),p=m+u.length;e["xs"+e.l]+=k.substr(p)}else e["xs"+e.l]+=e.l?" "+k:k;if(-1!==c.indexOf("=")&&e.data){c=e.xs0+e.data.s;for(h=1;h<e.l;h++)c+=e["xs"+h]+e.data["xn"+h];e.e=c+e["xs"+h]}e.l||(e.type=-1,e.xs0=e.e);return e.xfirst||e},C=9,m=s.prototype;for(m.l=m.pr=0;0<--C;)m["xn"+C]=0,m["xs"+C]="";m.xs0="";m._next=m._prev=m.xfirst=m.data=m.plugin=m.setRatio=m.rxp=null;m.appendXtra=function(a,b,d,c,f,h){var e=this.l;
+this["xs"+e]+=h&&e?" "+a:a||"";if(!d&&0!==e&&!this.plugin)return this["xs"+e]+=b+(c||""),this;this.l++;this.type=this.setRatio?2:1;this["xs"+this.l]=c||"";if(0<e)return this.data["xn"+e]=b+d,this.rxp["xn"+e]=f,this["xn"+e]=b,this.plugin||(this.xfirst=new s(this,"xn"+e,b,d,this.xfirst||this,0,this.n,f,this.pr),this.xfirst.xs0=0),this;this.data={s:b+d};this.rxp={};this.s=b;this.c=d;this.r=f;return this};var Ca=function(a,b,d,c,f,h,e){this.p=c?R(a)||a:a;J[a]=J[this.p]=this;this.format=h||Ba(b,f);d&&
+(this.parse=d);this.clrs=f;this.dflt=b;this.pr=e||0},n=M._registerComplexSpecialProp=function(a,b,d,c,f,h,e){a=a.split(",");b=b instanceof Array?b:[b];for(var j=a.length;-1<--j;)new Ca(a[j],b[j],d,c&&0===j,f,h,e)},M=function(a){if(!J[a]){var b=a.charAt(0).toUpperCase()+a.substr(1)+"Plugin";n(a,null,function(a,c,f,h,e,j,k){var g=window.com.greensock.plugins[b];if(!g)return window.console&&console.log("Error: "+b+" js file not loaded."),e;g._cssRegister();return J[f].parse(a,c,f,h,e,j,k)})}},m=Ca.prototype;
+m.parseComplex=function(a,b,d,c,f,h){return Z(a,this.p,b,d,this.clrs,this.dflt,c,this.pr,f,h)};m.parse=function(a,b,d,c,f,h){return this.parseComplex(a.style,this.format(w(a,d,A,!1,this.dflt)),this.format(b),f,h)};z.registerSpecialProp=function(a,b,d){n(a,null,function(a,f,h,e,j,k){j=new s(a,h,0,0,j,2,h,!1,d);j.plugin=k;j.setRatio=b(a,f,e._tween,h);return j},!1,!1,null,d)};var Da="scaleX scaleY scaleZ x y z skewX rotation rotationX rotationY perspective".split(" "),E=R("transform"),Oa=ya+"transform",
+Ea=R("transformOrigin"),G=null!==R("perspective"),X=function(a,b,d){var c=d?a._gsTransform||{skewY:0}:{skewY:0},f=0>c.scaleX,h=G?parseFloat(w(a,Ea,b,!1,"0 0 0").split(" ")[2])||c.zOrigin||0:0,e,j,k,g,l,p,q,m;E?e=w(a,Oa,b,!0):a.currentStyle&&(e=(e=a.currentStyle.filter.match(Ka))&&4===e.length?e[0].substr(4)+","+Number(e[2].substr(4))+","+Number(e[1].substr(4))+","+e[3].substr(4)+","+(c?c.x:0)+","+(c?c.y:0):null);j=(e||"").match(/(?:\-|\b)[\d\-\.e]+\b/gi)||[];for(b=j.length;-1<--b;)j[b]=Number(j[b]);
+if(16===j.length){if(f=j[8],e=j[9],k=j[10],g=j[12],l=j[13],p=j[14],c.zOrigin&&(p=-c.zOrigin,g=f*p-j[12],l=e*p-j[13],p=k*p+c.zOrigin-j[14]),!d||g!==c.x||l!==c.y||p!==c.z){q=j[0];m=j[1];var u=j[2],Pa=j[3],v=j[4],B=j[5],r=j[6],A=j[7];j=j[11];var t=c.rotationX=Math.atan2(r,k),n,s,x,y;t&&(x=Math.cos(-t),y=Math.sin(-t),t=v*x+f*y,n=B*x+e*y,s=r*x+k*y,f=v*-y+f*x,e=B*-y+e*x,k=r*-y+k*x,j=A*-y+j*x,v=t,B=n,r=s);if(t=c.rotationY=Math.atan2(f,q))x=Math.cos(-t),y=Math.sin(-t),n=m*x-e*y,s=u*x-k*y,e=m*y+e*x,k=u*y+
+k*x,j=Pa*y+j*x,q=q*x-f*y,m=n,u=s;if(t=c.rotation=Math.atan2(m,B))x=Math.cos(-t),y=Math.sin(-t),q=q*x+v*y,n=m*x+B*y,B=m*-y+B*x,r=u*-y+r*x,m=n;Math.abs(c.rotationY)>Math.PI/2&&(c.rotationY*=-1,c.rotationX+=Math.PI,c.rotation=Math.PI-c.rotation);c.scaleX=Math.sqrt(q*q+m*m);c.scaleY=Math.sqrt(B*B+e*e);c.scaleZ=Math.sqrt(r*r+k*k);c.skewX=0;c.perspective=j?1/j:0;c.x=g;c.y=l;c.z=p}}else if(!G||0===j.length||c.x!==j[4]||c.y!==j[5]||!c.rotationX&&!c.rotationY){g=(e=6<=j.length)?j[0]:1;p=j[1]||0;l=j[2]||0;
+q=e?j[3]:1;c.x=j[4]||0;c.y=j[5]||0;e=Math.sqrt(g*g+p*p);k=Math.sqrt(q*q+l*l);g=g||p?Math.atan2(p,g):c.rotation||0;l=l||q?Math.atan2(l,q)+g:c.skewX||0;p=e-Math.abs(c.scaleX||0);q=k-Math.abs(c.scaleY||0);Math.abs(l)>Math.PI/2&&Math.abs(l)<1.5*Math.PI&&(f?(e*=-1,l+=0>=g?Math.PI:-Math.PI,g+=0>=g?Math.PI:-Math.PI):(k*=-1,l+=0>=l?Math.PI:-Math.PI));f=(g-c.rotation)%Math.PI;m=(l-c.skewX)%Math.PI;if(void 0===c.skewX||1E-6<p||-1E-6>p||1E-6<q||-1E-6>q||1E-6<f||-1E-6>f||1E-6<m||-1E-6>m)c.scaleX=e,c.scaleY=k,
+c.rotation=g,c.skewX=l;G&&(c.rotationX=c.rotationY=c.z=0,c.perspective=parseFloat(z.defaultTransformPerspective)||0,c.scaleZ=1)}c.zOrigin=h;for(b in c)1E-6>c[b]&&-1E-6<c[b]&&(c[b]=0);d&&(a._gsTransform=c);return c},Qa=function(a){var b=this.data,d=-b.rotation,c=d+b.skewX,f=Math.cos(d)*b.scaleX,d=Math.sin(d)*b.scaleX,h=Math.sin(c)*-b.scaleY,c=Math.cos(c)*b.scaleY,e=1E-6,j=this.t.style,k=this.t.currentStyle,g;if(k){f<e&&f>-e&&(f=0);d<e&&d>-e&&(d=0);h<e&&h>-e&&(h=0);c<e&&c>-e&&(c=0);e=d;d=-h;h=-e;e=
+k.filter;j.filter="";var l=this.t.offsetWidth;g=this.t.offsetHeight;var p="absolute"!==k.position,q="progid:DXImageTransform.Microsoft.Matrix(M11="+f+", M12="+d+", M21="+h+", M22="+c,m=b.x,u=b.y,n,v;null!=b.ox&&(n=(b.oxp?0.01*l*b.ox:b.ox)-l/2,v=(b.oyp?0.01*g*b.oy:b.oy)-g/2,m+=n-(n*f+v*d),u+=v-(n*h+v*c));if(p)n=l/2,v=g/2,q+=", Dx="+(n-(n*f+v*d)+m)+", Dy="+(v-(n*h+v*c)+u)+")";else{var B=8>ha?1:-1;n=b.ieOffsetX||0;v=b.ieOffsetY||0;b.ieOffsetX=Math.round((l-((0>f?-f:f)*l+(0>d?-d:d)*g))/2+m);b.ieOffsetY=
+Math.round((g-((0>c?-c:c)*g+(0>h?-h:h)*l))/2+u);for(C=0;4>C;C++)l=Na[C],g=k[l],g=-1!==g.indexOf("px")?parseFloat(g):F(this.t,l,parseFloat(g),g.replace(Ga,""))||0,m=g!==b[l]?2>C?-b.ieOffsetX:-b.ieOffsetY:2>C?n-b.ieOffsetX:v-b.ieOffsetY,j[l]=(b[l]=Math.round(g-m*(0===C||2===C?1:B)))+"px";q+=", sizingMethod='auto expand')"}j.filter=-1!==e.indexOf("DXImageTransform.Microsoft.Matrix(")?e.replace(La,q):q+" "+e;if(0===a||1===a)if(1===f&&0===d&&0===h&&1===c&&(!p||-1!==q.indexOf("Dx=0, Dy=0")))(!ea.test(e)||
+100===parseFloat(RegExp.$1))&&-1===e.indexOf("gradient(")&&j.removeAttribute("filter")}},Fa=function(){var a=this.data,b=this.t.style,d=a.perspective,c=a.scaleX,f=0,h=0,e=0,j=0,k=a.scaleY,g=0,l=0,p=0,m=0,n=a.scaleZ,u=0,A=0,v=0,B=d?-1/d:0,r=a.rotation,s=a.zOrigin,t,w,z,x,y;ta&&(w=b.top+"",t=parseFloat(w)||0,w=w.substr((t+"").length),a._ffFix=!a._ffFix,b.top=(a._ffFix?t+0.05:t-0.05)+(""===w?"px":w));r&&(t=Math.cos(r),r=Math.sin(r),z=k*r,f=c*-r,k*=t,c*=t,j=z);if(r=a.rotationY)t=Math.cos(r),r=Math.sin(r),
+x=n*-r,y=B*-r,h=c*r,g=j*r,n*=t,B*=t,c*=t,j*=t,p=x,A=y;if(r=a.rotationX)t=Math.cos(r),r=Math.sin(r),w=f*t+h*r,z=k*t+g*r,x=m*t+n*r,y=v*t+B*r,h=f*-r+h*t,g=k*-r+g*t,n=m*-r+n*t,B=v*-r+B*t,f=w,k=z,m=x,v=y;s&&(u-=s,e=h*u,l=g*u,u=n*u+s);e+=a.x;l+=a.y;u=1E-5*(1E5*(u+a.z)>>0);b[E]="matrix3d("+1E-5*(1E5*c>>0)+","+1E-5*(1E5*j>>0)+","+1E-5*(1E5*p>>0)+","+1E-5*(1E5*A>>0)+","+1E-5*(1E5*f>>0)+","+1E-5*(1E5*k>>0)+","+1E-5*(1E5*m>>0)+","+1E-5*(1E5*v>>0)+","+1E-5*(1E5*h>>0)+","+1E-5*(1E5*g>>0)+","+1E-5*(1E5*n>>0)+","+
+1E-5*(1E5*B>>0)+","+1E-5*(1E5*e>>0)+","+1E-5*(1E5*l>>0)+","+u+","+(d?1+-u/d:1)+")"},Ra=function(){var a=this.data;if(!a.rotation&&!a.skewX)this.t.style[E]="matrix("+a.scaleX+",0,0,"+a.scaleY+","+a.x+","+a.y+")";else{var b=a.rotation,d=b-a.skewX,c=Math.cos(b)*a.scaleX,b=Math.sin(b)*a.scaleX,f=Math.sin(d)*-a.scaleY,d=Math.cos(d)*a.scaleY;this.t.style[E]="matrix("+(1E-6>c&&-1E-6<c?0:c)+","+(1E-6>b&&-1E-6<b?0:b)+","+(1E-6>f&&-1E-6<f?0:f)+","+(1E-6>d&&-1E-6<d?0:d)+","+a.x+","+a.y+")"}};n("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,transformPerspective",
+null,function(a,b,d,c,f,h,e){if(c._transform)return f;b=c._transform=X(a,A,!0);var j=a.style,k=Da.length,g,l,p;if("string"===typeof e.transform&&E)p=j[E],j[E]=e.transform,g=X(a,null,!1),j[E]=p;else if("object"===typeof e){l=null!=e.rotation?e.rotation:null!=e.rotationZ?e.rotationZ:b.rotation*P;g={scaleX:H(null!=e.scaleX?e.scaleX:e.scale,b.scaleX),scaleY:H(null!=e.scaleY?e.scaleY:e.scale,b.scaleY),scaleZ:H(null!=e.scaleZ?e.scaleZ:e.scale,b.scaleZ),x:H(e.x,b.x),y:H(e.y,b.y),z:H(e.z,b.z),perspective:H(e.transformPerspective,
+b.perspective)};g.rotation=null!=e.shortRotation||null!=e.shortRotationZ?la(e.shortRotation||e.shortRotationZ||0,b.rotation):"number"===typeof l?l*K:T(l,b.rotation);G&&(g.rotationX=null!=e.shortRotationX?la(e.shortRotationX,b.rotationX):"number"===typeof e.rotationX?e.rotationX*K:T(e.rotationX,b.rotationX),g.rotationY=null!=e.shortRotationY?la(e.shortRotationY,b.rotationY):"number"===typeof e.rotationY?e.rotationY*K:T(e.rotationY,b.rotationY),1E-6>g.rotationX&&-1E-6<g.rotationX&&(g.rotationX=0),1E-6>
+g.rotationY&&-1E-6<g.rotationY&&(g.rotationY=0));g.skewY=null==e.skewY?b.skewY:"number"===typeof e.skewY?e.skewY*K:T(e.skewY,b.skewY);if(l=g.skewY-b.skewY)g.skewX+=l,g.rotation+=l;1E-6>g.skewY&&-1E-6<g.skewY&&(g.skewY=0);1E-6>g.skewX&&-1E-6<g.skewX&&(g.skewX=0);1E-6>g.rotation&&-1E-6<g.rotation&&(g.rotation=0)}p=b.z||b.rotationX||b.rotationY||g.z||g.rotationX||g.rotationY||g.perspective;!p&&null!=g.scale&&(g.scaleZ=1);for(f=c._enableTransforms(p,f,h);-1<--k;)if(d=Da[k],l=g[d]-b[d],1E-6<l||-1E-6>l||
+null!=W[d])f=new s(b,d,b[d],l,f),f.xs0=0,f.plugin=h,c._overwriteProps.push(f.n);if((l=e.transformOrigin)||G&&p&&b.zOrigin)E?(l=(l||w(a,d,A,!1,"50% 50%"))+"",d=Ea,f=new s(j,d,0,0,f,-1,"css_transformOrigin"),f.b=j[d],f.plugin=h,G?(p=b.zOrigin,l=l.split(" "),b.zOrigin=(2<l.length?parseFloat(l[2]):p)||0,f.xs0=f.e=j[d]=l[0]+" "+(l[1]||"50%")+" 0px",f=new s(b,"zOrigin",0,0,f,-1,f.n),f.b=p,f.xs0=f.e=b.zOrigin):f.xs0=f.e=j[d]=l):ka(l+"",b);return f.t===a?(f._next&&(f._next._prev=null),f._next):f},!0);n("boxShadow",
+"0px 0px 0px 0px #999",null,!0,!0);n("borderRadius","0px",function(a,b,d,c,f){b=this.format(b);c=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];var h=a.style,e,j,k,g,l,p,m,n,u,s,v,B;n=parseFloat(a.offsetWidth);u=parseFloat(a.offsetHeight);b=b.split(" ");for(e=0;e<c.length;e++)this.p.indexOf("border")&&(c[e]=R(c[e])),g=k=w(a,c[e],A,!1,"0px"),-1!==g.indexOf(" ")&&(k=g.split(" "),g=k[0],k=k[1]),l=j=b[e],p=parseFloat(g),v=g.substr((p+"").length),(B="="===
+l.charAt(1))?(m=parseInt(l.charAt(0)+"1"),l=l.substr(2),m*=parseFloat(l),s=l.substr((m+"").length-(0>m?1:0))||""):(m=parseFloat(l),s=l.substr((m+"").length)),""===s&&(s=aa[d]||v),s!==v&&(g=F(a,"borderLeft",p,v),p=F(a,"borderTop",p,v),"%"===s?(g=100*(g/n)+"%",k=100*(p/u)+"%"):"em"===s?(v=F(a,"borderLeft",1,"em"),g=g/v+"em",k=p/v+"em"):(g+="px",k=p+"px"),B&&(l=parseFloat(g)+m+s,j=parseFloat(k)+m+s)),f=Z(h,c[e],g+" "+k,l+" "+j,!1,"0px",f);return f},!0,!1,Ba("0px 0px 0px 0px",!1,!0));n("backgroundPosition",
+"0 0",function(a,b,d,c,f,h){d=A||S(a,null);d=this.format((d?ha?d.getPropertyValue("background-position-x")+" "+d.getPropertyValue("background-position-y"):d.getPropertyValue("background-position"):a.currentStyle.backgroundPositionX+" "+a.currentStyle.backgroundPositionY)||"0 0");b=this.format(b);var e,j,k,g;if(-1!==d.indexOf("%")!==(-1!==b.indexOf("%"))){c=d.split(" ");e=b.split(" ");fa.setAttribute("src",w(a,"backgroundImage").replace(Ia,""));for(j=2;-1<--j;)d=c[j],k=-1!==d.indexOf("%"),k!==(-1!==
+e[j].indexOf("%"))&&(g=0===j?a.offsetWidth-fa.width:a.offsetHeight-fa.height,c[j]=k?parseFloat(d)/100*g+"px":100*(parseFloat(d)/g)+"%");d=c.join(" ")}return this.parseComplex(a.style,d,b,f,h)},!1,!1,ka);n("backgroundSize","0 0",null,!1,!1,ka);n("perspective","0px",null,!0);n("perspectiveOrigin","50% 50%",null,!0);n("transformStyle","preserve-3d",null,!0);n("margin",null,D("marginTop,marginRight,marginBottom,marginLeft"));n("padding",null,D("paddingTop,paddingRight,paddingBottom,paddingLeft"));n("clip",
+"rect(0px,0px,0px,0px)");n("textShadow","0px 0px 0px #999",null,!1,!0);n("autoRound",null,function(a,b,d,c,f){return f});n("border","0px solid #000",function(a,b,d,c,f,h){return this.parseComplex(a.style,this.format(w(a,"borderTopWidth",A,!1,"0px")+" "+w(a,"borderTopStyle",A,!1,"solid")+" "+w(a,"borderTopColor",A,!1,"#000")),this.format(b),f,h)},!1,!0,function(a){var b=a.split(" ");return b[0]+" "+(b[1]||"solid")+" "+(a.match(I)||["#000"])[0]});var Sa=function(a){var b=this.t;a=this.s+this.c*a;var d;
+100===a&&(b.removeAttribute("filter"),d=!w(this.data,"filter"));d||(this.xn1&&(b.filter=b.filter||"alpha(opacity=100)"),b.filter=-1===b.filter.indexOf("opacity")?b.filter+(" alpha(opacity="+(a>>0)+")"):b.filter.replace(ea,"opacity="+(a>>0)))};n("opacity,alpha,autoAlpha","1",function(a,b,d,c,f,h){var e=parseFloat(w(a,"opacity",A,!1,"1"));b=parseFloat(b);var j=a.style,k;"autoAlpha"===d&&(k=w(a,"visibility",A),1===e&&"hidden"===k&&(e=0),f=new s(j,"visibility",0,0,f,-1,null,!1,0,0!==e?"visible":"hidden",
+0===b?"hidden":"visible"),f.xs0="visible",c._overwriteProps.push(f.n));N?f=new s(j,"opacity",e,b-e,f):(f=new s(j,"opacity",100*e,100*(b-e),f),f.xn1="autoAlpha"===d?1:0,j.zoom=1,f.type=2,f.b="alpha(opacity="+f.s+")",f.e="alpha(opacity="+(f.s+f.c)+")",f.data=a,f.plugin=h,f.setRatio=Sa);return f});var Ta=function(a){if(1===a||0===a){this.t.className=1===a?this.e:this.b;a=this.data;for(var b=this.t.style,d=b.removeProperty?"removeProperty":"removeAttribute";a;){if(a.v)b[a.p]=a.v;else b[d](a.p.replace(oa,
+"-$1").toLowerCase());a=a._next}}else this.t.className!==this.b&&(this.t.className=this.b)};n("className",null,function(a,b,d,c,f,h,e){var j=a.className,k=a.style.cssText;f=c._classNamePT=new s(a,d,0,0,f,2);f.setRatio=Ta;f.b=j;f.e="="!==b.charAt(1)?b:"+"===b.charAt(0)?j+" "+b.substr(2):j.split(b.substr(2)).join("");c._tween._duration&&(b=Y(a,A,!0),a.className=f.e,e=za(a,b,Y(a),e),a.className=j,f.data=e.firstMPT,a.style.cssText=k,f=f.xfirst=c.parse(a,e.difs,f,h));return f});m=["bezier","throwProps",
+"physicsProps","physics2D"];for(C=m.length;C--;)M(m[C]);m=z.prototype;m._firstPT=null;m._onInitTween=function(a,b,d){if(!a.nodeType)return!1;this._target=a;this._tween=d;this._vars=b;ga=b.autoRound;$=!1;aa=b.suffixMap||z.suffixMap;A=S(a,"");ba=this._overwriteProps;d=a.style;var c,f,h;if(ra&&""===d.zIndex&&(c=w(a,"zIndex",A),"auto"===c||""===c))d.zIndex=0;"string"===typeof b&&(f=d.cssText,c=Y(a,A),d.cssText=f+";"+b,c=za(a,c,Y(a)).difs,!N&&Ha.test(b)&&(c.opacity=parseFloat(RegExp.$1)),b=c,d.cssText=
+f);this._firstPT=a=this.parse(a,b,null);if($){for(;a;){d=a._next;for(b=f;b&&b.pr>a.pr;)b=b._next;(a._prev=b?b._prev:h)?a._prev._next=a:f=a;(a._next=b)?b._prev=a:h=a;a=d}this._firstPT=f}return!0};m.parse=function(a,b,d,c){var f=a.style,h,e,j,k,g,l,m,n;for(h in b){g=b[h];if(e=J[h])d=e.parse(a,g,h,this,d,c,b);else if(e=w(a,h,A)+"",m="string"===typeof g,"color"===h||"fill"===h||"stroke"===h||-1!==h.indexOf("Color")||m&&!g.indexOf("rgb"))m||(g=ma(g),g=(3<g.length?"rgba(":"rgb(")+g.join(",")+")"),d=Z(f,
+h,e,g,!0,"transparent",d,0,c);else if(m&&(-1!==g.indexOf(" ")||-1!==g.indexOf(",")))d=Z(f,h,e,g,!0,null,d,0,c);else{j=parseFloat(e);l=e.substr((j+"").length);if(""===e||"auto"===e)if("width"===h||"height"===h){j=a;n=h;k=A;l=parseFloat("width"===n?j.offsetWidth:j.offsetHeight);n=Ma[n];var z=n.length;for(k=k||S(j,null);-1<--z;)l-=parseFloat(w(j,"padding"+n[z],k,!0))||0,l-=parseFloat(w(j,"border"+n[z]+"Width",k,!0))||0;j=l;l="px"}else j="opacity"!==h?0:1,l="";(n=m&&"="===g.charAt(1))?(k=parseInt(g.charAt(0)+
+"1"),g=g.substr(2),k*=parseFloat(g),m=g.substr((k+"").length-(0>k?1:0))||""):(k=parseFloat(g),m=m?g.substr((k+"").length)||"":"");""===m&&(m=aa[h]||l);g=k||0===k?(n?k+j:k)+m:b[h];if(l!==m&&""!==m&&(k||0===k))if(j||0===j)if(j=F(a,h,j,l),"%"===m?(j/=F(a,h,100,"%")/100,100<j&&(j=100)):"em"===m?j/=F(a,h,1,"em"):(k=F(a,h,k,m),m="px"),n&&(k||0===k))g=k+j+m;n&&(k+=j);(j||0===j)&&(k||0===k)?(d=new s(f,h,j,k-j,d,0,"css_"+h,!1!==ga&&("px"===m||"zIndex"===h),0,e,g),d.xs0=m):(d=new s(f,h,k||j||0,0,d,-1,"css_"+
+h,!1,0,e,g),d.xs0="display"===h&&"none"===g?e:g)}c&&(d&&!d.plugin)&&(d.plugin=c)}return d};m.setRatio=function(a){var b=this._firstPT,d,c;if(1===a&&(this._tween._time===this._tween._duration||0===this._tween._time))for(;b;)2!==b.type?b.t[b.p]=b.e:b.setRatio(a),b=b._next;else if(a||!(this._tween._time===this._tween._duration||0===this._tween._time)||-1E-6===this._tween._rawPrevTime)for(;b;){d=b.c*a+b.s;b.r?d=0<d?d+0.5>>0:d-0.5>>0:1E-6>d&&-1E-6<d&&(d=0);if(b.type)if(1===b.type)if(c=b.l,2===c)b.t[b.p]=
+b.xs0+d+b.xs1+b.xn1+b.xs2;else if(3===c)b.t[b.p]=b.xs0+d+b.xs1+b.xn1+b.xs2+b.xn2+b.xs3;else if(4===c)b.t[b.p]=b.xs0+d+b.xs1+b.xn1+b.xs2+b.xn2+b.xs3+b.xn3+b.xs4;else if(5===c)b.t[b.p]=b.xs0+d+b.xs1+b.xn1+b.xs2+b.xn2+b.xs3+b.xn3+b.xs4+b.xn4+b.xs5;else{d=b.xs0+d+b.xs1;for(c=1;c<b.l;c++)d+=b["xn"+c]+b["xs"+(c+1)];b.t[b.p]=d}else-1===b.type?b.t[b.p]=b.xs0:b.setRatio&&b.setRatio(a);else b.t[b.p]=d+b.xs0;b=b._next}else for(;b;)2!==b.type?b.t[b.p]=b.b:b.setRatio(a),b=b._next};m._enableTransforms=function(a,
+b,d){var c=this._transformPT,f=this._target,h=f.style;if(c)a&&G&&(c.setRatio=Fa);else{if(E){if(sa){ra=!0;if(""===h.zIndex&&(c=w(f,"zIndex",A),"auto"===c||""===c))h.zIndex=0;ua&&(h.WebkitBackfaceVisibility=this._vars.WebkitBackfaceVisibility||(a?"visible":"hidden"))}}else h.zoom=1;this._transformPT=b=new s(f,"transform",0,0,b,2);b.setRatio=a&&G?Fa:E?Ra:Qa;b.plugin=d;b.data=this._transform||X(f,A,!0);ba.pop()}return b};m._linkCSSP=function(a,b,d){a&&(b&&(b._prev=a),a._next&&(a._next._prev=a._prev),
+d&&(d._next=a),a._prev?a._prev._next=a._next:this._firstPT===a&&(this._firstPT=a._next),a._next=b,a._prev=d);return a};m._kill=function(a){var b=a,d=!1,c,f;if(a.css_autoAlpha||a.css_alpha){b={};for(f in a)b[f]=a[f];b.css_opacity=1;b.css_autoAlpha&&(b.css_visibility=1)}if(a.css_className&&(c=this._classNamePT))(a=c.xfirst)&&a._prev?this._linkCSSP(a._prev,c._next,a._prev._prev):a===this._firstPT&&(this._firstPT=null),c._next&&this._linkCSSP(c._next,c._next._next,a._prev),this._target._gsOverwrittenClassNamePT=
+this._linkCSSP(c,this._target._gsOverwrittenClassNamePT),this._classNamePT=null,d=!0;return U.prototype._kill.call(this,b)||d};U.activate([z]);return z},!0)});window._gsDefine&&_gsQueue.pop()();
\ No newline at end of file
diff --git a/src/uncompressed/TweenMax.js b/src/uncompressed/TweenMax.js
index 248a6e7..979d5bc 100755
--- a/src/uncompressed/TweenMax.js
+++ b/src/uncompressed/TweenMax.js
@@ -1,6 +1,6 @@
/**
- * VERSION: beta 1.653
- * DATE: 2012-12-13
+ * VERSION: beta 1.66
+ * DATE: 2012-12-14
* JavaScript (ActionScript 3 and 2 also available)
* UPDATES AND DOCS AT: http://www.greensock.com
*
@@ -33,7 +33,7 @@
p = TweenMax.prototype = TweenLite.to({}, 0.1, {}),
_blankArray = [];
- TweenMax.version = 1.653;
+ TweenMax.version = 1.66;
p.constructor = TweenMax;
p.kill()._gc = false;
TweenMax.killTweensOf = TweenMax.killDelayedCallsTo = TweenLite.killTweensOf;
@@ -1511,6 +1511,7 @@
},
p = BezierPlugin.prototype = new TweenPlugin("bezier", 1),
_RAD2DEG = 180 / Math.PI,
+ _DEG2RAD = Math.PI / 180,
_r1 = [],
_r2 = [],
_r3 = [],
@@ -1614,7 +1615,7 @@
},
_parseAnchors = function(values, p, correlate, prepend) {
var a = [],
- l, i, obj, p1, p2, p3, r1, tmp;
+ l, i, p1, p2, p3, tmp;
if (prepend) {
values = [prepend].concat(values);
i = values.length;
@@ -1785,7 +1786,6 @@
var _internals = CSSPlugin._internals,
_parseToProxy = _internals._parseToProxy,
_setPluginRatio = _internals._setPluginRatio,
- _specialProps = _internals._specialProps,
CSSPropTween = _internals.CSSPropTween;
_internals._registerComplexSpecialProp("bezier", null, function(t, e, prop, cssp, pt, plugin) {
if (e instanceof Array) {
@@ -1796,7 +1796,7 @@
l = values.length - 1,
pluginValues = [],
v = {},
- i, p, data;
+ i, p, data, transPT;
if (l < 0) {
return pt;
}
@@ -1821,9 +1821,13 @@
}
if (v.autoRotate) {
if (!cssp._transform) {
- pt = _specialProps.rotation.parse(t, 0, p, cssp, pt, plugin, {}); //just to create a CSSPropTween that will force the transforms to render since there isn't one that exists.
+ transPT = cssp._enableTransforms(false, pt, plugin);
+ transPT._next = pt._next; //flip-flop the order because we need the autoRotation to get set first before the rotation transform is applied to the css.
+ transPT._prev = pt;
+ pt._next = transPT;
+ pt._prev = null;
}
- data.autoRotate = cssp._transform;
+ data.autoRotate = cssp._target._gsTransform;
}
plugin._onInitTween(data.proxy, v, cssp._tween);
return pt;
@@ -1888,7 +1892,7 @@
}
}
return true;
- };
+ }
//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) {
@@ -1913,7 +1917,7 @@
this._curSeg = curSeg = this._segments[i];
this._s2 = curSeg[(this._s1 = this._si = 0)];
} else if (v < this._l1 && i > 0) {
- while (i > 0 && (this._l1 = lengths[--i]) >= v) { }
+ while (i > 0 && (this._l1 = lengths[--i]) >= v) { }
if (i === 0 && v < this._l1) {
this._l1 = 0;
} else {
@@ -1931,11 +1935,11 @@
i = this._si;
if (v > this._s2 && i < curSeg.length - 1) {
l = curSeg.length - 1;
- while (i < l && (this._s2 = curSeg[++i]) <= v) { }
+ while (i < l && (this._s2 = curSeg[++i]) <= v) { }
this._s1 = curSeg[i-1];
this._si = i;
} else if (v < this._s1 && i > 0) {
- while (i > 0 && (this._s1 = curSeg[--i]) >= v) { }
+ while (i > 0 && (this._s1 = curSeg[--i]) >= v) { }
if (i === 0 && v < this._s1) {
this._s1 = 0;
} else {
@@ -1994,7 +1998,7 @@
}
}
}
- };
+ }
p._roundProps = function(lookup, value) {
var op = this._overwriteProps,
@@ -2004,7 +2008,7 @@
this._round[op[i]] = value;
}
}
- };
+ }
p._kill = function(lookup) {
var a = this._props,
@@ -2022,7 +2026,7 @@
}
}
return TweenPlugin.prototype._kill.call(this, lookup);
- };
+ }
TweenPlugin.activate([BezierPlugin]);
return BezierPlugin;
@@ -2044,7 +2048,7 @@
/*
* ----------------------------------------------------------------
- * CSSPlugin (!CSSPlugin)
+ * CSSPlugin
* ----------------------------------------------------------------
*/
_gsDefine("plugins.CSSPlugin", ["plugins.TweenPlugin","TweenLite"], function(TweenPlugin, TweenLite) {
@@ -2064,7 +2068,7 @@
p = CSSPlugin.prototype = new TweenPlugin("css");
p.constructor = CSSPlugin;
- CSSPlugin.version = 1.653;
+ CSSPlugin.version = 1.66;
CSSPlugin.API = 2;
CSSPlugin.defaultTransformPerspective = 0;
p = "px"; //we'll reuse the "p" variable to keep file size down
@@ -2098,16 +2102,16 @@
_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,
- _isMozilla, //Mozilla (Firefox) has a bug that causes 3D transformed elements to randomly disappear unless a repaint is forced after each update on each element.
+ _isFirefox, //Firefox has a bug that causes 3D transformed elements to randomly disappear unless a repaint is forced after each update on each element.
_isSafariLT6, //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!)
_ieVers,
- _supportsOpacity = (function() { //we set _isSafari, _ieVers, _isMozilla, and _supportsOpacity all in one function here to reduce file size slightly, especially in the minified version.
+ _supportsOpacity = (function() { //we set _isSafari, _ieVers, _isFirefox, 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));
_isSafariLT6 = (_isSafari && (Number(_agent.substr(_agent.indexOf("Version/")+8, 1)) < 6));
- _isMozilla = (_agent.indexOf("Mozilla") !== -1);
+ _isFirefox = (_agent.indexOf("Firefox") !== -1);
(/MSIE ([0-9]{1,}[\.0-9]{0,})/).exec(_agent);
_ieVers = parseFloat( RegExp.$1 );
@@ -2536,6 +2540,7 @@
mpt = mpt._next;
}
if (d.autoRotate) {
+ //_log("set rotation to "+(proxy.rotation*_RAD2DEG));
d.autoRotate.rotation = proxy.rotation;
}
//at the end, we must set the CSSPropTween's "e" (end) value dynamically here because that's what is used in the final setRatio() method.
@@ -3220,16 +3225,25 @@
},
_set3DTransformRatio = function(v) {
var t = this.data, //refers to the element's _gsTransform object
+ style = this.t.style,
perspective = t.perspective,
a11 = t.scaleX, a12 = 0, a13 = 0, a14 = 0,
a21 = 0, a22 = t.scaleY, a23 = 0, a24 = 0,
a31 = 0, a32 = 0, a33 = t.scaleZ, a34 = 0,
a41 = 0, a42 = 0, a43 = (perspective) ? -1 / perspective : 0,
- min = 0.000001, angle = t.rotation,
+ angle = t.rotation,
zOrigin = t.zOrigin,
- style = this.t.style,
- delimiter = ",",
- cos, sin, t1, t2, t3, t4;
+ cma = ",",
+ big = 100000,
+ sml = 0.00001,
+ cos, sin, t1, t2, t3, t4, top, n, sfx;
+ if (_isFirefox) { //Firefox has a bug that causes 3D elements to randomly disappear during animation unless a repaint is forced. One way to do this is change "top" by 0.05 which is imperceptible, so we go back and forth. Another way is to change the display to "none", read the clientTop, and then revert the display but that is much slower.
+ top = style.top + "";
+ n = parseFloat(top) || 0;
+ sfx = top.substr((n + "").length);
+ t._ffFix = !t._ffFix;
+ style.top = (t._ffFix ? n + 0.05 : n - 0.05) + ((sfx === "") ? "px" : sfx);
+ }
if (angle) {
cos = Math.cos(angle);
@@ -3283,21 +3297,10 @@
}
a14 += t.x;
a24 += t.y;
- a34 += t.z;
-
- if (a34 < min) if (a34 > -min) {
- a34 = 0;
- }
+ a34 = (((a34 + t.z)* big) >> 0) * sml;
- style[_transformProp] = "matrix3d(" + ((a11 < min && a11 > -min) ? 0 : a11) + delimiter + ((a21 < min && a21 > -min) ? 0 : a21) + delimiter + ((a31 < min && a31 > -min) ? 0 : a31) + delimiter + ((a41 < min && a41 > -min) ? 0 : a41) + delimiter + ((a12 < min && a12 > -min) ? 0 : a12) + delimiter + ((a22 < min && a22 > -min) ? 0 : a22) + delimiter + ((a32 < min && a32 > -min) ? 0 : a32) + delimiter + ((a42 < min && a42 > -min) ? 0 : a42) + delimiter + ((a13 < min && a13 > -min) ? 0 : a13) + delimiter + ((a23 < min && a23 > -min) ? 0 : a23) + delimiter + ((a33 < min && a33 > -min) ? 0 : a33) + delimiter + ((a43 < min && a43 > -min) ? 0 : a43) + delimiter + ((a14 < min && a14 > -min) ? 0 : a14) + delimiter + ((a24 < min && a24 > -min) ? 0 : a24) + delimiter + a34 + delimiter + (perspective ? (1 + (-a34 / perspective)) : 1) + ")";
+ style[_transformProp] = "matrix3d(" + (((a11 * big) >> 0) * sml) + cma + (((a21 * big) >> 0) * sml) + cma + (((a31 * big) >> 0) * sml) + cma + (((a41 * big) >> 0) * sml) + cma + (((a12 * big) >> 0) * sml) + cma + (((a22 * big) >> 0) * sml) + cma + (((a32 * big) >> 0) * sml) + cma + (((a42 * big) >> 0) * sml) + cma + (((a13 * big) >> 0) * sml) + cma + (((a23 * big) >> 0) * sml) + cma + (((a33 * big) >> 0) * sml) + cma + (((a43 * big) >> 0) * sml) + cma + (((a14 * big) >> 0) * sml) + cma + (((a24 * big) >> 0) * sml) + cma + a34 + cma + (perspective ? (1 + (-a34 / perspective)) : 1) + ")";
- if (_isMozilla) { //Firefox (Mozilla) has a bug that causes 3D elements to randomly disappear during animation unless a repaint is forced. One way is to change the display to "none", read the offsetWidth, and then revert the display. Another option is to change a property like "top" by at least about 0.05 pixels, but we can't just immediately revert that, so we'd have to vibrate back and forth (+/-0.05) which would be visibly imperceptible but could cause small issues with accurately reading the value elsewhere, so we opt for the cleanest approach here...
- t1 = style.display;
- style.display = "none";
- t2 = this.t.offsetWidth;
- style.display = t1;
- return t2; //we only return a value to prevent the t2 assignment from being stripped out during minification, but there's no real purpose for this function returning the value.
- }
},
_set2DTransformRatio = function(v) {
var t = this.data; //refers to the element's _gsTransform object
@@ -3346,16 +3349,8 @@
m2.rotation = (typeof(rotation) === "number") ? rotation * _DEG2RAD : _parseAngle(rotation, m1.rotation);
}
if (_supports3D) {
- if (v.shortRotationX != null) {
- m2.rotationX = _parseShortRotation(v.shortRotationX, m1.rotationX);
- } else {
- m2.rotationX = (typeof(v.rotationX) === "number") ? v.rotationX * _DEG2RAD : _parseAngle(v.rotationX, m1.rotationX);
- }
- if (v.shortRotationY != null) {
- m2.rotationY = _parseShortRotation(v.shortRotationY, m1.rotationY);
- } else {
- m2.rotationY = (typeof(v.rotationY) === "number") ? v.rotationY * _DEG2RAD : _parseAngle(v.rotationY, m1.rotationY);
- }
+ m2.rotationX = (v.shortRotationX != null) ? _parseShortRotation(v.shortRotationX, m1.rotationX) : (typeof(v.rotationX) === "number") ? v.rotationX * _DEG2RAD : _parseAngle(v.rotationX, m1.rotationX);
+ m2.rotationY = (v.shortRotationY != null) ? _parseShortRotation(v.shortRotationY, m1.rotationY) : (typeof(v.rotationY) === "number") ? v.rotationY * _DEG2RAD : _parseAngle(v.rotationY, m1.rotationY);
if (m2.rotationX < min) if (m2.rotationX > -min) {
m2.rotationX = 0;
}
@@ -3363,7 +3358,6 @@
m2.rotationY = 0;
}
}
- 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);
@@ -3388,33 +3382,7 @@
m2.scaleZ = 1; //no need to tween scaleZ.
}
- if (!_transformProp) {
- style.zoom = 1; //helps correct an IE issue.
- } else if (_isSafari) {
- _reqSafariFix = true;
- //if zIndex isn't set, iOS Safari doesn't repaint things correctly sometimes (seemingly at random).
- if (style.zIndex === "") {
- copy = _getStyle(t, "zIndex", _cs);
- if (copy === "auto" || copy === "") {
- style.zIndex = 0;
- }
- }
-
- //Setting WebkitBackfaceVisibility corrects 3 bugs:
- // 1) [non-Android] Safari skips rendering changes to "top" and "left" that are made on the same frame/render as a transform update.
- // 2) iOS Safari sometimes neglects to repaint elements in their new positions. Setting "WebkitPerspective" to a non-zero value worked too except that on iOS Safari things would flicker randomly.
- // 3) Safari sometimes displayed odd artifacts when tweening the transform (or WebkitTransform) property, like ghosts of the edges of the element remained. Definitely a browser bug.
- //Note: we allow the user to override the auto-setting by defining WebkitBackfaceVisibility in the vars of the tween.
- if (_isSafariLT6) {
- style.WebkitBackfaceVisibility = vars.WebkitBackfaceVisibility || (has3D ? "visible" : "hidden");
- }
- }
-
- pt = new CSSPropTween(t, "transform", 0, 0, pt, 2);
- pt.setRatio = (has3D && _supports3D) ? _set3DTransformRatio : _transformProp ? _set2DTransformRatio : _setIETransformRatio;
- pt.plugin = plugin;
- pt.data = m1;
- _overwriteProps.pop(); //we don't want to force the overwrite of all "transform" tweens of the target - we only care about individual transform properties like scaleX, rotation, etc. The CSSPropTween constructor automatically adds the property to _overwriteProps which is why we need to pop() here.
+ pt = cssp._enableTransforms(has3D, pt, plugin);
while (--i > -1) {
p = _transformProps[i];
@@ -3427,7 +3395,7 @@
}
}
- orig = v.transformOrigin
+ orig = v.transformOrigin;
if (orig || (_supports3D && has3D && m1.zOrigin)) { //if anything 3D is happening and there's a transformOrigin with a z component that's non-zero, we must ensure that the transformOrigin's z-component is set to 0 so that we can manually do those calculations to get around Safari bugs. Even if the user didn't specifically define a "transformOrigin" in this particular tween (maybe they did it via css directly).
if (_transformProp) {
orig = (orig || _getStyle(t, p, _cs, false, "50% 50%")) + ""; //cast as string to avoid errors
@@ -3675,6 +3643,7 @@
}
this._target = target;
this._tween = tween;
+ this._vars = vars;
_autoRound = vars.autoRound;
_hasPriority = false;
_suffixMap = vars.suffixMap || CSSPlugin.suffixMap;
@@ -3896,6 +3865,60 @@
}
};
+ /**
+ * @private
+ * Forces rendering of the target's transforms (rotation, scale, etc.) whenever the CSSPlugin's setRatio() is called.
+ * Basically, this creates a CSSPropTween (type 2) that calls the appropriate (3D or 2D) function. We separate this into
+ * its own method so that we can call it from other plugins like BezierPlugin if, for example, it needs to apply an autoRotation
+ * and this CSSPlugin doesn't have any transform-related properties of its own. You can call this method as many times as you
+ * want and it won't create duplicate CSSPropTweens.
+ *
+ * @param {boolean} threeD if true, it should apply 3D tweens (otherwise, just 2D ones are fine and typically faster)
+ * @param {CSSPropTween=} pt the next CSSPropTween in the linked list
+ * @param {TweenPlugin=} plugin if another TweenPlugin is handling this transform, pass a reference of the instance here.
+ * @return {CSSPropTween}
+ */
+ p._enableTransforms = function(threeD, pt, plugin) {
+ var tpt = this._transformPT,
+ t = this._target,
+ style = t.style,
+ zIndex;
+
+ if (!tpt) {
+ if (!_transformProp) {
+ style.zoom = 1; //helps correct an IE issue.
+ } else if (_isSafari) {
+ _reqSafariFix = true;
+ //if zIndex isn't set, iOS Safari doesn't repaint things correctly sometimes (seemingly at random).
+ if (style.zIndex === "") {
+ zIndex = _getStyle(t, "zIndex", _cs);
+ if (zIndex === "auto" || zIndex === "") {
+ style.zIndex = 0;
+ }
+ }
+
+ //Setting WebkitBackfaceVisibility corrects 3 bugs:
+ // 1) [non-Android] Safari skips rendering changes to "top" and "left" that are made on the same frame/render as a transform update.
+ // 2) iOS Safari sometimes neglects to repaint elements in their new positions. Setting "WebkitPerspective" to a non-zero value worked too except that on iOS Safari things would flicker randomly.
+ // 3) Safari sometimes displayed odd artifacts when tweening the transform (or WebkitTransform) property, like ghosts of the edges of the element remained. Definitely a browser bug.
+ //Note: we allow the user to override the auto-setting by defining WebkitBackfaceVisibility in the vars of the tween.
+ if (_isSafariLT6) {
+ style.WebkitBackfaceVisibility = this._vars.WebkitBackfaceVisibility || (threeD ? "visible" : "hidden");
+ }
+ }
+
+ this._transformPT = pt = new CSSPropTween(t, "transform", 0, 0, pt, 2);
+ pt.setRatio = (threeD && _supports3D) ? _set3DTransformRatio : _transformProp ? _set2DTransformRatio : _setIETransformRatio;
+ pt.plugin = plugin;
+ pt.data = this._transform || _getTransform(t, _cs, true);
+ _overwriteProps.pop(); //we don't want to force the overwrite of all "transform" tweens of the target - we only care about individual transform properties like scaleX, rotation, etc. The CSSPropTween constructor automatically adds the property to _overwriteProps which is why we need to pop() here.
+ } else if (threeD && _supports3D) {
+ tpt.setRatio = _set3DTransformRatio;
+ }
+ return pt;
+ };
+
+ /** @private **/
p._linkCSSP = function(pt, next, prev) {
if (pt) {
if (next) {
diff --git a/src/uncompressed/plugins/BezierPlugin.js b/src/uncompressed/plugins/BezierPlugin.js
index b4d8328..9230026 100755
--- a/src/uncompressed/plugins/BezierPlugin.js
+++ b/src/uncompressed/plugins/BezierPlugin.js
@@ -1,6 +1,6 @@
/**
- * VERSION: beta 1.13
- * DATE: 2012-11-14
+ * VERSION: beta 1.14
+ * DATE: 2012-12-14
* JavaScript (also available in AS3 and AS2)
* UPDATES AND DOCS AT: http://www.greensock.com
*
@@ -22,6 +22,7 @@
},
p = BezierPlugin.prototype = new TweenPlugin("bezier", 1),
_RAD2DEG = 180 / Math.PI,
+ _DEG2RAD = Math.PI / 180,
_r1 = [],
_r2 = [],
_r3 = [],
@@ -125,7 +126,7 @@
},
_parseAnchors = function(values, p, correlate, prepend) {
var a = [],
- l, i, obj, p1, p2, p3, r1, tmp;
+ l, i, p1, p2, p3, tmp;
if (prepend) {
values = [prepend].concat(values);
i = values.length;
@@ -296,7 +297,6 @@
var _internals = CSSPlugin._internals,
_parseToProxy = _internals._parseToProxy,
_setPluginRatio = _internals._setPluginRatio,
- _specialProps = _internals._specialProps,
CSSPropTween = _internals.CSSPropTween;
_internals._registerComplexSpecialProp("bezier", null, function(t, e, prop, cssp, pt, plugin) {
if (e instanceof Array) {
@@ -307,7 +307,7 @@
l = values.length - 1,
pluginValues = [],
v = {},
- i, p, data;
+ i, p, data, transPT;
if (l < 0) {
return pt;
}
@@ -332,9 +332,13 @@
}
if (v.autoRotate) {
if (!cssp._transform) {
- pt = _specialProps.rotation.parse(t, 0, p, cssp, pt, plugin, {}); //just to create a CSSPropTween that will force the transforms to render since there isn't one that exists.
+ transPT = cssp._enableTransforms(false, pt, plugin);
+ transPT._next = pt._next; //flip-flop the order because we need the autoRotation to get set first before the rotation transform is applied to the css.
+ transPT._prev = pt;
+ pt._next = transPT;
+ pt._prev = null;
}
- data.autoRotate = cssp._transform;
+ data.autoRotate = cssp._target._gsTransform;
}
plugin._onInitTween(data.proxy, v, cssp._tween);
return pt;
diff --git a/src/uncompressed/plugins/CSSPlugin.js b/src/uncompressed/plugins/CSSPlugin.js
index b9fbb73..cd2293a 100755
--- a/src/uncompressed/plugins/CSSPlugin.js
+++ b/src/uncompressed/plugins/CSSPlugin.js
@@ -1,6 +1,6 @@
/*!
- * VERSION: beta 1.653
- * DATE: 2012-12-13
+ * VERSION: beta 1.66
+ * DATE: 2012-12-14
* JavaScript
* UPDATES AND DOCS AT: http://www.greensock.com
*
@@ -29,7 +29,7 @@
p = CSSPlugin.prototype = new TweenPlugin("css");
p.constructor = CSSPlugin;
- CSSPlugin.version = 1.653;
+ CSSPlugin.version = 1.66;
CSSPlugin.API = 2;
CSSPlugin.defaultTransformPerspective = 0;
p = "px"; //we'll reuse the "p" variable to keep file size down
@@ -63,16 +63,16 @@
_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,
- _isMozilla, //Mozilla (Firefox) has a bug that causes 3D transformed elements to randomly disappear unless a repaint is forced after each update on each element.
+ _isFirefox, //Firefox has a bug that causes 3D transformed elements to randomly disappear unless a repaint is forced after each update on each element.
_isSafariLT6, //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!)
_ieVers,
- _supportsOpacity = (function() { //we set _isSafari, _ieVers, _isMozilla, and _supportsOpacity all in one function here to reduce file size slightly, especially in the minified version.
+ _supportsOpacity = (function() { //we set _isSafari, _ieVers, _isFirefox, 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));
_isSafariLT6 = (_isSafari && (Number(_agent.substr(_agent.indexOf("Version/")+8, 1)) < 6));
- _isMozilla = (_agent.indexOf("Mozilla") !== -1);
+ _isFirefox = (_agent.indexOf("Firefox") !== -1);
(/MSIE ([0-9]{1,}[\.0-9]{0,})/).exec(_agent);
_ieVers = parseFloat( RegExp.$1 );
@@ -501,6 +501,7 @@
mpt = mpt._next;
}
if (d.autoRotate) {
+ //_log("set rotation to "+(proxy.rotation*_RAD2DEG));
d.autoRotate.rotation = proxy.rotation;
}
//at the end, we must set the CSSPropTween's "e" (end) value dynamically here because that's what is used in the final setRatio() method.
@@ -1184,46 +1185,26 @@
}
},
_set3DTransformRatio = function(v) {
- /* alternate version that is more concise but not as fast in most scenarios. We chose the more verbose matrix3d() technique for maximum performance.
- var t = this.data,
- s = "";
- if (t.perspective) {
- s = "perspective(" + t.perspective + ") ";
- }
- if (t.x || t.y || t.z) {
- s += "translate3d(" + parseInt(t.x) + "px," + parseInt(t.y) + "px," + parseInt(t.z) + "px) ";
- }
- if (t.zOrigin) {
- s += "translateZ(" + t.zOrigin + "px) ";
- }
- if (t.scaleX !== 1 || t.scaleY !== 1 || t.scaleZ !== 1) {
- s += "scale3d(" + t.scaleX + "," + t.scaleY + "," + t.scaleZ + ") ";
- }
- if (t.rotation) {
- s += "rotateZ(" + t.rotation + "rad) ";
- }
- if (t.rotationY) {
- s += "rotateY(" + t.rotationY + "rad) ";
- }
- if (t.rotationX) {
- s += "rotateX(" + t.rotationX + "rad) ";
- }
- if (t.zOrigin) {
- s += "translateZ(" + -t.zOrigin + "px) ";
- }
- this.t.style[_transformProp] = s;
- */
var t = this.data, //refers to the element's _gsTransform object
+ style = this.t.style,
perspective = t.perspective,
a11 = t.scaleX, a12 = 0, a13 = 0, a14 = 0,
a21 = 0, a22 = t.scaleY, a23 = 0, a24 = 0,
a31 = 0, a32 = 0, a33 = t.scaleZ, a34 = 0,
a41 = 0, a42 = 0, a43 = (perspective) ? -1 / perspective : 0,
- min = 0.000001, angle = t.rotation,
+ angle = t.rotation,
zOrigin = t.zOrigin,
- style = this.t.style,
- delimiter = ",",
- cos, sin, t1, t2, t3, t4;
+ cma = ",",
+ big = 100000,
+ sml = 0.00001,
+ cos, sin, t1, t2, t3, t4, top, n, sfx;
+ if (_isFirefox) { //Firefox has a bug that causes 3D elements to randomly disappear during animation unless a repaint is forced. One way to do this is change "top" by 0.05 which is imperceptible, so we go back and forth. Another way is to change the display to "none", read the clientTop, and then revert the display but that is much slower.
+ top = style.top + "";
+ n = parseFloat(top) || 0;
+ sfx = top.substr((n + "").length);
+ t._ffFix = !t._ffFix;
+ style.top = (t._ffFix ? n + 0.05 : n - 0.05) + ((sfx === "") ? "px" : sfx);
+ }
if (angle) {
cos = Math.cos(angle);
@@ -1277,21 +1258,54 @@
}
a14 += t.x;
a24 += t.y;
- a34 += t.z;
+ a34 = (((a34 + t.z)* big) >> 0) * sml;
- if (a34 < min) if (a34 > -min) {
- a34 = 0;
- }
+ style[_transformProp] = "matrix3d(" + (((a11 * big) >> 0) * sml) + cma + (((a21 * big) >> 0) * sml) + cma + (((a31 * big) >> 0) * sml) + cma + (((a41 * big) >> 0) * sml) + cma + (((a12 * big) >> 0) * sml) + cma + (((a22 * big) >> 0) * sml) + cma + (((a32 * big) >> 0) * sml) + cma + (((a42 * big) >> 0) * sml) + cma + (((a13 * big) >> 0) * sml) + cma + (((a23 * big) >> 0) * sml) + cma + (((a33 * big) >> 0) * sml) + cma + (((a43 * big) >> 0) * sml) + cma + (((a14 * big) >> 0) * sml) + cma + (((a24 * big) >> 0) * sml) + cma + a34 + cma + (perspective ? (1 + (-a34 / perspective)) : 1) + ")";
- style[_transformProp] = "matrix3d(" + ((a11 < min && a11 > -min) ? 0 : a11) + delimiter + ((a21 < min && a21 > -min) ? 0 : a21) + delimiter + ((a31 < min && a31 > -min) ? 0 : a31) + delimiter + ((a41 < min && a41 > -min) ? 0 : a41) + delimiter + ((a12 < min && a12 > -min) ? 0 : a12) + delimiter + ((a22 < min && a22 > -min) ? 0 : a22) + delimiter + ((a32 < min && a32 > -min) ? 0 : a32) + delimiter + ((a42 < min && a42 > -min) ? 0 : a42) + delimiter + ((a13 < min && a13 > -min) ? 0 : a13) + delimiter + ((a23 < min && a23 > -min) ? 0 : a23) + delimiter + ((a33 < min && a33 > -min) ? 0 : a33) + delimiter + ((a43 < min && a43 > -min) ? 0 : a43) + delimiter + ((a14 < min && a14 > -min) ? 0 : a14) + delimiter + ((a24 < min && a24 > -min) ? 0 : a24) + delimiter + a34 + delimiter + (perspective ? (1 + (-a34 / perspective)) : 1) + ")";
-
- if (_isMozilla) { //Firefox (Mozilla) has a bug that causes 3D elements to randomly disappear during animation unless a repaint is forced. One way is to change the display to "none", read the offsetWidth, and then revert the display. Another option is to change a property like "top" by at least about 0.05 pixels, but we can't just immediately revert that, so we'd have to vibrate back and forth (+/-0.05) which would be visibly imperceptible but could cause small issues with accurately reading the value elsewhere, so we opt for the cleanest approach here...
- t1 = style.display;
- style.display = "none";
- t2 = this.t.offsetWidth;
- style.display = t1;
- return t2; //we only return a value to prevent the t2 assignment from being stripped out during minification, but there's no real purpose for this function returning the value.
+ /* alternate version that is more concise but not as fast in most scenarios. We chose the more verbose matrix3d() technique for maximum performance.
+ var t = this.data, //refers to the element's _gsTransform object
+ style = this.t.style,
+ s = "",
+ big = 10000,
+ sml = 0.0001,
+ zOrigin = (((t.zOrigin * big) >> 0) * sml),
+ top, n, sfx;
+ if (_isFirefox) { //Firefox has a bug that causes 3D elements to randomly disappear during animation unless a repaint is forced. One way to do this is change "top" by 0.05 which is imperceptible, so we go back and forth. Another way is to change the display to "none", read the clientTop, and then revert the display but that is much slower.
+ top = style.top + "";
+ n = parseFloat(top) || 0;
+ sfx = top.substr((n + "").length);
+ t._ffFix = !t._ffFix;
+ style.top = (t._ffFix ? n + 0.05 : n - 0.05) + ((sfx === "") ? "px" : sfx);
+ }
+ if (t.perspective) {
+ s = "perspective(" + t.perspective + ") ";
+ }
+ if (t.x || t.y || t.z) {
+ s += "translate3d(" + (((t.x * big) >> 0) * sml) + "px," + (((t.y * big) >> 0) * sml) + "px," + (((t.z * big) >> 0) * sml) + "px) ";
+ }
+ if (zOrigin) {
+ s += "translateZ(" + zOrigin + "px) ";
+ }
+ if (t.scaleX !== 1 || t.scaleY !== 1 || t.scaleZ !== 1) {
+ s += "scale3d(" + (((t.scaleX * big) >> 0) * sml) + "," + (((t.scaleY * big) >> 0) * sml) + "," + (((t.scaleZ * big) >> 0) * sml) + ") ";
+ }
+ if (t.rotation) {
+ s += "rotateZ(" + (((t.rotation * big) >> 0) * sml) + "rad) ";
+ }
+ if (t.rotationY) {
+ s += "rotateY(" + (((t.rotationY * big) >> 0) * sml) + "rad) ";
+ }
+ if (t.rotationX) {
+ s += "rotateX(" + (((t.rotationX * big) >> 0) * sml) + "rad) ";
}
+ if (zOrigin) {
+ s += "translateZ(" + -zOrigin + "px)";
+ }
+ style[_transformProp] = s;
+ */
+
+ //alternate way of applying the values (slightly slower but slightly more accurate, although I doubt anyone could ever tell a difference) (add a var min = 0.000001)
+ //style[_transformProp] = "matrix3d(" + ((a11 < min && a11 > -min) ? 0 : a11) + cma + ((a21 < min && a21 > -min) ? 0 : a21) + cma + ((a31 < min && a31 > -min) ? 0 : a31) + cma + ((a41 < min && a41 > -min) ? 0 : a41) + cma + ((a12 < min && a12 > -min) ? 0 : a12) + cma + ((a22 < min && a22 > -min) ? 0 : a22) + cma + ((a32 < min && a32 > -min) ? 0 : a32) + cma + ((a42 < min && a42 > -min) ? 0 : a42) + cma + ((a13 < min && a13 > -min) ? 0 : a13) + cma + ((a23 < min && a23 > -min) ? 0 : a23) + cma + ((a33 < min && a33 > -min) ? 0 : a33) + cma + ((a43 < min && a43 > -min) ? 0 : a43) + cma + ((a14 < min && a14 > -min) ? 0 : a14) + cma + ((a24 < min && a24 > -min) ? 0 : a24) + cma + a34 + cma + (perspective ? (1 + (-a34 / perspective)) : 1) + ")";
},
_set2DTransformRatio = function(v) {
var t = this.data; //refers to the element's _gsTransform object
@@ -1340,16 +1354,8 @@
m2.rotation = (typeof(rotation) === "number") ? rotation * _DEG2RAD : _parseAngle(rotation, m1.rotation);
}
if (_supports3D) {
- if (v.shortRotationX != null) {
- m2.rotationX = _parseShortRotation(v.shortRotationX, m1.rotationX);
- } else {
- m2.rotationX = (typeof(v.rotationX) === "number") ? v.rotationX * _DEG2RAD : _parseAngle(v.rotationX, m1.rotationX);
- }
- if (v.shortRotationY != null) {
- m2.rotationY = _parseShortRotation(v.shortRotationY, m1.rotationY);
- } else {
- m2.rotationY = (typeof(v.rotationY) === "number") ? v.rotationY * _DEG2RAD : _parseAngle(v.rotationY, m1.rotationY);
- }
+ m2.rotationX = (v.shortRotationX != null) ? _parseShortRotation(v.shortRotationX, m1.rotationX) : (typeof(v.rotationX) === "number") ? v.rotationX * _DEG2RAD : _parseAngle(v.rotationX, m1.rotationX);
+ m2.rotationY = (v.shortRotationY != null) ? _parseShortRotation(v.shortRotationY, m1.rotationY) : (typeof(v.rotationY) === "number") ? v.rotationY * _DEG2RAD : _parseAngle(v.rotationY, m1.rotationY);
if (m2.rotationX < min) if (m2.rotationX > -min) {
m2.rotationX = 0;
}
@@ -1357,7 +1363,6 @@
m2.rotationY = 0;
}
}
- 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);
@@ -1382,33 +1387,7 @@
m2.scaleZ = 1; //no need to tween scaleZ.
}
- if (!_transformProp) {
- style.zoom = 1; //helps correct an IE issue.
- } else if (_isSafari) {
- _reqSafariFix = true;
- //if zIndex isn't set, iOS Safari doesn't repaint things correctly sometimes (seemingly at random).
- if (style.zIndex === "") {
- copy = _getStyle(t, "zIndex", _cs);
- if (copy === "auto" || copy === "") {
- style.zIndex = 0;
- }
- }
-
- //Setting WebkitBackfaceVisibility corrects 3 bugs:
- // 1) [non-Android] Safari skips rendering changes to "top" and "left" that are made on the same frame/render as a transform update.
- // 2) iOS Safari sometimes neglects to repaint elements in their new positions. Setting "WebkitPerspective" to a non-zero value worked too except that on iOS Safari things would flicker randomly.
- // 3) Safari sometimes displayed odd artifacts when tweening the transform (or WebkitTransform) property, like ghosts of the edges of the element remained. Definitely a browser bug.
- //Note: we allow the user to override the auto-setting by defining WebkitBackfaceVisibility in the vars of the tween.
- if (_isSafariLT6) {
- style.WebkitBackfaceVisibility = vars.WebkitBackfaceVisibility || (has3D ? "visible" : "hidden");
- }
- }
-
- pt = new CSSPropTween(t, "transform", 0, 0, pt, 2);
- pt.setRatio = (has3D && _supports3D) ? _set3DTransformRatio : _transformProp ? _set2DTransformRatio : _setIETransformRatio;
- pt.plugin = plugin;
- pt.data = m1;
- _overwriteProps.pop(); //we don't want to force the overwrite of all "transform" tweens of the target - we only care about individual transform properties like scaleX, rotation, etc. The CSSPropTween constructor automatically adds the property to _overwriteProps which is why we need to pop() here.
+ pt = cssp._enableTransforms(has3D, pt, plugin);
while (--i > -1) {
p = _transformProps[i];
@@ -1421,7 +1400,7 @@
}
}
- orig = v.transformOrigin
+ orig = v.transformOrigin;
if (orig || (_supports3D && has3D && m1.zOrigin)) { //if anything 3D is happening and there's a transformOrigin with a z component that's non-zero, we must ensure that the transformOrigin's z-component is set to 0 so that we can manually do those calculations to get around Safari bugs. Even if the user didn't specifically define a "transformOrigin" in this particular tween (maybe they did it via css directly).
if (_transformProp) {
orig = (orig || _getStyle(t, p, _cs, false, "50% 50%")) + ""; //cast as string to avoid errors
@@ -1706,6 +1685,7 @@
}
this._target = target;
this._tween = tween;
+ this._vars = vars;
_autoRound = vars.autoRound;
_hasPriority = false;
_suffixMap = vars.suffixMap || CSSPlugin.suffixMap;
@@ -1927,6 +1907,60 @@
}
};
+ /**
+ * @private
+ * Forces rendering of the target's transforms (rotation, scale, etc.) whenever the CSSPlugin's setRatio() is called.
+ * Basically, this creates a CSSPropTween (type 2) that calls the appropriate (3D or 2D) function. We separate this into
+ * its own method so that we can call it from other plugins like BezierPlugin if, for example, it needs to apply an autoRotation
+ * and this CSSPlugin doesn't have any transform-related properties of its own. You can call this method as many times as you
+ * want and it won't create duplicate CSSPropTweens.
+ *
+ * @param {boolean} threeD if true, it should apply 3D tweens (otherwise, just 2D ones are fine and typically faster)
+ * @param {CSSPropTween=} pt the next CSSPropTween in the linked list
+ * @param {TweenPlugin=} plugin if another TweenPlugin is handling this transform, pass a reference of the instance here.
+ * @return {CSSPropTween}
+ */
+ p._enableTransforms = function(threeD, pt, plugin) {
+ var tpt = this._transformPT,
+ t = this._target,
+ style = t.style,
+ zIndex;
+
+ if (!tpt) {
+ if (!_transformProp) {
+ style.zoom = 1; //helps correct an IE issue.
+ } else if (_isSafari) {
+ _reqSafariFix = true;
+ //if zIndex isn't set, iOS Safari doesn't repaint things correctly sometimes (seemingly at random).
+ if (style.zIndex === "") {
+ zIndex = _getStyle(t, "zIndex", _cs);
+ if (zIndex === "auto" || zIndex === "") {
+ style.zIndex = 0;
+ }
+ }
+
+ //Setting WebkitBackfaceVisibility corrects 3 bugs:
+ // 1) [non-Android] Safari skips rendering changes to "top" and "left" that are made on the same frame/render as a transform update.
+ // 2) iOS Safari sometimes neglects to repaint elements in their new positions. Setting "WebkitPerspective" to a non-zero value worked too except that on iOS Safari things would flicker randomly.
+ // 3) Safari sometimes displayed odd artifacts when tweening the transform (or WebkitTransform) property, like ghosts of the edges of the element remained. Definitely a browser bug.
+ //Note: we allow the user to override the auto-setting by defining WebkitBackfaceVisibility in the vars of the tween.
+ if (_isSafariLT6) {
+ style.WebkitBackfaceVisibility = this._vars.WebkitBackfaceVisibility || (threeD ? "visible" : "hidden");
+ }
+ }
+
+ this._transformPT = pt = new CSSPropTween(t, "transform", 0, 0, pt, 2);
+ pt.setRatio = (threeD && _supports3D) ? _set3DTransformRatio : _transformProp ? _set2DTransformRatio : _setIETransformRatio;
+ pt.plugin = plugin;
+ pt.data = this._transform || _getTransform(t, _cs, true);
+ _overwriteProps.pop(); //we don't want to force the overwrite of all "transform" tweens of the target - we only care about individual transform properties like scaleX, rotation, etc. The CSSPropTween constructor automatically adds the property to _overwriteProps which is why we need to pop() here.
+ } else if (threeD && _supports3D) {
+ tpt.setRatio = _set3DTransformRatio;
+ }
+ return pt;
+ };
+
+ /** @private **/
p._linkCSSP = function(pt, next, prev) {
if (pt) {
if (next) {