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 rare transform misinterpretation and improved ticker for iOS 6

Jack Doyledc33f988828f
diff --git a/src/minified/TweenLite.min.js b/src/minified/TweenLite.min.js
index 507d37b..561e6ae 100755
--- a/src/minified/TweenLite.min.js
+++ b/src/minified/TweenLite.min.js
@@ -1,13 +1,52 @@
-/*!
- * VERSION: beta 1.5
- * DATE: 2012-09-04
- * JavaScript
- * UPDATES AND DOCS AT: http://www.greensock.com
- *
- * Copyright (c) 2008-2012, GreenSock. All rights reserved.
- * This work is subject to the terms in http://www.greensock.com/terms_of_use.html or for
- * Club GreenSock members, the software agreement that was issued with your membership.
- *
- * @author: Jack Doyle, [email protected]
- */
-(function(m){var F=function(a){var a=a.split("."),c=m,b;for(b=0;b<a.length;b++)c[a[b]]=c=c[a[b]]||{};return c},n=F("com.greensock"),o,k,d,z,G,v={},C=function(a,c,b,j){this.sc=v[a]?v[a].sc:[];v[a]=this;this.gsClass=null;this.def=b;var e=c||[],d=[];this.check=function(c){for(var f=e.length,g=0,l;-1<--f;)(l=v[e[f]]||new C(e[f])).gsClass?d[f]=l.gsClass:(g++,c&&l.sc.push(this));if(0===g&&b){var c=("com.greensock."+a).split("."),f=c.pop(),k=F(c.join("."))[f]=this.gsClass=b.apply(b,d);j&&((m.GreenSockGlobals|| m)[f]=k,"function"===typeof define&&define.amd?define((m.GreenSockAMDPath?m.GreenSockAMDPath+"/":"")+a.split(".").join("/"),[],function(){return k}):"undefined"!==typeof module&&module.exports&&(module.exports=k));for(f=0;f<this.sc.length;f++)this.sc[f].check(!1)}};this.check(!0)},q=n._class=function(a,c,b){new C(a,[],function(){return c},b);return c};m._gsDefine=function(a,c,b,j){return new C(a,c,b,j)};var H=[0,0,1,1],D=[],s=q("easing.Ease",function(a,c,b,j){this._func=a;this._type=b||0;this._power= j||0;this._params=c?H.concat(c):H},!0);d=s.prototype;d._calcEnd=!1;d.getRatio=function(a){if(this._func)return this._params[0]=a,this._func.apply(null,this._params);var c=this._type,b=this._power,j=1===c?1-a:2===c?a:0.5>a?2*a:2*(1-a);1===b?j*=j:2===b?j*=j*j:3===b?j*=j*j*j:4===b&&(j*=j*j*j*j);return 1===c?1-j:2===c?j:0.5>a?j/2:1-j/2};o=["Linear","Quad","Cubic","Quart","Quint"];for(k=o.length;-1<--k;)d=q("easing."+o[k],function(){},!0),z=q("easing.Power"+k,function(){},!0),d.easeOut=z.easeOut=new s(null, null,1,k),d.easeIn=z.easeIn=new s(null,null,2,k),d.easeInOut=z.easeInOut=new s(null,null,3,k);q("easing.Strong",n.easing.Power4,!0);n.easing.Linear.easeNone=n.easing.Linear.easeIn;d=q("events.EventDispatcher",function(a){this._listeners={};this._eventTarget=a||this}).prototype;d.addEventListener=function(a,c,b,j,e){var e=e||0,d=this._listeners[a],h=0,f;null==d&&(this._listeners[a]=d=[]);for(f=d.length;-1<--f;)a=d[f],a.c===c?d.splice(f,1):0===h&&a.pr<e&&(h=f+1);d.splice(h,0,{c:c,s:b,up:j,pr:e})};d.removeEventListener= function(a,c){var b=this._listeners[a];if(b)for(var j=b.length;-1<--j;)if(b[j].c===c){b.splice(j,1);break}};d.dispatchEvent=function(a){var c=this._listeners[a];if(c)for(var b=c.length,j,d=this._eventTarget;-1<--b;)j=c[b],j.up?j.c.call(j.s||d,{type:a,target:d}):j.c.call(j.s||d)};var A=m.requestAnimationFrame,B=m.cancelAnimationFrame,I=Date.now||function(){return(new Date).getTime()};o=["ms","moz","webkit","o"];for(k=o.length;-1<--k&&!A;)A=m[o[k]+"RequestAnimationFrame"],B=m[o[k]+"CancelAnimationFrame"]|| m[o[k]+"CancelRequestAnimationFrame"];B||(B=function(a){m.clearTimeout(a)});q("Ticker",function(a,c){this.frame=this.time=0;var b=this,j=I(),d=!1!==c,i,h,f,g,l;this.tick=function(){b.time=(I()-j)/1E3;if(!i||b.time>=l)b.frame++,l=b.time+g-(b.time-l)-5E-4,l<=b.time&&(l=b.time+0.001),b.dispatchEvent("tick");f=h(b.tick)};this.fps=function(a){if(!arguments.length)return i;i=a;g=1/(i||60);l=this.time+g;h=0===i?function(){}:!d||!A?function(a){return m.setTimeout(a,1E3*(l-b.time)+1>>0||1)}:A;B(f);f=h(b.tick)}; this.useRAF=function(a){if(!arguments.length)return d;d=a;this.fps(i)};this.fps(a)});d=n.Ticker.prototype=new n.events.EventDispatcher;d.constructor=n.Ticker;var p=q("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(t){G||(r.tick(),G=!0);var b=this.vars.useFrames?w:t;b.insert(this,b._time);this.vars.paused&& this.paused(!0)}}),r=p.ticker=new n.Ticker;d=p.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,c){arguments.length&&this.seek(a,c);this.reversed(!1);return this.paused(!1)};d.pause=function(a,c){arguments.length&&this.seek(a,c);return this.paused(!0)};d.resume=function(a,c){arguments.length&&this.seek(a,c);return this.paused(!1)};d.seek=function(a,c){return this.totalTime(Number(a), !1!=c)};d.restart=function(a,c){this.reversed(!1);this.paused(!1);return this.totalTime(a?-this._delay:0,!1!=c)};d.reverse=function(a,c){arguments.length&&this.seek(a||this.totalDuration(),c);this.reversed(!0);return this.paused(!1)};d.render=function(){};d.invalidate=function(){return this};d._enabled=function(a,c){this._gc=!a;this._active=a&&!this._paused&&0<this._totalTime&&this._totalTime<this._totalDuration;!0!=c&&(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,c){this._kill(a,c);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,c,b,j){if(null==a)return null;if("on"===a.substr(0,2)){if(1===arguments.length)return this.vars[a];if(null==c)delete this.vars[a];else if(this.vars[a]=c,this.vars[a+"Params"]=b,this.vars[a+"Scope"]=j,b)for(var d=b.length;-1< --d;)"{self}"===b[d]&&(b=this.vars[a+"Params"]=b.concat(),b[d]=this);"onUpdate"===a&&(this._onUpdate=c)}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&&this._active&&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,c){if(!arguments.length)return this._time;this._dirty&&this.totalDuration();a>this._duration&&(a=this._duration);return this.totalTime(a,c)};d.totalTime=function(a,c){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 b=this._timeline;b._timeline;)b.totalTime(b._totalTime,!0),b=b._timeline;this._gc&&this._enabled(!0,!1);this._totalTime!=a&&this.render(a,c,!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 c=this._pauseTime||0==this._pauseTime?this._pauseTime:this._timeline._totalTime;this._startTime=c-(c-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};n=q("core.SimpleTimeline",function(a){p.call(this, 0,a);this.autoRemoveChildren=this.smoothChildTiming=!0});d=n.prototype=new p;d.constructor=n;d.kill()._gc=!1;d._first=d._last=null;d._sortChildren=!1;d.insert=function(a,c){a._startTime=Number(c||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 b=this._last;if(this._sortChildren)for(var d=a._startTime;b&&b._startTime>d;)b=b._prev;b?(a._next= b._next,b._next=a):(a._next=this._first,this._first=a);a._next?a._next._prev=a:this._last=a;a._prev=b;this._timeline&&this._uncache(!0);return this};d._remove=function(a,c){a.timeline===this&&(c||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,c){var b=this._first,d;for(this._totalTime=this._time=this._rawPrevTime= a;b;){d=b._next;if(b._active||a>=b._startTime&&!b._paused)b._reversed?b.render((!b._dirty?b._totalDuration:b.totalDuration())-(a-b._startTime)*b._timeScale,c,!1):b.render((a-b._startTime)*b._timeScale,c,!1);b=d}};d.rawTime=function(){return this._totalTime};var g=q("TweenLite",function(a,c,b){p.call(this,c,b);if(null==a)throw"Cannot tween an undefined reference.";this.target=a;this._overwrite=null==this.vars.overwrite?J[g.defaultOverwrite]:"number"===typeof this.vars.overwrite?this.vars.overwrite>> 0:J[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++)b=this._targets[a],b.jquery?(this._targets.splice(a--,1),this._targets=this._targets.concat(b.constructor.makeArray(b))):(this._siblings[a]=x(b,this,!1),1===this._overwrite&&1<this._siblings[a].length&&E(b,this,null,1,this._siblings[a]))}else this._propLookup={},this._siblings=x(a,this,!1),1===this._overwrite&&1<this._siblings.length&& E(a,this,null,1,this._siblings);(this.vars.immediateRender||0===c&&0===this._delay&&!1!=this.vars.immediateRender)&&this.render(-this._delay,!1,!0)},!0);d=g.prototype=new p;d.constructor=g;d.kill()._gc=!1;d.ratio=0;d._firstPT=d._targets=d._overwrittenProps=null;d._notifyPluginsOfEnabled=!1;g.version=12;g.defaultEase=d._ease=new s(null,null,1,1);g.defaultOverwrite="auto";g.ticker=r;var K=g._plugins={},u=g._tweenLookup={},M=0,N={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},J={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},w=p._rootFramesTimeline=new n,t=p._rootTimeline=new n;t._startTime=r.time;w._startTime= r.frame;t._active=w._active=!0;p._updateRoot=function(){t.render((r.time-t._startTime)*t._timeScale,!1,!1);w.render((r.frame-w._startTime)*w._timeScale,!1,!1);if(!(r.frame%120)){var a,c,b;for(b in u){c=u[b].tweens;for(a=c.length;-1<--a;)c[a]._gc&&c.splice(a,1);0===c.length&&delete u[b]}}};r.addEventListener("tick",p._updateRoot);var x=function(a,c,b){var d=a._gsTweenID,e;if(!u[d||(a._gsTweenID=d="t"+M++)])u[d]={target:a,tweens:[]};if(c&&(a=u[d].tweens,a[e=a.length]=c,b))for(;-1<--e;)a[e]===c&&a.splice(e, 1);return u[d].tweens},E=function(a,c,b,d,e){var i,h,f;if(1===d||4<=d){a=e.length;for(i=0;i<a;i++)if((f=e[i])!==c)f._gc||f._enabled(!1,!1)&&(h=!0);else if(5===d)break;return h}var g=c._startTime+1E-10,l=[],k=0,m;for(i=e.length;-1<--i;)if(!((f=e[i])===c||f._gc||f._paused))f._timeline!==c._timeline?(m=m||L(c,0),0===L(f,m)&&(l[k++]=f)):f._startTime<=g&&f._startTime+f.totalDuration()/f._timeScale+1E-10>g&&((0===c._duration||!f._initted)&&2E-10>=g-f._startTime||(l[k++]=f));for(i=k;-1<--i;)if(f=l[i],2=== d&&f._kill(b,a)&&(h=!0),2!==d||!f._firstPT&&f._initted)f._enabled(!1,!1)&&(h=!0);return h},L=function(a,c){for(var b=a._timeline,d=b._timeScale,e=a._startTime;b._timeline;){e+=b._startTime;d*=b._timeScale;if(b._paused)return-100;b=b._timeline}e/=d;return e>c?e-c:!a._initted&&2E-10>e-c?1E-10:(e+=a.totalDuration()/a._timeScale/d)>c?0:e-c-1E-10};d._init=function(){this.vars.startAt&&(this.vars.startAt.overwrite=0,this.vars.startAt.immediateRender=!0,g.to(this.target,0,this.vars.startAt));var a,c;this._ease= this.vars.ease instanceof s?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 s(this.vars.ease,this.vars.easeParams):g.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))c=!0}else c=this._initProps(this.target,this._propLookup,this._siblings,this._overwrittenProps);c&&g._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,c,b,d){var e,i,h,f,g,l;if(null==a)return!1;for(e in this.vars){if(N[e]){if("onStartParams"===e||"onUpdateParams"=== e||"onCompleteParams"===e||"onReverseCompleteParams"===e||"onRepeatParams"===e)if(g=this.vars[e])for(i=g.length;-1<--i;)"{self}"===g[i]&&(g=this.vars[e]=g.concat(),g[i]=this)}else if(K[e]&&(f=new K[e])._onInitTween(a,this.vars[e],this)){this._firstPT=l={_next:this._firstPT,t:f,p:"setRatio",s:0,c:1,f:!0,n:e,pg:!0,pr:f._priority};for(i=f._overwriteProps.length;-1<--i;)c[f._overwriteProps[i]]=this._firstPT;if(f._priority||f._onInitAllProps)h=!0;if(f._onDisable||f._onEnable)this._notifyPluginsOfEnabled= !0}else this._firstPT=c[e]=l={_next:this._firstPT,t:a,p:e,f:"function"===typeof a[e],n:e,pg:!1,pr:0},l.s=!l.f?parseFloat(a[e]):a[e.indexOf("set")||"function"!==typeof a["get"+e.substr(3)]?e:"get"+e.substr(3)](),i=this.vars[e],l.c="number"===typeof i?i-l.s:"string"===typeof i&&"="===i.charAt(1)?parseInt(i.charAt(0)+"1")*Number(i.substr(2)):Number(i)||0;l&&l._next&&(l._next._prev=l)}return d&&this._kill(d,a)?this._initProps(a,c,b,d):1<this._overwrite&&this._firstPT&&1<b.length&&E(a,this,c,this._overwrite, b)?(this._kill(c,a),this._initProps(a,c,b,d)):h};d.render=function(a,c,b){var d=this._time,e,i;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,i="onComplete"),0===this._duration){if(0===a||0>this._rawPrevTime)this._rawPrevTime!==a&&(b=!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)i= "onReverseComplete",e=this._reversed;0>a?(this._active=!1,0===this._duration&&(0<=this._rawPrevTime&&(b=!0),this._rawPrevTime=a)):this._initted||(b=!0)}else if(this._totalTime=this._time=a,this._easeType){var h=a/this._duration,f=this._easeType,g=this._easePower;if(1===f||3===f&&0.5<=h)h=1-h;3===f&&(h*=2);1===g?h*=h:2===g?h*=h*h:3===g?h*=h*h*h:4===g&&(h*=h*h*h*h);this.ratio=1===f?1-h:2===f?h:0.5>a/this._duration?h/2:1-h/2}else this.ratio=this._ease.getRatio(a/this._duration);if(this._time!==d||b){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))c||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||D);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&&(c||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||D));i&&!this._gc&& (e&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),c||this.vars[i]&&this.vars[i].apply(this.vars[i+"Scope"]||this,this.vars[i+"Params"]||D))}};d._kill=function(a,c){"all"===a&&(a=null);if(null==a&&(null==c||c==this.target))return this._enabled(!1,!1);var c=c||this._targets||this.target,b,d,e,i,g,f,k;if((c instanceof Array||c.jquery)&&"object"===typeof c[0])for(b=c.length;-1<--b;)this._kill(a,c[b])&&(g=!0);else{if(this._targets)for(b=this._targets.length;-1<--b;){if(c=== this._targets[b]){i=this._propLookup[b]||{};this._overwrittenProps=this._overwrittenProps||[];d=this._overwrittenProps[b]=a?this._overwrittenProps[b]||{}:"all";break}}else{if(c!==this.target)return!1;i=this._propLookup;d=this._overwrittenProps=a?this._overwrittenProps||{}:"all"}if(i)for(e in f=a||i,k=a!=d&&"all"!=d&&a!=i&&(null==a||!0!=a._tempKill),f){if(b=i[e]){b.pg&&b.t._kill(f)&&(g=!0);if(!b.pg||0===b.t._overwriteProps.length)b._prev?b._prev._next=b._next:b===this._firstPT&&(this._firstPT=b._next), b._next&&(b._next._prev=b._prev),b._next=b._prev=null;delete i[e]}k&&(d[e]=1)}}return g};d.invalidate=function(){this._notifyPluginsOfEnabled&&g._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,c){if(a&&this._gc)if(this._targets)for(var b=this._targets.length;-1<--b;)this._siblings[b]=x(this._targets[b],this,!0);else this._siblings= x(this.target,this,!0);p.prototype._enabled.call(this,a,c);return this._notifyPluginsOfEnabled&&this._firstPT?g._onPluginEvent(a?"_onEnable":"_onDisable",this):!1};g.to=function(a,c,b){return new g(a,c,b)};g.from=function(a,c,b){b.runBackwards=!0;!1!=b.immediateRender&&(b.immediateRender=!0);return new g(a,c,b)};g.fromTo=function(a,c,b,d){d.startAt=b;b.immediateRender&&(d.immediateRender=!0);return new g(a,c,d)};g.delayedCall=function(a,c,b,d,e){return new g(c,0,{delay:a,onComplete:c,onCompleteParams:b, onCompleteScope:d,onReverseComplete:c,onReverseCompleteParams:b,onReverseCompleteScope:d,immediateRender:!1,useFrames:e,overwrite:0})};g.set=function(a,c){return new g(a,0,c)};g.killTweensOf=g.killDelayedCallsTo=function(a,c){for(var b=g.getTweensOf(a),d=b.length;-1<--d;)b[d]._kill(c,a)};g.getTweensOf=function(a){if(null!=a){var c,b,d;if((a instanceof Array||a.jquery)&&"object"===typeof a[0]){c=a.length;for(b=[];-1<--c;)b=b.concat(g.getTweensOf(a[c]));for(c=b.length;-1<--c;){d=b[c];for(a=c;-1<--a;)d=== b[a]&&b.splice(c,1)}}else{b=x(a).concat();for(c=b.length;-1<--c;)b[c]._gc&&b.splice(c,1)}return b}};var y=q("plugins.TweenPlugin",function(a,c){this._overwriteProps=(a||"").split(",");this._propName=this._overwriteProps[0];this._priority=c||0},!0);d=y.prototype;y.version=12;y.API=2;d._firstPT=null;d._addTween=function(a,c,b,d,e,g){var h;if(null!=d&&(h="number"===typeof d||"="!==d.charAt(1)?Number(d)-b:parseInt(d.charAt(0)+"1")*Number(d.substr(2))))this._firstPT=a={_next:this._firstPT,t:a,p:c,s:b, c:h,f:"function"===typeof a[c],n:e||c,r:g},a._next&&(a._next._prev=a)};d.setRatio=function(a){for(var c=this._firstPT,b;c;){b=c.c*a+c.s;c.r&&(b=b+(0<b?0.5:-0.5)>>0);if(c.f)c.t[c.p](b);else c.t[c.p]=b;c=c._next}};d._kill=function(a){if(null!=a[this._propName])this._overwriteProps=[];else for(var c=this._overwriteProps.length;-1<--c;)null!=a[this._overwriteProps[c]]&&this._overwriteProps.splice(c,1);for(c=this._firstPT;c;)null!=a[c.n]&&((c._next&&(c._next._prev=c._prev),c._prev)?(c._prev._next=c._next, c._prev=null):this._firstPT===c&&(this._firstPT=c._next)),c=c._next;return!1};d._roundProps=function(a,c){for(var b=this._firstPT;b;){if(a[this._propName]||null!=b.n&&a[b.n.split(this._propName+"_").join("")])b.r=c;b=b._next}};g._onPluginEvent=function(a,c){var b=c._firstPT,d;if("_onInitAllProps"===a){for(var e,g,h,f;b;){f=b._next;for(e=g;e&&e.pr>b.pr;)e=e._next;(b._prev=e?e._prev:h)?b._prev._next=b:g=b;(b._next=e)?e._prev=b:h=b;b=f}b=c._firstPT=g}for(;b;)b.pg&&"function"===typeof b.t[a]&&b.t[a]()&& (d=!0),b=b._next;return d};y.activate=function(a){for(var c=a.length;-1<--c;)a[c].API===y.API&&(g._plugins[(new a[c])._propName]=a[c]);return!0};if(o=m._gsQueue){for(k=0;k<o.length;k++)o[k]();for(d in v)v[d].def||console.log("Warning: TweenLite encountered missing dependency: com.greensock."+d)}})(window);
\ No newline at end of file
+/*!
+ * VERSION: beta 1.51
+ * DATE: 2012-11-13
+ * JavaScript
+ * UPDATES AND DOCS AT: http://www.greensock.com
+ *
+ * Copyright (c) 2008-2012, GreenSock. All rights reserved.
+ * This work is subject to the terms in http://www.greensock.com/terms_of_use.html or for
+ * Club GreenSock members, the software agreement that was issued with your membership.
+ *
+ * @author: Jack Doyle, [email protected]
+ */
+(function(n){var G=function(a){var a=a.split("."),c=n,b;for(b=0;b<a.length;b++)c[a[b]]=c=c[a[b]]||{};return c},l=G("com.greensock"),p,j,d,B,H,w={},C=function(a,c,b,i){this.sc=w[a]?w[a].sc:[];w[a]=this;this.gsClass=null;this.def=b;var e=c||[],d=[];this.check=function(c){for(var f=e.length,g=0,m;-1<--f;)(m=w[e[f]]||new C(e[f])).gsClass?d[f]=m.gsClass:(g++,c&&m.sc.push(this));if(0===g&&b){var c=("com.greensock."+a).split("."),f=c.pop(),j=G(c.join("."))[f]=this.gsClass=b.apply(b,d);i&&((n.GreenSockGlobals||
+n)[f]=j,"function"===typeof define&&define.amd?define((n.GreenSockAMDPath?n.GreenSockAMDPath+"/":"")+a.split(".").join("/"),[],function(){return j}):"undefined"!==typeof module&&module.exports&&(module.exports=j));for(f=0;f<this.sc.length;f++)this.sc[f].check(!1)}};this.check(!0)},r=l._class=function(a,c,b){new C(a,[],function(){return c},b);return c};n._gsDefine=function(a,c,b,i){return new C(a,c,b,i)};var I=[0,0,1,1],D=[],t=r("easing.Ease",function(a,c,b,i){this._func=a;this._type=b||0;this._power=
+i||0;this._params=c?I.concat(c):I},!0);d=t.prototype;d._calcEnd=!1;d.getRatio=function(a){if(this._func)return this._params[0]=a,this._func.apply(null,this._params);var c=this._type,b=this._power,i=1===c?1-a:2===c?a:0.5>a?2*a:2*(1-a);1===b?i*=i:2===b?i*=i*i:3===b?i*=i*i*i:4===b&&(i*=i*i*i*i);return 1===c?1-i:2===c?i:0.5>a?i/2:1-i/2};p=["Linear","Quad","Cubic","Quart","Quint"];for(j=p.length;-1<--j;)d=r("easing."+p[j],function(){},!0),B=r("easing.Power"+j,function(){},!0),d.easeOut=B.easeOut=new t(null,
+null,1,j),d.easeIn=B.easeIn=new t(null,null,2,j),d.easeInOut=B.easeInOut=new t(null,null,3,j);r("easing.Strong",l.easing.Power4,!0);l.easing.Linear.easeNone=l.easing.Linear.easeIn;var J=r("events.EventDispatcher",function(a){this._listeners={};this._eventTarget=a||this});d=J.prototype;d.addEventListener=function(a,c,b,i,e){var e=e||0,d=this._listeners[a],h=0,f;null==d&&(this._listeners[a]=d=[]);for(f=d.length;-1<--f;)a=d[f],a.c===c?d.splice(f,1):0===h&&a.pr<e&&(h=f+1);d.splice(h,0,{c:c,s:b,up:i,pr:e})};
+d.removeEventListener=function(a,c){var b=this._listeners[a];if(b)for(var i=b.length;-1<--i;)if(b[i].c===c){b.splice(i,1);break}};d.dispatchEvent=function(a){var c=this._listeners[a];if(c)for(var b=c.length,i,d=this._eventTarget;-1<--b;)i=c[b],i.up?i.c.call(i.s||d,{type:a,target:d}):i.c.call(i.s||d)};var y=n.requestAnimationFrame,E=n.cancelAnimationFrame,K=Date.now||function(){return(new Date).getTime()};p=["ms","moz","webkit","o"];for(j=p.length;-1<--j&&!y;)y=n[p[j]+"RequestAnimationFrame"],E=n[p[j]+
+"CancelAnimationFrame"]||n[p[j]+"CancelRequestAnimationFrame"];r("Ticker",function(a,c){var b=this,i=K(),d=!1!==c&&y,k,h,f,g,m,j=function(){null!=f&&(!d||!E?n.clearTimeout(f):E(f),f=null)},l=function(a){b.time=(K()-i)/1E3;if(!k||b.time>=m||a)b.frame++,m=b.time>m?b.time+g-(b.time-m):b.time+g-0.001,m<b.time+0.001&&(m=b.time+0.001),b.dispatchEvent("tick");!0!==a&&(f=h(l))};J.call(b);this.time=this.frame=0;this.tick=function(){l(!0)};this.fps=function(a){if(!arguments.length)return k;k=a;g=1/(k||60);
+m=this.time+g;h=0===k?function(){}:!d||!y?function(a){return n.setTimeout(a,1E3*(m-b.time)+1>>0||1)}:y;j();f=h(l)};this.useRAF=function(a){if(!arguments.length)return d;j();d=a;b.fps(k)};b.fps(a);n.setTimeout(function(){d&&!f&&b.useRAF(!1)},1E3)});d=l.Ticker.prototype=new l.events.EventDispatcher;d.constructor=l.Ticker;var q=r("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(u){H||(s.tick(),H=!0);var b=this.vars.useFrames?x:u;b.insert(this,b._time);this.vars.paused&&this.paused(!0)}}),s=q.ticker=new l.Ticker;d=q.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,c){arguments.length&&this.seek(a,c);this.reversed(!1);return this.paused(!1)};d.pause=function(a,c){arguments.length&&
+this.seek(a,c);return this.paused(!0)};d.resume=function(a,c){arguments.length&&this.seek(a,c);return this.paused(!1)};d.seek=function(a,c){return this.totalTime(Number(a),!1!=c)};d.restart=function(a,c){this.reversed(!1);this.paused(!1);return this.totalTime(a?-this._delay:0,!1!=c)};d.reverse=function(a,c){arguments.length&&this.seek(a||this.totalDuration(),c);this.reversed(!0);return this.paused(!1)};d.render=function(){};d.invalidate=function(){return this};d._enabled=function(a,c){this._gc=!a;
+this._active=a&&!this._paused&&0<this._totalTime&&this._totalTime<this._totalDuration;!0!=c&&(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,c){this._kill(a,c);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,c,b,i){if(null==a)return null;if("on"===a.substr(0,
+2)){if(1===arguments.length)return this.vars[a];if(null==c)delete this.vars[a];else if(this.vars[a]=c,this.vars[a+"Params"]=b,this.vars[a+"Scope"]=i,b)for(var d=b.length;-1<--d;)"{self}"===b[d]&&(b=this.vars[a+"Params"]=b.concat(),b[d]=this);"onUpdate"===a&&(this._onUpdate=c)}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&&this._active&&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,c){if(!arguments.length)return this._time;this._dirty&&this.totalDuration();a>this._duration&&(a=this._duration);return this.totalTime(a,c)};d.totalTime=function(a,c){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 b=this._timeline;b._timeline;)b.totalTime(b._totalTime,!0),b=b._timeline;this._gc&&this._enabled(!0,!1);this._totalTime!=a&&this.render(a,
+c,!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 c=this._pauseTime||0==this._pauseTime?this._pauseTime:this._timeline._totalTime;this._startTime=c-(c-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};l=r("core.SimpleTimeline",function(a){q.call(this,0,a);this.autoRemoveChildren=this.smoothChildTiming=!0});d=l.prototype=new q;d.constructor=l;d.kill()._gc=!1;d._first=d._last=null;d._sortChildren=!1;d.insert=function(a,c){a._startTime=Number(c||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 b=this._last;if(this._sortChildren)for(var d=a._startTime;b&&b._startTime>d;)b=b._prev;b?(a._next=b._next,b._next=a):(a._next=this._first,this._first=a);a._next?a._next._prev=a:this._last=a;a._prev=b;this._timeline&&this._uncache(!0);return this};d._remove=function(a,c){a.timeline===this&&(c||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,c){var b=this._first,d;for(this._totalTime=this._time=this._rawPrevTime=a;b;){d=b._next;if(b._active||a>=b._startTime&&!b._paused)b._reversed?b.render((!b._dirty?b._totalDuration:b.totalDuration())-(a-b._startTime)*b._timeScale,c,!1):b.render((a-b._startTime)*b._timeScale,c,!1);b=d}};d.rawTime=function(){return this._totalTime};var g=r("TweenLite",function(a,c,b){q.call(this,c,b);if(null==a)throw"Cannot tween an undefined reference.";this.target=
+a;this._overwrite=null==this.vars.overwrite?L[g.defaultOverwrite]:"number"===typeof this.vars.overwrite?this.vars.overwrite>>0:L[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++)b=this._targets[a],b.jquery?(this._targets.splice(a--,1),this._targets=this._targets.concat(b.constructor.makeArray(b))):(this._siblings[a]=z(b,this,!1),1===this._overwrite&&1<this._siblings[a].length&&
+F(b,this,null,1,this._siblings[a]))}else this._propLookup={},this._siblings=z(a,this,!1),1===this._overwrite&&1<this._siblings.length&&F(a,this,null,1,this._siblings);(this.vars.immediateRender||0===c&&0===this._delay&&!1!=this.vars.immediateRender)&&this.render(-this._delay,!1,!0)},!0);d=g.prototype=new q;d.constructor=g;d.kill()._gc=!1;d.ratio=0;d._firstPT=d._targets=d._overwrittenProps=null;d._notifyPluginsOfEnabled=!1;g.version=12;g.defaultEase=d._ease=new t(null,null,1,1);g.defaultOverwrite=
+"auto";g.ticker=s;var M=g._plugins={},v=g._tweenLookup={},O=0,P={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},L={none:0,all:1,
+auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},x=q._rootFramesTimeline=new l,u=q._rootTimeline=new l;u._startTime=s.time;x._startTime=s.frame;u._active=x._active=!0;q._updateRoot=function(){u.render((s.time-u._startTime)*u._timeScale,!1,!1);x.render((s.frame-x._startTime)*x._timeScale,!1,!1);if(!(s.frame%120)){var a,c,b;for(b in v){c=v[b].tweens;for(a=c.length;-1<--a;)c[a]._gc&&c.splice(a,1);0===c.length&&delete v[b]}}};s.addEventListener("tick",q._updateRoot);var z=function(a,
+c,b){var d=a._gsTweenID,e;if(!v[d||(a._gsTweenID=d="t"+O++)])v[d]={target:a,tweens:[]};if(c&&(a=v[d].tweens,a[e=a.length]=c,b))for(;-1<--e;)a[e]===c&&a.splice(e,1);return v[d].tweens},F=function(a,c,b,d,e){var k,h,f;if(1===d||4<=d){a=e.length;for(k=0;k<a;k++)if((f=e[k])!==c)f._gc||f._enabled(!1,!1)&&(h=!0);else if(5===d)break;return h}var g=c._startTime+1E-10,m=[],j=0,l;for(k=e.length;-1<--k;)if(!((f=e[k])===c||f._gc||f._paused))f._timeline!==c._timeline?(l=l||N(c,0),0===N(f,l)&&(m[j++]=f)):f._startTime<=
+g&&f._startTime+f.totalDuration()/f._timeScale+1E-10>g&&((0===c._duration||!f._initted)&&2E-10>=g-f._startTime||(m[j++]=f));for(k=j;-1<--k;)if(f=m[k],2===d&&f._kill(b,a)&&(h=!0),2!==d||!f._firstPT&&f._initted)f._enabled(!1,!1)&&(h=!0);return h},N=function(a,c){for(var b=a._timeline,d=b._timeScale,e=a._startTime;b._timeline;){e+=b._startTime;d*=b._timeScale;if(b._paused)return-100;b=b._timeline}e/=d;return e>c?e-c:!a._initted&&2E-10>e-c?1E-10:(e+=a.totalDuration()/a._timeScale/d)>c?0:e-c-1E-10};d._init=
+function(){this.vars.startAt&&(this.vars.startAt.overwrite=0,this.vars.startAt.immediateRender=!0,g.to(this.target,0,this.vars.startAt));var a,c;this._ease=this.vars.ease instanceof t?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 t(this.vars.ease,this.vars.easeParams):g.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))c=!0}else c=this._initProps(this.target,this._propLookup,this._siblings,this._overwrittenProps);c&&g._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,c,b,d){var e,k,h,f,g,j;if(null==a)return!1;for(e in this.vars){if(P[e]){if("onStartParams"===e||"onUpdateParams"===e||"onCompleteParams"===e||"onReverseCompleteParams"===e||"onRepeatParams"===e)if(g=this.vars[e])for(k=g.length;-1<--k;)"{self}"===g[k]&&(g=this.vars[e]=g.concat(),g[k]=this)}else if(M[e]&&(f=new M[e])._onInitTween(a,this.vars[e],this)){this._firstPT=j={_next:this._firstPT,t:f,p:"setRatio",s:0,c:1,f:!0,n:e,pg:!0,pr:f._priority};for(k=f._overwriteProps.length;-1<
+--k;)c[f._overwriteProps[k]]=this._firstPT;if(f._priority||f._onInitAllProps)h=!0;if(f._onDisable||f._onEnable)this._notifyPluginsOfEnabled=!0}else this._firstPT=c[e]=j={_next:this._firstPT,t:a,p:e,f:"function"===typeof a[e],n:e,pg:!1,pr:0},j.s=!j.f?parseFloat(a[e]):a[e.indexOf("set")||"function"!==typeof a["get"+e.substr(3)]?e:"get"+e.substr(3)](),k=this.vars[e],j.c="number"===typeof k?k-j.s:"string"===typeof k&&"="===k.charAt(1)?parseInt(k.charAt(0)+"1")*Number(k.substr(2)):Number(k)||0;j&&j._next&&
+(j._next._prev=j)}return d&&this._kill(d,a)?this._initProps(a,c,b,d):1<this._overwrite&&this._firstPT&&1<b.length&&F(a,this,c,this._overwrite,b)?(this._kill(c,a),this._initProps(a,c,b,d)):h};d.render=function(a,c,b){var d=this._time,e,k;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,k="onComplete"),0===this._duration){if(0===a||0>this._rawPrevTime)this._rawPrevTime!==a&&(b=!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)k="onReverseComplete",e=this._reversed;0>a?(this._active=!1,0===this._duration&&(0<=this._rawPrevTime&&(b=!0),this._rawPrevTime=a)):this._initted||(b=!0)}else if(this._totalTime=this._time=a,this._easeType){var h=a/this._duration,f=this._easeType,g=this._easePower;if(1===f||3===f&&0.5<=h)h=1-h;3===f&&(h*=2);1===g?h*=h:2===g?h*=h*h:3===g?h*=h*h*h:4===g&&(h*=h*h*
+h*h);this.ratio=1===f?1-h:2===f?h:0.5>a/this._duration?h/2:1-h/2}else this.ratio=this._ease.getRatio(a/this._duration);if(this._time!==d||b){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))c||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||D);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&&(c||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||D));k&&!this._gc&&(e&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),c||this.vars[k]&&this.vars[k].apply(this.vars[k+"Scope"]||this,this.vars[k+"Params"]||D))}};d._kill=function(a,c){"all"===a&&(a=null);if(null==a&&(null==c||c==this.target))return this._enabled(!1,!1);var c=c||this._targets||this.target,b,d,e,g,h,f,j;if((c instanceof
+Array||c.jquery)&&"object"===typeof c[0])for(b=c.length;-1<--b;)this._kill(a,c[b])&&(h=!0);else{if(this._targets)for(b=this._targets.length;-1<--b;){if(c===this._targets[b]){g=this._propLookup[b]||{};this._overwrittenProps=this._overwrittenProps||[];d=this._overwrittenProps[b]=a?this._overwrittenProps[b]||{}:"all";break}}else{if(c!==this.target)return!1;g=this._propLookup;d=this._overwrittenProps=a?this._overwrittenProps||{}:"all"}if(g)for(e in f=a||g,j=a!=d&&"all"!=d&&a!=g&&(null==a||!0!=a._tempKill),
+f){if(b=g[e]){b.pg&&b.t._kill(f)&&(h=!0);if(!b.pg||0===b.t._overwriteProps.length)b._prev?b._prev._next=b._next:b===this._firstPT&&(this._firstPT=b._next),b._next&&(b._next._prev=b._prev),b._next=b._prev=null;delete g[e]}j&&(d[e]=1)}}return h};d.invalidate=function(){this._notifyPluginsOfEnabled&&g._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,c){if(a&&this._gc)if(this._targets)for(var b=this._targets.length;-1<--b;)this._siblings[b]=z(this._targets[b],this,!0);else this._siblings=z(this.target,this,!0);q.prototype._enabled.call(this,a,c);return this._notifyPluginsOfEnabled&&this._firstPT?g._onPluginEvent(a?"_onEnable":"_onDisable",this):!1};g.to=function(a,c,b){return new g(a,c,b)};g.from=function(a,c,b){b.runBackwards=!0;!1!=b.immediateRender&&(b.immediateRender=!0);return new g(a,c,b)};g.fromTo=function(a,c,b,d){d.startAt=
+b;b.immediateRender&&(d.immediateRender=!0);return new g(a,c,d)};g.delayedCall=function(a,c,b,d,e){return new g(c,0,{delay:a,onComplete:c,onCompleteParams:b,onCompleteScope:d,onReverseComplete:c,onReverseCompleteParams:b,onReverseCompleteScope:d,immediateRender:!1,useFrames:e,overwrite:0})};g.set=function(a,c){return new g(a,0,c)};g.killTweensOf=g.killDelayedCallsTo=function(a,c){for(var b=g.getTweensOf(a),d=b.length;-1<--d;)b[d]._kill(c,a)};g.getTweensOf=function(a){if(null!=a){var c,b,d;if((a instanceof
+Array||a.jquery)&&"object"===typeof a[0]){c=a.length;for(b=[];-1<--c;)b=b.concat(g.getTweensOf(a[c]));for(c=b.length;-1<--c;){d=b[c];for(a=c;-1<--a;)d===b[a]&&b.splice(c,1)}}else{b=z(a).concat();for(c=b.length;-1<--c;)b[c]._gc&&b.splice(c,1)}return b}};var A=r("plugins.TweenPlugin",function(a,c){this._overwriteProps=(a||"").split(",");this._propName=this._overwriteProps[0];this._priority=c||0},!0);d=A.prototype;A.version=12;A.API=2;d._firstPT=null;d._addTween=function(a,c,b,d,e,g){var h;if(null!=
+d&&(h="number"===typeof d||"="!==d.charAt(1)?Number(d)-b:parseInt(d.charAt(0)+"1")*Number(d.substr(2))))this._firstPT=a={_next:this._firstPT,t:a,p:c,s:b,c:h,f:"function"===typeof a[c],n:e||c,r:g},a._next&&(a._next._prev=a)};d.setRatio=function(a){for(var c=this._firstPT,b;c;){b=c.c*a+c.s;c.r&&(b=b+(0<b?0.5:-0.5)>>0);if(c.f)c.t[c.p](b);else c.t[c.p]=b;c=c._next}};d._kill=function(a){if(null!=a[this._propName])this._overwriteProps=[];else for(var c=this._overwriteProps.length;-1<--c;)null!=a[this._overwriteProps[c]]&&
+this._overwriteProps.splice(c,1);for(c=this._firstPT;c;)null!=a[c.n]&&(c._next&&(c._next._prev=c._prev),c._prev?(c._prev._next=c._next,c._prev=null):this._firstPT===c&&(this._firstPT=c._next)),c=c._next;return!1};d._roundProps=function(a,c){for(var b=this._firstPT;b;){if(a[this._propName]||null!=b.n&&a[b.n.split(this._propName+"_").join("")])b.r=c;b=b._next}};g._onPluginEvent=function(a,c){var b=c._firstPT,d;if("_onInitAllProps"===a){for(var e,g,h,f;b;){f=b._next;for(e=g;e&&e.pr>b.pr;)e=e._next;(b._prev=
+e?e._prev:h)?b._prev._next=b:g=b;(b._next=e)?e._prev=b:h=b;b=f}b=c._firstPT=g}for(;b;)b.pg&&"function"===typeof b.t[a]&&b.t[a]()&&(d=!0),b=b._next;return d};A.activate=function(a){for(var c=a.length;-1<--c;)a[c].API===A.API&&(g._plugins[(new a[c])._propName]=a[c]);return!0};if(p=n._gsQueue){for(j=0;j<p.length;j++)p[j]();for(d in w)w[d].def||console.log("Warning: TweenLite encountered missing dependency: com.greensock."+d)}})(window);
\ No newline at end of file
diff --git a/src/minified/TweenMax.min.js b/src/minified/TweenMax.min.js
index f31622b..8bf627c 100755
--- a/src/minified/TweenMax.min.js
+++ b/src/minified/TweenMax.min.js
@@ -1,6 +1,6 @@
/**
- * VERSION: beta 1.542
- * DATE: 2012-10-01
+ * VERSION: beta 1.5421
+ * DATE: 2012-11-13
* JavaScript (ActionScript 3 and 2 also available)
* UPDATES AND DOCS AT: http://www.greensock.com
*
@@ -12,140 +12,141 @@
*
* @author: Jack Doyle, [email protected]
**/
-(window._gsQueue||(window._gsQueue=[])).push(function(){_gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(y,w,i){var q=function(h,d,b){i.call(this,h,d,b);this._cycle=0;this._yoyo=!0==this.vars.yoyo;this._repeat=this.vars.repeat||0;this._repeatDelay=this.vars.repeatDelay||0;this._dirty=!0},s=q.prototype=i.to({},0.1,{}),c=[];s.constructor=q;s.kill()._gc=!1;q.killTweensOf=q.killDelayedCallsTo=i.killTweensOf;q.getTweensOf=i.getTweensOf;q.ticker=i.ticker;s.invalidate=function(){this._yoyo=
-!0==this.vars.yoyo;this._repeat=this.vars.repeat||0;this._repeatDelay=this.vars.repeatDelay||0;this._uncache(!0);return i.prototype.invalidate.call(this)};s.updateTo=function(h,d){var b=this.ratio,k;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(k in h)this.vars[k]=h[k];if(this._initted)if(d)this._initted=!1;else if(this._notifyPluginsOfEnabled&&
-this._firstPT&&i._onPluginEvent("_onDisable",this),0.998<this._time/this._duration)b=this._time,this.render(0,!0,!1),this._initted=!1,this.render(b,!0,!1);else if(0<this._time){this._initted=!1;this._init();b=1/(1-b);k=this._firstPT;for(var A;k;)A=k.s+k.c,k.c*=b,k.s=A-k.c,k=k._next}return this};s.render=function(b,d,f){var k=!this._dirty?this._totalDuration:this.totalDuration(),A=this._time,t=this._totalTime,e=this._cycle,x,m;if(b>=k){if(this._totalTime=k,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||(x=!0,m="onComplete"),0===this._duration){if(0===b||0>this._rawPrevTime)this._rawPrevTime!==b&&(f=!0);this._rawPrevTime=b}}else if(0>=b){this._totalTime=this._time=this._cycle=0;this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0;if(0!==t||0===this._duration&&0<this._rawPrevTime)m="onReverseComplete",x=this._reversed;
+(window._gsQueue||(window._gsQueue=[])).push(function(){_gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(y,v,e){var p=function(h,d,b){e.call(this,h,d,b);this._cycle=0;this._yoyo=!0==this.vars.yoyo;this._repeat=this.vars.repeat||0;this._repeatDelay=this.vars.repeatDelay||0;this._dirty=!0},m=p.prototype=e.to({},0.1,{}),c=[];m.constructor=p;m.kill()._gc=!1;p.killTweensOf=p.killDelayedCallsTo=e.killTweensOf;p.getTweensOf=e.getTweensOf;p.ticker=e.ticker;m.invalidate=function(){this._yoyo=
+!0==this.vars.yoyo;this._repeat=this.vars.repeat||0;this._repeatDelay=this.vars.repeatDelay||0;this._uncache(!0);return e.prototype.invalidate.call(this)};m.updateTo=function(h,d){var b=this.ratio,k;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(k in h)this.vars[k]=h[k];if(this._initted)if(d)this._initted=!1;else if(this._notifyPluginsOfEnabled&&
+this._firstPT&&e._onPluginEvent("_onDisable",this),0.998<this._time/this._duration)b=this._time,this.render(0,!0,!1),this._initted=!1,this.render(b,!0,!1);else if(0<this._time){this._initted=!1;this._init();b=1/(1-b);k=this._firstPT;for(var B;k;)B=k.s+k.c,k.c*=b,k.s=B-k.c,k=k._next}return this};m.render=function(b,d,f){var k=!this._dirty?this._totalDuration:this.totalDuration(),B=this._time,t=this._totalTime,i=this._cycle,x,A;if(b>=k){if(this._totalTime=k,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||(x=!0,A="onComplete"),0===this._duration){if(0===b||0>this._rawPrevTime)this._rawPrevTime!==b&&(f=!0);this._rawPrevTime=b}}else if(0>=b){this._totalTime=this._time=this._cycle=0;this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0;if(0!==t||0===this._duration&&0<this._rawPrevTime)A="onReverseComplete",x=this._reversed;
0>b?(this._active=!1,0===this._duration&&(0<=this._rawPrevTime&&(f=!0),this._rawPrevTime=b)):this._initted||(f=!0)}else if(this._totalTime=this._time=b,0!==this._repeat&&(b=this._duration+this._repeatDelay,this._cycle=this._totalTime/b>>0,0!==this._cycle&&this._cycle===this._totalTime/b&&this._cycle--,this._time=this._totalTime-this._cycle*b,this._yoyo&&0!==(this._cycle&1)&&(this._time=this._duration-this._time),this._time>this._duration?this._time=this._duration:0>this._time&&(this._time=0)),this._easeType){var b=
-this._time/this._duration,k=this._easeType,B=this._easePower;if(1===k||3===k&&0.5<=b)b=1-b;3===k&&(b*=2);1===B?b*=b:2===B?b*=b*b:3===B?b*=b*b*b:4===B&&(b*=b*b*b*b);this.ratio=1===k?1-b:2===k?b:0.5>this._time/this._duration?b/2:1-b/2}else this.ratio=this._ease.getRatio(this._time/this._duration);if(A!==this._time||f){this._initted||(this._init(),!x&&this._time&&(this.ratio=this._ease.getRatio(this._time/this._duration)));!this._active&&!this._paused&&(this._active=!0);if(0==t&&this.vars.onStart&&(0!==
-this._totalTime||0===this._duration))d||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||c);for(f=this._firstPT;f;){if(f.f)f.t[f.p](f.c*this.ratio+f.s);else f.t[f.p]=f.c*this.ratio+f.s;f=f._next}this._onUpdate&&(d||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||c));this._cycle!=e&&(d||this._gc||this.vars.onRepeat&&this.vars.onRepeat.apply(this.vars.onRepeatScope||this,this.vars.onRepeatParams||c));m&&!this._gc&&(x&&(this._timeline.autoRemoveChildren&&
-this._enabled(!1,!1),this._active=!1),d||this.vars[m]&&this.vars[m].apply(this.vars[m+"Scope"]||this,this.vars[m+"Params"]||c))}};q.to=function(b,d,f){return new q(b,d,f)};q.from=function(b,d,f){f.runBackwards=!0;!1!=f.immediateRender&&(f.immediateRender=!0);return new q(b,d,f)};q.fromTo=function(b,d,f,k){k.startAt=f;f.immediateRender&&(k.immediateRender=!0);return new q(b,d,k)};q.staggerTo=q.allTo=function(b,d,f,k,A,c,t){var k=k||0,x=[],m=b.length,e=f.delay||0,p,i,s;for(i=0;i<m;i++){p={};for(s in f)p[s]=
-f[s];p.delay=e;i===m-1&&A&&(p.onComplete=function(){f.onComplete&&f.onComplete.apply(f.onCompleteScope,f.onCompleteParams);A.apply(t,c)});x[i]=new q(b[i],d,p);e+=k}return x};q.staggerFrom=q.allFrom=function(b,d,f,k,A,c,t){f.runBackwards=!0;!1!=f.immediateRender&&(f.immediateRender=!0);return q.staggerTo(b,d,f,k,A,c,t)};q.staggerFromTo=q.allFromTo=function(b,d,f,k,A,c,t,x){k.startAt=f;f.immediateRender&&(k.immediateRender=!0);return q.staggerTo(b,d,k,A,c,t,x)};q.delayedCall=function(b,d,f,k,A){return new q(d,
-0,{delay:b,onComplete:d,onCompleteParams:f,onCompleteScope:k,onReverseComplete:d,onReverseCompleteParams:f,onReverseCompleteScope:k,immediateRender:!1,useFrames:A,overwrite:0})};q.set=function(b,d){return new q(b,0,d)};q.isTweening=function(b){for(var b=i.getTweensOf(b),d=b.length,f;-1<--d;)if((f=b[d])._active||f._startTime===f.timeline._time&&f.timeline._active)return!0;return!1};var t=function(b,d){for(var f=[],k=0,A=b._first;A;)A instanceof i?f[k++]=A:(d&&(f[k++]=A),f=f.concat(t(A,d)),k=f.length),
-A=A._next;return f},e=q.getAllTweens=function(b){return t(y._rootTimeline,b).concat(t(y._rootFramesTimeline,b))};q.killAll=function(b,d,f,k){null==d&&(d=!0);null==f&&(f=!0);var A=e(!1!=k),c=A.length,k=d&&f&&k,t,x,m;for(m=0;m<c;m++)if(x=A[m],k||x instanceof w||(t=x.target===x.vars.onComplete)&&f||d&&!t)b?x.totalTime(x.totalDuration()):x._enabled(!1,!1)};q.killChildTweensOf=function(b,d){if(null!=b)if(b.jquery)b.each(function(b,f){q.killChildTweensOf(f,d)});else{var f=i._tweenLookup,k=[],A,c;for(c in f)for(A=
-f[c].target.parentNode;A;)A===b&&(k=k.concat(f[c].tweens)),A=A.parentNode;A=k.length;for(f=0;f<A;f++)d&&k[f].totalTime(k[f].totalDuration()),k[f]._enabled(!1,!1)}};q.pauseAll=function(h,d,f){b(!0,h,d,f)};q.resumeAll=function(h,d,f){b(!1,h,d,f)};var b=function(b,d,f,k){void 0==d&&(d=!0);void 0==f&&(f=!0);for(var A=e(k),k=d&&f&&k,c=A.length,t,x;-1<--c;)x=A[c],(k||x instanceof w||(t=x.target===x.vars.onComplete)&&f||d&&!t)&&x.paused(b)};s.progress=function(b){return!arguments.length?this._time/this.duration():
-this.totalTime(this.duration()*b+this._cycle*this._duration,!1)};s.totalProgress=function(b){return!arguments.length?this._totalTime/this.totalDuration():this.totalTime(this.totalDuration()*b,!1)};s.time=function(b,d){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,
-d)};s.totalDuration=function(b){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((b-this._repeat*this._repeatDelay)/(this._repeat+1))};s.repeat=function(b){if(!arguments.length)return this._repeat;this._repeat=b;return this._uncache(!0)};s.repeatDelay=function(b){if(!arguments.length)return this._repeatDelay;this._repeatDelay=
-b;return this._uncache(!0)};s.yoyo=function(b){if(!arguments.length)return this._yoyo;this._yoyo=b;return this};return q},!0);_gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(y,w,i){var q=function(b){w.call(this,b);this._labels={};this.autoRemoveChildren=!0==this.vars.autoRemoveChildren;this.smoothChildTiming=!0==this.vars.smoothChildTiming;this._sortChildren=!0;this._onUpdate=this.vars.onUpdate;for(var b=s.length,h,d;-1<--b;)if(d=this.vars[s[b]])for(h=d.length;-1<
---h;)"{self}"===d[h]&&(d=this.vars[s[b]]=d.concat(),d[h]=this);this.vars.tweens instanceof Array&&this.insertMultiple(this.vars.tweens,0,this.vars.align||"normal",this.vars.stagger||0)},s=["onStartParams","onUpdateParams","onCompleteParams","onReverseCompleteParams","onRepeatParams"],c=[],t=function(b){var h={},d;for(d in b)h[d]=b[d];return h},e=q.prototype=new w;e.constructor=q;e.kill()._gc=!1;e.to=function(b,h,d,f,k){return this.insert(new i(b,h,d),this._parseTimeOrLabel(k)+(f||0))};e.from=function(b,
-h,d,f,k){return this.insert(i.from(b,h,d),this._parseTimeOrLabel(k)+(f||0))};e.fromTo=function(b,h,d,f,k,A){return this.insert(i.fromTo(b,h,d,f),this._parseTimeOrLabel(A)+(k||0))};e.staggerTo=function(b,h,d,f,k,A,c,e,x){c=new q({onComplete:c,onCompleteParams:e,onCompleteScope:x});f=f||0;for(e=0;e<b.length;e++)null!=d.startAt&&(d.startAt=t(d.startAt)),c.insert(new i(b[e],h,t(d)),e*f);return this.insert(c,this._parseTimeOrLabel(A)+(k||0))};e.staggerFrom=function(b,h,d,f,k,A,c,t,x){null==d.immediateRender&&
-(d.immediateRender=!0);d.runBackwards=!0;return this.staggerTo(b,h,d,f,k,A,c,t,x)};e.staggerFromTo=function(b,h,d,f,k,c,t,e,x,m){f.startAt=d;d.immediateRender&&(f.immediateRender=!0);return this.staggerTo(b,h,f,k,c,t,e,x,m)};e.call=function(b,h,d,f,k){return this.insert(i.delayedCall(0,b,h,d),this._parseTimeOrLabel(k)+(f||0))};e.set=function(b,h,d,f){h.immediateRender=!1;return this.insert(new i(b,0,h),this._parseTimeOrLabel(f)+(d||0))};q.exportRoot=function(b,h){b=b||{};null==b.smoothChildTiming&&
-(b.smoothChildTiming=!0);var d=new q(b),f=d._timeline;null==h&&(h=!0);f._remove(d,!0);d._startTime=0;d._rawPrevTime=d._time=d._totalTime=f._time;for(var k=f._first,c;k;)c=k._next,(!h||!(k instanceof i&&k.target==k.vars.onComplete))&&d.insert(k,k._startTime-k._delay),k=c;f.insert(d,0);return d};e.insert=function(b,h){if(!(b instanceof y)){if(b instanceof Array)return this.insertMultiple(b,h);if("string"===typeof b)return this.addLabel(b,this._parseTimeOrLabel(h||0,!0));if("function"===typeof b)b=i.delayedCall(0,
-b);else throw"ERROR: Cannot insert() "+b+" into the TimelineLite/Max because it is neither a tween, timeline, function, nor a String.";}w.prototype.insert.call(this,b,this._parseTimeOrLabel(h||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};e.remove=function(b){if(b instanceof y)return this._remove(b,!1);if(b instanceof
-Array){for(var h=b.length;-1<--h;)this.remove(b[h]);return this}return"string"===typeof b?this.removeLabel(b):this.kill(null,b)};e.append=function(b,h){return this.insert(b,this.duration()+(h||0))};e.insertMultiple=function(b,h,d,f){for(var d=d||"normal",f=f||0,k,c=this._parseTimeOrLabel(h||0,!0),t=b.length,h=0;h<t;h++){if((k=b[h])instanceof Array)k=new q({tweens:k});this.insert(k,c);"string"===typeof k||"function"===typeof k||("sequence"===d?c=k._startTime+k.totalDuration()/k._timeScale:"start"===
-d&&(k._startTime-=k.delay()));c+=f}return this._uncache(!0)};e.appendMultiple=function(b,c,d,f){return this.insertMultiple(b,this.duration()+(c||0),d,f)};e.addLabel=function(b,c){this._labels[b]=c;return this};e.removeLabel=function(b){delete this._labels[b];return this};e.getLabelTime=function(b){return null!=this._labels[b]?this._labels[b]:-1};e._parseTimeOrLabel=function(b,c){return null==b?this.duration():"string"===typeof b&&isNaN(b)?null==this._labels[b]?c?this._labels[b]=this.duration():0:
-this._labels[b]:Number(b)};e.seek=function(b,c){return this.totalTime(this._parseTimeOrLabel(b,!1),!1!=c)};e.stop=function(){return this.paused(!0)};e.gotoAndPlay=function(b,c){return w.prototype.play.call(this,b,c)};e.gotoAndStop=function(b,c){return this.pause(b,c)};e.render=function(b,h,d){this._gc&&this._enabled(!0,!1);this._active=!this._paused;var f=!this._dirty?this._totalDuration:this.totalDuration(),k=this._time,t=this._startTime,e=this._timeScale,i=this._paused,x,m,B;if(b>=f){this._totalTime=
-this._time=f;if(!this._reversed&&!this._hasPausedChild()&&(x=!0,B="onComplete",0===this._duration&&(0===b||0>this._rawPrevTime)))this._rawPrevTime!==b&&(d=!0);this._rawPrevTime=b;b=f+1E-6}else if(0>=b){this._totalTime=this._time=0;if(0!==k||0===this._duration&&0<this._rawPrevTime)B="onReverseComplete",x=this._reversed;0>b?(this._active=!1,0===this._duration&&0<=this._rawPrevTime&&(d=!0)):this._initted||(d=!0);this._rawPrevTime=b;b=-1E-6}else this._totalTime=this._time=this._rawPrevTime=b;if(this._time!==
-k||d){this._initted||(this._initted=!0);0===k&&this.vars.onStart&&0!==this._time&&(h||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||c));if(this._time>k)for(d=this._first;d;){m=d._next;if(this._paused&&!i)break;else if(d._active||d._startTime<=this._time&&!d._paused&&!d._gc)d._reversed?d.render((!d._dirty?d._totalDuration:d.totalDuration())-(b-d._startTime)*d._timeScale,h,!1):d.render((b-d._startTime)*d._timeScale,h,!1);d=m}else for(d=this._last;d;){m=d._prev;if(this._paused&&
-!i)break;else if(d._active||d._startTime<=k&&!d._paused&&!d._gc)d._reversed?d.render((!d._dirty?d._totalDuration:d.totalDuration())-(b-d._startTime)*d._timeScale,h,!1):d.render((b-d._startTime)*d._timeScale,h,!1);d=m}this._onUpdate&&(h||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||c));if(B&&!this._gc&&(t===this._startTime||e!=this._timeScale))if(0===this._time||f>=this.totalDuration())x&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),h||this.vars[B]&&
-this.vars[B].apply(this.vars[B+"Scope"]||this,this.vars[B+"Params"]||c)}};e._hasPausedChild=function(){for(var b=this._first;b;){if(b._paused||b instanceof q&&b._hasPausedChild())return!0;b=b._next}return!1};e.getChildren=function(b,c,d,f){for(var f=f||-9999999999,k=[],t=this._first,e=0;t;)t._startTime<f||(t instanceof i?!1!=c&&(k[e++]=t):(!1!=d&&(k[e++]=t),!1!=b&&(k=k.concat(t.getChildren(!0,c,d)),e=k.length))),t=t._next;return k};e.getTweensOf=function(b,c){for(var d=i.getTweensOf(b),f=d.length,
-k=[],t=0;-1<--f;)if(d[f].timeline===this||c&&this._contains(d[f]))k[t++]=d[f];return k};e._contains=function(b){for(b=b.timeline;b;){if(b===this)return!0;b=b.timeline}return!1};e.shiftChildren=function(b,c,d){for(var d=d||0,f=this._first;f;)f._startTime>=d&&(f._startTime+=b),f=f._next;if(c)for(var k in this._labels)this._labels[k]>=d&&(this._labels[k]+=b);return this._uncache(!0)};e._kill=function(b,c){if(null==b&&null==c)return this._enabled(!1,!1);for(var d=null==c?this.getChildren(!0,!0,!1):this.getTweensOf(c),
-f=d.length,k=!1;-1<--f;)d[f]._kill(b,c)&&(k=!0);return k};e.clear=function(b){var c=this.getChildren(!1,!0,!0),d=c.length;for(this._time=this._totalTime=0;-1<--d;)c[d]._enabled(!1,!1);!1!=b&&(this._labels={});return this._uncache(!0)};e.invalidate=function(){for(var b=this._first;b;)b.invalidate(),b=b._next;return this};e._enabled=function(b,c){if(b==this._gc)for(var d=this._first;d;)d._enabled(b,!0),d=d._next;return w.prototype._enabled.call(this,b,c)};e.progress=function(b){return!arguments.length?
-this._time/this.duration():this.totalTime(this.duration()*b,!1)};e.duration=function(b){if(!arguments.length)return this._dirty&&this.totalDuration(),this._duration;0!==this.duration()&&0!==b&&this.timeScale(this._duration/b);return this};e.totalDuration=function(b){if(!arguments.length){if(this._dirty){for(var c=0,d=this._first,f=-999999999999,k;d;)k=d._next,d._startTime<f&&this._sortChildren?this.insert(d,d._startTime-d._delay):f=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=k;this._duration=this._totalDuration=c;this._dirty=!1}return this._totalDuration}0!==this.totalDuration()&&0!==b&&this.timeScale(this._totalDuration/b);return this};e.usesFrames=function(){for(var b=this._timeline;b._timeline;)b=b._timeline;return b===y._rootFramesTimeline};e.rawTime=function(){return this._paused||0!==this._totalTime&&this._totalTime!==this._totalDuration?this._totalTime:(this._timeline.rawTime()-
-this._startTime)*this._timeScale};return q},!0);_gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(y,w,i){var q=function(c){y.call(this,c);this._repeat=this.vars.repeat||0;this._repeatDelay=this.vars.repeatDelay||0;this._cycle=0;this._yoyo=!0==this.vars.yoyo;this._dirty=!0},s=[],c=new i(null,null,1,0),i=q.prototype=new y;i.constructor=q;i.kill()._gc=!1;q.version=12;i.invalidate=function(){this._yoyo=!0==this.vars.yoyo;this._repeat=this.vars.repeat||0;this._repeatDelay=this.vars.repeatDelay||
-0;this._uncache(!0);return y.prototype.invalidate.call(this)};i.addCallback=function(c,e,b,h){return this.insert(w.delayedCall(0,c,b,h),e)};i.removeCallback=function(c,e){if(null==e)this._kill(null,c);else for(var b=this.getTweensOf(c,!1),h=b.length,d=this._parseTimeOrLabel(e,!1);-1<--h;)b[h]._startTime===d&&b[h]._enabled(!1,!1);return this};i.tweenTo=function(t,e){var e=e||{},b={ease:c,overwrite:2,useFrames:this.usesFrames(),immediateRender:!1},h,d;for(h in e)b[h]=e[h];b.time=this._parseTimeOrLabel(t,
-!1);d=new w(this,Math.abs(Number(b.time)-this._time)/this._timeScale||0.001,b);b.onStart=function(){d.target.paused(!0);d.vars.time!=d.target.time()&&d.duration(Math.abs(d.vars.time-d.target.time())/d.target._timeScale);e.onStart&&e.onStart.apply(e.onStartScope||d,e.onStartParams||s)};return d};i.tweenFromTo=function(c,e,b){b=b||{};b.startAt={time:this._parseTimeOrLabel(c,!1)};c=this.tweenTo(e,b);return c.duration(Math.abs(c.vars.time-c.vars.startAt.time)/this._timeScale||0.001)};i.render=function(c,
-e,b){this._gc&&this._enabled(!0,!1);this._active=!this._paused;var h=!this._dirty?this._totalDuration:this.totalDuration(),d=this._time,f=this._totalTime,k=this._startTime,A=this._timeScale,i=this._rawPrevTime,q=this._paused,x=this._cycle,m,B;if(c>=h){this._locked||(this._totalTime=h,this._cycle=this._repeat);if(!this._reversed&&!this._hasPausedChild()&&(m=!0,B="onComplete",0===this._duration&&(0===c||0>this._rawPrevTime)))this._rawPrevTime!==c&&(b=!0);this._rawPrevTime=c;this._yoyo&&0!==(this._cycle&
-1)?(this._time=0,c=-1E-6):(this._time=this._duration,c=this._duration+1E-6)}else if(0>=c){this._locked||(this._totalTime=this._cycle=0);this._time=0;if(0!==d||0===this._duration&&0<this._rawPrevTime)B="onReverseComplete",m=this._reversed;0>c?(this._active=!1,0===this._duration&&0<=this._rawPrevTime&&(b=!0)):this._initted||(b=!0);this._rawPrevTime=c;c=-1E-6}else this._time=this._rawPrevTime=c,this._locked||(this._totalTime=c,0!==this._repeat&&(c=this._duration+this._repeatDelay,this._cycle=this._totalTime/
-c>>0,0!==this._cycle&&this._cycle===this._totalTime/c&&this._cycle--,this._time=this._totalTime-this._cycle*c,this._yoyo&&0!=(this._cycle&1)&&(this._time=this._duration-this._time),this._time>this._duration?(this._time=this._duration,c=this._duration+1E-6):0>this._time?(this._time=0,c=-1E-6):c=this._time));if(this._cycle!==x&&!this._locked){var p=this._yoyo&&0!==(x&1),P=p===(this._yoyo&&0!==(this._cycle&1)),w=this._totalTime,y=this._cycle,E=this._rawPrevTime,C=this._time;this._totalTime=x*this._duration;
-this._cycle<x?p=!p:this._totalTime+=this._duration;this._time=d;this._rawPrevTime=i;this._cycle=x;this._locked=!0;d=p?0:this._duration;this.render(d,e,!1);e||this._gc||this.vars.onRepeat&&this.vars.onRepeat.apply(this.vars.onRepeatScope||this,this.vars.onRepeatParams||s);P&&(d=p?this._duration+1E-6:-1E-6,this.render(d,!0,!1));this._time=C;this._totalTime=w;this._cycle=y;this._rawPrevTime=E;this._locked=!1}if(this._time!==d||b){this._initted||(this._initted=!0);0===f&&this.vars.onStart&&0!==this._totalTime&&
-(e||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||s));if(this._time>d)for(b=this._first;b;){f=b._next;if(this._paused&&!q)break;else if(b._active||b._startTime<=this._time&&!b._paused&&!b._gc)b._reversed?b.render((!b._dirty?b._totalDuration:b.totalDuration())-(c-b._startTime)*b._timeScale,e,!1):b.render((c-b._startTime)*b._timeScale,e,!1);b=f}else for(b=this._last;b;){f=b._prev;if(this._paused&&!q)break;else if(b._active||b._startTime<=d&&!b._paused&&!b._gc)b._reversed?
-b.render((!b._dirty?b._totalDuration:b.totalDuration())-(c-b._startTime)*b._timeScale,e,!1):b.render((c-b._startTime)*b._timeScale,e,!1);b=f}this._onUpdate&&(e||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||s));if(B&&!this._locked&&!this._gc&&(k===this._startTime||A!=this._timeScale))if(0===this._time||h>=this.totalDuration())m&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),e||this.vars[B]&&this.vars[B].apply(this.vars[B+"Scope"]||this,this.vars[B+
-"Params"]||s)}};i.getActive=function(c,e,b){null==c&&(c=!0);null==e&&(e=!0);null==b&&(b=!1);var h=[],c=this.getChildren(c,e,b),e=0,b=c.length,d,f;for(d=0;d<b;d++)if(f=c[d],!f._paused&&f._timeline._time>=f._startTime&&f._timeline._time<f._startTime+f._totalDuration/f._timeScale){var k;a:{for(k=f._timeline;k;){if(k._paused){k=!0;break a}k=k._timeline}k=!1}k||(h[e++]=f)}return h};i.getLabelAfter=function(c){!c&&0!==c&&(c=this._time);var e=this.getLabelsArray(),b=e.length,h;for(h=0;h<b;h++)if(e[h].time>
-c)return e[h].name;return null};i.getLabelBefore=function(c){null==c&&(c=this._time);for(var e=this.getLabelsArray(),b=e.length;-1<--b;)if(e[b].time<c)return e[b].name;return null};i.getLabelsArray=function(){var c=[],e=0,b;for(b in this._labels)c[e++]={time:this._labels[b],name:b};c.sort(function(b,d){return b.time-d.time});return c};i.progress=function(c){return!arguments.length?this._time/this.duration():this.totalTime(this.duration()*c+this._cycle*this._duration,!1)};i.totalProgress=function(c){return!arguments.length?
-this._totalTime/this.totalDuration():this.totalTime(this.totalDuration()*c,!1)};i.totalDuration=function(c){return!arguments.length?(this._dirty&&(y.prototype.totalDuration.call(this),this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration):-1==this._repeat?this:this.duration((c-this._repeat*this._repeatDelay)/(this._repeat+1))};i.time=function(c,e){if(!arguments.length)return this._time;this._dirty&&this.totalDuration();
-c>this._duration&&(c=this._duration);this._yoyo&&0!==(this._cycle&1)?c=this._duration-c+this._cycle*(this._duration+this._repeatDelay):0!=this._repeat&&(c+=this._cycle*(this._duration+this._repeatDelay));return this.totalTime(c,e)};i.repeat=function(c){if(!arguments.length)return this._repeat;this._repeat=c;return this._uncache(!0)};i.repeatDelay=function(c){if(!arguments.length)return this._repeatDelay;this._repeatDelay=c;return this._uncache(!0)};i.yoyo=function(c){if(!arguments.length)return this._yoyo;
-this._yoyo=c;return this};i.currentLabel=function(c){return!arguments.length?this.getLabelBefore(this._time+1E-8):this.seek(c,!0)};return q},!0);_gsDefine("plugins.BezierPlugin",["plugins.TweenPlugin"],function(y){var w=function(){y.call(this,"bezier",-1);this._overwriteProps.pop();this._func={};this._round={}},i=w.prototype=new y("bezier",1),q=180/Math.PI,s=[],c=[],t=[],e={},b=function(b,c,d,e){this.a=b;this.b=c;this.c=d;this.d=e;this.da=e-b;this.ca=d-b;this.ba=c-b},h=w.bezierThrough=function(f,
-k,A,h,i,x){var m={},B=[],p,q,i="string"===typeof i?","+i+",":",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,";null==k&&(k=1);for(q in f[0])B.push(q);s.length=c.length=t.length=0;for(p=B.length;-1<--p;){q=B[p];e[q]=-1!==i.indexOf(","+q+",");var w=m,y=q,E;E=f;var C=q,n=e[q],D=x,H=[],G=void 0,z=void 0,F=void 0,g=void 0,u=void 0,G=void 0;if(D){E=[D].concat(E);for(z=E.length;-1<--z;)if("string"===
-typeof(G=E[z][C]))"="===G.charAt(1)&&(E[z][C]=D[C]+Number(G.charAt(0)+G.substr(2)))}G=E.length-2;if(0>G)H[0]=new b(E[0][C],0,0,E[-1>G?0:1][C]);else{for(z=0;z<G;z++)F=E[z][C],g=E[z+1][C],H[z]=new b(F,0,0,g),n&&(u=E[z+2][C],s[z]=(s[z]||0)+(g-F)*(g-F),c[z]=(c[z]||0)+(u-g)*(u-g));H[z]=new b(E[z][C],0,0,E[z+1][C])}E=H;w[y]=E}for(p=s.length;-1<--p;)s[p]=Math.sqrt(s[p]),c[p]=Math.sqrt(c[p]);if(!h){for(p=B.length;-1<--p;)if(e[q]){a=m[B[p]];l=a.length-1;for(j=0;j<l;j++)r=a[j+1].da/c[j]+a[j].da/s[j],t[j]=(t[j]||
-0)+r*r}for(p=t.length;-1<--p;)t[p]=Math.sqrt(t[p])}for(p=B.length;-1<--p;){q=B[p];f=m[q];i=k;x=A;w=h;q=e[q];y=f.length-1;E=0;for(var C=f[0].a,v=u=g=D=G=g=F=G=z=F=H=D=n=void 0,n=0;n<y;n++)z=f[E],D=z.a,H=z.d,F=f[E+1].d,q?(g=s[n],u=c[n],v=0.25*(u+g)*i/(w?0.5:t[n]||0.5),G=H-(H-D)*(w?0.5*i:v/g),F=H+(F-H)*(w?0.5*i:v/u),g=H-(G+(F-G)*(3*g/(g+u)+0.5)/4)):(G=H-0.5*(H-D)*i,F=H+0.5*(F-H)*i,g=H-(G+F)/2),G+=g,F+=g,z.c=G,z.b=0!=n?C:C=z.a+0.6*(z.c-z.a),z.da=H-D,z.ca=G-D,z.ba=C-D,x?(D=d(D,C,G,H),f.splice(E,1,D[0],
-D[1],D[2],D[3]),E+=4):E++,C=F;z=f[E];z.b=C;z.c=C+0.4*(z.d-C);z.da=z.d-z.a;z.ca=z.c-z.a;z.ba=C-z.a;x&&(D=d(z.a,C,z.c,z.d),f.splice(E,1,D[0],D[1],D[2],D[3]))}return m},d=w.cubicToQuadratic=function(b,c,d,e){var i={a:b},x={},h={},q={c:e},p=(b+c)/2,s=(c+d)/2,d=(d+e)/2,c=(p+s)/2,s=(s+d)/2,t=(s-c)/8;i.b=p+(b-p)/4;x.b=c+t;i.c=x.a=(i.b+x.b)/2;x.c=h.a=(c+s)/2;h.b=s-t;q.b=d+(e-d)/4;h.c=q.a=(h.b+q.b)/2;return[i,x,h,q]};w.quadraticToCubic=function(c,d,e){return new b(c,(2*d+c)/3,(2*d+e)/3,e)};i.constructor=w;
-w.API=2;i._onInitTween=function(c,d,e){this._target=c;d instanceof Array&&(d={values:d});this._props=[];this._timeRes=null==d.timeResolution?6:parseInt(d.timeResolution);var i=d.values||[],q={},x=i[0],e=d.autoRotate||e.vars.orientToBezier,m,B,p;this._autoRotate=e?e instanceof Array?e:[["x","y","rotation",!0===e?0:Number(e)||0]]:null;for(m in x)this._props.push(m);for(x=this._props.length;-1<--x;)m=this._props[x],this._overwriteProps.push(m),e=this._func[m]="function"===typeof c[m],q[m]=!e?parseFloat(c[m]):
-c[m.indexOf("set")||"function"!==typeof c["get"+m.substr(3)]?m:"get"+m.substr(3)](),p||q[m]!==i[0][m]&&(p=q);if("cubic"!==d.type&&"quadratic"!==d.type&&"soft"!==d.type)q=h(i,isNaN(d.curviness)?1:d.curviness,!1,"thruBasic"===d.type,d.correlate,p);else{e=(e=d.type)||"soft";d={};p="cubic"===e?3:2;var e="soft"===e,x=[],s,t,w,y,C,n,D,H,G;e&&q&&(i=[q].concat(i));if(null==i||i.length<p+1)throw"invalid Bezier data";for(t in i[0])x.push(t);for(n=x.length;-1<--n;){t=x[n];d[t]=C=[];G=0;H=i.length;for(D=0;D<
-H;D++)s=null==q?i[D][t]:"string"===typeof(w=i[D][t])&&"="===w.charAt(1)?q[t]+Number(w.charAt(0)+w.substr(2)):Number(w),e&&1<D&&D<H-1&&(C[G++]=(s+C[G-2])/2),C[G++]=s;H=G-p+1;for(D=G=0;D<H;D+=p)s=C[D],t=C[D+1],w=C[D+2],y=2===p?0:C[D+3],C[G++]=w=3===p?new b(s,t,w,y):new b(s,(2*t+s)/3,(2*t+w)/3,w);C.length=G}q=d}this._beziers=q;this._segCount=this._beziers[m].length;if(this._timeRes){x=this._beziers;m=this._timeRes;m=m>>0||6;q=[];t=[];i=w=0;d=m-1;p=[];e=[];for(B in x){s=x[B];C=q;n=m;D=1/n;H=s.length;
-for(var z=void 0,F=void 0,g=y=G=F=void 0,u=z=void 0,v=void 0,v=g=void 0;-1<--H;){g=s[H];F=g.a;G=g.d-F;y=g.c-F;g=g.b-F;F=0;for(u=1;u<=n;u++)z=D*u,v=1-z,z=F-(F=(z*z*G+3*v*(z*y+v*g))*z),v=H*n+u-1,C[v]=(C[v]||0)+z*z}}x=q.length;for(B=0;B<x;B++)w+=Math.sqrt(q[B]),s=B%m,e[s]=w,s===d&&(i+=w,s=B/m>>0,p[s]=e,t[s]=i,w=0,e=[]);this._length=i;this._lengths=t;this._segments=p;this._l1=this._li=this._s1=this._si=0;this._l2=this._lengths[0];this._curSeg=this._segments[0];this._s2=this._curSeg[0];this._prec=1/this._curSeg.length}if(e=
-this._autoRotate){e[0]instanceof Array||(this._autoRotate=e=[e]);for(x=e.length;-1<--x;)for(B=0;3>B;B++)m=e[x][B],this._func[m]="function"===typeof c[m]?c[m.indexOf("set")||"function"!==typeof c["get"+m.substr(3)]?m:"get"+m.substr(3)]:!1}return!0};i.setRatio=function(b){var d=this._segCount,c=this._func,e=this._target,i,h,m,s,p;if(this._timeRes){i=this._lengths;s=this._curSeg;b*=this._length;h=this._li;if(b>this._l2&&h<d-1){for(d-=1;h<d&&(this._l2=i[++h])<=b;);this._l1=i[h-1];this._li=h;this._curSeg=
-s=this._segments[h];this._s2=s[this._s1=this._si=0]}else if(b<this._l1&&0<h){for(;0<h&&(this._l1=i[--h])>=b;);0===h&&b<this._l1?this._l1=0:h++;this._l2=i[h];this._li=h;this._curSeg=s=this._segments[h];this._s1=s[(this._si=s.length-1)-1]||0;this._s2=s[this._si]}i=h;b-=this._l1;h=this._si;if(b>this._s2&&h<s.length-1){for(d=s.length-1;h<d&&(this._s2=s[++h])<=b;);this._s1=s[h-1];this._si=h}else if(b<this._s1&&0<h){for(;0<h&&(this._s1=s[--h])>=b;);0===h&&b<this._s1?this._s1=0:h++;this._s2=s[h];this._si=
-h}s=(h+(b-this._s1)/(this._s2-this._s1))*this._prec}else i=0>b?0:1<=b?d-1:d*b>>0,s=(b-i*(1/d))*d;d=1-s;for(h=this._props.length;-1<--h;)if(b=this._props[h],m=this._beziers[b][i],p=(s*s*m.da+3*d*(s*m.ca+d*m.ba))*s+m.a,this._round[b]&&(p=p+(0<p?0.5:-0.5)>>0),c[b])e[b](p);else e[b]=p;if(this._autoRotate){var d=this._autoRotate,t,w,y,E,C;for(h=d.length;-1<--h;)b=d[h][2],E=d[h][3]||0,C=!0==d[h][4]?1:q,m=this._beziers[d[h][0]][i],p=this._beziers[d[h][1]][i],t=m.a+(m.b-m.a)*s,w=m.b+(m.c-m.b)*s,t+=(w-t)*
-s,w+=(m.c+(m.d-m.c)*s-w)*s,m=p.a+(p.b-p.a)*s,y=p.b+(p.c-p.b)*s,m+=(y-m)*s,y+=(p.c+(p.d-p.c)*s-y)*s,p=Math.atan2(y-m,w-t)*C+E,c[b]?c[b].call(e,p):e[b]=p}};i._roundProps=function(b,d){for(var c=this._overwriteProps,e=c.length;-1<--e;)if(b[c[e]]||b.bezier||b.bezierThrough)this._round[c[e]]=d};i._kill=function(b){var d=this._props,c,e;for(c in _beziers)if(c in b){delete this._beziers[c];delete this._func[c];for(e=d.length;-1<--e;)d[e]===c&&d.splice(e,1)}return y.prototype._kill.call(this,b)};y.activate([w]);
-return w},!0);_gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(y){var w=function(){y.call(this,"css");this._overwriteProps.pop()},i=w.prototype=new y("css");i.constructor=w;w.API=2;w.suffixMap={top:"px",right:"px",bottom:"px",left:"px",width:"px",height:"px",fontSize:"px",padding:"px",margin:"px"};var q=/[^\d\-\.]/g,s=/(\d|\-|\+|=|#|\.)*/g,c=/(\d|\.)+/g,t=/opacity *= *([^)]*)/,e=/opacity:([^;]*)/,b=/([A-Z])/g,h=/-([a-z])/gi,d=function(b,g){return g.toUpperCase()},f=/(Left|Right|Width)/i,
-k=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,A=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,L=Math.PI/180,O=180/Math.PI,x={},m=document,B=m.createElement("div"),p=navigator.userAgent,P,M,N,E,C,n=p.indexOf("Android"),D=m.createElement("div");N=-1!==p.indexOf("Safari")&&-1===p.indexOf("Chrome")&&(-1===n||3<Number(p.substr(n+8,1)));/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(p);E=parseFloat(RegExp.$1);D.innerHTML="<a style='top:1px;opacity:.55;'>a</a>";C=(p=D.getElementsByTagName("a")[0])?/^0.55/.test(p.style.opacity):
-!1;var H=function(b){if(!b||""===b)return R.black;if(R[b])return R[b];if("number"===typeof b)return[b>>16,b>>8&255,b&255];if("#"===b.charAt(0)){if(4===b.length)var g=b.charAt(1),d=b.charAt(2),b=b.charAt(3),b="#"+g+g+d+d+b+b;b=parseInt(b.substr(1),16);return[b>>16,b>>8&255,b&255]}return b.match(c)||R.transparent},G=function(b){return t.test("string"===typeof b?b:(b.currentStyle?b.currentStyle.filter:b.style.filter)||"")?parseFloat(RegExp.$1)/100:1},z=m.defaultView?m.defaultView.getComputedStyle:function(){},
-F=function(g,d,c,v){return!C&&"opacity"===d?G(g):!v&&g.style[d]?g.style[d]:(c=c||z(g,null))?(g=c.getPropertyValue(d.replace(b,"-$1").toLowerCase()))||c.length?g:c[d]:g.currentStyle?(c=g.currentStyle,v=c[d],!v&&"backgroundPosition"===d?c[d+"X"]+" "+c[d+"Y"]:v):null},g=function(b,g){var c={},v;if(g=g||z(b,null))if(v=g.length)for(;-1<--v;)c[g[v].replace(h,d)]=g.getPropertyValue(g[v]);else for(v in g)c[v]=g[v];else if(g=b.currentStyle||b.style)for(v in g)c[v.replace(h,d)]=g[v];C||(c.opacity=G(b));v=S(b,
-g,!1);c.rotation=v.rotation*O;c.skewX=v.skewX*O;c.scaleX=v.scaleX;c.scaleY=v.scaleY;c.x=v.x;c.y=v.y;null!=c.filters&&delete c.filters;return c},u=function(b,g,d,c){var v={},u,n;for(n in g)if("cssText"!==n&&"length"!==n&&isNaN(n)&&b[n]!=(u=g[n]))if(u!==J&&("number"===typeof u||"string"===typeof u))v[n]=(""===u||"auto"===u)&&"string"===typeof b[n]&&""!==b[n].replace(q,"")?0:u,c&&c.props.push(n);if(d)for(n in d)"className"!==n&&(v[n]=d[n]);return v},v={scaleX:1,scaleY:1,x:1,y:1,rotation:1,shortRotation:1,
-skewX:1,skewY:1,scale:1},I="",K="",J=function(b,g){var g=g||B,d=g.style,c,v;if(void 0!==d[b])return b;b=b.substr(0,1).toUpperCase()+b.substr(1);c=["O","Moz","ms","Ms","Webkit"];for(v=5;-1<--v&&void 0===d[c[v]+b];);return 0<=v?(K=3===v?"ms":c[v],I="-"+K.toLowerCase()+"-",K+b):null}("transform"),W=I+"transform",S=function(b,g,d){var c=b._gsTransform,v;J?v=F(b,W,g,!0):b.currentStyle&&(v=(v=b.currentStyle.filter.match(k))&&4===v.length?v[0].substr(4)+","+Number(v[2].substr(4))+","+Number(v[1].substr(4))+
-","+v[3].substr(4)+","+(c?c.x:0)+","+(c?c.y:0):null);var g=(v||"").replace(/[^\d\-\.e,]/g,"").split(","),u=(v=6<=g.length)?Number(g[0]):1,n=v?Number(g[1]):0,f=v?Number(g[2]):0,e=v?Number(g[3]):1,c=d?c||{skewY:0}:{skewY:0},h=0>c.scaleX;c.x=v?Number(g[4]):0;c.y=v?Number(g[5]):0;c.scaleX=Math.sqrt(u*u+n*n);c.scaleY=Math.sqrt(e*e+f*f);c.rotation=u||n?Math.atan2(n,u):c.rotation||0;c.skewX=f||e?Math.atan2(f,e)+c.rotation:c.skewX||0;Math.abs(c.skewX)>Math.PI/2&&(h?(c.scaleX*=-1,c.skewX+=0>=c.rotation?Math.PI:
--Math.PI,c.rotation+=0>=c.rotation?Math.PI:-Math.PI):(c.scaleY*=-1,c.skewX+=0>=c.skewX?Math.PI:-Math.PI));if(1E-6>c.rotation&&-1E-6<c.rotation&&(u||n))c.rotation=0;if(1E-6>c.skewX&&-1E-6<c.skewX&&(n||f))c.skewX=0;d&&(b._gsTransform=c);return c},X={width:["Left","Right"],height:["Top","Bottom"]},Y=["marginLeft","marginRight","marginTop","marginBottom"],Q=function(b,g,c,d,v){if("px"===d||!d)return c;if("auto"===d||!c)return 0;var u=f.test(g),n=b,e=B.style,h=0>c;h&&(c=-c);e.cssText="border-style:solid; border-width:0; position:absolute; line-height:0;";
-"%"===d||"em"===d||!n.appendChild?(n=b.parentNode||m.body,e[u?"width":"height"]=c+d):e[u?"borderLeftWidth":"borderTopWidth"]=c+d;n.appendChild(B);u=parseFloat(B[u?"offsetWidth":"offsetHeight"]);n.removeChild(B);0===u&&!v&&(u=Q(b,g,c,d,!0));return h?-u:u},V=function(b,g){if(null==b||""===b||"auto"===b||"auto auto"===b)b="0 0";var g=g||{},c=-1!==b.indexOf("left")?"0%":-1!==b.indexOf("right")?"100%":b.split(" ")[0],d=-1!==b.indexOf("top")?"0%":-1!==b.indexOf("bottom")?"100%":b.split(" ")[1];null==d?
-d="0":"center"===d&&(d="50%");"center"===c&&(c="50%");g.oxp=-1!==c.indexOf("%");g.oyp=-1!==d.indexOf("%");g.oxr="="===c.charAt(1);g.oyr="="===d.charAt(1);g.ox=parseFloat(c.replace(q,""));g.oy=parseFloat(d.replace(q,""));return g},T=function(b,g){return null==b?g:"string"===typeof b&&1===b.indexOf("=")?Number(b.split("=").join(""))+g:Number(b)},U=function(b,g){var c=-1===b.indexOf("rad")?L:1,d=1===b.indexOf("="),b=Number(b.replace(q,""))*c;return d?b+g:b},R={aqua:[0,255,255],lime:[0,255,0],silver:[192,
-192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]};i._onInitTween=function(b,c,d){if(!b.nodeType)return!1;this._target=b;this._tween=d;this._classData=this._transform=null;P=c.autoRound;var v=this._style=b.style,n=z(b,""),f,h;if(M&&""===
-v.zIndex&&(h=F(b,"zIndex",n),"auto"===h||""===h))v.zIndex=0;"string"===typeof c?(f=v.cssText,d=g(b,n),v.cssText=f+";"+c,h=u(d,g(b)),!C&&e.test(c)&&(h.opacity=parseFloat(RegExp.$1)),c=h,v.cssText=f):c.className&&(f=b.className,this._classData={b:f,e:"="!==c.className.charAt(1)?c.className:"+"===c.className.charAt(0)?b.className+" "+c.className.substr(2):b.className.split(c.className.substr(2)).join(""),props:[]},d._duration?(d=g(b,n),b.className=this._classData.e,c=u(d,g(b),c,this._classData),b.className=
-f):c={});this._parseVars(c,b,n,c.suffixMap||w.suffixMap);return!0};i._parseVars=function(b,g,c,d){var u=this._style,n,f,e,h,k,i,p;for(n in b)if(f=b[n],"transform"===n||n===J)this._parseTransform(g,f,c,d);else if(v[n]||"transformOrigin"===n)this._parseTransform(g,b,c,d);else{if("alpha"===n||"autoAlpha"===n)n="opacity";else if("margin"===n||"padding"===n){f=(f+"").split(" ");k=f.length;e={};e[n+"Top"]=f[0];e[n+"Right"]=1<k?f[1]:f[0];e[n+"Bottom"]=4===k?f[2]:f[0];e[n+"Left"]=4===k?f[3]:2===k?f[1]:f[0];
-this._parseVars(e,g,c,d);continue}else if("backgroundPosition"===n||"backgroundSize"===n){e=V(f);p=V(h=F(g,n,c));this._firstPT=e={_next:this._firstPT,t:u,p:n,b:h,f:!1,n:"css_"+n,type:3,s:p.ox,c:e.oxr?e.ox:e.ox-p.ox,ys:p.oy,yc:e.oyr?e.oy:e.oy-p.oy,sfx:e.oxp?"%":"px",ysfx:e.oyp?"%":"px",r:!e.oxp&&!1!==b.autoRound};e.e=e.s+e.c+e.sfx+" "+(e.ys+e.yc)+e.ysfx;continue}else if("border"===n){f=(f+"").split(" ");this._parseVars({borderWidth:f[0],borderStyle:f[1]||"none",borderColor:f[2]||"#000000"},g,c,d);
-continue}else if("bezier"===n){this._parseBezier(f,g,c,d);continue}else if("autoRound"===n)continue;h=F(g,n,c);h=null!=h?h+"":"";this._firstPT=e={_next:this._firstPT,t:u,p:n,b:h,f:!1,n:"css_"+n,sfx:"",r:!1,type:0};"opacity"===n&&null!=b.autoAlpha&&("1"===h&&"hidden"===F(g,"visibility",c)&&(h=e.b="0"),this._firstPT=e._prev={_next:e,t:u,p:"visibility",f:!1,n:"css_visibility",r:!1,type:-1,b:0!==Number(h)?"visible":"hidden",i:"visible",e:0===Number(f)?"hidden":"visible"},this._overwriteProps.push("css_visibility"));
-k="string"===typeof f;if("color"===n||"fill"===n||"stroke"===n||-1!==n.indexOf("Color")||k&&!f.indexOf("rgb(")){if(k=H(h),f=H(f),e.e=e.i=(3<f.length?"rgba(":"rgb(")+f.join(",")+")",e.b=(3<k.length?"rgba(":"rgb(")+k.join(",")+")",e.s=Number(k[0]),e.c=Number(f[0])-e.s,e.gs=Number(k[1]),e.gc=Number(f[1])-e.gs,e.bs=Number(k[2]),e.bc=Number(f[2])-e.bs,e.type=1,3<k.length||3<f.length)C?(e.as=4>k.length?1:Number(k[3]),e.ac=(4>f.length?1:Number(f[3]))-e.as,e.type=2):(0==f[3]&&(e.e=e.i="transparent",e.type=
--1),0==k[3]&&(e.b="transparent"))}else{i=h.replace(s,"");if(""===h||"auto"===h)if("width"===n||"height"===n){var I=n;i=g;p=c;h=parseFloat("width"===I?i.offsetWidth:i.offsetHeight);var I=X[I],m=I.length;for(p=p||z(i,null);-1<--m;)h-=parseFloat(F(i,"padding"+I[m],p,!0))||0,h-=parseFloat(F(i,"border"+I[m]+"Width",p,!0))||0;p=h;i="px"}else p="opacity"!==n?0:1,i="";else p=-1===h.indexOf(" ")?parseFloat(h.replace(q,"")):NaN;k?(k="="===f.charAt(1),h=f.replace(s,""),f=-1===f.indexOf(" ")?parseFloat(f.replace(q,
-"")):NaN):(k=!1,h="");""===h&&(h=d[n]||i);e.e=f||0===f?(k?f+p:f)+h:b[n];if(i!==h&&""!==h&&(f||0===f))if(p||0===p)if(p=Q(g,n,p,i),"%"===h?(p/=Q(g,n,100,"%")/100,100<p&&(p=100)):"em"===h?p/=Q(g,n,1,"em"):(f=Q(g,n,f,h),h="px"),k&&(f||0===f))e.e=f+p+h;if((p||0===p)&&(f||0===f)&&(e.c=k?f:f-p))if(e.s=p,e.sfx=h,"opacity"===n)C||(e.type=4,e.p="filter",e.b="alpha(opacity="+100*e.s+")",e.e="alpha(opacity="+100*(e.s+e.c)+")",e.dup=null!=b.autoAlpha,this._style.zoom=1);else{if(!1!==P&&("px"===h||"zIndex"===n))e.r=
-!0}else e.type=-1,e.i="display"===n&&"none"===e.e?e.b:e.e,e.s=e.c=0}this._overwriteProps.push("css_"+n);e._next&&(e._next._prev=e)}};i._parseTransform=function(b,g,c){if(!this._transform){var d=this._transform=S(b,c,!0),n=this._style,e,f,u;if("object"===typeof g){e={scaleX:T(null!=g.scaleX?g.scaleX:g.scale,d.scaleX),scaleY:T(null!=g.scaleY?g.scaleY:g.scale,d.scaleY),x:T(g.x,d.x),y:T(g.y,d.y)};null!=g.shortRotation?(e.rotation="number"===typeof g.shortRotation?g.shortRotation*L:U(g.shortRotation,d.rotation),
-f=(e.rotation-d.rotation)%(2*Math.PI),f!==f%Math.PI&&(f+=Math.PI*(0>f?2:-2)),e.rotation=d.rotation+f):e.rotation=null==g.rotation?d.rotation:"number"===typeof g.rotation?g.rotation*L:U(g.rotation,d.rotation);e.skewX=null==g.skewX?d.skewX:"number"===typeof g.skewX?g.skewX*L:U(g.skewX,d.skewX);e.skewY=null==g.skewY?d.skewY:"number"===typeof g.skewY?g.skewY*L:U(g.skewY,d.skewY);if(f=e.skewY-d.skewY)e.skewX+=f,e.rotation+=f;1E-6>e.skewY&&-1E-6<e.skewY&&(e.skewY=0);1E-6>e.skewX&&-1E-6<e.skewX&&(e.skewX=
-0);1E-6>e.rotation&&-1E-6<e.rotation&&(e.rotation=0);if(null!=(g=g.transformOrigin))J?(u=J+"Origin",this._firstPT=g={_next:this._firstPT,t:n,p:u,s:0,c:0,n:u,f:!1,r:!1,b:n[u],e:g,i:g,type:-1,sfx:""},g._next&&(g._next._prev=g)):V(g,d)}else if("string"===typeof g&&J)f=n[J],n[J]=g,e=S(b,null,!1),n[J]=f;else return;if(J){if(N&&(M=!0,""===n.WebkitBackfaceVisibility&&(n.WebkitBackfaceVisibility="hidden"),""===n.zIndex&&(f=F(b,"zIndex",c),"auto"===f||""===f)))n.zIndex=0}else n.zoom=1;for(u in v)if((d[u]!==
-e[u]||null!=x[u])&&"shortRotation"!==u&&"scale"!==u)this._firstPT=g={_next:this._firstPT,t:d,p:u,s:d[u],c:e[u]-d[u],n:u,f:!1,r:!1,b:d[u],e:e[u],type:0,sfx:0},g._next&&(g._next._prev=g),this._overwriteProps.push("css_"+u)}};i._parseBezier=function(b,g,c,d){if(window.com.greensock.plugins.BezierPlugin){b instanceof Array&&(b={values:b});var n=b.values||[],v=n.length,e=[],f=this._bezier={_pt:[]},u=f._proxy={},h=0,k=0,i={},p=v-1,q=x,s=f._plugin=new window.com.greensock.plugins.BezierPlugin,I,m,K,t,w;
-for(I=0;I<v;I++){t={};this._transform=null;K=this._firstPT;this._parseVars(x=n[I],g,c,d);m=this._firstPT;if(0===I){for(w=this._transform;m!==K;)u[m.p]=m.s,f._pt[k++]=i[m.p]=m,1===m.type||2===m.type?(u[m.p+"_g"]=m.gs,u[m.p+"_b"]=m.bs,2===m.type&&(u[m.p+"_a"]=m.as)):3===m.type&&(u[m.p+"_y"]=m.ys),m=m._next;m=this._firstPT}else this._firstPT=K,K._prev&&(K._prev._next=null),K=K._prev=null;for(;m!==K;)i[m.p]&&(t[m.p]=m.s+m.c,I===p&&(i[m.p].e=m.e),1===m.type||2===m.type?(t[m.p+"_g"]=m.gs+m.gc,t[m.p+"_b"]=
-m.bs+m.bc,2===m.type&&(t[m.p+"_a"]=m.as+m.ac)):3===m.type&&(t[m.p+"_y"]=m.ys+m.yc),0===I&&(m.c=m.ac=m.gc=m.bc=m.yc=0)),m=m._next;e[h++]=t}this._transform=w;x=q;b.values=e;0===b.autoRotate&&(b.autoRotate=!0);b.autoRotate&&!(b.autoRotate instanceof Array)&&(I=!0==b.autoRotate?0:Number(b.autoRotate)*Math.PI/180,b.autoRotate=null!=e[0].left?[["left","top","rotation",I,!0]]:null!=e[0].x?[["x","y","rotation",I,!0]]:!1);if((f._autoRotate=b.autoRotate)&&!w)this._transform=S(g,c,!0);s._onInitTween(u,b,this._tween);
-b.values=n}else console.log("Error: BezierPlugin not loaded.")};i.setRatio=function(b){var g=this._firstPT,c=this._bezier,d=1E-6,n,v;if(c){c._plugin.setRatio(b);var e=c._pt,f=c._proxy;for(v=e.length;-1<--v;)g=e[v],g.s=f[g.p],1===g.type||2===g.type?(g.gs=f[g.p+"_g"],g.bs=f[g.p+"_b"],2===g.type&&(g.as=f[g.p+"_a"])):3===g.type&&(g.ys=f[g.p+"_y"]);c._autoRotate&&(this._transform.rotation=f.rotation)}if(1===b&&(this._tween._time===this._tween._duration||0===this._tween._time))for(;g;)g.t[g.p]=g.e,4===
-g.type&&1===g.s+g.c&&(this._style.removeAttribute("filter"),F(this._target,"filter")&&(g.t[g.p]=g.e)),g=g._next;else if(b||!(this._tween._time===this._tween._duration||0===this._tween._time))for(;g;)n=g.c*b+g.s,g.r?n=0<n?n+0.5>>0:n-0.5>>0:n<d&&n>-d&&(n=0),g.type?1===g.type?g.t[g.p]="rgb("+(n>>0)+", "+(g.gs+b*g.gc>>0)+", "+(g.bs+b*g.bc>>0)+")":2===g.type?g.t[g.p]="rgba("+(n>>0)+", "+(g.gs+b*g.gc>>0)+", "+(g.bs+b*g.bc>>0)+", "+(g.as+b*g.ac)+")":-1===g.type?g.t[g.p]=g.i:3===g.type?(c=g.ys+b*g.yc,g.r&&
-(c=0<c?c+0.5>>0:c-0.5>>0),g.t[g.p]=n+g.sfx+" "+c+g.ysfx):(g.dup&&(g.t.filter=g.t.filter||"alpha(opacity=100)"),g.t.filter=-1===g.t.filter.indexOf("opacity")?g.t.filter+(" alpha(opacity="+(100*n>>0)+")"):g.t.filter.replace(t,"opacity="+(100*n>>0))):g.t[g.p]=n+g.sfx,g=g._next;else for(;g;)g.t[g.p]=g.b,4===g.type&&1===g.s&&(this._style.removeAttribute("filter"),F(this._target,"filter")&&(g.t[g.p]=g.b)),g=g._next;if(this._transform)if(g=this._transform,J&&!g.rotation&&!g.skewX)this._style[J]=(g.x||g.y?
-"translate("+g.x+"px,"+g.y+"px) ":"")+(1!==g.scaleX||1!==g.scaleY?"scale("+g.scaleX+","+g.scaleY+")":"")||"translate(0px,0px)";else{var e=J?g.rotation:-g.rotation,u=J?e-g.skewX:e+g.skewX,c=Math.cos(e)*g.scaleX,e=Math.sin(e)*g.scaleX,f=Math.sin(u)*-g.scaleY,u=Math.cos(u)*g.scaleY,h;c<d&&c>-d&&(c=0);e<d&&e>-d&&(e=0);f<d&&f>-d&&(f=0);u<d&&u>-d&&(u=0);if(J)this._style[J]="matrix("+c+","+e+","+f+","+u+","+g.x+","+g.y+")";else if(h=this._target.currentStyle){d=e;e=-f;f=-d;d=h.filter;this._style.filter=
-"";v=this._target.offsetWidth;n=this._target.offsetHeight;var k="absolute"!==h.position,i="progid:DXImageTransform.Microsoft.Matrix(M11="+c+", M12="+e+", M21="+f+", M22="+u,m=g.x,p=g.y,q,I;null!=g.ox&&(q=(g.oxp?0.01*v*g.ox:g.ox)-v/2,I=(g.oyp?0.01*n*g.oy:g.oy)-n/2,m=q-(q*c+I*e)+g.x,p=I-(q*f+I*u)+g.y);if(k)q=v/2,I=n/2,i+=", Dx="+(q-(q*c+I*e)+m)+", Dy="+(I-(q*f+I*u)+p)+")";else{var K=8>E?1:-1;q=g.ieOffsetX||0;I=g.ieOffsetY||0;g.ieOffsetX=Math.round((v-((0>c?-c:c)*v+(0>e?-e:e)*n))/2+m);g.ieOffsetY=Math.round((n-
-((0>u?-u:u)*n+(0>f?-f:f)*v))/2+p);for(v=0;4>v;v++)m=Y[v],n=h[m],n=-1!==n.indexOf("px")?parseFloat(n):Q(this._target,m,parseFloat(n),n.replace(s,""))||0,p=n!==g[m]?2>v?-g.ieOffsetX:-g.ieOffsetY:2>v?q-g.ieOffsetX:I-g.ieOffsetY,this._style[m]=(g[m]=Math.round(n-p*(0===v||2===v?1:K)))+"px";i+=", sizingMethod='auto expand')"}this._style.filter=-1!==d.indexOf("DXImageTransform.Microsoft.Matrix(")?d.replace(A,i):i+" "+d;if(0===b||1===b)if(1===c&&0===e&&0===f&&1===u&&(!k||-1!==i.indexOf("Dx=0, Dy=0")))(!t.test(d)||
-100===parseFloat(RegExp.$1))&&this._style.removeAttribute("filter")}}if(this._classData)if(g=this._classData,1===b&&(this._tween._time===this._tween._duration||0===this._tween._time)){for(v=g.props.length;-1<--v;)this._style[g.props[v]]="";this._target.className=g.e}else this._target.className!==g.b&&(this._target.className=g.b)};i._kill=function(g){var b=g,c;if(g.autoAlpha||g.alpha){b={};for(c in g)b[c]=g[c];b.opacity=1;b.autoAlpha&&(b.visibility=1)}return y.prototype._kill.call(this,b)};y.activate([w]);
-return w},!0);_gsDefine("plugins.RoundPropsPlugin",["plugins.TweenPlugin"],function(y){var w=function(){y.call(this,"roundProps",-1);this._overwriteProps.length=0},i=w.prototype=new y("roundProps",-1);i.constructor=w;w.API=2;i._onInitTween=function(i,s,c){this._tween=c;return!0};i._onInitAllProps=function(){for(var i=this._tween,s=i.vars.roundProps instanceof Array?i.vars.roundProps:i.vars.roundProps.split(","),c=s.length,t={},e=i._propLookup.roundProps,b,h,d;-1<--c;)t[s[c]]=1;for(c=s.length;-1<--c;){b=
-s[c];for(h=i._firstPT;h;)d=h._next,h.pg?h.t._roundProps(t,!0):h.n===b&&(this._add(h.t,b,h.s,h.c),d&&(d._prev=h._prev),h._prev?h._prev._next=d:_tween._firstPT===h&&(i._firstPT=d),h._next=h._prev=null,i._propLookup[b]=e),h=d}return!1};i._add=function(i,s,c,t){this._addTween(i,s,c,c+t,s,!0);this._overwriteProps.push(s)};y.activate([w]);return w},!0);_gsDefine("easing.Back",["easing.Ease"],function(y){var w=window.com.greensock._class,i=function(b,c){var d=w("easing."+b,function(){},!0),e=d.prototype=
-new y;e.constructor=d;e.getRatio=c;return d},q=function(b,c){var d=w("easing."+b,function(b){this._p1=b||0===b?b:1.70158;this._p2=1.525*this._p1},!0),e=d.prototype=new y;e.constructor=d;e.getRatio=c;e.config=function(b){return new d(b)};return d},s=q("BackOut",function(b){return(b-=1)*b*((this._p1+1)*b+this._p1)+1}),c=q("BackIn",function(b){return b*b*((this._p1+1)*b-this._p1)}),q=q("BackInOut",function(b){return 1>(b*=2)?0.5*b*b*((this._p2+1)*b-this._p2):0.5*((b-=2)*b*((this._p2+1)*b+this._p2)+2)}),
-t=i("BounceOut",function(b){return b<1/2.75?7.5625*b*b:b<2/2.75?7.5625*(b-=1.5/2.75)*b+0.75:b<2.5/2.75?7.5625*(b-=2.25/2.75)*b+0.9375:7.5625*(b-=2.625/2.75)*b+0.984375}),e=i("BounceIn",function(b){return(b=1-b)<1/2.75?1-7.5625*b*b:b<2/2.75?1-(7.5625*(b-=1.5/2.75)*b+0.75):b<2.5/2.75?1-(7.5625*(b-=2.25/2.75)*b+0.9375):1-(7.5625*(b-=2.625/2.75)*b+0.984375)}),b=i("BounceInOut",function(b){var c=0.5>b,b=c?1-2*b:2*b-1,b=b<1/2.75?7.5625*b*b:b<2/2.75?7.5625*(b-=1.5/2.75)*b+0.75:b<2.5/2.75?7.5625*(b-=2.25/
-2.75)*b+0.9375:7.5625*(b-=2.625/2.75)*b+0.984375;return c?0.5*(1-b):0.5*b+0.5}),h=i("CircOut",function(b){return Math.sqrt(1-(b-=1)*b)}),d=i("CircIn",function(b){return-(Math.sqrt(1-b*b)-1)}),f=i("CircInOut",function(b){return 1>(b*=2)?-0.5*(Math.sqrt(1-b*b)-1):0.5*(Math.sqrt(1-(b-=2)*b)+1)}),k=2*Math.PI,A=function(b,c,d){var e=w("easing."+b,function(b,c){this._p1=b||1;this._p2=c||d;this._p3=this._p2/k*(Math.asin(1/this._p1)||0)},!0),b=e.prototype=new y;b.constructor=e;b.getRatio=c;b.config=function(b,
-c){return new e(b,c)};return e},L=A("ElasticOut",function(b){return this._p1*Math.pow(2,-10*b)*Math.sin((b-this._p3)*k/this._p2)+1},0.3),O=A("ElasticIn",function(b){return-(this._p1*Math.pow(2,10*(b-=1))*Math.sin((b-this._p3)*k/this._p2))},0.3),A=A("ElasticInOut",function(b){return 1>(b*=2)?-0.5*this._p1*Math.pow(2,10*(b-=1))*Math.sin((b-this._p3)*k/this._p2):0.5*this._p1*Math.pow(2,-10*(b-=1))*Math.sin((b-this._p3)*k/this._p2)+1},0.45),x=i("ExpoOut",function(b){return 1-Math.pow(2,-10*b)}),m=i("ExpoIn",
-function(b){return Math.pow(2,10*(b-1))-0.001}),B=i("ExpoInOut",function(b){return 1>(b*=2)?0.5*Math.pow(2,10*(b-1)):0.5*(2-Math.pow(2,-10*(b-1)))}),p=Math.PI/2,P=i("SineOut",function(b){return Math.sin(b*p)}),M=i("SineIn",function(b){return-Math.cos(b*p)+1}),i=i("SineInOut",function(b){return-0.5*(Math.cos(Math.PI*b)-1)}),N=w("easing.SlowMo",function(b,c,d){null==b?b=0.7:1<b&&(b=1);this._p=1!=b?c||0===c?c:0.7:0;this._p1=(1-b)/2;this._p2=b;this._p3=this._p1+this._p2;this._calcEnd=!0===d},!0),E=N.prototype=
-new y;E.constructor=N;E.getRatio=function(b){var c=b+(0.5-b)*this._p;return b<this._p1?this._calcEnd?1-(b=1-b/this._p1)*b:c-(b=1-b/this._p1)*b*b*b*c:b>this._p3?this._calcEnd?1-(b=(b-this._p3)/this._p1)*b:c+(b-c)*(b=(b-this._p3)/this._p1)*b*b*b:this._calcEnd?1:c};N.ease=new N(0.7,0.7);E.config=N.config=function(b,c,d){return new N(b,c,d)};var C=w("easing.SteppedEase",function(b){b=b||1;this._p1=1/b;this._p2=b+1},!0),E=C.prototype=new y;E.constructor=C;E.getRatio=function(b){0>b?b=0:1<=b&&(b=0.999999999);
-return(this._p2*b>>0)*this._p1};E.config=C.config=function(b){return new C(b)};w("easing.Bounce",{easeOut:new t,easeIn:new e,easeInOut:new b},!0);w("easing.Circ",{easeOut:new h,easeIn:new d,easeInOut:new f},!0);w("easing.Elastic",{easeOut:new L,easeIn:new O,easeInOut:new A},!0);w("easing.Expo",{easeOut:new x,easeIn:new m,easeInOut:new B},!0);w("easing.Sine",{easeOut:new P,easeIn:new M,easeInOut:new i},!0);return{easeOut:new s,easeIn:new c,easeInOut:new q}},!0)});
-(function(y){var w=function(b){var b=b.split("."),c=y,d;for(d=0;d<b.length;d++)c[b[d]]=c=c[b[d]]||{};return c},i=w("com.greensock"),q,s,c,t,e,b={},h=function(g,c,d,e){this.sc=b[g]?b[g].sc:[];b[g]=this;this.gsClass=null;this.def=d;var f=c||[],i=[];this.check=function(c){for(var u=f.length,k=0,m;-1<--u;)(m=b[f[u]]||new h(f[u])).gsClass?i[u]=m.gsClass:(k++,c&&m.sc.push(this));if(0===k&&d){var c=("com.greensock."+g).split("."),u=c.pop(),n=w(c.join("."))[u]=this.gsClass=d.apply(d,i);e&&((y.GreenSockGlobals||
-y)[u]=n,"function"===typeof define&&define.amd?define((y.GreenSockAMDPath?y.GreenSockAMDPath+"/":"")+g.split(".").join("/"),[],function(){return n}):"undefined"!==typeof module&&module.exports&&(module.exports=n));for(u=0;u<this.sc.length;u++)this.sc[u].check(!1)}};this.check(!0)},d=i._class=function(b,c,d){new h(b,[],function(){return c},d);return c};y._gsDefine=function(b,c,d,e){return new h(b,c,d,e)};var f=[0,0,1,1],k=[],A=d("easing.Ease",function(b,c,d,e){this._func=b;this._type=d||0;this._power=
-e||0;this._params=c?f.concat(c):f},!0);c=A.prototype;c._calcEnd=!1;c.getRatio=function(b){if(this._func)return this._params[0]=b,this._func.apply(null,this._params);var c=this._type,d=this._power,e=1===c?1-b:2===c?b:0.5>b?2*b:2*(1-b);1===d?e*=e:2===d?e*=e*e:3===d?e*=e*e*e:4===d&&(e*=e*e*e*e);return 1===c?1-e:2===c?e:0.5>b?e/2:1-e/2};q=["Linear","Quad","Cubic","Quart","Quint"];for(s=q.length;-1<--s;)c=d("easing."+q[s],function(){},!0),t=d("easing.Power"+s,function(){},!0),c.easeOut=t.easeOut=new A(null,
-null,1,s),c.easeIn=t.easeIn=new A(null,null,2,s),c.easeInOut=t.easeInOut=new A(null,null,3,s);d("easing.Strong",i.easing.Power4,!0);i.easing.Linear.easeNone=i.easing.Linear.easeIn;c=d("events.EventDispatcher",function(b){this._listeners={};this._eventTarget=b||this}).prototype;c.addEventListener=function(b,c,d,e,f){var f=f||0,h=this._listeners[b],i=0,k;null==h&&(this._listeners[b]=h=[]);for(k=h.length;-1<--k;)b=h[k],b.c===c?h.splice(k,1):0===i&&b.pr<f&&(i=k+1);h.splice(i,0,{c:c,s:d,up:e,pr:f})};c.removeEventListener=
-function(b,c){var d=this._listeners[b];if(d)for(var e=d.length;-1<--e;)if(d[e].c===c){d.splice(e,1);break}};c.dispatchEvent=function(b){var c=this._listeners[b];if(c)for(var d=c.length,e,f=this._eventTarget;-1<--d;)e=c[d],e.up?e.c.call(e.s||f,{type:b,target:f}):e.c.call(e.s||f)};var L=y.requestAnimationFrame,O=y.cancelAnimationFrame,x=Date.now||function(){return(new Date).getTime()};q=["ms","moz","webkit","o"];for(s=q.length;-1<--s&&!L;)L=y[q[s]+"RequestAnimationFrame"],O=y[q[s]+"CancelAnimationFrame"]||
-y[q[s]+"CancelRequestAnimationFrame"];O||(O=function(b){y.clearTimeout(b)});d("Ticker",function(b,c){this.frame=this.time=0;var d=this,e=x(),f=!1!==c,h,i,k,m,n;this.tick=function(){d.time=(x()-e)/1E3;if(!h||d.time>=n)d.frame++,n=d.time+m-(d.time-n)-5E-4,n<=d.time&&(n=d.time+0.001),d.dispatchEvent("tick");k=i(d.tick)};this.fps=function(b){if(!arguments.length)return h;h=b;m=1/(h||60);n=this.time+m;i=0===h?function(){}:!f||!L?function(b){return y.setTimeout(b,1E3*(n-d.time)+1>>0||1)}:L;O(k);k=i(d.tick)};
-this.useRAF=function(b){if(!arguments.length)return f;f=b;this.fps(h)};this.fps(b)});c=i.Ticker.prototype=new i.events.EventDispatcher;c.constructor=i.Ticker;var m=d("core.Animation",function(b,c){this.vars=c||{};this._duration=this._totalDuration=b||0;this._delay=Number(this.vars.delay)||0;this._timeScale=1;this._active=!0==this.vars.immediateRender;this.data=this.vars.data;this._reversed=!0==this.vars.reversed;if(D){e||(B.tick(),e=!0);var d=this.vars.useFrames?n:D;d.insert(this,d._time);this.vars.paused&&
-this.paused(!0)}}),B=m.ticker=new i.Ticker;c=m.prototype;c._dirty=c._gc=c._initted=c._paused=!1;c._totalTime=c._time=0;c._rawPrevTime=-1;c._next=c._last=c._onUpdate=c._timeline=c.timeline=null;c._paused=!1;c.play=function(b,c){arguments.length&&this.seek(b,c);this.reversed(!1);return this.paused(!1)};c.pause=function(b,c){arguments.length&&this.seek(b,c);return this.paused(!0)};c.resume=function(b,c){arguments.length&&this.seek(b,c);return this.paused(!1)};c.seek=function(b,c){return this.totalTime(Number(b),
-!1!=c)};c.restart=function(b,c){this.reversed(!1);this.paused(!1);return this.totalTime(b?-this._delay:0,!1!=c)};c.reverse=function(b,c){arguments.length&&this.seek(b||this.totalDuration(),c);this.reversed(!0);return this.paused(!1)};c.render=function(){};c.invalidate=function(){return this};c._enabled=function(b,c){this._gc=!b;this._active=b&&!this._paused&&0<this._totalTime&&this._totalTime<this._totalDuration;!0!=c&&(b&&null==this.timeline?this._timeline.insert(this,this._startTime-this._delay):
-!b&&null!=this.timeline&&this._timeline._remove(this,!0));return!1};c._kill=function(){return this._enabled(!1,!1)};c.kill=function(b,c){this._kill(b,c);return this};c._uncache=function(b){for(b=b?this:this.timeline;b;)b._dirty=!0,b=b.timeline;return this};c.eventCallback=function(b,c,d,e){if(null==b)return null;if("on"===b.substr(0,2)){if(1===arguments.length)return this.vars[b];if(null==c)delete this.vars[b];else if(this.vars[b]=c,this.vars[b+"Params"]=d,this.vars[b+"Scope"]=e,d)for(var f=d.length;-1<
---f;)"{self}"===d[f]&&(d=this.vars[b+"Params"]=d.concat(),d[f]=this);"onUpdate"===b&&(this._onUpdate=c)}return this};c.delay=function(b){if(!arguments.length)return this._delay;this._timeline.smoothChildTiming&&this.startTime(this._startTime+b-this._delay);this._delay=b;return this};c.duration=function(b){if(!arguments.length)return this._dirty=!1,this._duration;this._duration=this._totalDuration=b;this._uncache(!0);this._timeline.smoothChildTiming&&this._active&&0!=b&&this.totalTime(this._totalTime*
-(b/this._duration),!0);return this};c.totalDuration=function(b){this._dirty=!1;return!arguments.length?this._totalDuration:this.duration(b)};c.time=function(b,c){if(!arguments.length)return this._time;this._dirty&&this.totalDuration();b>this._duration&&(b=this._duration);return this.totalTime(b,c)};c.totalTime=function(b,c){if(!arguments.length)return this._totalTime;if(this._timeline){0>b&&(b+=this.totalDuration());if(this._timeline.smoothChildTiming&&(this._dirty&&this.totalDuration(),b>this._totalDuration&&
-(b=this._totalDuration),this._startTime=(this._paused?this._pauseTime:this._timeline._time)-(!this._reversed?b:this._totalDuration-b)/this._timeScale,this._timeline._dirty||this._uncache(!1),!this._timeline._active))for(var d=this._timeline;d._timeline;)d.totalTime(d._totalTime,!0),d=d._timeline;this._gc&&this._enabled(!0,!1);this._totalTime!=b&&this.render(b,c,!1)}return this};c.startTime=function(b){if(!arguments.length)return this._startTime;b!=this._startTime&&(this._startTime=b,this.timeline&&
-this.timeline._sortChildren&&this.timeline.insert(this,b-this._delay));return this};c.timeScale=function(b){if(!arguments.length)return this._timeScale;b=b||1E-6;if(this._timeline&&this._timeline.smoothChildTiming){var c=this._pauseTime||0==this._pauseTime?this._pauseTime:this._timeline._totalTime;this._startTime=c-(c-this._startTime)*this._timeScale/b}this._timeScale=b;return this._uncache(!1)};c.reversed=function(b){if(!arguments.length)return this._reversed;b!=this._reversed&&(this._reversed=b,
-this.totalTime(this._totalTime,!0));return this};c.paused=function(b){if(!arguments.length)return this._paused;b!=this._paused&&this._timeline&&(!b&&this._timeline.smoothChildTiming&&(this._startTime+=this._timeline.rawTime()-this._pauseTime,this._uncache(!1)),this._pauseTime=b?this._timeline.rawTime():null,this._paused=b,this._active=!this._paused&&0<this._totalTime&&this._totalTime<this._totalDuration);this._gc&&(b||this._enabled(!0,!1));return this};i=d("core.SimpleTimeline",function(b){m.call(this,
-0,b);this.autoRemoveChildren=this.smoothChildTiming=!0});c=i.prototype=new m;c.constructor=i;c.kill()._gc=!1;c._first=c._last=null;c._sortChildren=!1;c.insert=function(b,c){b._startTime=Number(c||0)+b._delay;b._paused&&this!==b._timeline&&(b._pauseTime=b._startTime+(this.rawTime()-b._startTime)/b._timeScale);b.timeline&&b.timeline._remove(b,!0);b.timeline=b._timeline=this;b._gc&&b._enabled(!0,!0);var d=this._last;if(this._sortChildren)for(var e=b._startTime;d&&d._startTime>e;)d=d._prev;d?(b._next=
-d._next,d._next=b):(b._next=this._first,this._first=b);b._next?b._next._prev=b:this._last=b;b._prev=d;this._timeline&&this._uncache(!0);return this};c._remove=function(b,c){b.timeline===this&&(c||b._enabled(!1,!0),b.timeline=null,b._prev?b._prev._next=b._next:this._first===b&&(this._first=b._next),b._next?b._next._prev=b._prev:this._last===b&&(this._last=b._prev),this._timeline&&this._uncache(!0));return this};c.render=function(b,c){var d=this._first,e;for(this._totalTime=this._time=this._rawPrevTime=
-b;d;){e=d._next;if(d._active||b>=d._startTime&&!d._paused)d._reversed?d.render((!d._dirty?d._totalDuration:d.totalDuration())-(b-d._startTime)*d._timeScale,c,!1):d.render((b-d._startTime)*d._timeScale,c,!1);d=e}};c.rawTime=function(){return this._totalTime};var p=d("TweenLite",function(b,c,d){m.call(this,c,d);if(null==b)throw"Cannot tween an undefined reference.";this.target=b;this._overwrite=null==this.vars.overwrite?C[p.defaultOverwrite]:"number"===typeof this.vars.overwrite?this.vars.overwrite>>
-0:C[this.vars.overwrite];if((b instanceof Array||b.jquery)&&"object"===typeof b[0]){this._targets=b.slice(0);this._propLookup=[];this._siblings=[];for(b=0;b<this._targets.length;b++)d=this._targets[b],d.jquery?(this._targets.splice(b--,1),this._targets=this._targets.concat(d.constructor.makeArray(d))):(this._siblings[b]=H(d,this,!1),1===this._overwrite&&1<this._siblings[b].length&&G(d,this,null,1,this._siblings[b]))}else this._propLookup={},this._siblings=H(b,this,!1),1===this._overwrite&&1<this._siblings.length&&
-G(b,this,null,1,this._siblings);(this.vars.immediateRender||0===c&&0===this._delay&&!1!=this.vars.immediateRender)&&this.render(-this._delay,!1,!0)},!0);c=p.prototype=new m;c.constructor=p;c.kill()._gc=!1;c.ratio=0;c._firstPT=c._targets=c._overwrittenProps=null;c._notifyPluginsOfEnabled=!1;p.version=12;p.defaultEase=c._ease=new A(null,null,1,1);p.defaultOverwrite="auto";p.ticker=B;var P=p._plugins={},M=p._tweenLookup={},N=0,E={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,
-useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,orientToBezier:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1},C={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},n=m._rootFramesTimeline=new i,D=m._rootTimeline=new i;D._startTime=B.time;n._startTime=
-B.frame;D._active=n._active=!0;m._updateRoot=function(){D.render((B.time-D._startTime)*D._timeScale,!1,!1);n.render((B.frame-n._startTime)*n._timeScale,!1,!1);if(!(B.frame%120)){var b,c,d;for(d in M){c=M[d].tweens;for(b=c.length;-1<--b;)c[b]._gc&&c.splice(b,1);0===c.length&&delete M[d]}}};B.addEventListener("tick",m._updateRoot);var H=function(b,c,d){var e=b._gsTweenID,f;if(!M[e||(b._gsTweenID=e="t"+N++)])M[e]={target:b,tweens:[]};if(c&&(b=M[e].tweens,b[f=b.length]=c,d))for(;-1<--f;)b[f]===c&&b.splice(f,
-1);return M[e].tweens},G=function(b,c,d,e,f){var h,i,k;if(1===e||4<=e){b=f.length;for(h=0;h<b;h++)if((k=f[h])!==c)k._gc||k._enabled(!1,!1)&&(i=!0);else if(5===e)break;return i}var m=c._startTime+1E-10,n=[],p=0,q;for(h=f.length;-1<--h;)if(!((k=f[h])===c||k._gc||k._paused))k._timeline!==c._timeline?(q=q||z(c,0),0===z(k,q)&&(n[p++]=k)):k._startTime<=m&&k._startTime+k.totalDuration()/k._timeScale+1E-10>m&&((0===c._duration||!k._initted)&&2E-10>=m-k._startTime||(n[p++]=k));for(h=p;-1<--h;)if(k=n[h],2===
-e&&k._kill(d,b)&&(i=!0),2!==e||!k._firstPT&&k._initted)k._enabled(!1,!1)&&(i=!0);return i},z=function(b,c){for(var d=b._timeline,e=d._timeScale,f=b._startTime;d._timeline;){f+=d._startTime;e*=d._timeScale;if(d._paused)return-100;d=d._timeline}f/=e;return f>c?f-c:!b._initted&&2E-10>f-c?1E-10:(f+=b.totalDuration()/b._timeScale/e)>c?0:f-c-1E-10};c._init=function(){this.vars.startAt&&(this.vars.startAt.overwrite=0,this.vars.startAt.immediateRender=!0,p.to(this.target,0,this.vars.startAt));var b,c;this._ease=
-this.vars.ease instanceof A?this.vars.easeParams instanceof Array?this.vars.ease.config.apply(this.vars.ease,this.vars.easeParams):this.vars.ease:"function"===typeof this.vars.ease?new A(this.vars.ease,this.vars.easeParams):p.defaultEase;this._easeType=this._ease._type;this._easePower=this._ease._power;this._firstPT=null;if(this._targets)for(b=this._targets.length;-1<--b;){if(this._initProps(this._targets[b],this._propLookup[b]={},this._siblings[b],this._overwrittenProps?this._overwrittenProps[b]:
-null))c=!0}else c=this._initProps(this.target,this._propLookup,this._siblings,this._overwrittenProps);c&&p._onPluginEvent("_onInitAllProps",this);this._overwrittenProps&&null==this._firstPT&&"function"!==typeof this.target&&this._enabled(!1,!1);if(this.vars.runBackwards)for(b=this._firstPT;b;)b.s+=b.c,b.c=-b.c,b=b._next;this._onUpdate=this.vars.onUpdate;this._initted=!0};c._initProps=function(b,c,d,e){var f,h,k,i,m,n;if(null==b)return!1;for(f in this.vars){if(E[f]){if("onStartParams"===f||"onUpdateParams"===
-f||"onCompleteParams"===f||"onReverseCompleteParams"===f||"onRepeatParams"===f)if(m=this.vars[f])for(h=m.length;-1<--h;)"{self}"===m[h]&&(m=this.vars[f]=m.concat(),m[h]=this)}else if(P[f]&&(i=new P[f])._onInitTween(b,this.vars[f],this)){this._firstPT=n={_next:this._firstPT,t:i,p:"setRatio",s:0,c:1,f:!0,n:f,pg:!0,pr:i._priority};for(h=i._overwriteProps.length;-1<--h;)c[i._overwriteProps[h]]=this._firstPT;if(i._priority||i._onInitAllProps)k=!0;if(i._onDisable||i._onEnable)this._notifyPluginsOfEnabled=
-!0}else this._firstPT=c[f]=n={_next:this._firstPT,t:b,p:f,f:"function"===typeof b[f],n:f,pg:!1,pr:0},n.s=!n.f?parseFloat(b[f]):b[f.indexOf("set")||"function"!==typeof b["get"+f.substr(3)]?f:"get"+f.substr(3)](),n.c="number"===typeof this.vars[f]?this.vars[f]-n.s:"string"===typeof this.vars[f]?parseFloat(this.vars[f].split("=").join("")):0;n&&n._next&&(n._next._prev=n)}return e&&this._kill(e,b)?this._initProps(b,c,d,e):1<this._overwrite&&this._firstPT&&1<d.length&&G(b,this,c,this._overwrite,d)?(this._kill(c,
-b),this._initProps(b,c,d,e)):k};c.render=function(b,c,d){var e=this._time,f,h;if(b>=this._duration){if(this._totalTime=this._time=this._duration,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(f=!0,h="onComplete"),0===this._duration){if(0===b||0>this._rawPrevTime)this._rawPrevTime!==b&&(d=!0);this._rawPrevTime=b}}else if(0>=b){this._totalTime=this._time=0;this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0;if(0!==e||0===this._duration&&0<this._rawPrevTime)h="onReverseComplete",
-f=this._reversed;0>b?(this._active=!1,0===this._duration&&(0<=this._rawPrevTime&&(d=!0),this._rawPrevTime=b)):this._initted||(d=!0)}else if(this._totalTime=this._time=b,this._easeType){var i=b/this._duration,m=this._easeType,n=this._easePower;if(1===m||3===m&&0.5<=i)i=1-i;3===m&&(i*=2);1===n?i*=i:2===n?i*=i*i:3===n?i*=i*i*i:4===n&&(i*=i*i*i*i);this.ratio=1===m?1-i:2===m?i:0.5>b/this._duration?i/2:1-i/2}else this.ratio=this._ease.getRatio(b/this._duration);if(this._time!==e||d){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===e&&this.vars.onStart&&(0!==this._time||0===this._duration))c||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||k);for(b=this._firstPT;b;){if(b.f)b.t[b.p](b.c*this.ratio+b.s);else b.t[b.p]=b.c*this.ratio+b.s;b=b._next}this._onUpdate&&(c||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||k));h&&!this._gc&&(f&&(this._timeline.autoRemoveChildren&&
-this._enabled(!1,!1),this._active=!1),c||this.vars[h]&&this.vars[h].apply(this.vars[h+"Scope"]||this,this.vars[h+"Params"]||k))}};c._kill=function(b,c){"all"===b&&(b=null);if(null==b&&(null==c||c==this.target))return this._enabled(!1,!1);var c=c||this._targets||this.target,d,e,f,h,i,k,m;if((c instanceof Array||c.jquery)&&"object"===typeof c[0])for(d=c.length;-1<--d;)this._kill(b,c[d])&&(i=!0);else{if(this._targets)for(d=this._targets.length;-1<--d;){if(c===this._targets[d]){h=this._propLookup[d]||
-{};this._overwrittenProps=this._overwrittenProps||[];e=this._overwrittenProps[d]=b?this._overwrittenProps[d]||{}:"all";break}}else{if(c!==this.target)return!1;h=this._propLookup;e=this._overwrittenProps=b?this._overwrittenProps||{}:"all"}if(h)for(f in k=b||h,m=b!=e&&"all"!=e&&b!=h&&(null==b||!0!=b._tempKill),k){if(d=h[f]){d.pg&&d.t._kill(k)&&(i=!0);if(!d.pg||0===d.t._overwriteProps.length)d._prev?d._prev._next=d._next:d===this._firstPT&&(this._firstPT=d._next),d._next&&(d._next._prev=d._prev),d._next=
-d._prev=null;delete h[f]}m&&(e[f]=1)}}return i};c.invalidate=function(){this._notifyPluginsOfEnabled&&p._onPluginEvent("_onDisable",this);this._onUpdate=this._overwrittenProps=this._firstPT=null;this._initted=this._active=this._notifyPluginsOfEnabled=!1;this._propLookup=this._targets?{}:[];return this};c._enabled=function(b,c){if(b&&this._gc)if(this._targets)for(var d=this._targets.length;-1<--d;)this._siblings[d]=H(this._targets[d],this,!0);else this._siblings=H(this.target,this,!0);m.prototype._enabled.call(this,
-b,c);return this._notifyPluginsOfEnabled&&this._firstPT?p._onPluginEvent(b?"_onEnable":"_onDisable",this):!1};p.to=function(b,c,d){return new p(b,c,d)};p.from=function(b,c,d){d.runBackwards=!0;!1!=d.immediateRender&&(d.immediateRender=!0);return new p(b,c,d)};p.fromTo=function(b,c,d,e){e.startAt=d;d.immediateRender&&(e.immediateRender=!0);return new p(b,c,e)};p.delayedCall=function(b,c,d,e,f){return new p(c,0,{delay:b,onComplete:c,onCompleteParams:d,onCompleteScope:e,onReverseComplete:c,onReverseCompleteParams:d,
-onReverseCompleteScope:e,immediateRender:!1,useFrames:f,overwrite:0})};p.set=function(b,c){return new p(b,0,c)};p.killTweensOf=p.killDelayedCallsTo=function(b,c){for(var d=p.getTweensOf(b),e=d.length;-1<--e;)d[e]._kill(c,b)};p.getTweensOf=function(b){if(null!=b){var c,d,e;if((b instanceof Array||b.jquery)&&"object"===typeof b[0]){c=b.length;for(d=[];-1<--c;)d=d.concat(p.getTweensOf(b[c]));for(c=d.length;-1<--c;){e=d[c];for(b=c;-1<--b;)e===d[b]&&d.splice(c,1)}}else{d=H(b).concat();for(c=d.length;-1<
---c;)d[c]._gc&&d.splice(c,1)}return d}};var F=d("plugins.TweenPlugin",function(b,c){this._overwriteProps=(b||"").split(",");this._propName=this._overwriteProps[0];this._priority=c||0},!0);c=F.prototype;F.version=12;F.API=2;c._firstPT=null;c._addTween=function(b,c,d,e,f,h){var i;if(null!=e&&(i="number"===typeof e||"="!==e.charAt(1)?Number(e)-d:Number(e.split("=").join(""))))this._firstPT={_next:this._firstPT,t:b,p:c,s:d,c:i,f:"function"===typeof b[c],n:f||c,r:h},this._firstPT._next&&(this._firstPT._next._prev=
-this._firstPT)};c.setRatio=function(b){for(var c=this._firstPT,d;c;){d=c.c*b+c.s;c.r&&(d=d+(0<d?0.5:-0.5)>>0);if(c.f)c.t[c.p](d);else c.t[c.p]=d;c=c._next}};c._kill=function(b){if(null!=b[this._propName])this._overwriteProps=[];else for(var c=this._overwriteProps.length;-1<--c;)null!=b[this._overwriteProps[c]]&&this._overwriteProps.splice(c,1);for(c=this._firstPT;c;)null!=b[c.n]&&(c._next&&(c._next._prev=c._prev),c._prev?(c._prev._next=c._next,c._prev=null):this._firstPT===c&&(this._firstPT=c._next)),
-c=c._next;return!1};c._roundProps=function(b,c){for(var d=this._firstPT;d;){if(b[this._propName]||null!=d.n&&b[d.n.split(this._propName+"_").join("")])d.r=c;d=d._next}};p._onPluginEvent=function(b,c){var d=c._firstPT,e;if("_onInitAllProps"===b){for(var f,h,i,k;d;){k=d._next;for(f=h;f&&f.pr>d.pr;)f=f._next;(d._prev=f?f._prev:i)?d._prev._next=d:h=d;(d._next=f)?f._prev=d:i=d;d=k}d=c._firstPT=h}for(;d;)d.pg&&"function"===typeof d.t[b]&&d.t[b]()&&(e=!0),d=d._next;return e};F.activate=function(b){for(var c=
-b.length;-1<--c;)b[c].API===F.API&&(p._plugins[(new b[c])._propName]=b[c]);return!0};if(q=y._gsQueue){for(s=0;s<q.length;s++)q[s]();for(c in b)b[c].def||console.log("Warning: TweenLite encountered missing dependency: com.greensock."+c)}})(window);
\ No newline at end of file
+this._time/this._duration,k=this._easeType,q=this._easePower;if(1===k||3===k&&0.5<=b)b=1-b;3===k&&(b*=2);1===q?b*=b:2===q?b*=b*b:3===q?b*=b*b*b:4===q&&(b*=b*b*b*b);this.ratio=1===k?1-b:2===k?b:0.5>this._time/this._duration?b/2:1-b/2}else this.ratio=this._ease.getRatio(this._time/this._duration);if(B!==this._time||f){this._initted||(this._init(),!x&&this._time&&(this.ratio=this._ease.getRatio(this._time/this._duration)));!this._active&&!this._paused&&(this._active=!0);if(0==t&&this.vars.onStart&&(0!==
+this._totalTime||0===this._duration))d||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||c);for(f=this._firstPT;f;){if(f.f)f.t[f.p](f.c*this.ratio+f.s);else f.t[f.p]=f.c*this.ratio+f.s;f=f._next}this._onUpdate&&(d||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||c));this._cycle!=i&&(d||this._gc||this.vars.onRepeat&&this.vars.onRepeat.apply(this.vars.onRepeatScope||this,this.vars.onRepeatParams||c));A&&!this._gc&&(x&&(this._timeline.autoRemoveChildren&&
+this._enabled(!1,!1),this._active=!1),d||this.vars[A]&&this.vars[A].apply(this.vars[A+"Scope"]||this,this.vars[A+"Params"]||c))}};p.to=function(b,d,f){return new p(b,d,f)};p.from=function(b,d,f){f.runBackwards=!0;!1!=f.immediateRender&&(f.immediateRender=!0);return new p(b,d,f)};p.fromTo=function(b,d,f,k){k.startAt=f;f.immediateRender&&(k.immediateRender=!0);return new p(b,d,k)};p.staggerTo=p.allTo=function(b,d,f,k,B,c,t){var k=k||0,x=[],i=b.length,q=f.delay||0,e,u,m;for(u=0;u<i;u++){e={};for(m in f)e[m]=
+f[m];e.delay=q;u===i-1&&B&&(e.onComplete=function(){f.onComplete&&f.onComplete.apply(f.onCompleteScope,f.onCompleteParams);B.apply(t,c)});x[u]=new p(b[u],d,e);q+=k}return x};p.staggerFrom=p.allFrom=function(b,d,f,k,B,c,t){f.runBackwards=!0;!1!=f.immediateRender&&(f.immediateRender=!0);return p.staggerTo(b,d,f,k,B,c,t)};p.staggerFromTo=p.allFromTo=function(b,d,f,k,B,c,t,x){k.startAt=f;f.immediateRender&&(k.immediateRender=!0);return p.staggerTo(b,d,k,B,c,t,x)};p.delayedCall=function(b,d,f,k,B){return new p(d,
+0,{delay:b,onComplete:d,onCompleteParams:f,onCompleteScope:k,onReverseComplete:d,onReverseCompleteParams:f,onReverseCompleteScope:k,immediateRender:!1,useFrames:B,overwrite:0})};p.set=function(b,d){return new p(b,0,d)};p.isTweening=function(b){for(var b=e.getTweensOf(b),d=b.length,f;-1<--d;)if((f=b[d])._active||f._startTime===f.timeline._time&&f.timeline._active)return!0;return!1};var t=function(b,d){for(var f=[],k=0,B=b._first;B;)B instanceof e?f[k++]=B:(d&&(f[k++]=B),f=f.concat(t(B,d)),k=f.length),
+B=B._next;return f},i=p.getAllTweens=function(b){return t(y._rootTimeline,b).concat(t(y._rootFramesTimeline,b))};p.killAll=function(b,d,f,k){null==d&&(d=!0);null==f&&(f=!0);var B=i(!1!=k),c=B.length,k=d&&f&&k,t,x,e;for(e=0;e<c;e++)if(x=B[e],k||x instanceof v||(t=x.target===x.vars.onComplete)&&f||d&&!t)b?x.totalTime(x.totalDuration()):x._enabled(!1,!1)};p.killChildTweensOf=function(b,d){if(null!=b)if(b.jquery)b.each(function(b,f){p.killChildTweensOf(f,d)});else{var f=e._tweenLookup,k=[],B,c;for(c in f)for(B=
+f[c].target.parentNode;B;)B===b&&(k=k.concat(f[c].tweens)),B=B.parentNode;B=k.length;for(f=0;f<B;f++)d&&k[f].totalTime(k[f].totalDuration()),k[f]._enabled(!1,!1)}};p.pauseAll=function(h,d,f){b(!0,h,d,f)};p.resumeAll=function(h,d,f){b(!1,h,d,f)};var b=function(b,d,f,k){void 0==d&&(d=!0);void 0==f&&(f=!0);for(var B=i(k),k=d&&f&&k,c=B.length,t,x;-1<--c;)x=B[c],(k||x instanceof v||(t=x.target===x.vars.onComplete)&&f||d&&!t)&&x.paused(b)};m.progress=function(b){return!arguments.length?this._time/this.duration():
+this.totalTime(this.duration()*b+this._cycle*this._duration,!1)};m.totalProgress=function(b){return!arguments.length?this._totalTime/this.totalDuration():this.totalTime(this.totalDuration()*b,!1)};m.time=function(b,d){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,
+d)};m.totalDuration=function(b){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((b-this._repeat*this._repeatDelay)/(this._repeat+1))};m.repeat=function(b){if(!arguments.length)return this._repeat;this._repeat=b;return this._uncache(!0)};m.repeatDelay=function(b){if(!arguments.length)return this._repeatDelay;this._repeatDelay=
+b;return this._uncache(!0)};m.yoyo=function(b){if(!arguments.length)return this._yoyo;this._yoyo=b;return this};return p},!0);_gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(y,v,e){var p=function(b){v.call(this,b);this._labels={};this.autoRemoveChildren=!0==this.vars.autoRemoveChildren;this.smoothChildTiming=!0==this.vars.smoothChildTiming;this._sortChildren=!0;this._onUpdate=this.vars.onUpdate;for(var b=m.length,h,d;-1<--b;)if(d=this.vars[m[b]])for(h=d.length;-1<
+--h;)"{self}"===d[h]&&(d=this.vars[m[b]]=d.concat(),d[h]=this);this.vars.tweens instanceof Array&&this.insertMultiple(this.vars.tweens,0,this.vars.align||"normal",this.vars.stagger||0)},m=["onStartParams","onUpdateParams","onCompleteParams","onReverseCompleteParams","onRepeatParams"],c=[],t=function(b){var h={},d;for(d in b)h[d]=b[d];return h},i=p.prototype=new v;i.constructor=p;i.kill()._gc=!1;i.to=function(b,h,d,f,k){return this.insert(new e(b,h,d),this._parseTimeOrLabel(k)+(f||0))};i.from=function(b,
+h,d,f,k){return this.insert(e.from(b,h,d),this._parseTimeOrLabel(k)+(f||0))};i.fromTo=function(b,h,d,f,k,B){return this.insert(e.fromTo(b,h,d,f),this._parseTimeOrLabel(B)+(k||0))};i.staggerTo=function(b,h,d,f,k,B,c,i,x){c=new p({onComplete:c,onCompleteParams:i,onCompleteScope:x});f=f||0;for(i=0;i<b.length;i++)null!=d.startAt&&(d.startAt=t(d.startAt)),c.insert(new e(b[i],h,t(d)),i*f);return this.insert(c,this._parseTimeOrLabel(B)+(k||0))};i.staggerFrom=function(b,h,d,f,k,B,c,t,x){null==d.immediateRender&&
+(d.immediateRender=!0);d.runBackwards=!0;return this.staggerTo(b,h,d,f,k,B,c,t,x)};i.staggerFromTo=function(b,h,d,f,k,c,t,i,x,e){f.startAt=d;d.immediateRender&&(f.immediateRender=!0);return this.staggerTo(b,h,f,k,c,t,i,x,e)};i.call=function(b,h,d,f,k){return this.insert(e.delayedCall(0,b,h,d),this._parseTimeOrLabel(k)+(f||0))};i.set=function(b,h,d,f){h.immediateRender=!1;return this.insert(new e(b,0,h),this._parseTimeOrLabel(f)+(d||0))};p.exportRoot=function(b,h){b=b||{};null==b.smoothChildTiming&&
+(b.smoothChildTiming=!0);var d=new p(b),f=d._timeline;null==h&&(h=!0);f._remove(d,!0);d._startTime=0;d._rawPrevTime=d._time=d._totalTime=f._time;for(var k=f._first,c;k;)c=k._next,(!h||!(k instanceof e&&k.target==k.vars.onComplete))&&d.insert(k,k._startTime-k._delay),k=c;f.insert(d,0);return d};i.insert=function(b,h){if(!(b instanceof y)){if(b instanceof Array)return this.insertMultiple(b,h);if("string"===typeof b)return this.addLabel(b,this._parseTimeOrLabel(h||0,!0));if("function"===typeof b)b=e.delayedCall(0,
+b);else throw"ERROR: Cannot insert() "+b+" into the TimelineLite/Max because it is neither a tween, timeline, function, nor a String.";}v.prototype.insert.call(this,b,this._parseTimeOrLabel(h||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};i.remove=function(b){if(b instanceof y)return this._remove(b,!1);if(b instanceof
+Array){for(var h=b.length;-1<--h;)this.remove(b[h]);return this}return"string"===typeof b?this.removeLabel(b):this.kill(null,b)};i.append=function(b,h){return this.insert(b,this.duration()+(h||0))};i.insertMultiple=function(b,h,d,f){for(var d=d||"normal",f=f||0,k,c=this._parseTimeOrLabel(h||0,!0),t=b.length,h=0;h<t;h++){if((k=b[h])instanceof Array)k=new p({tweens:k});this.insert(k,c);"string"===typeof k||"function"===typeof k||("sequence"===d?c=k._startTime+k.totalDuration()/k._timeScale:"start"===
+d&&(k._startTime-=k.delay()));c+=f}return this._uncache(!0)};i.appendMultiple=function(b,c,d,f){return this.insertMultiple(b,this.duration()+(c||0),d,f)};i.addLabel=function(b,c){this._labels[b]=c;return this};i.removeLabel=function(b){delete this._labels[b];return this};i.getLabelTime=function(b){return null!=this._labels[b]?this._labels[b]:-1};i._parseTimeOrLabel=function(b,c){return null==b?this.duration():"string"===typeof b&&isNaN(b)?null==this._labels[b]?c?this._labels[b]=this.duration():0:
+this._labels[b]:Number(b)};i.seek=function(b,c){return this.totalTime(this._parseTimeOrLabel(b,!1),!1!=c)};i.stop=function(){return this.paused(!0)};i.gotoAndPlay=function(b,c){return v.prototype.play.call(this,b,c)};i.gotoAndStop=function(b,c){return this.pause(b,c)};i.render=function(b,h,d){this._gc&&this._enabled(!0,!1);this._active=!this._paused;var f=!this._dirty?this._totalDuration:this.totalDuration(),k=this._time,t=this._startTime,i=this._timeScale,e=this._paused,x,A,q;if(b>=f){this._totalTime=
+this._time=f;if(!this._reversed&&!this._hasPausedChild()&&(x=!0,q="onComplete",0===this._duration&&(0===b||0>this._rawPrevTime)))this._rawPrevTime!==b&&(d=!0);this._rawPrevTime=b;b=f+1E-6}else if(0>=b){this._totalTime=this._time=0;if(0!==k||0===this._duration&&0<this._rawPrevTime)q="onReverseComplete",x=this._reversed;0>b?(this._active=!1,0===this._duration&&0<=this._rawPrevTime&&(d=!0)):this._initted||(d=!0);this._rawPrevTime=b;b=-1E-6}else this._totalTime=this._time=this._rawPrevTime=b;if(this._time!==
+k||d){this._initted||(this._initted=!0);0===k&&this.vars.onStart&&0!==this._time&&(h||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||c));if(this._time>k)for(d=this._first;d;){A=d._next;if(this._paused&&!e)break;else if(d._active||d._startTime<=this._time&&!d._paused&&!d._gc)d._reversed?d.render((!d._dirty?d._totalDuration:d.totalDuration())-(b-d._startTime)*d._timeScale,h,!1):d.render((b-d._startTime)*d._timeScale,h,!1);d=A}else for(d=this._last;d;){A=d._prev;if(this._paused&&
+!e)break;else if(d._active||d._startTime<=k&&!d._paused&&!d._gc)d._reversed?d.render((!d._dirty?d._totalDuration:d.totalDuration())-(b-d._startTime)*d._timeScale,h,!1):d.render((b-d._startTime)*d._timeScale,h,!1);d=A}this._onUpdate&&(h||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||c));if(q&&!this._gc&&(t===this._startTime||i!=this._timeScale))if(0===this._time||f>=this.totalDuration())x&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),h||this.vars[q]&&
+this.vars[q].apply(this.vars[q+"Scope"]||this,this.vars[q+"Params"]||c)}};i._hasPausedChild=function(){for(var b=this._first;b;){if(b._paused||b instanceof p&&b._hasPausedChild())return!0;b=b._next}return!1};i.getChildren=function(b,c,d,f){for(var f=f||-9999999999,k=[],t=this._first,i=0;t;)t._startTime<f||(t instanceof e?!1!=c&&(k[i++]=t):(!1!=d&&(k[i++]=t),!1!=b&&(k=k.concat(t.getChildren(!0,c,d)),i=k.length))),t=t._next;return k};i.getTweensOf=function(b,c){for(var d=e.getTweensOf(b),f=d.length,
+k=[],t=0;-1<--f;)if(d[f].timeline===this||c&&this._contains(d[f]))k[t++]=d[f];return k};i._contains=function(b){for(b=b.timeline;b;){if(b===this)return!0;b=b.timeline}return!1};i.shiftChildren=function(b,c,d){for(var d=d||0,f=this._first;f;)f._startTime>=d&&(f._startTime+=b),f=f._next;if(c)for(var k in this._labels)this._labels[k]>=d&&(this._labels[k]+=b);return this._uncache(!0)};i._kill=function(b,c){if(null==b&&null==c)return this._enabled(!1,!1);for(var d=null==c?this.getChildren(!0,!0,!1):this.getTweensOf(c),
+f=d.length,k=!1;-1<--f;)d[f]._kill(b,c)&&(k=!0);return k};i.clear=function(b){var c=this.getChildren(!1,!0,!0),d=c.length;for(this._time=this._totalTime=0;-1<--d;)c[d]._enabled(!1,!1);!1!=b&&(this._labels={});return this._uncache(!0)};i.invalidate=function(){for(var b=this._first;b;)b.invalidate(),b=b._next;return this};i._enabled=function(b,c){if(b==this._gc)for(var d=this._first;d;)d._enabled(b,!0),d=d._next;return v.prototype._enabled.call(this,b,c)};i.progress=function(b){return!arguments.length?
+this._time/this.duration():this.totalTime(this.duration()*b,!1)};i.duration=function(b){if(!arguments.length)return this._dirty&&this.totalDuration(),this._duration;0!==this.duration()&&0!==b&&this.timeScale(this._duration/b);return this};i.totalDuration=function(b){if(!arguments.length){if(this._dirty){for(var c=0,d=this._first,f=-999999999999,k;d;)k=d._next,d._startTime<f&&this._sortChildren?this.insert(d,d._startTime-d._delay):f=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=k;this._duration=this._totalDuration=c;this._dirty=!1}return this._totalDuration}0!==this.totalDuration()&&0!==b&&this.timeScale(this._totalDuration/b);return this};i.usesFrames=function(){for(var b=this._timeline;b._timeline;)b=b._timeline;return b===y._rootFramesTimeline};i.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(y,v,e){var p=function(c){y.call(this,c);this._repeat=this.vars.repeat||0;this._repeatDelay=this.vars.repeatDelay||0;this._cycle=0;this._yoyo=!0==this.vars.yoyo;this._dirty=!0},m=[],c=new e(null,null,1,0),e=p.prototype=new y;e.constructor=p;e.kill()._gc=!1;p.version=12;e.invalidate=function(){this._yoyo=!0==this.vars.yoyo;this._repeat=this.vars.repeat||0;this._repeatDelay=this.vars.repeatDelay||
+0;this._uncache(!0);return y.prototype.invalidate.call(this)};e.addCallback=function(c,i,b,h){return this.insert(v.delayedCall(0,c,b,h),i)};e.removeCallback=function(c,i){if(null==i)this._kill(null,c);else for(var b=this.getTweensOf(c,!1),h=b.length,d=this._parseTimeOrLabel(i,!1);-1<--h;)b[h]._startTime===d&&b[h]._enabled(!1,!1);return this};e.tweenTo=function(t,i){var i=i||{},b={ease:c,overwrite:2,useFrames:this.usesFrames(),immediateRender:!1},h,d;for(h in i)b[h]=i[h];b.time=this._parseTimeOrLabel(t,
+!1);d=new v(this,Math.abs(Number(b.time)-this._time)/this._timeScale||0.001,b);b.onStart=function(){d.target.paused(!0);d.vars.time!=d.target.time()&&d.duration(Math.abs(d.vars.time-d.target.time())/d.target._timeScale);i.onStart&&i.onStart.apply(i.onStartScope||d,i.onStartParams||m)};return d};e.tweenFromTo=function(c,i,b){b=b||{};b.startAt={time:this._parseTimeOrLabel(c,!1)};c=this.tweenTo(i,b);return c.duration(Math.abs(c.vars.time-c.vars.startAt.time)/this._timeScale||0.001)};e.render=function(c,
+i,b){this._gc&&this._enabled(!0,!1);this._active=!this._paused;var h=!this._dirty?this._totalDuration:this.totalDuration(),d=this._time,f=this._totalTime,k=this._startTime,B=this._timeScale,e=this._rawPrevTime,p=this._paused,x=this._cycle,A,q;if(c>=h){this._locked||(this._totalTime=h,this._cycle=this._repeat);if(!this._reversed&&!this._hasPausedChild()&&(A=!0,q="onComplete",0===this._duration&&(0===c||0>this._rawPrevTime)))this._rawPrevTime!==c&&(b=!0);this._rawPrevTime=c;this._yoyo&&0!==(this._cycle&
+1)?(this._time=0,c=-1E-6):(this._time=this._duration,c=this._duration+1E-6)}else if(0>=c){this._locked||(this._totalTime=this._cycle=0);this._time=0;if(0!==d||0===this._duration&&0<this._rawPrevTime)q="onReverseComplete",A=this._reversed;0>c?(this._active=!1,0===this._duration&&0<=this._rawPrevTime&&(b=!0)):this._initted||(b=!0);this._rawPrevTime=c;c=-1E-6}else this._time=this._rawPrevTime=c,this._locked||(this._totalTime=c,0!==this._repeat&&(c=this._duration+this._repeatDelay,this._cycle=this._totalTime/
+c>>0,0!==this._cycle&&this._cycle===this._totalTime/c&&this._cycle--,this._time=this._totalTime-this._cycle*c,this._yoyo&&0!=(this._cycle&1)&&(this._time=this._duration-this._time),this._time>this._duration?(this._time=this._duration,c=this._duration+1E-6):0>this._time?(this._time=0,c=-1E-6):c=this._time));if(this._cycle!==x&&!this._locked){var L=this._yoyo&&0!==(x&1),u=L===(this._yoyo&&0!==(this._cycle&1)),v=this._totalTime,y=this._cycle,F=this._rawPrevTime,C=this._time;this._totalTime=x*this._duration;
+this._cycle<x?L=!L:this._totalTime+=this._duration;this._time=d;this._rawPrevTime=e;this._cycle=x;this._locked=!0;d=L?0:this._duration;this.render(d,i,!1);i||this._gc||this.vars.onRepeat&&this.vars.onRepeat.apply(this.vars.onRepeatScope||this,this.vars.onRepeatParams||m);u&&(d=L?this._duration+1E-6:-1E-6,this.render(d,!0,!1));this._time=C;this._totalTime=v;this._cycle=y;this._rawPrevTime=F;this._locked=!1}if(this._time!==d||b){this._initted||(this._initted=!0);0===f&&this.vars.onStart&&0!==this._totalTime&&
+(i||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||m));if(this._time>d)for(b=this._first;b;){f=b._next;if(this._paused&&!p)break;else if(b._active||b._startTime<=this._time&&!b._paused&&!b._gc)b._reversed?b.render((!b._dirty?b._totalDuration:b.totalDuration())-(c-b._startTime)*b._timeScale,i,!1):b.render((c-b._startTime)*b._timeScale,i,!1);b=f}else for(b=this._last;b;){f=b._prev;if(this._paused&&!p)break;else if(b._active||b._startTime<=d&&!b._paused&&!b._gc)b._reversed?
+b.render((!b._dirty?b._totalDuration:b.totalDuration())-(c-b._startTime)*b._timeScale,i,!1):b.render((c-b._startTime)*b._timeScale,i,!1);b=f}this._onUpdate&&(i||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||m));if(q&&!this._locked&&!this._gc&&(k===this._startTime||B!=this._timeScale))if(0===this._time||h>=this.totalDuration())A&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),i||this.vars[q]&&this.vars[q].apply(this.vars[q+"Scope"]||this,this.vars[q+
+"Params"]||m)}};e.getActive=function(c,i,b){null==c&&(c=!0);null==i&&(i=!0);null==b&&(b=!1);var h=[],c=this.getChildren(c,i,b),i=0,b=c.length,d,f;for(d=0;d<b;d++)if(f=c[d],!f._paused&&f._timeline._time>=f._startTime&&f._timeline._time<f._startTime+f._totalDuration/f._timeScale){var k;a:{for(k=f._timeline;k;){if(k._paused){k=!0;break a}k=k._timeline}k=!1}k||(h[i++]=f)}return h};e.getLabelAfter=function(c){!c&&0!==c&&(c=this._time);var i=this.getLabelsArray(),b=i.length,h;for(h=0;h<b;h++)if(i[h].time>
+c)return i[h].name;return null};e.getLabelBefore=function(c){null==c&&(c=this._time);for(var i=this.getLabelsArray(),b=i.length;-1<--b;)if(i[b].time<c)return i[b].name;return null};e.getLabelsArray=function(){var c=[],i=0,b;for(b in this._labels)c[i++]={time:this._labels[b],name:b};c.sort(function(b,d){return b.time-d.time});return c};e.progress=function(c){return!arguments.length?this._time/this.duration():this.totalTime(this.duration()*c+this._cycle*this._duration,!1)};e.totalProgress=function(c){return!arguments.length?
+this._totalTime/this.totalDuration():this.totalTime(this.totalDuration()*c,!1)};e.totalDuration=function(c){return!arguments.length?(this._dirty&&(y.prototype.totalDuration.call(this),this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration):-1==this._repeat?this:this.duration((c-this._repeat*this._repeatDelay)/(this._repeat+1))};e.time=function(c,i){if(!arguments.length)return this._time;this._dirty&&this.totalDuration();
+c>this._duration&&(c=this._duration);this._yoyo&&0!==(this._cycle&1)?c=this._duration-c+this._cycle*(this._duration+this._repeatDelay):0!=this._repeat&&(c+=this._cycle*(this._duration+this._repeatDelay));return this.totalTime(c,i)};e.repeat=function(c){if(!arguments.length)return this._repeat;this._repeat=c;return this._uncache(!0)};e.repeatDelay=function(c){if(!arguments.length)return this._repeatDelay;this._repeatDelay=c;return this._uncache(!0)};e.yoyo=function(c){if(!arguments.length)return this._yoyo;
+this._yoyo=c;return this};e.currentLabel=function(c){return!arguments.length?this.getLabelBefore(this._time+1E-8):this.seek(c,!0)};return p},!0);_gsDefine("plugins.BezierPlugin",["plugins.TweenPlugin"],function(y){var v=function(){y.call(this,"bezier",-1);this._overwriteProps.pop();this._func={};this._round={}},e=v.prototype=new y("bezier",1),p=180/Math.PI,m=[],c=[],t=[],i={},b=function(b,c,d,i){this.a=b;this.b=c;this.c=d;this.d=i;this.da=i-b;this.ca=d-b;this.ba=c-b},h=v.bezierThrough=function(f,
+k,B,h,e,x){var A={},q=[],p,u,e="string"===typeof e?","+e+",":",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,";null==k&&(k=1);for(u in f[0])q.push(u);m.length=c.length=t.length=0;for(p=q.length;-1<--p;){u=q[p];i[u]=-1!==e.indexOf(","+u+",");var v=A,y=u,F;F=f;var C=u,n=i[u],D=x,H=[],G=void 0,z=void 0,I=void 0,J=void 0,g=void 0,G=void 0;if(D){F=[D].concat(F);for(z=F.length;-1<--z;)if("string"===
+typeof(G=F[z][C]))"="===G.charAt(1)&&(F[z][C]=D[C]+Number(G.charAt(0)+G.substr(2)))}G=F.length-2;if(0>G)H[0]=new b(F[0][C],0,0,F[-1>G?0:1][C]);else{for(z=0;z<G;z++)I=F[z][C],J=F[z+1][C],H[z]=new b(I,0,0,J),n&&(g=F[z+2][C],m[z]=(m[z]||0)+(J-I)*(J-I),c[z]=(c[z]||0)+(g-J)*(g-J));H[z]=new b(F[z][C],0,0,F[z+1][C])}F=H;v[y]=F}for(p=m.length;-1<--p;)m[p]=Math.sqrt(m[p]),c[p]=Math.sqrt(c[p]);if(!h){for(p=q.length;-1<--p;)if(i[u]){a=A[q[p]];l=a.length-1;for(j=0;j<l;j++)r=a[j+1].da/c[j]+a[j].da/m[j],t[j]=(t[j]||
+0)+r*r}for(p=t.length;-1<--p;)t[p]=Math.sqrt(t[p])}for(p=q.length;-1<--p;){u=q[p];f=A[u];e=k;x=B;v=h;u=i[u];y=f.length-1;F=0;for(var C=f[0].a,w=g=J=D=G=J=I=G=z=I=H=D=n=void 0,n=0;n<y;n++)z=f[F],D=z.a,H=z.d,I=f[F+1].d,u?(J=m[n],g=c[n],w=0.25*(g+J)*e/(v?0.5:t[n]||0.5),G=H-(H-D)*(v?0.5*e:w/J),I=H+(I-H)*(v?0.5*e:w/g),J=H-(G+(I-G)*(3*J/(J+g)+0.5)/4)):(G=H-0.5*(H-D)*e,I=H+0.5*(I-H)*e,J=H-(G+I)/2),G+=J,I+=J,z.c=G,z.b=0!=n?C:C=z.a+0.6*(z.c-z.a),z.da=H-D,z.ca=G-D,z.ba=C-D,x?(D=d(D,C,G,H),f.splice(F,1,D[0],
+D[1],D[2],D[3]),F+=4):F++,C=I;z=f[F];z.b=C;z.c=C+0.4*(z.d-C);z.da=z.d-z.a;z.ca=z.c-z.a;z.ba=C-z.a;x&&(D=d(z.a,C,z.c,z.d),f.splice(F,1,D[0],D[1],D[2],D[3]))}return A},d=v.cubicToQuadratic=function(b,c,d,i){var e={a:b},x={},h={},p={c:i},m=(b+c)/2,u=(c+d)/2,d=(d+i)/2,c=(m+u)/2,u=(u+d)/2,t=(u-c)/8;e.b=m+(b-m)/4;x.b=c+t;e.c=x.a=(e.b+x.b)/2;x.c=h.a=(c+u)/2;h.b=u-t;p.b=d+(i-d)/4;h.c=p.a=(h.b+p.b)/2;return[e,x,h,p]};v.quadraticToCubic=function(c,d,e){return new b(c,(2*d+c)/3,(2*d+e)/3,e)};e.constructor=v;
+v.API=2;e._onInitTween=function(c,d,e){this._target=c;d instanceof Array&&(d={values:d});this._props=[];this._timeRes=null==d.timeResolution?6:parseInt(d.timeResolution);var i=d.values||[],p={},x=i[0],e=d.autoRotate||e.vars.orientToBezier,A,q,m;this._autoRotate=e?e instanceof Array?e:[["x","y","rotation",!0===e?0:Number(e)||0]]:null;for(A in x)this._props.push(A);for(x=this._props.length;-1<--x;)A=this._props[x],this._overwriteProps.push(A),e=this._func[A]="function"===typeof c[A],p[A]=!e?parseFloat(c[A]):
+c[A.indexOf("set")||"function"!==typeof c["get"+A.substr(3)]?A:"get"+A.substr(3)](),m||p[A]!==i[0][A]&&(m=p);if("cubic"!==d.type&&"quadratic"!==d.type&&"soft"!==d.type)p=h(i,isNaN(d.curviness)?1:d.curviness,!1,"thruBasic"===d.type,d.correlate,m);else{e=(e=d.type)||"soft";d={};m="cubic"===e?3:2;var e="soft"===e,x=[],u,t,v,y,C,n,D,H,G;e&&p&&(i=[p].concat(i));if(null==i||i.length<m+1)throw"invalid Bezier data";for(t in i[0])x.push(t);for(n=x.length;-1<--n;){t=x[n];d[t]=C=[];G=0;H=i.length;for(D=0;D<
+H;D++)u=null==p?i[D][t]:"string"===typeof(v=i[D][t])&&"="===v.charAt(1)?p[t]+Number(v.charAt(0)+v.substr(2)):Number(v),e&&1<D&&D<H-1&&(C[G++]=(u+C[G-2])/2),C[G++]=u;H=G-m+1;for(D=G=0;D<H;D+=m)u=C[D],t=C[D+1],v=C[D+2],y=2===m?0:C[D+3],C[G++]=v=3===m?new b(u,t,v,y):new b(u,(2*t+u)/3,(2*t+v)/3,v);C.length=G}p=d}this._beziers=p;this._segCount=this._beziers[A].length;if(this._timeRes){x=this._beziers;A=this._timeRes;A=A>>0||6;p=[];t=[];i=v=0;d=A-1;m=[];e=[];for(q in x){u=x[q];C=p;n=A;D=1/n;H=u.length;
+for(var z=void 0,I=void 0,J=y=G=I=void 0,g=z=void 0,w=void 0,w=J=void 0;-1<--H;){J=u[H];I=J.a;G=J.d-I;y=J.c-I;J=J.b-I;I=0;for(g=1;g<=n;g++)z=D*g,w=1-z,z=I-(I=(z*z*G+3*w*(z*y+w*J))*z),w=H*n+g-1,C[w]=(C[w]||0)+z*z}}x=p.length;for(q=0;q<x;q++)v+=Math.sqrt(p[q]),u=q%A,e[u]=v,u===d&&(i+=v,u=q/A>>0,m[u]=e,t[u]=i,v=0,e=[]);this._length=i;this._lengths=t;this._segments=m;this._l1=this._li=this._s1=this._si=0;this._l2=this._lengths[0];this._curSeg=this._segments[0];this._s2=this._curSeg[0];this._prec=1/this._curSeg.length}if(e=
+this._autoRotate){e[0]instanceof Array||(this._autoRotate=e=[e]);for(x=e.length;-1<--x;)for(q=0;3>q;q++)A=e[x][q],this._func[A]="function"===typeof c[A]?c[A.indexOf("set")||"function"!==typeof c["get"+A.substr(3)]?A:"get"+A.substr(3)]:!1}return!0};e.setRatio=function(b){var d=this._segCount,c=this._func,e=this._target,i,h,m,q,t;if(this._timeRes){i=this._lengths;q=this._curSeg;b*=this._length;h=this._li;if(b>this._l2&&h<d-1){for(d-=1;h<d&&(this._l2=i[++h])<=b;);this._l1=i[h-1];this._li=h;this._curSeg=
+q=this._segments[h];this._s2=q[this._s1=this._si=0]}else if(b<this._l1&&0<h){for(;0<h&&(this._l1=i[--h])>=b;);0===h&&b<this._l1?this._l1=0:h++;this._l2=i[h];this._li=h;this._curSeg=q=this._segments[h];this._s1=q[(this._si=q.length-1)-1]||0;this._s2=q[this._si]}i=h;b-=this._l1;h=this._si;if(b>this._s2&&h<q.length-1){for(d=q.length-1;h<d&&(this._s2=q[++h])<=b;);this._s1=q[h-1];this._si=h}else if(b<this._s1&&0<h){for(;0<h&&(this._s1=q[--h])>=b;);0===h&&b<this._s1?this._s1=0:h++;this._s2=q[h];this._si=
+h}q=(h+(b-this._s1)/(this._s2-this._s1))*this._prec}else i=0>b?0:1<=b?d-1:d*b>>0,q=(b-i*(1/d))*d;d=1-q;for(h=this._props.length;-1<--h;)if(b=this._props[h],m=this._beziers[b][i],t=(q*q*m.da+3*d*(q*m.ca+d*m.ba))*q+m.a,this._round[b]&&(t=t+(0<t?0.5:-0.5)>>0),c[b])e[b](t);else e[b]=t;if(this._autoRotate){var d=this._autoRotate,u,v,y,F,C;for(h=d.length;-1<--h;)b=d[h][2],F=d[h][3]||0,C=!0==d[h][4]?1:p,m=this._beziers[d[h][0]][i],t=this._beziers[d[h][1]][i],u=m.a+(m.b-m.a)*q,v=m.b+(m.c-m.b)*q,u+=(v-u)*
+q,v+=(m.c+(m.d-m.c)*q-v)*q,m=t.a+(t.b-t.a)*q,y=t.b+(t.c-t.b)*q,m+=(y-m)*q,y+=(t.c+(t.d-t.c)*q-y)*q,t=Math.atan2(y-m,v-u)*C+F,c[b]?c[b].call(e,t):e[b]=t}};e._roundProps=function(b,d){for(var c=this._overwriteProps,e=c.length;-1<--e;)if(b[c[e]]||b.bezier||b.bezierThrough)this._round[c[e]]=d};e._kill=function(b){var d=this._props,c,e;for(c in _beziers)if(c in b){delete this._beziers[c];delete this._func[c];for(e=d.length;-1<--e;)d[e]===c&&d.splice(e,1)}return y.prototype._kill.call(this,b)};y.activate([v]);
+return v},!0);_gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(y){var v=function(){y.call(this,"css");this._overwriteProps.pop()},e=v.prototype=new y("css");e.constructor=v;v.API=2;v.suffixMap={top:"px",right:"px",bottom:"px",left:"px",width:"px",height:"px",fontSize:"px",padding:"px",margin:"px"};var p=/[^\d\-\.]/g,m=/(\d|\-|\+|=|#|\.)*/g,c=/(\d|\.)+/g,t=/opacity *= *([^)]*)/,i=/opacity:([^;]*)/,b=/([A-Z])/g,h=/-([a-z])/gi,d=function(b,g){return g.toUpperCase()},f=/(Left|Right|Width)/i,
+k=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,B=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,N=Math.PI/180,O=180/Math.PI,x={},A=document,q=A.createElement("div"),L=navigator.userAgent,u,P,M,F,C,n=L.indexOf("Android"),D=A.createElement("div");M=-1!==L.indexOf("Safari")&&-1===L.indexOf("Chrome")&&(-1===n||3<Number(L.substr(n+8,1)));/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(L);F=parseFloat(RegExp.$1);D.innerHTML="<a style='top:1px;opacity:.55;'>a</a>";C=(L=D.getElementsByTagName("a")[0])?/^0.55/.test(L.style.opacity):
+!1;var H=function(b){if(!b||""===b)return R.black;if(R[b])return R[b];if("number"===typeof b)return[b>>16,b>>8&255,b&255];if("#"===b.charAt(0)){if(4===b.length)var g=b.charAt(1),d=b.charAt(2),b=b.charAt(3),b="#"+g+g+d+d+b+b;b=parseInt(b.substr(1),16);return[b>>16,b>>8&255,b&255]}return b.match(c)||R.transparent},G=function(b){return t.test("string"===typeof b?b:(b.currentStyle?b.currentStyle.filter:b.style.filter)||"")?parseFloat(RegExp.$1)/100:1},z=A.defaultView?A.defaultView.getComputedStyle:function(){},
+I=function(g,d,c,s){return!C&&"opacity"===d?G(g):!s&&g.style[d]?g.style[d]:(c=c||z(g,null))?(g=c.getPropertyValue(d.replace(b,"-$1").toLowerCase()))||c.length?g:c[d]:g.currentStyle?(c=g.currentStyle,s=c[d],!s&&"backgroundPosition"===d?c[d+"X"]+" "+c[d+"Y"]:s):null},J=function(b,g){var c={},s;if(g=g||z(b,null))if(s=g.length)for(;-1<--s;)c[g[s].replace(h,d)]=g.getPropertyValue(g[s]);else for(s in g)c[s]=g[s];else if(g=b.currentStyle||b.style)for(s in g)c[s.replace(h,d)]=g[s];C||(c.opacity=G(b));s=S(b,
+g,!1);c.rotation=s.rotation*O;c.skewX=s.skewX*O;c.scaleX=s.scaleX;c.scaleY=s.scaleY;c.x=s.x;c.y=s.y;null!=c.filters&&delete c.filters;return c},g=function(b,g,d,c){var s={},w,n;for(n in g)if("cssText"!==n&&"length"!==n&&isNaN(n)&&b[n]!=(w=g[n]))if(w!==K&&("number"===typeof w||"string"===typeof w))s[n]=(""===w||"auto"===w)&&"string"===typeof b[n]&&""!==b[n].replace(p,"")?0:w,c&&c.props.push(n);if(d)for(n in d)"className"!==n&&(s[n]=d[n]);return s},w={scaleX:1,scaleY:1,x:1,y:1,rotation:1,shortRotation:1,
+skewX:1,skewY:1,scale:1},s="",E="",K=function(b,g){var g=g||q,d=g.style,c,w;if(void 0!==d[b])return b;b=b.substr(0,1).toUpperCase()+b.substr(1);c=["O","Moz","ms","Ms","Webkit"];for(w=5;-1<--w&&void 0===d[c[w]+b];);return 0<=w?(E=3===w?"ms":c[w],s="-"+E.toLowerCase()+"-",E+b):null}("transform"),W=s+"transform",S=function(b,g,d){var c=b._gsTransform,s;K?s=I(b,W,g,!0):b.currentStyle&&(s=(s=b.currentStyle.filter.match(k))&&4===s.length?s[0].substr(4)+","+Number(s[2].substr(4))+","+Number(s[1].substr(4))+
+","+s[3].substr(4)+","+(c?c.x:0)+","+(c?c.y:0):null);var g=(s||"").replace(/[^\d\-\.e,]/g,"").split(","),w=(s=6<=g.length)?Number(g[0]):1,n=s?Number(g[1]):0,f=s?Number(g[2]):0,e=s?Number(g[3]):1,c=d?c||{skewY:0}:{skewY:0},h=0>c.scaleX;c.x=s?Number(g[4]):0;c.y=s?Number(g[5]):0;c.scaleX=Math.sqrt(w*w+n*n);c.scaleY=Math.sqrt(e*e+f*f);c.rotation=w||n?Math.atan2(n,w):c.rotation||0;c.skewX=f||e?Math.atan2(f,e)+c.rotation:c.skewX||0;Math.abs(c.skewX)>Math.PI/2&&Math.abs(c.skewX)<1.5*Math.PI&&(h?(c.scaleX*=
+-1,c.skewX+=0>=c.rotation?Math.PI:-Math.PI,c.rotation+=0>=c.rotation?Math.PI:-Math.PI):(c.scaleY*=-1,c.skewX+=0>=c.skewX?Math.PI:-Math.PI));if(1E-6>c.rotation&&-1E-6<c.rotation&&(w||n))c.rotation=0;if(1E-6>c.skewX&&-1E-6<c.skewX&&(n||f))c.skewX=0;d&&(b._gsTransform=c);return c},X={width:["Left","Right"],height:["Top","Bottom"]},Y=["marginLeft","marginRight","marginTop","marginBottom"],Q=function(b,g,c,d,s){if("px"===d||!d)return c;if("auto"===d||!c)return 0;var w=f.test(g),n=b,e=q.style,h=0>c;h&&
+(c=-c);e.cssText="border-style:solid; border-width:0; position:absolute; line-height:0;";"%"===d||"em"===d||!n.appendChild?(n=b.parentNode||A.body,e[w?"width":"height"]=c+d):e[w?"borderLeftWidth":"borderTopWidth"]=c+d;n.appendChild(q);w=parseFloat(q[w?"offsetWidth":"offsetHeight"]);n.removeChild(q);0===w&&!s&&(w=Q(b,g,c,d,!0));return h?-w:w},V=function(b,g){if(null==b||""===b||"auto"===b||"auto auto"===b)b="0 0";var g=g||{},c=-1!==b.indexOf("left")?"0%":-1!==b.indexOf("right")?"100%":b.split(" ")[0],
+d=-1!==b.indexOf("top")?"0%":-1!==b.indexOf("bottom")?"100%":b.split(" ")[1];null==d?d="0":"center"===d&&(d="50%");"center"===c&&(c="50%");g.oxp=-1!==c.indexOf("%");g.oyp=-1!==d.indexOf("%");g.oxr="="===c.charAt(1);g.oyr="="===d.charAt(1);g.ox=parseFloat(c.replace(p,""));g.oy=parseFloat(d.replace(p,""));return g},T=function(b,g){return null==b?g:"string"===typeof b&&1===b.indexOf("=")?Number(b.split("=").join(""))+g:Number(b)},U=function(b,g){var c=-1===b.indexOf("rad")?N:1,d=1===b.indexOf("="),b=
+Number(b.replace(p,""))*c;return d?b+g:b},R={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]};e._onInitTween=function(b,c,d){if(!b.nodeType)return!1;this._target=b;this._tween=d;this._classData=
+this._transform=null;u=c.autoRound;var s=this._style=b.style,w=z(b,""),n,f;if(P&&""===s.zIndex&&(f=I(b,"zIndex",w),"auto"===f||""===f))s.zIndex=0;"string"===typeof c?(n=s.cssText,d=J(b,w),s.cssText=n+";"+c,f=g(d,J(b)),!C&&i.test(c)&&(f.opacity=parseFloat(RegExp.$1)),c=f,s.cssText=n):c.className&&(n=b.className,this._classData={b:n,e:"="!==c.className.charAt(1)?c.className:"+"===c.className.charAt(0)?b.className+" "+c.className.substr(2):b.className.split(c.className.substr(2)).join(""),props:[]},
+d._duration?(d=J(b,w),b.className=this._classData.e,c=g(d,J(b),c,this._classData),b.className=n):c={});this._parseVars(c,b,w,c.suffixMap||v.suffixMap);return!0};e._parseVars=function(b,g,c,d){var s=this._style,n,f,e,h,i,k,E;for(n in b)if(f=b[n],"transform"===n||n===K)this._parseTransform(g,f,c,d);else if(w[n]||"transformOrigin"===n)this._parseTransform(g,b,c,d);else{if("alpha"===n||"autoAlpha"===n)n="opacity";else if("margin"===n||"padding"===n){f=(f+"").split(" ");i=f.length;e={};e[n+"Top"]=f[0];
+e[n+"Right"]=1<i?f[1]:f[0];e[n+"Bottom"]=4===i?f[2]:f[0];e[n+"Left"]=4===i?f[3]:2===i?f[1]:f[0];this._parseVars(e,g,c,d);continue}else if("backgroundPosition"===n||"backgroundSize"===n){e=V(f);E=V(h=I(g,n,c));this._firstPT=e={_next:this._firstPT,t:s,p:n,b:h,f:!1,n:"css_"+n,type:3,s:E.ox,c:e.oxr?e.ox:e.ox-E.ox,ys:E.oy,yc:e.oyr?e.oy:e.oy-E.oy,sfx:e.oxp?"%":"px",ysfx:e.oyp?"%":"px",r:!e.oxp&&!1!==b.autoRound};e.e=e.s+e.c+e.sfx+" "+(e.ys+e.yc)+e.ysfx;continue}else if("border"===n){f=(f+"").split(" ");
+this._parseVars({borderWidth:f[0],borderStyle:f[1]||"none",borderColor:f[2]||"#000000"},g,c,d);continue}else if("bezier"===n){this._parseBezier(f,g,c,d);continue}else if("autoRound"===n)continue;h=I(g,n,c);h=null!=h?h+"":"";this._firstPT=e={_next:this._firstPT,t:s,p:n,b:h,f:!1,n:"css_"+n,sfx:"",r:!1,type:0};"opacity"===n&&null!=b.autoAlpha&&("1"===h&&"hidden"===I(g,"visibility",c)&&(h=e.b="0"),this._firstPT=e._prev={_next:e,t:s,p:"visibility",f:!1,n:"css_visibility",r:!1,type:-1,b:0!==Number(h)?"visible":
+"hidden",i:"visible",e:0===Number(f)?"hidden":"visible"},this._overwriteProps.push("css_visibility"));i="string"===typeof f;if("color"===n||"fill"===n||"stroke"===n||-1!==n.indexOf("Color")||i&&!f.indexOf("rgb(")){if(i=H(h),f=H(f),e.e=e.i=(3<f.length?"rgba(":"rgb(")+f.join(",")+")",e.b=(3<i.length?"rgba(":"rgb(")+i.join(",")+")",e.s=Number(i[0]),e.c=Number(f[0])-e.s,e.gs=Number(i[1]),e.gc=Number(f[1])-e.gs,e.bs=Number(i[2]),e.bc=Number(f[2])-e.bs,e.type=1,3<i.length||3<f.length)C?(e.as=4>i.length?
+1:Number(i[3]),e.ac=(4>f.length?1:Number(f[3]))-e.as,e.type=2):(0==f[3]&&(e.e=e.i="transparent",e.type=-1),0==i[3]&&(e.b="transparent"))}else{k=h.replace(m,"");if(""===h||"auto"===h)if("width"===n||"height"===n){var t=n;k=g;E=c;h=parseFloat("width"===t?k.offsetWidth:k.offsetHeight);var t=X[t],q=t.length;for(E=E||z(k,null);-1<--q;)h-=parseFloat(I(k,"padding"+t[q],E,!0))||0,h-=parseFloat(I(k,"border"+t[q]+"Width",E,!0))||0;E=h;k="px"}else E="opacity"!==n?0:1,k="";else E=-1===h.indexOf(" ")?parseFloat(h.replace(p,
+"")):NaN;i?(i="="===f.charAt(1),h=f.replace(m,""),f=-1===f.indexOf(" ")?parseFloat(f.replace(p,"")):NaN):(i=!1,h="");""===h&&(h=d[n]||k);e.e=f||0===f?(i?f+E:f)+h:b[n];if(k!==h&&""!==h&&(f||0===f))if(E||0===E)if(E=Q(g,n,E,k),"%"===h?(E/=Q(g,n,100,"%")/100,100<E&&(E=100)):"em"===h?E/=Q(g,n,1,"em"):(f=Q(g,n,f,h),h="px"),i&&(f||0===f))e.e=f+E+h;if((E||0===E)&&(f||0===f)&&(e.c=i?f:f-E))if(e.s=E,e.sfx=h,"opacity"===n)C||(e.type=4,e.p="filter",e.b="alpha(opacity="+100*e.s+")",e.e="alpha(opacity="+100*(e.s+
+e.c)+")",e.dup=null!=b.autoAlpha,this._style.zoom=1);else{if(!1!==u&&("px"===h||"zIndex"===n))e.r=!0}else e.type=-1,e.i="display"===n&&"none"===e.e?e.b:e.e,e.s=e.c=0}this._overwriteProps.push("css_"+n);e._next&&(e._next._prev=e)}};e._parseTransform=function(b,g,c){if(!this._transform){var d=this._transform=S(b,c,!0),n=this._style,s,e,f;if("object"===typeof g){s={scaleX:T(null!=g.scaleX?g.scaleX:g.scale,d.scaleX),scaleY:T(null!=g.scaleY?g.scaleY:g.scale,d.scaleY),x:T(g.x,d.x),y:T(g.y,d.y)};null!=g.shortRotation?
+(s.rotation="number"===typeof g.shortRotation?g.shortRotation*N:U(g.shortRotation,d.rotation),e=(s.rotation-d.rotation)%(2*Math.PI),e!==e%Math.PI&&(e+=Math.PI*(0>e?2:-2)),s.rotation=d.rotation+e):s.rotation=null==g.rotation?d.rotation:"number"===typeof g.rotation?g.rotation*N:U(g.rotation,d.rotation);s.skewX=null==g.skewX?d.skewX:"number"===typeof g.skewX?g.skewX*N:U(g.skewX,d.skewX);s.skewY=null==g.skewY?d.skewY:"number"===typeof g.skewY?g.skewY*N:U(g.skewY,d.skewY);if(e=s.skewY-d.skewY)s.skewX+=
+e,s.rotation+=e;1E-6>s.skewY&&-1E-6<s.skewY&&(s.skewY=0);1E-6>s.skewX&&-1E-6<s.skewX&&(s.skewX=0);1E-6>s.rotation&&-1E-6<s.rotation&&(s.rotation=0);if(null!=(g=g.transformOrigin))K?(f=K+"Origin",this._firstPT=g={_next:this._firstPT,t:n,p:f,s:0,c:0,n:f,f:!1,r:!1,b:n[f],e:g,i:g,type:-1,sfx:""},g._next&&(g._next._prev=g)):V(g,d)}else if("string"===typeof g&&K)e=n[K],n[K]=g,s=S(b,null,!1),n[K]=e;else return;if(K){if(M&&(P=!0,""===n.WebkitBackfaceVisibility&&(n.WebkitBackfaceVisibility="hidden"),""===
+n.zIndex&&(e=I(b,"zIndex",c),"auto"===e||""===e)))n.zIndex=0}else n.zoom=1;for(f in w)if((d[f]!==s[f]||null!=x[f])&&"shortRotation"!==f&&"scale"!==f)this._firstPT=g={_next:this._firstPT,t:d,p:f,s:d[f],c:s[f]-d[f],n:f,f:!1,r:!1,b:d[f],e:s[f],type:0,sfx:0},g._next&&(g._next._prev=g),this._overwriteProps.push("css_"+f)}};e._parseBezier=function(b,g,c,d){if(window.com.greensock.plugins.BezierPlugin){b instanceof Array&&(b={values:b});var s=b.values||[],n=s.length,e=[],f=this._bezier={_pt:[]},w=f._proxy=
+{},h=0,i=0,k={},E=n-1,p=x,t=f._plugin=new window.com.greensock.plugins.BezierPlugin,K,m,q,u,v;for(K=0;K<n;K++){u={};this._transform=null;q=this._firstPT;this._parseVars(x=s[K],g,c,d);m=this._firstPT;if(0===K){for(v=this._transform;m!==q;)w[m.p]=m.s,f._pt[i++]=k[m.p]=m,1===m.type||2===m.type?(w[m.p+"_g"]=m.gs,w[m.p+"_b"]=m.bs,2===m.type&&(w[m.p+"_a"]=m.as)):3===m.type&&(w[m.p+"_y"]=m.ys),m=m._next;m=this._firstPT}else this._firstPT=q,q._prev&&(q._prev._next=null),q=q._prev=null;for(;m!==q;)k[m.p]&&
+(u[m.p]=m.s+m.c,K===E&&(k[m.p].e=m.e),1===m.type||2===m.type?(u[m.p+"_g"]=m.gs+m.gc,u[m.p+"_b"]=m.bs+m.bc,2===m.type&&(u[m.p+"_a"]=m.as+m.ac)):3===m.type&&(u[m.p+"_y"]=m.ys+m.yc),0===K&&(m.c=m.ac=m.gc=m.bc=m.yc=0)),m=m._next;e[h++]=u}this._transform=v;x=p;b.values=e;0===b.autoRotate&&(b.autoRotate=!0);b.autoRotate&&!(b.autoRotate instanceof Array)&&(K=!0==b.autoRotate?0:Number(b.autoRotate)*Math.PI/180,b.autoRotate=null!=e[0].left?[["left","top","rotation",K,!0]]:null!=e[0].x?[["x","y","rotation",
+K,!0]]:!1);if((f._autoRotate=b.autoRotate)&&!v)this._transform=S(g,c,!0);t._onInitTween(w,b,this._tween);b.values=s}else console.log("Error: BezierPlugin not loaded.")};e.setRatio=function(b){var g=this._firstPT,c=this._bezier,d=1E-6,s,n;if(c){c._plugin.setRatio(b);var e=c._pt,f=c._proxy;for(n=e.length;-1<--n;)g=e[n],g.s=f[g.p],1===g.type||2===g.type?(g.gs=f[g.p+"_g"],g.bs=f[g.p+"_b"],2===g.type&&(g.as=f[g.p+"_a"])):3===g.type&&(g.ys=f[g.p+"_y"]);c._autoRotate&&(this._transform.rotation=f.rotation)}if(1===
+b&&(this._tween._time===this._tween._duration||0===this._tween._time))for(;g;)g.t[g.p]=g.e,4===g.type&&1===g.s+g.c&&(this._style.removeAttribute("filter"),I(this._target,"filter")&&(g.t[g.p]=g.e)),g=g._next;else if(b||!(this._tween._time===this._tween._duration||0===this._tween._time))for(;g;)s=g.c*b+g.s,g.r?s=0<s?s+0.5>>0:s-0.5>>0:s<d&&s>-d&&(s=0),g.type?1===g.type?g.t[g.p]="rgb("+(s>>0)+", "+(g.gs+b*g.gc>>0)+", "+(g.bs+b*g.bc>>0)+")":2===g.type?g.t[g.p]="rgba("+(s>>0)+", "+(g.gs+b*g.gc>>0)+", "+
+(g.bs+b*g.bc>>0)+", "+(g.as+b*g.ac)+")":-1===g.type?g.t[g.p]=g.i:3===g.type?(c=g.ys+b*g.yc,g.r&&(c=0<c?c+0.5>>0:c-0.5>>0),g.t[g.p]=s+g.sfx+" "+c+g.ysfx):(g.dup&&(g.t.filter=g.t.filter||"alpha(opacity=100)"),g.t.filter=-1===g.t.filter.indexOf("opacity")?g.t.filter+(" alpha(opacity="+(100*s>>0)+")"):g.t.filter.replace(t,"opacity="+(100*s>>0))):g.t[g.p]=s+g.sfx,g=g._next;else for(;g;)g.t[g.p]=g.b,4===g.type&&1===g.s&&(this._style.removeAttribute("filter"),I(this._target,"filter")&&(g.t[g.p]=g.b)),g=
+g._next;if(this._transform)if(g=this._transform,K&&!g.rotation&&!g.skewX)this._style[K]=(g.x||g.y?"translate("+g.x+"px,"+g.y+"px) ":"")+(1!==g.scaleX||1!==g.scaleY?"scale("+g.scaleX+","+g.scaleY+")":"")||"translate(0px,0px)";else{var e=K?g.rotation:-g.rotation,w=K?e-g.skewX:e+g.skewX,c=Math.cos(e)*g.scaleX,e=Math.sin(e)*g.scaleX,f=Math.sin(w)*-g.scaleY,w=Math.cos(w)*g.scaleY,h;c<d&&c>-d&&(c=0);e<d&&e>-d&&(e=0);f<d&&f>-d&&(f=0);w<d&&w>-d&&(w=0);if(K)this._style[K]="matrix("+c+","+e+","+f+","+w+","+
+g.x+","+g.y+")";else if(h=this._target.currentStyle){d=e;e=-f;f=-d;d=h.filter;this._style.filter="";n=this._target.offsetWidth;s=this._target.offsetHeight;var i="absolute"!==h.position,k="progid:DXImageTransform.Microsoft.Matrix(M11="+c+", M12="+e+", M21="+f+", M22="+w,E=g.x,p=g.y,q,u;null!=g.ox&&(q=(g.oxp?0.01*n*g.ox:g.ox)-n/2,u=(g.oyp?0.01*s*g.oy:g.oy)-s/2,E=q-(q*c+u*e)+g.x,p=u-(q*f+u*w)+g.y);if(i)q=n/2,u=s/2,k+=", Dx="+(q-(q*c+u*e)+E)+", Dy="+(u-(q*f+u*w)+p)+")";else{var v=8>F?1:-1;q=g.ieOffsetX||
+0;u=g.ieOffsetY||0;g.ieOffsetX=Math.round((n-((0>c?-c:c)*n+(0>e?-e:e)*s))/2+E);g.ieOffsetY=Math.round((s-((0>w?-w:w)*s+(0>f?-f:f)*n))/2+p);for(n=0;4>n;n++)E=Y[n],s=h[E],s=-1!==s.indexOf("px")?parseFloat(s):Q(this._target,E,parseFloat(s),s.replace(m,""))||0,p=s!==g[E]?2>n?-g.ieOffsetX:-g.ieOffsetY:2>n?q-g.ieOffsetX:u-g.ieOffsetY,this._style[E]=(g[E]=Math.round(s-p*(0===n||2===n?1:v)))+"px";k+=", sizingMethod='auto expand')"}this._style.filter=-1!==d.indexOf("DXImageTransform.Microsoft.Matrix(")?d.replace(B,
+k):k+" "+d;if(0===b||1===b)if(1===c&&0===e&&0===f&&1===w&&(!i||-1!==k.indexOf("Dx=0, Dy=0")))(!t.test(d)||100===parseFloat(RegExp.$1))&&this._style.removeAttribute("filter")}}if(this._classData)if(g=this._classData,1===b&&(this._tween._time===this._tween._duration||0===this._tween._time)){for(n=g.props.length;-1<--n;)this._style[g.props[n]]="";this._target.className=g.e}else this._target.className!==g.b&&(this._target.className=g.b)};e._kill=function(g){var b=g,c;if(g.autoAlpha||g.alpha){b={};for(c in g)b[c]=
+g[c];b.opacity=1;b.autoAlpha&&(b.visibility=1)}return y.prototype._kill.call(this,b)};y.activate([v]);return v},!0);_gsDefine("plugins.RoundPropsPlugin",["plugins.TweenPlugin"],function(y){var v=function(){y.call(this,"roundProps",-1);this._overwriteProps.length=0},e=v.prototype=new y("roundProps",-1);e.constructor=v;v.API=2;e._onInitTween=function(e,m,c){this._tween=c;return!0};e._onInitAllProps=function(){for(var e=this._tween,m=e.vars.roundProps instanceof Array?e.vars.roundProps:e.vars.roundProps.split(","),
+c=m.length,t={},i=e._propLookup.roundProps,b,h,d;-1<--c;)t[m[c]]=1;for(c=m.length;-1<--c;){b=m[c];for(h=e._firstPT;h;)d=h._next,h.pg?h.t._roundProps(t,!0):h.n===b&&(this._add(h.t,b,h.s,h.c),d&&(d._prev=h._prev),h._prev?h._prev._next=d:_tween._firstPT===h&&(e._firstPT=d),h._next=h._prev=null,e._propLookup[b]=i),h=d}return!1};e._add=function(e,m,c,t){this._addTween(e,m,c,c+t,m,!0);this._overwriteProps.push(m)};y.activate([v]);return v},!0);_gsDefine("easing.Back",["easing.Ease"],function(y){var v=window.com.greensock._class,
+e=function(b,c){var d=v("easing."+b,function(){},!0),e=d.prototype=new y;e.constructor=d;e.getRatio=c;return d},p=function(b,c){var d=v("easing."+b,function(b){this._p1=b||0===b?b:1.70158;this._p2=1.525*this._p1},!0),e=d.prototype=new y;e.constructor=d;e.getRatio=c;e.config=function(b){return new d(b)};return d},m=p("BackOut",function(b){return(b-=1)*b*((this._p1+1)*b+this._p1)+1}),c=p("BackIn",function(b){return b*b*((this._p1+1)*b-this._p1)}),p=p("BackInOut",function(b){return 1>(b*=2)?0.5*b*b*
+((this._p2+1)*b-this._p2):0.5*((b-=2)*b*((this._p2+1)*b+this._p2)+2)}),t=e("BounceOut",function(b){return b<1/2.75?7.5625*b*b:b<2/2.75?7.5625*(b-=1.5/2.75)*b+0.75:b<2.5/2.75?7.5625*(b-=2.25/2.75)*b+0.9375:7.5625*(b-=2.625/2.75)*b+0.984375}),i=e("BounceIn",function(b){return(b=1-b)<1/2.75?1-7.5625*b*b:b<2/2.75?1-(7.5625*(b-=1.5/2.75)*b+0.75):b<2.5/2.75?1-(7.5625*(b-=2.25/2.75)*b+0.9375):1-(7.5625*(b-=2.625/2.75)*b+0.984375)}),b=e("BounceInOut",function(b){var c=0.5>b,b=c?1-2*b:2*b-1,b=b<1/2.75?7.5625*
+b*b:b<2/2.75?7.5625*(b-=1.5/2.75)*b+0.75:b<2.5/2.75?7.5625*(b-=2.25/2.75)*b+0.9375:7.5625*(b-=2.625/2.75)*b+0.984375;return c?0.5*(1-b):0.5*b+0.5}),h=e("CircOut",function(b){return Math.sqrt(1-(b-=1)*b)}),d=e("CircIn",function(b){return-(Math.sqrt(1-b*b)-1)}),f=e("CircInOut",function(b){return 1>(b*=2)?-0.5*(Math.sqrt(1-b*b)-1):0.5*(Math.sqrt(1-(b-=2)*b)+1)}),k=2*Math.PI,B=function(b,c,d){var e=v("easing."+b,function(b,c){this._p1=b||1;this._p2=c||d;this._p3=this._p2/k*(Math.asin(1/this._p1)||0)},
+!0),b=e.prototype=new y;b.constructor=e;b.getRatio=c;b.config=function(b,c){return new e(b,c)};return e},N=B("ElasticOut",function(b){return this._p1*Math.pow(2,-10*b)*Math.sin((b-this._p3)*k/this._p2)+1},0.3),O=B("ElasticIn",function(b){return-(this._p1*Math.pow(2,10*(b-=1))*Math.sin((b-this._p3)*k/this._p2))},0.3),B=B("ElasticInOut",function(b){return 1>(b*=2)?-0.5*this._p1*Math.pow(2,10*(b-=1))*Math.sin((b-this._p3)*k/this._p2):0.5*this._p1*Math.pow(2,-10*(b-=1))*Math.sin((b-this._p3)*k/this._p2)+
+1},0.45),x=e("ExpoOut",function(b){return 1-Math.pow(2,-10*b)}),A=e("ExpoIn",function(b){return Math.pow(2,10*(b-1))-0.001}),q=e("ExpoInOut",function(b){return 1>(b*=2)?0.5*Math.pow(2,10*(b-1)):0.5*(2-Math.pow(2,-10*(b-1)))}),L=Math.PI/2,u=e("SineOut",function(b){return Math.sin(b*L)}),P=e("SineIn",function(b){return-Math.cos(b*L)+1}),e=e("SineInOut",function(b){return-0.5*(Math.cos(Math.PI*b)-1)}),M=v("easing.SlowMo",function(b,c,d){null==b?b=0.7:1<b&&(b=1);this._p=1!=b?c||0===c?c:0.7:0;this._p1=
+(1-b)/2;this._p2=b;this._p3=this._p1+this._p2;this._calcEnd=!0===d},!0),F=M.prototype=new y;F.constructor=M;F.getRatio=function(b){var c=b+(0.5-b)*this._p;return b<this._p1?this._calcEnd?1-(b=1-b/this._p1)*b:c-(b=1-b/this._p1)*b*b*b*c:b>this._p3?this._calcEnd?1-(b=(b-this._p3)/this._p1)*b:c+(b-c)*(b=(b-this._p3)/this._p1)*b*b*b:this._calcEnd?1:c};M.ease=new M(0.7,0.7);F.config=M.config=function(b,c,d){return new M(b,c,d)};var C=v("easing.SteppedEase",function(b){b=b||1;this._p1=1/b;this._p2=b+1},
+!0),F=C.prototype=new y;F.constructor=C;F.getRatio=function(b){0>b?b=0:1<=b&&(b=0.999999999);return(this._p2*b>>0)*this._p1};F.config=C.config=function(b){return new C(b)};v("easing.Bounce",{easeOut:new t,easeIn:new i,easeInOut:new b},!0);v("easing.Circ",{easeOut:new h,easeIn:new d,easeInOut:new f},!0);v("easing.Elastic",{easeOut:new N,easeIn:new O,easeInOut:new B},!0);v("easing.Expo",{easeOut:new x,easeIn:new A,easeInOut:new q},!0);v("easing.Sine",{easeOut:new u,easeIn:new P,easeInOut:new e},!0);
+return{easeOut:new m,easeIn:new c,easeInOut:new p}},!0)});
+(function(y){var v=function(b){var b=b.split("."),c=y,d;for(d=0;d<b.length;d++)c[b[d]]=c=c[b[d]]||{};return c},e=v("com.greensock"),p,m,c,t,i,b={},h=function(g,c,d,e){this.sc=b[g]?b[g].sc:[];b[g]=this;this.gsClass=null;this.def=d;var f=c||[],i=[];this.check=function(c){for(var w=f.length,k=0,m;-1<--w;)(m=b[f[w]]||new h(f[w])).gsClass?i[w]=m.gsClass:(k++,c&&m.sc.push(this));if(0===k&&d){var c=("com.greensock."+g).split("."),w=c.pop(),n=v(c.join("."))[w]=this.gsClass=d.apply(d,i);e&&((y.GreenSockGlobals||
+y)[w]=n,"function"===typeof define&&define.amd?define((y.GreenSockAMDPath?y.GreenSockAMDPath+"/":"")+g.split(".").join("/"),[],function(){return n}):"undefined"!==typeof module&&module.exports&&(module.exports=n));for(w=0;w<this.sc.length;w++)this.sc[w].check(!1)}};this.check(!0)},d=e._class=function(b,c,d){new h(b,[],function(){return c},d);return c};y._gsDefine=function(b,c,d,e){return new h(b,c,d,e)};var f=[0,0,1,1],k=[],B=d("easing.Ease",function(b,c,d,e){this._func=b;this._type=d||0;this._power=
+e||0;this._params=c?f.concat(c):f},!0);c=B.prototype;c._calcEnd=!1;c.getRatio=function(b){if(this._func)return this._params[0]=b,this._func.apply(null,this._params);var c=this._type,d=this._power,e=1===c?1-b:2===c?b:0.5>b?2*b:2*(1-b);1===d?e*=e:2===d?e*=e*e:3===d?e*=e*e*e:4===d&&(e*=e*e*e*e);return 1===c?1-e:2===c?e:0.5>b?e/2:1-e/2};p=["Linear","Quad","Cubic","Quart","Quint"];for(m=p.length;-1<--m;)c=d("easing."+p[m],function(){},!0),t=d("easing.Power"+m,function(){},!0),c.easeOut=t.easeOut=new B(null,
+null,1,m),c.easeIn=t.easeIn=new B(null,null,2,m),c.easeInOut=t.easeInOut=new B(null,null,3,m);d("easing.Strong",e.easing.Power4,!0);e.easing.Linear.easeNone=e.easing.Linear.easeIn;var N=d("events.EventDispatcher",function(b){this._listeners={};this._eventTarget=b||this});c=N.prototype;c.addEventListener=function(b,c,d,e,f){var f=f||0,h=this._listeners[b],i=0,k;null==h&&(this._listeners[b]=h=[]);for(k=h.length;-1<--k;)b=h[k],b.c===c?h.splice(k,1):0===i&&b.pr<f&&(i=k+1);h.splice(i,0,{c:c,s:d,up:e,pr:f})};
+c.removeEventListener=function(b,c){var d=this._listeners[b];if(d)for(var e=d.length;-1<--e;)if(d[e].c===c){d.splice(e,1);break}};c.dispatchEvent=function(b){var c=this._listeners[b];if(c)for(var d=c.length,e,f=this._eventTarget;-1<--d;)e=c[d],e.up?e.c.call(e.s||f,{type:b,target:f}):e.c.call(e.s||f)};var O=y.requestAnimationFrame,x=y.cancelAnimationFrame,A=Date.now||function(){return(new Date).getTime()};p=["ms","moz","webkit","o"];for(m=p.length;-1<--m&&!O;)O=y[p[m]+"RequestAnimationFrame"],x=y[p[m]+
+"CancelAnimationFrame"]||y[p[m]+"CancelRequestAnimationFrame"];d("Ticker",function(b,c){var d=this,e=A(),f=!1!==c&&O,h,i,k,m,n,p=function(){null!=k&&(!f||!x?y.clearTimeout(k):x(k),k=null)},q=function(b){d.time=(A()-e)/1E3;if(!h||d.time>=n||b)d.frame++,n=d.time>n?d.time+m-(d.time-n):d.time+m-0.001,n<d.time+0.001&&(n=d.time+0.001),d.dispatchEvent("tick");!0!==b&&(k=i(q))};N.call(d);this.time=this.frame=0;this.tick=function(){q(!0)};this.fps=function(b){if(!arguments.length)return h;h=b;m=1/(h||60);
+n=this.time+m;i=0===h?function(){}:!f||!O?function(b){return y.setTimeout(b,1E3*(n-d.time)+1>>0||1)}:O;p();k=i(q)};this.useRAF=function(b){if(!arguments.length)return f;p();f=b;d.fps(h)};d.fps(b);y.setTimeout(function(){f&&!k&&d.useRAF(!1)},1E3)});c=e.Ticker.prototype=new e.events.EventDispatcher;c.constructor=e.Ticker;var q=d("core.Animation",function(b,c){this.vars=c||{};this._duration=this._totalDuration=b||0;this._delay=Number(this.vars.delay)||0;this._timeScale=1;this._active=!0==this.vars.immediateRender;
+this.data=this.vars.data;this._reversed=!0==this.vars.reversed;if(H){i||(L.tick(),i=!0);var d=this.vars.useFrames?D:H;d.insert(this,d._time);this.vars.paused&&this.paused(!0)}}),L=q.ticker=new e.Ticker;c=q.prototype;c._dirty=c._gc=c._initted=c._paused=!1;c._totalTime=c._time=0;c._rawPrevTime=-1;c._next=c._last=c._onUpdate=c._timeline=c.timeline=null;c._paused=!1;c.play=function(b,c){arguments.length&&this.seek(b,c);this.reversed(!1);return this.paused(!1)};c.pause=function(b,c){arguments.length&&
+this.seek(b,c);return this.paused(!0)};c.resume=function(b,c){arguments.length&&this.seek(b,c);return this.paused(!1)};c.seek=function(b,c){return this.totalTime(Number(b),!1!=c)};c.restart=function(b,c){this.reversed(!1);this.paused(!1);return this.totalTime(b?-this._delay:0,!1!=c)};c.reverse=function(b,c){arguments.length&&this.seek(b||this.totalDuration(),c);this.reversed(!0);return this.paused(!1)};c.render=function(){};c.invalidate=function(){return this};c._enabled=function(b,c){this._gc=!b;
+this._active=b&&!this._paused&&0<this._totalTime&&this._totalTime<this._totalDuration;!0!=c&&(b&&null==this.timeline?this._timeline.insert(this,this._startTime-this._delay):!b&&null!=this.timeline&&this._timeline._remove(this,!0));return!1};c._kill=function(){return this._enabled(!1,!1)};c.kill=function(b,c){this._kill(b,c);return this};c._uncache=function(b){for(b=b?this:this.timeline;b;)b._dirty=!0,b=b.timeline;return this};c.eventCallback=function(b,c,d,e){if(null==b)return null;if("on"===b.substr(0,
+2)){if(1===arguments.length)return this.vars[b];if(null==c)delete this.vars[b];else if(this.vars[b]=c,this.vars[b+"Params"]=d,this.vars[b+"Scope"]=e,d)for(var f=d.length;-1<--f;)"{self}"===d[f]&&(d=this.vars[b+"Params"]=d.concat(),d[f]=this);"onUpdate"===b&&(this._onUpdate=c)}return this};c.delay=function(b){if(!arguments.length)return this._delay;this._timeline.smoothChildTiming&&this.startTime(this._startTime+b-this._delay);this._delay=b;return this};c.duration=function(b){if(!arguments.length)return this._dirty=
+!1,this._duration;this._duration=this._totalDuration=b;this._uncache(!0);this._timeline.smoothChildTiming&&this._active&&0!=b&&this.totalTime(this._totalTime*(b/this._duration),!0);return this};c.totalDuration=function(b){this._dirty=!1;return!arguments.length?this._totalDuration:this.duration(b)};c.time=function(b,c){if(!arguments.length)return this._time;this._dirty&&this.totalDuration();b>this._duration&&(b=this._duration);return this.totalTime(b,c)};c.totalTime=function(b,c){if(!arguments.length)return this._totalTime;
+if(this._timeline){0>b&&(b+=this.totalDuration());if(this._timeline.smoothChildTiming&&(this._dirty&&this.totalDuration(),b>this._totalDuration&&(b=this._totalDuration),this._startTime=(this._paused?this._pauseTime:this._timeline._time)-(!this._reversed?b:this._totalDuration-b)/this._timeScale,this._timeline._dirty||this._uncache(!1),!this._timeline._active))for(var d=this._timeline;d._timeline;)d.totalTime(d._totalTime,!0),d=d._timeline;this._gc&&this._enabled(!0,!1);this._totalTime!=b&&this.render(b,
+c,!1)}return this};c.startTime=function(b){if(!arguments.length)return this._startTime;b!=this._startTime&&(this._startTime=b,this.timeline&&this.timeline._sortChildren&&this.timeline.insert(this,b-this._delay));return this};c.timeScale=function(b){if(!arguments.length)return this._timeScale;b=b||1E-6;if(this._timeline&&this._timeline.smoothChildTiming){var c=this._pauseTime||0==this._pauseTime?this._pauseTime:this._timeline._totalTime;this._startTime=c-(c-this._startTime)*this._timeScale/b}this._timeScale=
+b;return this._uncache(!1)};c.reversed=function(b){if(!arguments.length)return this._reversed;b!=this._reversed&&(this._reversed=b,this.totalTime(this._totalTime,!0));return this};c.paused=function(b){if(!arguments.length)return this._paused;b!=this._paused&&this._timeline&&(!b&&this._timeline.smoothChildTiming&&(this._startTime+=this._timeline.rawTime()-this._pauseTime,this._uncache(!1)),this._pauseTime=b?this._timeline.rawTime():null,this._paused=b,this._active=!this._paused&&0<this._totalTime&&
+this._totalTime<this._totalDuration);this._gc&&(b||this._enabled(!0,!1));return this};e=d("core.SimpleTimeline",function(b){q.call(this,0,b);this.autoRemoveChildren=this.smoothChildTiming=!0});c=e.prototype=new q;c.constructor=e;c.kill()._gc=!1;c._first=c._last=null;c._sortChildren=!1;c.insert=function(b,c){b._startTime=Number(c||0)+b._delay;b._paused&&this!==b._timeline&&(b._pauseTime=b._startTime+(this.rawTime()-b._startTime)/b._timeScale);b.timeline&&b.timeline._remove(b,!0);b.timeline=b._timeline=
+this;b._gc&&b._enabled(!0,!0);var d=this._last;if(this._sortChildren)for(var e=b._startTime;d&&d._startTime>e;)d=d._prev;d?(b._next=d._next,d._next=b):(b._next=this._first,this._first=b);b._next?b._next._prev=b:this._last=b;b._prev=d;this._timeline&&this._uncache(!0);return this};c._remove=function(b,c){b.timeline===this&&(c||b._enabled(!1,!0),b.timeline=null,b._prev?b._prev._next=b._next:this._first===b&&(this._first=b._next),b._next?b._next._prev=b._prev:this._last===b&&(this._last=b._prev),this._timeline&&
+this._uncache(!0));return this};c.render=function(b,c){var d=this._first,e;for(this._totalTime=this._time=this._rawPrevTime=b;d;){e=d._next;if(d._active||b>=d._startTime&&!d._paused)d._reversed?d.render((!d._dirty?d._totalDuration:d.totalDuration())-(b-d._startTime)*d._timeScale,c,!1):d.render((b-d._startTime)*d._timeScale,c,!1);d=e}};c.rawTime=function(){return this._totalTime};var u=d("TweenLite",function(b,c,d){q.call(this,c,d);if(null==b)throw"Cannot tween an undefined reference.";this.target=
+b;this._overwrite=null==this.vars.overwrite?n[u.defaultOverwrite]:"number"===typeof this.vars.overwrite?this.vars.overwrite>>0:n[this.vars.overwrite];if((b instanceof Array||b.jquery)&&"object"===typeof b[0]){this._targets=b.slice(0);this._propLookup=[];this._siblings=[];for(b=0;b<this._targets.length;b++)d=this._targets[b],d.jquery?(this._targets.splice(b--,1),this._targets=this._targets.concat(d.constructor.makeArray(d))):(this._siblings[b]=G(d,this,!1),1===this._overwrite&&1<this._siblings[b].length&&
+z(d,this,null,1,this._siblings[b]))}else this._propLookup={},this._siblings=G(b,this,!1),1===this._overwrite&&1<this._siblings.length&&z(b,this,null,1,this._siblings);(this.vars.immediateRender||0===c&&0===this._delay&&!1!=this.vars.immediateRender)&&this.render(-this._delay,!1,!0)},!0);c=u.prototype=new q;c.constructor=u;c.kill()._gc=!1;c.ratio=0;c._firstPT=c._targets=c._overwrittenProps=null;c._notifyPluginsOfEnabled=!1;u.version=12;u.defaultEase=c._ease=new B(null,null,1,1);u.defaultOverwrite=
+"auto";u.ticker=L;var P=u._plugins={},M=u._tweenLookup={},F=0,C={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},n={none:0,all:1,
+auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},D=q._rootFramesTimeline=new e,H=q._rootTimeline=new e;H._startTime=L.time;D._startTime=L.frame;H._active=D._active=!0;q._updateRoot=function(){H.render((L.time-H._startTime)*H._timeScale,!1,!1);D.render((L.frame-D._startTime)*D._timeScale,!1,!1);if(!(L.frame%120)){var b,c,d;for(d in M){c=M[d].tweens;for(b=c.length;-1<--b;)c[b]._gc&&c.splice(b,1);0===c.length&&delete M[d]}}};L.addEventListener("tick",q._updateRoot);var G=function(b,
+c,d){var e=b._gsTweenID,f;if(!M[e||(b._gsTweenID=e="t"+F++)])M[e]={target:b,tweens:[]};if(c&&(b=M[e].tweens,b[f=b.length]=c,d))for(;-1<--f;)b[f]===c&&b.splice(f,1);return M[e].tweens},z=function(b,c,d,e,f){var h,i,k;if(1===e||4<=e){b=f.length;for(h=0;h<b;h++)if((k=f[h])!==c)k._gc||k._enabled(!1,!1)&&(i=!0);else if(5===e)break;return i}var m=c._startTime+1E-10,n=[],p=0,q;for(h=f.length;-1<--h;)if(!((k=f[h])===c||k._gc||k._paused))k._timeline!==c._timeline?(q=q||I(c,0),0===I(k,q)&&(n[p++]=k)):k._startTime<=
+m&&k._startTime+k.totalDuration()/k._timeScale+1E-10>m&&((0===c._duration||!k._initted)&&2E-10>=m-k._startTime||(n[p++]=k));for(h=p;-1<--h;)if(k=n[h],2===e&&k._kill(d,b)&&(i=!0),2!==e||!k._firstPT&&k._initted)k._enabled(!1,!1)&&(i=!0);return i},I=function(b,c){for(var d=b._timeline,e=d._timeScale,f=b._startTime;d._timeline;){f+=d._startTime;e*=d._timeScale;if(d._paused)return-100;d=d._timeline}f/=e;return f>c?f-c:!b._initted&&2E-10>f-c?1E-10:(f+=b.totalDuration()/b._timeScale/e)>c?0:f-c-1E-10};c._init=
+function(){this.vars.startAt&&(this.vars.startAt.overwrite=0,this.vars.startAt.immediateRender=!0,u.to(this.target,0,this.vars.startAt));var b,c;this._ease=this.vars.ease instanceof B?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 B(this.vars.ease,this.vars.easeParams):u.defaultEase;this._easeType=this._ease._type;this._easePower=this._ease._power;this._firstPT=null;if(this._targets)for(b=
+this._targets.length;-1<--b;){if(this._initProps(this._targets[b],this._propLookup[b]={},this._siblings[b],this._overwrittenProps?this._overwrittenProps[b]:null))c=!0}else c=this._initProps(this.target,this._propLookup,this._siblings,this._overwrittenProps);c&&u._onPluginEvent("_onInitAllProps",this);this._overwrittenProps&&null==this._firstPT&&"function"!==typeof this.target&&this._enabled(!1,!1);if(this.vars.runBackwards)for(b=this._firstPT;b;)b.s+=b.c,b.c=-b.c,b=b._next;this._onUpdate=this.vars.onUpdate;
+this._initted=!0};c._initProps=function(b,c,d,e){var f,h,k,i,m,n;if(null==b)return!1;for(f in this.vars){if(C[f]){if("onStartParams"===f||"onUpdateParams"===f||"onCompleteParams"===f||"onReverseCompleteParams"===f||"onRepeatParams"===f)if(m=this.vars[f])for(h=m.length;-1<--h;)"{self}"===m[h]&&(m=this.vars[f]=m.concat(),m[h]=this)}else if(P[f]&&(i=new P[f])._onInitTween(b,this.vars[f],this)){this._firstPT=n={_next:this._firstPT,t:i,p:"setRatio",s:0,c:1,f:!0,n:f,pg:!0,pr:i._priority};for(h=i._overwriteProps.length;-1<
+--h;)c[i._overwriteProps[h]]=this._firstPT;if(i._priority||i._onInitAllProps)k=!0;if(i._onDisable||i._onEnable)this._notifyPluginsOfEnabled=!0}else this._firstPT=c[f]=n={_next:this._firstPT,t:b,p:f,f:"function"===typeof b[f],n:f,pg:!1,pr:0},n.s=!n.f?parseFloat(b[f]):b[f.indexOf("set")||"function"!==typeof b["get"+f.substr(3)]?f:"get"+f.substr(3)](),h=this.vars[f],n.c="number"===typeof h?h-n.s:"string"===typeof h&&"="===h.charAt(1)?parseInt(h.charAt(0)+"1")*Number(h.substr(2)):Number(h)||0;n&&n._next&&
+(n._next._prev=n)}return e&&this._kill(e,b)?this._initProps(b,c,d,e):1<this._overwrite&&this._firstPT&&1<d.length&&z(b,this,c,this._overwrite,d)?(this._kill(c,b),this._initProps(b,c,d,e)):k};c.render=function(b,c,d){var e=this._time,f,h;if(b>=this._duration){if(this._totalTime=this._time=this._duration,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(f=!0,h="onComplete"),0===this._duration){if(0===b||0>this._rawPrevTime)this._rawPrevTime!==b&&(d=!0);this._rawPrevTime=b}}else if(0>=
+b){this._totalTime=this._time=0;this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0;if(0!==e||0===this._duration&&0<this._rawPrevTime)h="onReverseComplete",f=this._reversed;0>b?(this._active=!1,0===this._duration&&(0<=this._rawPrevTime&&(d=!0),this._rawPrevTime=b)):this._initted||(d=!0)}else if(this._totalTime=this._time=b,this._easeType){var i=b/this._duration,m=this._easeType,n=this._easePower;if(1===m||3===m&&0.5<=i)i=1-i;3===m&&(i*=2);1===n?i*=i:2===n?i*=i*i:3===n?i*=i*i*i:4===n&&(i*=i*i*
+i*i);this.ratio=1===m?1-i:2===m?i:0.5>b/this._duration?i/2:1-i/2}else this.ratio=this._ease.getRatio(b/this._duration);if(this._time!==e||d){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===e&&this.vars.onStart&&(0!==this._time||0===this._duration))c||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||k);for(b=this._firstPT;b;){if(b.f)b.t[b.p](b.c*this.ratio+b.s);
+else b.t[b.p]=b.c*this.ratio+b.s;b=b._next}this._onUpdate&&(c||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||k));h&&!this._gc&&(f&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),c||this.vars[h]&&this.vars[h].apply(this.vars[h+"Scope"]||this,this.vars[h+"Params"]||k))}};c._kill=function(b,c){"all"===b&&(b=null);if(null==b&&(null==c||c==this.target))return this._enabled(!1,!1);var c=c||this._targets||this.target,d,e,f,h,i,k,m;if((c instanceof
+Array||c.jquery)&&"object"===typeof c[0])for(d=c.length;-1<--d;)this._kill(b,c[d])&&(i=!0);else{if(this._targets)for(d=this._targets.length;-1<--d;){if(c===this._targets[d]){h=this._propLookup[d]||{};this._overwrittenProps=this._overwrittenProps||[];e=this._overwrittenProps[d]=b?this._overwrittenProps[d]||{}:"all";break}}else{if(c!==this.target)return!1;h=this._propLookup;e=this._overwrittenProps=b?this._overwrittenProps||{}:"all"}if(h)for(f in k=b||h,m=b!=e&&"all"!=e&&b!=h&&(null==b||!0!=b._tempKill),
+k){if(d=h[f]){d.pg&&d.t._kill(k)&&(i=!0);if(!d.pg||0===d.t._overwriteProps.length)d._prev?d._prev._next=d._next:d===this._firstPT&&(this._firstPT=d._next),d._next&&(d._next._prev=d._prev),d._next=d._prev=null;delete h[f]}m&&(e[f]=1)}}return i};c.invalidate=function(){this._notifyPluginsOfEnabled&&u._onPluginEvent("_onDisable",this);this._onUpdate=this._overwrittenProps=this._firstPT=null;this._initted=this._active=this._notifyPluginsOfEnabled=!1;this._propLookup=this._targets?{}:[];return this};c._enabled=
+function(b,c){if(b&&this._gc)if(this._targets)for(var d=this._targets.length;-1<--d;)this._siblings[d]=G(this._targets[d],this,!0);else this._siblings=G(this.target,this,!0);q.prototype._enabled.call(this,b,c);return this._notifyPluginsOfEnabled&&this._firstPT?u._onPluginEvent(b?"_onEnable":"_onDisable",this):!1};u.to=function(b,c,d){return new u(b,c,d)};u.from=function(b,c,d){d.runBackwards=!0;!1!=d.immediateRender&&(d.immediateRender=!0);return new u(b,c,d)};u.fromTo=function(b,c,d,e){e.startAt=
+d;d.immediateRender&&(e.immediateRender=!0);return new u(b,c,e)};u.delayedCall=function(b,c,d,e,f){return new u(c,0,{delay:b,onComplete:c,onCompleteParams:d,onCompleteScope:e,onReverseComplete:c,onReverseCompleteParams:d,onReverseCompleteScope:e,immediateRender:!1,useFrames:f,overwrite:0})};u.set=function(b,c){return new u(b,0,c)};u.killTweensOf=u.killDelayedCallsTo=function(b,c){for(var d=u.getTweensOf(b),e=d.length;-1<--e;)d[e]._kill(c,b)};u.getTweensOf=function(b){if(null!=b){var c,d,e;if((b instanceof
+Array||b.jquery)&&"object"===typeof b[0]){c=b.length;for(d=[];-1<--c;)d=d.concat(u.getTweensOf(b[c]));for(c=d.length;-1<--c;){e=d[c];for(b=c;-1<--b;)e===d[b]&&d.splice(c,1)}}else{d=G(b).concat();for(c=d.length;-1<--c;)d[c]._gc&&d.splice(c,1)}return d}};var J=d("plugins.TweenPlugin",function(b,c){this._overwriteProps=(b||"").split(",");this._propName=this._overwriteProps[0];this._priority=c||0},!0);c=J.prototype;J.version=12;J.API=2;c._firstPT=null;c._addTween=function(b,c,d,e,f,h){var i;if(null!=
+e&&(i="number"===typeof e||"="!==e.charAt(1)?Number(e)-d:parseInt(e.charAt(0)+"1")*Number(e.substr(2))))this._firstPT=b={_next:this._firstPT,t:b,p:c,s:d,c:i,f:"function"===typeof b[c],n:f||c,r:h},b._next&&(b._next._prev=b)};c.setRatio=function(b){for(var c=this._firstPT,d;c;){d=c.c*b+c.s;c.r&&(d=d+(0<d?0.5:-0.5)>>0);if(c.f)c.t[c.p](d);else c.t[c.p]=d;c=c._next}};c._kill=function(b){if(null!=b[this._propName])this._overwriteProps=[];else for(var c=this._overwriteProps.length;-1<--c;)null!=b[this._overwriteProps[c]]&&
+this._overwriteProps.splice(c,1);for(c=this._firstPT;c;)null!=b[c.n]&&(c._next&&(c._next._prev=c._prev),c._prev?(c._prev._next=c._next,c._prev=null):this._firstPT===c&&(this._firstPT=c._next)),c=c._next;return!1};c._roundProps=function(b,c){for(var d=this._firstPT;d;){if(b[this._propName]||null!=d.n&&b[d.n.split(this._propName+"_").join("")])d.r=c;d=d._next}};u._onPluginEvent=function(b,c){var d=c._firstPT,e;if("_onInitAllProps"===b){for(var f,h,i,k;d;){k=d._next;for(f=h;f&&f.pr>d.pr;)f=f._next;(d._prev=
+f?f._prev:i)?d._prev._next=d:h=d;(d._next=f)?f._prev=d:i=d;d=k}d=c._firstPT=h}for(;d;)d.pg&&"function"===typeof d.t[b]&&d.t[b]()&&(e=!0),d=d._next;return e};J.activate=function(b){for(var c=b.length;-1<--c;)b[c].API===J.API&&(u._plugins[(new b[c])._propName]=b[c]);return!0};if(p=y._gsQueue){for(m=0;m<p.length;m++)p[m]();for(c in b)b[c].def||console.log("Warning: TweenLite encountered missing dependency: com.greensock."+c)}})(window);
\ No newline at end of file
diff --git a/src/minified/plugins/CSSPlugin.min.js b/src/minified/plugins/CSSPlugin.min.js
index 2faf239..01a260f 100755
--- a/src/minified/plugins/CSSPlugin.min.js
+++ b/src/minified/plugins/CSSPlugin.min.js
@@ -1,6 +1,6 @@
/*!
- * VERSION: beta 1.542
- * DATE: 2012-10-01
+ * VERSION: beta 1.5421
+ * DATE: 2012-11-13
* JavaScript
* UPDATES AND DOCS AT: http://www.greensock.com
*
@@ -17,28 +17,28 @@ x=(v=X.getElementsByTagName("a")[0])?/^0.55/.test(v.style.opacity):!1;var Y=func
b.style)for(c in a)g[c.replace(P,Q)]=a[c];x||(g.opacity=Z(b));c=G(b,a,!1);g.rotation=c.rotation*R;g.skewX=c.skewX*R;g.scaleX=c.scaleX;g.scaleY=c.scaleY;g.x=c.x;g.y=c.y;null!=g.filters&&delete g.filters;return g},$=function(b,a,g,c){var h={},f,d;for(d in a)if("cssText"!==d&&"length"!==d&&isNaN(d)&&b[d]!=(f=a[d]))if(f!==q&&("number"===typeof f||"string"===typeof f))h[d]=(""===f||"auto"===f)&&"string"===typeof b[d]&&""!==b[d].replace(w,"")?0:f,c&&c.props.push(d);if(g)for(d in g)"className"!==d&&(h[d]=
g[d]);return h},aa={scaleX:1,scaleY:1,x:1,y:1,rotation:1,shortRotation:1,skewX:1,skewY:1,scale:1},ba="",M="",q=function(b,a){var a=a||B,g=a.style,c,h;if(void 0!==g[b])return b;b=b.substr(0,1).toUpperCase()+b.substr(1);c=["O","Moz","ms","Ms","Webkit"];for(h=5;-1<--h&&void 0===g[c[h]+b];);return 0<=h?(M=3===h?"ms":c[h],ba="-"+M.toLowerCase()+"-",M+b):null}("transform"),ia=ba+"transform",G=function(b,a,g){var c=b._gsTransform,h;q?h=p(b,ia,a,!0):b.currentStyle&&(h=(h=b.currentStyle.filter.match(ga))&&
4===h.length?h[0].substr(4)+","+Number(h[2].substr(4))+","+Number(h[1].substr(4))+","+h[3].substr(4)+","+(c?c.x:0)+","+(c?c.y:0):null);var a=(h||"").replace(/[^\d\-\.e,]/g,"").split(","),f=(h=6<=a.length)?Number(a[0]):1,d=h?Number(a[1]):0,e=h?Number(a[2]):0,i=h?Number(a[3]):1,c=g?c||{skewY:0}:{skewY:0},l=0>c.scaleX;c.x=h?Number(a[4]):0;c.y=h?Number(a[5]):0;c.scaleX=Math.sqrt(f*f+d*d);c.scaleY=Math.sqrt(i*i+e*e);c.rotation=f||d?Math.atan2(d,f):c.rotation||0;c.skewX=e||i?Math.atan2(e,i)+c.rotation:
-c.skewX||0;Math.abs(c.skewX)>Math.PI/2&&(l?(c.scaleX*=-1,c.skewX+=0>=c.rotation?Math.PI:-Math.PI,c.rotation+=0>=c.rotation?Math.PI:-Math.PI):(c.scaleY*=-1,c.skewX+=0>=c.skewX?Math.PI:-Math.PI));if(1E-6>c.rotation&&-1E-6<c.rotation&&(f||d))c.rotation=0;if(1E-6>c.skewX&&-1E-6<c.skewX&&(d||e))c.skewX=0;g&&(b._gsTransform=c);return c},ja={width:["Left","Right"],height:["Top","Bottom"]},ka=["marginLeft","marginRight","marginTop","marginBottom"],y=function(b,a,g,c,h){if("px"===c||!c)return g;if("auto"===
-c||!g)return 0;var f=fa.test(a),d=b,e=B.style,i=0>g;i&&(g=-g);e.cssText="border-style:solid; border-width:0; position:absolute; line-height:0;";"%"===c||"em"===c||!d.appendChild?(d=b.parentNode||A.body,e[f?"width":"height"]=g+c):e[f?"borderLeftWidth":"borderTopWidth"]=g+c;d.appendChild(B);f=parseFloat(B[f?"offsetWidth":"offsetHeight"]);d.removeChild(B);0===f&&!h&&(f=y(b,a,g,c,!0));return i?-f:f},N=function(b,a){if(null==b||""===b||"auto"===b||"auto auto"===b)b="0 0";var a=a||{},g=-1!==b.indexOf("left")?
-"0%":-1!==b.indexOf("right")?"100%":b.split(" ")[0],c=-1!==b.indexOf("top")?"0%":-1!==b.indexOf("bottom")?"100%":b.split(" ")[1];null==c?c="0":"center"===c&&(c="50%");"center"===g&&(g="50%");a.oxp=-1!==g.indexOf("%");a.oyp=-1!==c.indexOf("%");a.oxr="="===g.charAt(1);a.oyr="="===c.charAt(1);a.ox=parseFloat(g.replace(w,""));a.oy=parseFloat(c.replace(w,""));return a},I=function(b,a){return null==b?a:"string"===typeof b&&1===b.indexOf("=")?Number(b.split("=").join(""))+a:Number(b)},J=function(b,a){var g=
--1===b.indexOf("rad")?z:1,c=1===b.indexOf("="),b=Number(b.replace(w,""))*g;return c?b+a:b},E={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]};u._onInitTween=function(b,a,g){if(!b.nodeType)return!1;
-this._target=b;this._tween=g;this._classData=this._transform=null;S=a.autoRound;var c=this._style=b.style,h=F(b,""),f,d;if(T&&""===c.zIndex&&(d=p(b,"zIndex",h),"auto"===d||""===d))c.zIndex=0;"string"===typeof a?(f=c.cssText,g=H(b,h),c.cssText=f+";"+a,d=$(g,H(b)),!x&&da.test(a)&&(d.opacity=parseFloat(RegExp.$1)),a=d,c.cssText=f):a.className&&(f=b.className,this._classData={b:f,e:"="!==a.className.charAt(1)?a.className:"+"===a.className.charAt(0)?b.className+" "+a.className.substr(2):b.className.split(a.className.substr(2)).join(""),
-props:[]},g._duration?(g=H(b,h),b.className=this._classData.e,a=$(g,H(b),a,this._classData),b.className=f):a={});this._parseVars(a,b,h,a.suffixMap||m.suffixMap);return!0};u._parseVars=function(b,a,g,c){var h=this._style,f,d,e,i,l,s,k;for(f in b)if(d=b[f],"transform"===f||f===q)this._parseTransform(a,d,g,c);else if(aa[f]||"transformOrigin"===f)this._parseTransform(a,b,g,c);else{if("alpha"===f||"autoAlpha"===f)f="opacity";else if("margin"===f||"padding"===f){d=(d+"").split(" ");l=d.length;e={};e[f+
-"Top"]=d[0];e[f+"Right"]=1<l?d[1]:d[0];e[f+"Bottom"]=4===l?d[2]:d[0];e[f+"Left"]=4===l?d[3]:2===l?d[1]:d[0];this._parseVars(e,a,g,c);continue}else if("backgroundPosition"===f||"backgroundSize"===f){e=N(d);k=N(i=p(a,f,g));this._firstPT=e={_next:this._firstPT,t:h,p:f,b:i,f:!1,n:"css_"+f,type:3,s:k.ox,c:e.oxr?e.ox:e.ox-k.ox,ys:k.oy,yc:e.oyr?e.oy:e.oy-k.oy,sfx:e.oxp?"%":"px",ysfx:e.oyp?"%":"px",r:!e.oxp&&!1!==b.autoRound};e.e=e.s+e.c+e.sfx+" "+(e.ys+e.yc)+e.ysfx;continue}else if("border"===f){d=(d+"").split(" ");
-this._parseVars({borderWidth:d[0],borderStyle:d[1]||"none",borderColor:d[2]||"#000000"},a,g,c);continue}else if("bezier"===f){this._parseBezier(d,a,g,c);continue}else if("autoRound"===f)continue;i=p(a,f,g);i=null!=i?i+"":"";this._firstPT=e={_next:this._firstPT,t:h,p:f,b:i,f:!1,n:"css_"+f,sfx:"",r:!1,type:0};"opacity"===f&&null!=b.autoAlpha&&("1"===i&&"hidden"===p(a,"visibility",g)&&(i=e.b="0"),this._firstPT=e._prev={_next:e,t:h,p:"visibility",f:!1,n:"css_visibility",r:!1,type:-1,b:0!==Number(i)?"visible":
-"hidden",i:"visible",e:0===Number(d)?"hidden":"visible"},this._overwriteProps.push("css_visibility"));l="string"===typeof d;if("color"===f||"fill"===f||"stroke"===f||-1!==f.indexOf("Color")||l&&!d.indexOf("rgb(")){if(l=Y(i),d=Y(d),e.e=e.i=(3<d.length?"rgba(":"rgb(")+d.join(",")+")",e.b=(3<l.length?"rgba(":"rgb(")+l.join(",")+")",e.s=Number(l[0]),e.c=Number(d[0])-e.s,e.gs=Number(l[1]),e.gc=Number(d[1])-e.gs,e.bs=Number(l[2]),e.bc=Number(d[2])-e.bs,e.type=1,3<l.length||3<d.length)x?(e.as=4>l.length?
-1:Number(l[3]),e.ac=(4>d.length?1:Number(d[3]))-e.as,e.type=2):(0==d[3]&&(e.e=e.i="transparent",e.type=-1),0==l[3]&&(e.b="transparent"))}else{s=i.replace(K,"");if(""===i||"auto"===i)if("width"===f||"height"===f){var r=f;s=a;k=g;i=parseFloat("width"===r?s.offsetWidth:s.offsetHeight);var r=ja[r],O=r.length;for(k=k||F(s,null);-1<--O;)i-=parseFloat(p(s,"padding"+r[O],k,!0))||0,i-=parseFloat(p(s,"border"+r[O]+"Width",k,!0))||0;k=i;s="px"}else k="opacity"!==f?0:1,s="";else k=-1===i.indexOf(" ")?parseFloat(i.replace(w,
-"")):NaN;l?(l="="===d.charAt(1),i=d.replace(K,""),d=-1===d.indexOf(" ")?parseFloat(d.replace(w,"")):NaN):(l=!1,i="");""===i&&(i=c[f]||s);e.e=d||0===d?(l?d+k:d)+i:b[f];if(s!==i&&""!==i&&(d||0===d))if(k||0===k)if(k=y(a,f,k,s),"%"===i?(k/=y(a,f,100,"%")/100,100<k&&(k=100)):"em"===i?k/=y(a,f,1,"em"):(d=y(a,f,d,i),i="px"),l&&(d||0===d))e.e=d+k+i;if((k||0===k)&&(d||0===d)&&(e.c=l?d:d-k))if(e.s=k,e.sfx=i,"opacity"===f)x||(e.type=4,e.p="filter",e.b="alpha(opacity="+100*e.s+")",e.e="alpha(opacity="+100*(e.s+
-e.c)+")",e.dup=null!=b.autoAlpha,this._style.zoom=1);else{if(!1!==S&&("px"===i||"zIndex"===f))e.r=!0}else e.type=-1,e.i="display"===f&&"none"===e.e?e.b:e.e,e.s=e.c=0}this._overwriteProps.push("css_"+f);e._next&&(e._next._prev=e)}};u._parseTransform=function(b,a,g){if(!this._transform){var c=this._transform=G(b,g,!0),h=this._style,f,d,e;if("object"===typeof a){f={scaleX:I(null!=a.scaleX?a.scaleX:a.scale,c.scaleX),scaleY:I(null!=a.scaleY?a.scaleY:a.scale,c.scaleY),x:I(a.x,c.x),y:I(a.y,c.y)};null!=a.shortRotation?
-(f.rotation="number"===typeof a.shortRotation?a.shortRotation*z:J(a.shortRotation,c.rotation),d=(f.rotation-c.rotation)%(2*Math.PI),d!==d%Math.PI&&(d+=Math.PI*(0>d?2:-2)),f.rotation=c.rotation+d):f.rotation=null==a.rotation?c.rotation:"number"===typeof a.rotation?a.rotation*z:J(a.rotation,c.rotation);f.skewX=null==a.skewX?c.skewX:"number"===typeof a.skewX?a.skewX*z:J(a.skewX,c.skewX);f.skewY=null==a.skewY?c.skewY:"number"===typeof a.skewY?a.skewY*z:J(a.skewY,c.skewY);if(d=f.skewY-c.skewY)f.skewX+=
-d,f.rotation+=d;1E-6>f.skewY&&-1E-6<f.skewY&&(f.skewY=0);1E-6>f.skewX&&-1E-6<f.skewX&&(f.skewX=0);1E-6>f.rotation&&-1E-6<f.rotation&&(f.rotation=0);if(null!=(a=a.transformOrigin))q?(e=q+"Origin",this._firstPT=a={_next:this._firstPT,t:h,p:e,s:0,c:0,n:e,f:!1,r:!1,b:h[e],e:a,i:a,type:-1,sfx:""},a._next&&(a._next._prev=a)):N(a,c)}else if("string"===typeof a&&q)d=h[q],h[q]=a,f=G(b,null,!1),h[q]=d;else return;if(q){if(U&&(T=!0,""===h.WebkitBackfaceVisibility&&(h.WebkitBackfaceVisibility="hidden"),""===
-h.zIndex&&(d=p(b,"zIndex",g),"auto"===d||""===d)))h.zIndex=0}else h.zoom=1;for(e in aa)if((c[e]!==f[e]||null!=D[e])&&"shortRotation"!==e&&"scale"!==e)this._firstPT=a={_next:this._firstPT,t:c,p:e,s:c[e],c:f[e]-c[e],n:e,f:!1,r:!1,b:c[e],e:f[e],type:0,sfx:0},a._next&&(a._next._prev=a),this._overwriteProps.push("css_"+e)}};u._parseBezier=function(b,a,g,c){if(window.com.greensock.plugins.BezierPlugin){b instanceof Array&&(b={values:b});var h=b.values||[],f=h.length,d=[],e=this._bezier={_pt:[]},i=e._proxy=
-{},l=0,s=0,k={},r=f-1,q=D,t=e._plugin=new window.com.greensock.plugins.BezierPlugin,n,j,p,m,u;for(n=0;n<f;n++){m={};this._transform=null;p=this._firstPT;this._parseVars(D=h[n],a,g,c);j=this._firstPT;if(0===n){for(u=this._transform;j!==p;)i[j.p]=j.s,e._pt[s++]=k[j.p]=j,1===j.type||2===j.type?(i[j.p+"_g"]=j.gs,i[j.p+"_b"]=j.bs,2===j.type&&(i[j.p+"_a"]=j.as)):3===j.type&&(i[j.p+"_y"]=j.ys),j=j._next;j=this._firstPT}else this._firstPT=p,p._prev&&(p._prev._next=null),p=p._prev=null;for(;j!==p;)k[j.p]&&
-(m[j.p]=j.s+j.c,n===r&&(k[j.p].e=j.e),1===j.type||2===j.type?(m[j.p+"_g"]=j.gs+j.gc,m[j.p+"_b"]=j.bs+j.bc,2===j.type&&(m[j.p+"_a"]=j.as+j.ac)):3===j.type&&(m[j.p+"_y"]=j.ys+j.yc),0===n&&(j.c=j.ac=j.gc=j.bc=j.yc=0)),j=j._next;d[l++]=m}this._transform=u;D=q;b.values=d;0===b.autoRotate&&(b.autoRotate=!0);b.autoRotate&&!(b.autoRotate instanceof Array)&&(n=!0==b.autoRotate?0:Number(b.autoRotate)*Math.PI/180,b.autoRotate=null!=d[0].left?[["left","top","rotation",n,!0]]:null!=d[0].x?[["x","y","rotation",
-n,!0]]:!1);if((e._autoRotate=b.autoRotate)&&!u)this._transform=G(a,g,!0);t._onInitTween(i,b,this._tween);b.values=h}else console.log("Error: BezierPlugin not loaded.")};u.setRatio=function(b){var a=this._firstPT,g=this._bezier,c=1E-6,h,f;if(g){g._plugin.setRatio(b);var d=g._pt,e=g._proxy;for(f=d.length;-1<--f;)a=d[f],a.s=e[a.p],1===a.type||2===a.type?(a.gs=e[a.p+"_g"],a.bs=e[a.p+"_b"],2===a.type&&(a.as=e[a.p+"_a"])):3===a.type&&(a.ys=e[a.p+"_y"]);g._autoRotate&&(this._transform.rotation=e.rotation)}if(1===
-b&&(this._tween._time===this._tween._duration||0===this._tween._time))for(;a;)a.t[a.p]=a.e,4===a.type&&1===a.s+a.c&&(this._style.removeAttribute("filter"),p(this._target,"filter")&&(a.t[a.p]=a.e)),a=a._next;else if(b||!(this._tween._time===this._tween._duration||0===this._tween._time))for(;a;)h=a.c*b+a.s,a.r?h=0<h?h+0.5>>0:h-0.5>>0:h<c&&h>-c&&(h=0),a.type?1===a.type?a.t[a.p]="rgb("+(h>>0)+", "+(a.gs+b*a.gc>>0)+", "+(a.bs+b*a.bc>>0)+")":2===a.type?a.t[a.p]="rgba("+(h>>0)+", "+(a.gs+b*a.gc>>0)+", "+
-(a.bs+b*a.bc>>0)+", "+(a.as+b*a.ac)+")":-1===a.type?a.t[a.p]=a.i:3===a.type?(g=a.ys+b*a.yc,a.r&&(g=0<g?g+0.5>>0:g-0.5>>0),a.t[a.p]=h+a.sfx+" "+g+a.ysfx):(a.dup&&(a.t.filter=a.t.filter||"alpha(opacity=100)"),a.t.filter=-1===a.t.filter.indexOf("opacity")?a.t.filter+(" alpha(opacity="+(100*h>>0)+")"):a.t.filter.replace(L,"opacity="+(100*h>>0))):a.t[a.p]=h+a.sfx,a=a._next;else for(;a;)a.t[a.p]=a.b,4===a.type&&1===a.s&&(this._style.removeAttribute("filter"),p(this._target,"filter")&&(a.t[a.p]=a.b)),a=
-a._next;if(this._transform)if(a=this._transform,q&&!a.rotation&&!a.skewX)this._style[q]=(a.x||a.y?"translate("+a.x+"px,"+a.y+"px) ":"")+(1!==a.scaleX||1!==a.scaleY?"scale("+a.scaleX+","+a.scaleY+")":"")||"translate(0px,0px)";else{var d=q?a.rotation:-a.rotation,i=q?d-a.skewX:d+a.skewX,g=Math.cos(d)*a.scaleX,d=Math.sin(d)*a.scaleX,e=Math.sin(i)*-a.scaleY,i=Math.cos(i)*a.scaleY,l;g<c&&g>-c&&(g=0);d<c&&d>-c&&(d=0);e<c&&e>-c&&(e=0);i<c&&i>-c&&(i=0);if(q)this._style[q]="matrix("+g+","+d+","+e+","+i+","+
-a.x+","+a.y+")";else if(l=this._target.currentStyle){c=d;d=-e;e=-c;c=l.filter;this._style.filter="";f=this._target.offsetWidth;h=this._target.offsetHeight;var s="absolute"!==l.position,k="progid:DXImageTransform.Microsoft.Matrix(M11="+g+", M12="+d+", M21="+e+", M22="+i,r=a.x,m=a.y,t,n;null!=a.ox&&(t=(a.oxp?0.01*f*a.ox:a.ox)-f/2,n=(a.oyp?0.01*h*a.oy:a.oy)-h/2,r=t-(t*g+n*d)+a.x,m=n-(t*e+n*i)+a.y);if(s)t=f/2,n=h/2,k+=", Dx="+(t-(t*g+n*d)+r)+", Dy="+(n-(t*e+n*i)+m)+")";else{var j=8>V?1:-1;t=a.ieOffsetX||
-0;n=a.ieOffsetY||0;a.ieOffsetX=Math.round((f-((0>g?-g:g)*f+(0>d?-d:d)*h))/2+r);a.ieOffsetY=Math.round((h-((0>i?-i:i)*h+(0>e?-e:e)*f))/2+m);for(f=0;4>f;f++)r=ka[f],h=l[r],h=-1!==h.indexOf("px")?parseFloat(h):y(this._target,r,parseFloat(h),h.replace(K,""))||0,m=h!==a[r]?2>f?-a.ieOffsetX:-a.ieOffsetY:2>f?t-a.ieOffsetX:n-a.ieOffsetY,this._style[r]=(a[r]=Math.round(h-m*(0===f||2===f?1:j)))+"px";k+=", sizingMethod='auto expand')"}this._style.filter=-1!==c.indexOf("DXImageTransform.Microsoft.Matrix(")?c.replace(ha,
-k):k+" "+c;if(0===b||1===b)if(1===g&&0===d&&0===e&&1===i&&(!s||-1!==k.indexOf("Dx=0, Dy=0")))(!L.test(c)||100===parseFloat(RegExp.$1))&&this._style.removeAttribute("filter")}}if(this._classData)if(a=this._classData,1===b&&(this._tween._time===this._tween._duration||0===this._tween._time)){for(f=a.props.length;-1<--f;)this._style[a.props[f]]="";this._target.className=a.e}else this._target.className!==a.b&&(this._target.className=a.b)};u._kill=function(b){var a=b,g;if(b.autoAlpha||b.alpha){a={};for(g in b)a[g]=
-b[g];a.opacity=1;a.autoAlpha&&(a.visibility=1)}return C.prototype._kill.call(this,a)};C.activate([m]);return m},!0)});window._gsDefine&&_gsQueue.pop()();
\ No newline at end of file
+c.skewX||0;Math.abs(c.skewX)>Math.PI/2&&Math.abs(c.skewX)<1.5*Math.PI&&(l?(c.scaleX*=-1,c.skewX+=0>=c.rotation?Math.PI:-Math.PI,c.rotation+=0>=c.rotation?Math.PI:-Math.PI):(c.scaleY*=-1,c.skewX+=0>=c.skewX?Math.PI:-Math.PI));if(1E-6>c.rotation&&-1E-6<c.rotation&&(f||d))c.rotation=0;if(1E-6>c.skewX&&-1E-6<c.skewX&&(d||e))c.skewX=0;g&&(b._gsTransform=c);return c},ja={width:["Left","Right"],height:["Top","Bottom"]},ka=["marginLeft","marginRight","marginTop","marginBottom"],y=function(b,a,g,c,h){if("px"===
+c||!c)return g;if("auto"===c||!g)return 0;var f=fa.test(a),d=b,e=B.style,i=0>g;i&&(g=-g);e.cssText="border-style:solid; border-width:0; position:absolute; line-height:0;";"%"===c||"em"===c||!d.appendChild?(d=b.parentNode||A.body,e[f?"width":"height"]=g+c):e[f?"borderLeftWidth":"borderTopWidth"]=g+c;d.appendChild(B);f=parseFloat(B[f?"offsetWidth":"offsetHeight"]);d.removeChild(B);0===f&&!h&&(f=y(b,a,g,c,!0));return i?-f:f},N=function(b,a){if(null==b||""===b||"auto"===b||"auto auto"===b)b="0 0";var a=
+a||{},g=-1!==b.indexOf("left")?"0%":-1!==b.indexOf("right")?"100%":b.split(" ")[0],c=-1!==b.indexOf("top")?"0%":-1!==b.indexOf("bottom")?"100%":b.split(" ")[1];null==c?c="0":"center"===c&&(c="50%");"center"===g&&(g="50%");a.oxp=-1!==g.indexOf("%");a.oyp=-1!==c.indexOf("%");a.oxr="="===g.charAt(1);a.oyr="="===c.charAt(1);a.ox=parseFloat(g.replace(w,""));a.oy=parseFloat(c.replace(w,""));return a},I=function(b,a){return null==b?a:"string"===typeof b&&1===b.indexOf("=")?Number(b.split("=").join(""))+
+a:Number(b)},J=function(b,a){var g=-1===b.indexOf("rad")?z:1,c=1===b.indexOf("="),b=Number(b.replace(w,""))*g;return c?b+a:b},E={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]};u._onInitTween=
+function(b,a,g){if(!b.nodeType)return!1;this._target=b;this._tween=g;this._classData=this._transform=null;S=a.autoRound;var c=this._style=b.style,h=F(b,""),f,d;if(T&&""===c.zIndex&&(d=p(b,"zIndex",h),"auto"===d||""===d))c.zIndex=0;"string"===typeof a?(f=c.cssText,g=H(b,h),c.cssText=f+";"+a,d=$(g,H(b)),!x&&da.test(a)&&(d.opacity=parseFloat(RegExp.$1)),a=d,c.cssText=f):a.className&&(f=b.className,this._classData={b:f,e:"="!==a.className.charAt(1)?a.className:"+"===a.className.charAt(0)?b.className+
+" "+a.className.substr(2):b.className.split(a.className.substr(2)).join(""),props:[]},g._duration?(g=H(b,h),b.className=this._classData.e,a=$(g,H(b),a,this._classData),b.className=f):a={});this._parseVars(a,b,h,a.suffixMap||m.suffixMap);return!0};u._parseVars=function(b,a,g,c){var h=this._style,f,d,e,i,l,s,k;for(f in b)if(d=b[f],"transform"===f||f===q)this._parseTransform(a,d,g,c);else if(aa[f]||"transformOrigin"===f)this._parseTransform(a,b,g,c);else{if("alpha"===f||"autoAlpha"===f)f="opacity";else if("margin"===
+f||"padding"===f){d=(d+"").split(" ");l=d.length;e={};e[f+"Top"]=d[0];e[f+"Right"]=1<l?d[1]:d[0];e[f+"Bottom"]=4===l?d[2]:d[0];e[f+"Left"]=4===l?d[3]:2===l?d[1]:d[0];this._parseVars(e,a,g,c);continue}else if("backgroundPosition"===f||"backgroundSize"===f){e=N(d);k=N(i=p(a,f,g));this._firstPT=e={_next:this._firstPT,t:h,p:f,b:i,f:!1,n:"css_"+f,type:3,s:k.ox,c:e.oxr?e.ox:e.ox-k.ox,ys:k.oy,yc:e.oyr?e.oy:e.oy-k.oy,sfx:e.oxp?"%":"px",ysfx:e.oyp?"%":"px",r:!e.oxp&&!1!==b.autoRound};e.e=e.s+e.c+e.sfx+" "+
+(e.ys+e.yc)+e.ysfx;continue}else if("border"===f){d=(d+"").split(" ");this._parseVars({borderWidth:d[0],borderStyle:d[1]||"none",borderColor:d[2]||"#000000"},a,g,c);continue}else if("bezier"===f){this._parseBezier(d,a,g,c);continue}else if("autoRound"===f)continue;i=p(a,f,g);i=null!=i?i+"":"";this._firstPT=e={_next:this._firstPT,t:h,p:f,b:i,f:!1,n:"css_"+f,sfx:"",r:!1,type:0};"opacity"===f&&null!=b.autoAlpha&&("1"===i&&"hidden"===p(a,"visibility",g)&&(i=e.b="0"),this._firstPT=e._prev={_next:e,t:h,
+p:"visibility",f:!1,n:"css_visibility",r:!1,type:-1,b:0!==Number(i)?"visible":"hidden",i:"visible",e:0===Number(d)?"hidden":"visible"},this._overwriteProps.push("css_visibility"));l="string"===typeof d;if("color"===f||"fill"===f||"stroke"===f||-1!==f.indexOf("Color")||l&&!d.indexOf("rgb(")){if(l=Y(i),d=Y(d),e.e=e.i=(3<d.length?"rgba(":"rgb(")+d.join(",")+")",e.b=(3<l.length?"rgba(":"rgb(")+l.join(",")+")",e.s=Number(l[0]),e.c=Number(d[0])-e.s,e.gs=Number(l[1]),e.gc=Number(d[1])-e.gs,e.bs=Number(l[2]),
+e.bc=Number(d[2])-e.bs,e.type=1,3<l.length||3<d.length)x?(e.as=4>l.length?1:Number(l[3]),e.ac=(4>d.length?1:Number(d[3]))-e.as,e.type=2):(0==d[3]&&(e.e=e.i="transparent",e.type=-1),0==l[3]&&(e.b="transparent"))}else{s=i.replace(K,"");if(""===i||"auto"===i)if("width"===f||"height"===f){var r=f;s=a;k=g;i=parseFloat("width"===r?s.offsetWidth:s.offsetHeight);var r=ja[r],O=r.length;for(k=k||F(s,null);-1<--O;)i-=parseFloat(p(s,"padding"+r[O],k,!0))||0,i-=parseFloat(p(s,"border"+r[O]+"Width",k,!0))||0;k=
+i;s="px"}else k="opacity"!==f?0:1,s="";else k=-1===i.indexOf(" ")?parseFloat(i.replace(w,"")):NaN;l?(l="="===d.charAt(1),i=d.replace(K,""),d=-1===d.indexOf(" ")?parseFloat(d.replace(w,"")):NaN):(l=!1,i="");""===i&&(i=c[f]||s);e.e=d||0===d?(l?d+k:d)+i:b[f];if(s!==i&&""!==i&&(d||0===d))if(k||0===k)if(k=y(a,f,k,s),"%"===i?(k/=y(a,f,100,"%")/100,100<k&&(k=100)):"em"===i?k/=y(a,f,1,"em"):(d=y(a,f,d,i),i="px"),l&&(d||0===d))e.e=d+k+i;if((k||0===k)&&(d||0===d)&&(e.c=l?d:d-k))if(e.s=k,e.sfx=i,"opacity"===
+f)x||(e.type=4,e.p="filter",e.b="alpha(opacity="+100*e.s+")",e.e="alpha(opacity="+100*(e.s+e.c)+")",e.dup=null!=b.autoAlpha,this._style.zoom=1);else{if(!1!==S&&("px"===i||"zIndex"===f))e.r=!0}else e.type=-1,e.i="display"===f&&"none"===e.e?e.b:e.e,e.s=e.c=0}this._overwriteProps.push("css_"+f);e._next&&(e._next._prev=e)}};u._parseTransform=function(b,a,g){if(!this._transform){var c=this._transform=G(b,g,!0),h=this._style,f,d,e;if("object"===typeof a){f={scaleX:I(null!=a.scaleX?a.scaleX:a.scale,c.scaleX),
+scaleY:I(null!=a.scaleY?a.scaleY:a.scale,c.scaleY),x:I(a.x,c.x),y:I(a.y,c.y)};null!=a.shortRotation?(f.rotation="number"===typeof a.shortRotation?a.shortRotation*z:J(a.shortRotation,c.rotation),d=(f.rotation-c.rotation)%(2*Math.PI),d!==d%Math.PI&&(d+=Math.PI*(0>d?2:-2)),f.rotation=c.rotation+d):f.rotation=null==a.rotation?c.rotation:"number"===typeof a.rotation?a.rotation*z:J(a.rotation,c.rotation);f.skewX=null==a.skewX?c.skewX:"number"===typeof a.skewX?a.skewX*z:J(a.skewX,c.skewX);f.skewY=null==
+a.skewY?c.skewY:"number"===typeof a.skewY?a.skewY*z:J(a.skewY,c.skewY);if(d=f.skewY-c.skewY)f.skewX+=d,f.rotation+=d;1E-6>f.skewY&&-1E-6<f.skewY&&(f.skewY=0);1E-6>f.skewX&&-1E-6<f.skewX&&(f.skewX=0);1E-6>f.rotation&&-1E-6<f.rotation&&(f.rotation=0);if(null!=(a=a.transformOrigin))q?(e=q+"Origin",this._firstPT=a={_next:this._firstPT,t:h,p:e,s:0,c:0,n:e,f:!1,r:!1,b:h[e],e:a,i:a,type:-1,sfx:""},a._next&&(a._next._prev=a)):N(a,c)}else if("string"===typeof a&&q)d=h[q],h[q]=a,f=G(b,null,!1),h[q]=d;else return;
+if(q){if(U&&(T=!0,""===h.WebkitBackfaceVisibility&&(h.WebkitBackfaceVisibility="hidden"),""===h.zIndex&&(d=p(b,"zIndex",g),"auto"===d||""===d)))h.zIndex=0}else h.zoom=1;for(e in aa)if((c[e]!==f[e]||null!=D[e])&&"shortRotation"!==e&&"scale"!==e)this._firstPT=a={_next:this._firstPT,t:c,p:e,s:c[e],c:f[e]-c[e],n:e,f:!1,r:!1,b:c[e],e:f[e],type:0,sfx:0},a._next&&(a._next._prev=a),this._overwriteProps.push("css_"+e)}};u._parseBezier=function(b,a,g,c){if(window.com.greensock.plugins.BezierPlugin){b instanceof
+Array&&(b={values:b});var h=b.values||[],f=h.length,d=[],e=this._bezier={_pt:[]},i=e._proxy={},l=0,s=0,k={},r=f-1,q=D,t=e._plugin=new window.com.greensock.plugins.BezierPlugin,n,j,p,m,u;for(n=0;n<f;n++){m={};this._transform=null;p=this._firstPT;this._parseVars(D=h[n],a,g,c);j=this._firstPT;if(0===n){for(u=this._transform;j!==p;)i[j.p]=j.s,e._pt[s++]=k[j.p]=j,1===j.type||2===j.type?(i[j.p+"_g"]=j.gs,i[j.p+"_b"]=j.bs,2===j.type&&(i[j.p+"_a"]=j.as)):3===j.type&&(i[j.p+"_y"]=j.ys),j=j._next;j=this._firstPT}else this._firstPT=
+p,p._prev&&(p._prev._next=null),p=p._prev=null;for(;j!==p;)k[j.p]&&(m[j.p]=j.s+j.c,n===r&&(k[j.p].e=j.e),1===j.type||2===j.type?(m[j.p+"_g"]=j.gs+j.gc,m[j.p+"_b"]=j.bs+j.bc,2===j.type&&(m[j.p+"_a"]=j.as+j.ac)):3===j.type&&(m[j.p+"_y"]=j.ys+j.yc),0===n&&(j.c=j.ac=j.gc=j.bc=j.yc=0)),j=j._next;d[l++]=m}this._transform=u;D=q;b.values=d;0===b.autoRotate&&(b.autoRotate=!0);b.autoRotate&&!(b.autoRotate instanceof Array)&&(n=!0==b.autoRotate?0:Number(b.autoRotate)*Math.PI/180,b.autoRotate=null!=d[0].left?
+[["left","top","rotation",n,!0]]:null!=d[0].x?[["x","y","rotation",n,!0]]:!1);if((e._autoRotate=b.autoRotate)&&!u)this._transform=G(a,g,!0);t._onInitTween(i,b,this._tween);b.values=h}else console.log("Error: BezierPlugin not loaded.")};u.setRatio=function(b){var a=this._firstPT,g=this._bezier,c=1E-6,h,f;if(g){g._plugin.setRatio(b);var d=g._pt,e=g._proxy;for(f=d.length;-1<--f;)a=d[f],a.s=e[a.p],1===a.type||2===a.type?(a.gs=e[a.p+"_g"],a.bs=e[a.p+"_b"],2===a.type&&(a.as=e[a.p+"_a"])):3===a.type&&(a.ys=
+e[a.p+"_y"]);g._autoRotate&&(this._transform.rotation=e.rotation)}if(1===b&&(this._tween._time===this._tween._duration||0===this._tween._time))for(;a;)a.t[a.p]=a.e,4===a.type&&1===a.s+a.c&&(this._style.removeAttribute("filter"),p(this._target,"filter")&&(a.t[a.p]=a.e)),a=a._next;else if(b||!(this._tween._time===this._tween._duration||0===this._tween._time))for(;a;)h=a.c*b+a.s,a.r?h=0<h?h+0.5>>0:h-0.5>>0:h<c&&h>-c&&(h=0),a.type?1===a.type?a.t[a.p]="rgb("+(h>>0)+", "+(a.gs+b*a.gc>>0)+", "+(a.bs+b*a.bc>>
+0)+")":2===a.type?a.t[a.p]="rgba("+(h>>0)+", "+(a.gs+b*a.gc>>0)+", "+(a.bs+b*a.bc>>0)+", "+(a.as+b*a.ac)+")":-1===a.type?a.t[a.p]=a.i:3===a.type?(g=a.ys+b*a.yc,a.r&&(g=0<g?g+0.5>>0:g-0.5>>0),a.t[a.p]=h+a.sfx+" "+g+a.ysfx):(a.dup&&(a.t.filter=a.t.filter||"alpha(opacity=100)"),a.t.filter=-1===a.t.filter.indexOf("opacity")?a.t.filter+(" alpha(opacity="+(100*h>>0)+")"):a.t.filter.replace(L,"opacity="+(100*h>>0))):a.t[a.p]=h+a.sfx,a=a._next;else for(;a;)a.t[a.p]=a.b,4===a.type&&1===a.s&&(this._style.removeAttribute("filter"),
+p(this._target,"filter")&&(a.t[a.p]=a.b)),a=a._next;if(this._transform)if(a=this._transform,q&&!a.rotation&&!a.skewX)this._style[q]=(a.x||a.y?"translate("+a.x+"px,"+a.y+"px) ":"")+(1!==a.scaleX||1!==a.scaleY?"scale("+a.scaleX+","+a.scaleY+")":"")||"translate(0px,0px)";else{var d=q?a.rotation:-a.rotation,i=q?d-a.skewX:d+a.skewX,g=Math.cos(d)*a.scaleX,d=Math.sin(d)*a.scaleX,e=Math.sin(i)*-a.scaleY,i=Math.cos(i)*a.scaleY,l;g<c&&g>-c&&(g=0);d<c&&d>-c&&(d=0);e<c&&e>-c&&(e=0);i<c&&i>-c&&(i=0);if(q)this._style[q]=
+"matrix("+g+","+d+","+e+","+i+","+a.x+","+a.y+")";else if(l=this._target.currentStyle){c=d;d=-e;e=-c;c=l.filter;this._style.filter="";f=this._target.offsetWidth;h=this._target.offsetHeight;var s="absolute"!==l.position,k="progid:DXImageTransform.Microsoft.Matrix(M11="+g+", M12="+d+", M21="+e+", M22="+i,r=a.x,m=a.y,t,n;null!=a.ox&&(t=(a.oxp?0.01*f*a.ox:a.ox)-f/2,n=(a.oyp?0.01*h*a.oy:a.oy)-h/2,r=t-(t*g+n*d)+a.x,m=n-(t*e+n*i)+a.y);if(s)t=f/2,n=h/2,k+=", Dx="+(t-(t*g+n*d)+r)+", Dy="+(n-(t*e+n*i)+m)+")";
+else{var j=8>V?1:-1;t=a.ieOffsetX||0;n=a.ieOffsetY||0;a.ieOffsetX=Math.round((f-((0>g?-g:g)*f+(0>d?-d:d)*h))/2+r);a.ieOffsetY=Math.round((h-((0>i?-i:i)*h+(0>e?-e:e)*f))/2+m);for(f=0;4>f;f++)r=ka[f],h=l[r],h=-1!==h.indexOf("px")?parseFloat(h):y(this._target,r,parseFloat(h),h.replace(K,""))||0,m=h!==a[r]?2>f?-a.ieOffsetX:-a.ieOffsetY:2>f?t-a.ieOffsetX:n-a.ieOffsetY,this._style[r]=(a[r]=Math.round(h-m*(0===f||2===f?1:j)))+"px";k+=", sizingMethod='auto expand')"}this._style.filter=-1!==c.indexOf("DXImageTransform.Microsoft.Matrix(")?
+c.replace(ha,k):k+" "+c;if(0===b||1===b)if(1===g&&0===d&&0===e&&1===i&&(!s||-1!==k.indexOf("Dx=0, Dy=0")))(!L.test(c)||100===parseFloat(RegExp.$1))&&this._style.removeAttribute("filter")}}if(this._classData)if(a=this._classData,1===b&&(this._tween._time===this._tween._duration||0===this._tween._time)){for(f=a.props.length;-1<--f;)this._style[a.props[f]]="";this._target.className=a.e}else this._target.className!==a.b&&(this._target.className=a.b)};u._kill=function(b){var a=b,g;if(b.autoAlpha||b.alpha){a=
+{};for(g in b)a[g]=b[g];a.opacity=1;a.autoAlpha&&(a.visibility=1)}return C.prototype._kill.call(this,a)};C.activate([m]);return m},!0)});window._gsDefine&&_gsQueue.pop()();
\ No newline at end of file
diff --git a/src/uncompressed/TweenLite.js b/src/uncompressed/TweenLite.js
index 972aec4..8430294 100755
--- a/src/uncompressed/TweenLite.js
+++ b/src/uncompressed/TweenLite.js
@@ -1,1372 +1,1391 @@
-/*!
- * VERSION: beta 1.5
- * DATE: 2012-9-04
- * JavaScript (ActionScript 3 and 2 also available)
- * UPDATES AND DOCS AT: http://www.greensock.com
- *
- * Copyright (c) 2008-2012, GreenSock. All rights reserved.
- * This work is subject to the terms in http://www.greensock.com/terms_of_use.html or for
- * Club GreenSock members, the software agreement that was issued with your membership.
- *
- * @author: Jack Doyle, [email protected]
- */
-(function(window) {
-
- "use strict";
- var _namespace = function(ns) {
- var a = ns.split("."),
- p = window, i;
- for (i = 0; i < a.length; i++) {
- p[a[i]] = p = p[a[i]] || {};
- }
- return p;
- },
- gs = _namespace("com.greensock"),
- a, i, e, e2, p, _gsInit,
- _classLookup = {},
-
- //_DepClass is for defining a dependent class. ns = namespace (leaving off "com.greensock." as that's assumed), dep = an array of namespaces that are required, def = the function that will return the class definition (this function will be passed each dependency in order as soon as they arrive), global = if true, the class is added to the global scope (window) or if requirejs is being used, it will tap into that instead.
- _DepClass = function(ns, dep, def, global) {
- this.sc = (_classLookup[ns]) ? _classLookup[ns].sc : []; //subclasses
- _classLookup[ns] = this;
- this.gsClass = null;
- this.def = def;
- var _dep = dep || [],
- _classes = [];
- this.check = function(init) {
- var i = _dep.length, cnt = 0, cur;
- while (--i > -1) {
- if ((cur = _classLookup[_dep[i]] || new _DepClass(_dep[i])).gsClass) {
- _classes[i] = cur.gsClass;
- } else {
- cnt++;
- if (init) {
- cur.sc.push(this);
- }
- }
- }
- if (cnt === 0 && def) {
- var a = ("com.greensock." + ns).split("."),
- n = a.pop(),
- cl = _namespace(a.join("."))[n] = this.gsClass = def.apply(def, _classes);
-
- //exports to multiple environments
- if (global) {
- (window.GreenSockGlobals || window)[n] = cl; //provides a way to avoid global namespace pollution. By default, the main classes like TweenLite, Power1, Strong, etc. are added to window unless a GreenSockGlobals is defined. So if you want to have things added to a custom object instead, just do something like window.GreenSockGlobals = {} before loading any GreenSock files. You can even set up an alias like window.GreenSockGlobals = windows.gs = {} so that you can access everything like gs.TweenLite. Also remember that ALL classes are added to the window.com.greensock object (in their respective packages, like com.greensock.easing.Power1, com.greensock.TweenLite, etc.)
- if (typeof(define) === "function" && define.amd){ //AMD
- define((window.GreenSockAMDPath ? window.GreenSockAMDPath + "/" : "") + ns.split(".").join("/"), [], function() { return cl; });
- } else if (typeof(module) !== "undefined" && module.exports){ //node
- module.exports = cl;
- }
- }
-
- for (i = 0; i < this.sc.length; i++) {
- this.sc[i].check(false);
- }
-
- }
- };
- this.check(true);
- },
- //a quick way to create a class that doesn't have any dependencies. Returns the class, but first registers it in the GreenSock namespace so that other classes can grab it (other classes might be dependent on the class).
- _class = gs._class = function(ns, f, g) {
- new _DepClass(ns, [], function(){ return f; }, g);
- return f;
- };
-
- //used to create _DepClass instances (which basically registers a class that has dependencies). ns = namespace, dep = dependencies (array), f = initialization function which should return the class, g = global (whether or not the class should be added to the global namespace (or if RequireJS is used, it will be defined as a named module instead)
- window._gsDefine = function(ns, dep, f, g) {
- return new _DepClass(ns, dep, f, g);
- };
-
-
-
-/*
- * ----------------------------------------------------------------
- * Ease
- * ----------------------------------------------------------------
- */
- var _baseParams = [0, 0, 1, 1],
- _blankArray = [],
- Ease = _class("easing.Ease", function(func, extraParams, type, power) {
- this._func = func;
- this._type = type || 0;
- this._power = power || 0;
- this._params = extraParams ? _baseParams.concat(extraParams) : _baseParams;
- }, true);
-
- p = Ease.prototype;
- p._calcEnd = false;
- p.getRatio = function(p) {
- if (this._func) {
- this._params[0] = p;
- return this._func.apply(null, this._params);
- } else {
- var t = this._type,
- pw = this._power,
- r = (t === 1) ? 1 - p : (t === 2) ? p : (p < 0.5) ? p * 2 : (1 - p) * 2;
- if (pw === 1) {
- r *= r;
- } else if (pw === 2) {
- r *= r * r;
- } else if (pw === 3) {
- r *= r * r * r;
- } else if (pw === 4) {
- r *= r * r * r * r;
- }
- return (t === 1) ? 1 - r : (t === 2) ? r : (p < 0.5) ? r / 2 : 1 - (r / 2);
- }
- };
-
- //create all the standard eases like Linear, Quad, Cubic, Quart, Quint, Strong, Power0, Power1, Power2, Power3, and Power4 (each with easeIn, easeOut, and easeInOut)
- a = ["Linear","Quad","Cubic","Quart","Quint"];
- i = a.length;
- while(--i > -1) {
- e = _class("easing." + a[i], function(){}, true);
- e2 = _class("easing.Power" + i, function(){}, true);
- e.easeOut = e2.easeOut = new Ease(null, null, 1, i);
- e.easeIn = e2.easeIn = new Ease(null, null, 2, i);
- e.easeInOut = e2.easeInOut = new Ease(null, null, 3, i);
- }
- _class("easing.Strong", gs.easing.Power4, true);
- gs.easing.Linear.easeNone = gs.easing.Linear.easeIn;
-
-
-/*
- * ----------------------------------------------------------------
- * EventDispatcher
- * ----------------------------------------------------------------
- */
- p = _class("events.EventDispatcher", function(target) {
- this._listeners = {};
- this._eventTarget = target || this;
- }).prototype;
-
- p.addEventListener = function(type, callback, scope, useParam, priority) {
- priority = priority || 0;
- var list = this._listeners[type],
- index = 0,
- listener, i;
- if (list == null) {
- this._listeners[type] = list = [];
- }
- i = list.length;
- while (--i > -1) {
- listener = list[i];
- if (listener.c === callback) {
- list.splice(i, 1);
- } else if (index === 0 && listener.pr < priority) {
- index = i + 1;
- }
- }
- list.splice(index, 0, {c:callback, s:scope, up:useParam, pr:priority});
- };
-
- p.removeEventListener = function(type, callback) {
- var list = this._listeners[type];
- if (list) {
- var i = list.length;
- while (--i > -1) {
- if (list[i].c === callback) {
- list.splice(i, 1);
- return;
- }
- }
- }
- };
-
- p.dispatchEvent = function(type) {
- var list = this._listeners[type];
- if (list) {
- var i = list.length, listener,
- t = this._eventTarget;
- while (--i > -1) {
- listener = list[i];
- if (listener.up) {
- listener.c.call(listener.s || t, {type:type, target:t});
- } else {
- listener.c.call(listener.s || t);
- }
- }
- }
- };
-
-
-/*
- * ----------------------------------------------------------------
- * Ticker
- * ----------------------------------------------------------------
- */
- var _reqAnimFrame = window.requestAnimationFrame,
- _cancelAnimFrame = window.cancelAnimationFrame,
- _getTime = Date.now || function() {return new Date().getTime();};
-
- //now try to determine the requestAnimationFrame and cancelAnimationFrame functions and if none are found, we'll use a setTimeout()/clearTimeout() polyfill.
- a = ["ms","moz","webkit","o"];
- i = a.length;
- while (--i > -1 && !_reqAnimFrame) {
- _reqAnimFrame = window[a[i] + "RequestAnimationFrame"];
- _cancelAnimFrame = window[a[i] + "CancelAnimationFrame"] || window[a[i] + "CancelRequestAnimationFrame"];
- }
- if (!_cancelAnimFrame) {
- _cancelAnimFrame = function(id) {
- window.clearTimeout(id);
- }
- }
-
- _class("Ticker", function(fps, useRAF) {
- this.time = 0;
- this.frame = 0;
- var _self = this,
- _startTime = _getTime(),
- _useRAF = (useRAF !== false),
- _fps, _req, _id, _gap, _nextTime;
-
- this.tick = function() {
- _self.time = (_getTime() - _startTime) / 1000;
- if (!_fps || _self.time >= _nextTime) {
- _self.frame++;
- _nextTime = _self.time + _gap - (_self.time - _nextTime) - 0.0005;
- if (_nextTime <= _self.time) {
- _nextTime = _self.time + 0.001;
- }
- _self.dispatchEvent("tick");
- }
- _id = _req( _self.tick );
- };
-
- this.fps = function(value) {
- if (!arguments.length) {
- return _fps;
- }
- _fps = value;
- _gap = 1 / (_fps || 60);
- _nextTime = this.time + _gap;
- _req = (_fps === 0) ? function(f){} : (!_useRAF || !_reqAnimFrame) ? function(f) { return window.setTimeout( f, (((_nextTime - _self.time) * 1000 + 1) >> 0) || 1); } : _reqAnimFrame;
- _cancelAnimFrame(_id);
- _id = _req( _self.tick );
- };
-
- this.useRAF = function(value) {
- if (!arguments.length) {
- return _useRAF
- }
- _useRAF = value;
- this.fps(_fps);
- };
-
- this.fps(fps);
- });
-
- p = gs.Ticker.prototype = new gs.events.EventDispatcher();
- p.constructor = gs.Ticker;
-
-
-/*
- * ----------------------------------------------------------------
- * Animation
- * ----------------------------------------------------------------
- */
- var Animation = _class("core.Animation", function(duration, vars) {
- this.vars = vars || {};
- this._duration = this._totalDuration = duration || 0;
- this._delay = Number(this.vars.delay) || 0;
- this._timeScale = 1;
- this._active = (this.vars.immediateRender == true);
- this.data = this.vars.data;
- this._reversed = (this.vars.reversed == true);
-
- if (!_rootTimeline) {
- return;
- }
- if (!_gsInit) {
- _ticker.tick(); //the first time an animation (tween or timeline) is created, we should refresh the time in order to avoid a gap. The Ticker's initial time that it records might be very early in the load process and the user may have loaded several other large scripts in the mean time, but we want tweens to act as though they started when the page's onload was fired. Also remember that the requestAnimationFrame likely won't be called until the first screen redraw.
- _gsInit = true;
- }
-
- var tl = this.vars.useFrames ? _rootFramesTimeline : _rootTimeline;
- tl.insert(this, tl._time);
-
- if (this.vars.paused) {
- this.paused(true);
- }
- }),
- _ticker = Animation.ticker = new gs.Ticker();
-
- p = Animation.prototype;
- p._dirty = p._gc = p._initted = p._paused = false;
- p._totalTime = p._time = 0;
- p._rawPrevTime = -1;
- p._next = p._last = p._onUpdate = p._timeline = p.timeline = null;
- p._paused = false;
-
- p.play = function(from, suppressEvents) {
- if (arguments.length) {
- this.seek(from, suppressEvents);
- }
- this.reversed(false);
- return this.paused(false);
- };
-
- p.pause = function(atTime, suppressEvents) {
- if (arguments.length) {
- this.seek(atTime, suppressEvents);
- }
- return this.paused(true);
- };
-
- p.resume = function(from, suppressEvents) {
- if (arguments.length) {
- this.seek(from, suppressEvents);
- }
- return this.paused(false);
- };
-
- p.seek = function(time, suppressEvents) {
- return this.totalTime(Number(time), (suppressEvents != false));
- };
-
- p.restart = function(includeDelay, suppressEvents) {
- this.reversed(false);
- this.paused(false);
- return this.totalTime((includeDelay) ? -this._delay : 0, (suppressEvents != false));
- };
-
- p.reverse = function(from, suppressEvents) {
- if (arguments.length) {
- this.seek((from || this.totalDuration()), suppressEvents);
- }
- this.reversed(true);
- return this.paused(false);
- };
-
- p.render = function() {
-
- };
-
- p.invalidate = function() {
- return this;
- };
-
- p._enabled = function (enabled, ignoreTimeline) {
- this._gc = !enabled;
- this._active = (enabled && !this._paused && this._totalTime > 0 && this._totalTime < this._totalDuration);
- if (ignoreTimeline != true) {
- if (enabled && this.timeline == null) {
- this._timeline.insert(this, this._startTime - this._delay);
- } else if (!enabled && this.timeline != null) {
- this._timeline._remove(this, true);
- }
- }
- return false;
- };
-
-
- p._kill = function(vars, target) {
- return this._enabled(false, false);
- };
-
- p.kill = function(vars, target) {
- this._kill(vars, target);
- return this;
- };
-
- p._uncache = function(includeSelf) {
- var tween = includeSelf ? this : this.timeline;
- while (tween) {
- tween._dirty = true;
- tween = tween.timeline;
- }
- return this;
- };
-
-//----Animation getters/setters --------------------------------------------------------
-
- p.eventCallback = function(type, callback, params, scope) {
- if (type == null) {
- return null;
- } else if (type.substr(0,2) === "on") {
- if (arguments.length === 1) {
- return this.vars[type];
- }
- if (callback == null) {
- delete this.vars[type];
- } else {
- this.vars[type] = callback;
- this.vars[type + "Params"] = params;
- this.vars[type + "Scope"] = scope;
- if (params) {
- var i = params.length;
- while (--i > -1) {
- if (params[i] === "{self}") {
- params = this.vars[type + "Params"] = params.concat(); //copying the array avoids situations where the same array is passed to multiple tweens/timelines and {self} doesn't correctly point to each individual instance.
- params[i] = this;
- }
- }
- }
- }
- if (type === "onUpdate") {
- this._onUpdate = callback;
- }
- }
- return this;
- }
-
- p.delay = function(value) {
- if (!arguments.length) {
- return this._delay;
- }
- if (this._timeline.smoothChildTiming) {
- this.startTime( this._startTime + value - this._delay );
- }
- this._delay = value;
- return this;
- };
-
- p.duration = function(value) {
- if (!arguments.length) {
- this._dirty = false;
- return this._duration;
- }
- this._duration = this._totalDuration = value;
- this._uncache(true); //true in case it's a TweenMax or TimelineMax that has a repeat - we'll need to refresh the totalDuration.
- if (this._timeline.smoothChildTiming) if (this._active) if (value != 0) {
- this.totalTime(this._totalTime * (value / this._duration), true);
- }
- return this;
- };
-
- p.totalDuration = function(value) {
- this._dirty = false;
- return (!arguments.length) ? this._totalDuration : this.duration(value);
- };
-
- p.time = function(value, suppressEvents) {
- if (!arguments.length) {
- return this._time;
- }
- if (this._dirty) {
- this.totalDuration();
- }
- if (value > this._duration) {
- value = this._duration;
- }
- return this.totalTime(value, suppressEvents);
- };
-
- p.totalTime = function(time, suppressEvents) {
- if (!arguments.length) {
- return this._totalTime;
- }
- if (this._timeline) {
- if (time < 0) {
- time += this.totalDuration();
- }
- if (this._timeline.smoothChildTiming) {
- if (this._dirty) {
- this.totalDuration();
- }
- if (time > this._totalDuration) {
- time = this._totalDuration;
- }
- this._startTime = (this._paused ? this._pauseTime : this._timeline._time) - ((!this._reversed ? time : this._totalDuration - time) / this._timeScale);
- if (!this._timeline._dirty) { //for performance improvement. If the parent's cache is already dirty, it already took care of marking the anscestors as dirty too, so skip the function call here.
- this._uncache(false);
- }
- if (!this._timeline._active) {
- //in case any of the anscestors had completed but should now be enabled...
- var tl = this._timeline;
- while (tl._timeline) {
- tl.totalTime(tl._totalTime, true);
- tl = tl._timeline;
- }
- }
- }
- if (this._gc) {
- this._enabled(true, false);
- }
- if (this._totalTime != time) {
- this.render(time, suppressEvents, false);
- }
- }
- return this;
- };
-
- p.startTime = function(value) {
- if (!arguments.length) {
- return this._startTime;
- }
- if (value != this._startTime) {
- this._startTime = value;
- if (this.timeline) if (this.timeline._sortChildren) {
- this.timeline.insert(this, value - this._delay); //ensures that any necessary re-sequencing of Animations in the timeline occurs to make sure the rendering order is correct.
- }
- }
- return this;
- };
-
- p.timeScale = function(value) {
- if (!arguments.length) {
- return this._timeScale;
- }
- value = value || 0.000001; //can't allow zero because it'll throw the math off
- if (this._timeline && this._timeline.smoothChildTiming) {
- var t = (this._pauseTime || this._pauseTime == 0) ? this._pauseTime : this._timeline._totalTime;
- this._startTime = t - ((t - this._startTime) * this._timeScale / value);
- }
- this._timeScale = value;
- return this._uncache(false);
- };
-
- p.reversed = function(value) {
- if (!arguments.length) {
- return this._reversed;
- }
- if (value != this._reversed) {
- this._reversed = value;
- this.totalTime(this._totalTime, true);
- }
- return this;
- };
-
- p.paused = function(value) {
- if (!arguments.length) {
- return this._paused;
- }
- if (value != this._paused) if (this._timeline) {
- if (!value && this._timeline.smoothChildTiming) {
- this._startTime += this._timeline.rawTime() - this._pauseTime;
- this._uncache(false);
- }
- this._pauseTime = (value) ? this._timeline.rawTime() : null;
- this._paused = value;
- this._active = (!this._paused && this._totalTime > 0 && this._totalTime < this._totalDuration);
- }
- if (this._gc) if (!value) {
- this._enabled(true, false);
- }
- return this;
- };
-
-
-/*
- * ----------------------------------------------------------------
- * SimpleTimeline
- * ----------------------------------------------------------------
- */
- var SimpleTimeline = _class("core.SimpleTimeline", function(vars) {
- Animation.call(this, 0, vars);
- this.autoRemoveChildren = this.smoothChildTiming = true;
- });
-
- p = SimpleTimeline.prototype = new Animation();
- p.constructor = SimpleTimeline;
- p.kill()._gc = false;
- p._first = p._last = null;
- p._sortChildren = false;
-
- p.insert = function(tween, time) {
- tween._startTime = Number(time || 0) + tween._delay;
- if (tween._paused) if (this !== tween._timeline) { //we only adjust the _pauseTime if it wasn't in this timeline already. Remember, sometimes a tween will be inserted again into the same timeline when its startTime is changed so that the tweens in the TimelineLite/Max are re-ordered properly in the linked list (so everything renders in the proper order).
- tween._pauseTime = tween._startTime + ((this.rawTime() - tween._startTime) / tween._timeScale);
- }
- if (tween.timeline) {
- tween.timeline._remove(tween, true); //removes from existing timeline so that it can be properly added to this one.
- }
- tween.timeline = tween._timeline = this;
- if (tween._gc) {
- tween._enabled(true, true);
- }
-
- var prevTween = this._last;
- if (this._sortChildren) {
- var st = tween._startTime;
- while (prevTween && prevTween._startTime > st) {
- prevTween = prevTween._prev;
- }
- }
- if (prevTween) {
- tween._next = prevTween._next;
- prevTween._next = tween;
- } else {
- tween._next = this._first;
- this._first = tween;
- }
- if (tween._next) {
- tween._next._prev = tween;
- } else {
- this._last = tween;
- }
- tween._prev = prevTween;
-
- if (this._timeline) {
- this._uncache(true);
- }
- return this;
- };
-
- p._remove = function(tween, skipDisable) {
- if (tween.timeline === this) {
- if (!skipDisable) {
- tween._enabled(false, true);
- }
- tween.timeline = null;
-
- if (tween._prev) {
- tween._prev._next = tween._next;
- } else if (this._first === tween) {
- this._first = tween._next;
- }
- if (tween._next) {
- tween._next._prev = tween._prev;
- } else if (this._last === tween) {
- this._last = tween._prev;
- }
-
- if (this._timeline) {
- this._uncache(true);
- }
- }
- return this;
- };
-
- p.render = function(time, suppressEvents, force) {
- var tween = this._first,
- next;
- this._totalTime = this._time = this._rawPrevTime = time;
- while (tween) {
- next = tween._next; //record it here because the value could change after rendering...
- if (tween._active || (time >= tween._startTime && !tween._paused)) {
- if (!tween._reversed) {
- tween.render((time - tween._startTime) * tween._timeScale, suppressEvents, false);
- } else {
- tween.render(((!tween._dirty) ? tween._totalDuration : tween.totalDuration()) - ((time - tween._startTime) * tween._timeScale), suppressEvents, false);
- }
- }
- tween = next;
- }
- };
-
- p.rawTime = function() {
- return this._totalTime;
- };
-
-
-/*
- * ----------------------------------------------------------------
- * TweenLite
- * ----------------------------------------------------------------
- */
- var TweenLite = _class("TweenLite", function(target, duration, vars) {
- Animation.call(this, duration, vars);
-
- if (target == null) {
- throw "Cannot tween an undefined reference.";
- }
- this.target = target;
-
- this._overwrite = (this.vars.overwrite == null) ? _overwriteLookup[TweenLite.defaultOverwrite] : (typeof(this.vars.overwrite) === "number") ? this.vars.overwrite >> 0 : _overwriteLookup[this.vars.overwrite];
-
- var jq, i, targ;
- if ((target instanceof Array || target.jquery) && typeof(target[0]) === "object") {
- this._targets = target.slice(0); //works for both jQuery and Array instances
- this._propLookup = [];
- this._siblings = [];
- for (i = 0; i < this._targets.length; i++) {
- targ = this._targets[i];
- //in case the user is passing in an array of jQuery objects, for example, we need to check one more level and pull things out if necessary...
- if (targ.jquery) {
- this._targets.splice(i--, 1);
- this._targets = this._targets.concat(targ.constructor.makeArray(targ));
- continue;
- }
- this._siblings[i] = _register(targ, this, false);
- if (this._overwrite === 1) if (this._siblings[i].length > 1) {
- _applyOverwrite(targ, this, null, 1, this._siblings[i]);
- }
- }
-
- } else {
- this._propLookup = {};
- this._siblings = _register(target, this, false);
- if (this._overwrite === 1) if (this._siblings.length > 1) {
- _applyOverwrite(target, this, null, 1, this._siblings);
- }
- }
-
- if (this.vars.immediateRender || (duration === 0 && this._delay === 0 && this.vars.immediateRender != false)) {
- this.render(-this._delay, false, true);
- }
- }, true);
-
- p = TweenLite.prototype = new Animation();
- p.constructor = TweenLite;
- p.kill()._gc = false;
-
-//----TweenLite defaults, overwrite management, and root updates ----------------------------------------------------
-
- p.ratio = 0;
- p._firstPT = p._targets = p._overwrittenProps = null;
- p._notifyPluginsOfEnabled = false;
-
- TweenLite.version = 12;
- TweenLite.defaultEase = p._ease = new Ease(null, null, 1, 1);
- TweenLite.defaultOverwrite = "auto";
- TweenLite.ticker = _ticker;
-
- var _plugins = TweenLite._plugins = {},
- _tweenLookup = TweenLite._tweenLookup = {},
- _tweenLookupNum = 0,
- _reservedProps = {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},
- _overwriteLookup = {none:0, all:1, auto:2, concurrent:3, allOnStart:4, preexisting:5, "true":1, "false":0},
- _rootFramesTimeline = Animation._rootFramesTimeline = new SimpleTimeline(),
- _rootTimeline = Animation._rootTimeline = new SimpleTimeline();
-
- _rootTimeline._startTime = _ticker.time;
- _rootFramesTimeline._startTime = _ticker.frame;
- _rootTimeline._active = _rootFramesTimeline._active = true;
-
- Animation._updateRoot = function() {
- _rootTimeline.render((_ticker.time - _rootTimeline._startTime) * _rootTimeline._timeScale, false, false);
- _rootFramesTimeline.render((_ticker.frame - _rootFramesTimeline._startTime) * _rootFramesTimeline._timeScale, false, false);
- if (!(_ticker.frame % 120)) { //dump garbage every 120 frames...
- var i, a, p;
- for (p in _tweenLookup) {
- a = _tweenLookup[p].tweens;
- i = a.length;
- while (--i > -1) {
- if (a[i]._gc) {
- a.splice(i, 1);
- }
- }
- if (a.length === 0) {
- delete _tweenLookup[p];
- }
- }
- }
- };
-
- _ticker.addEventListener("tick", Animation._updateRoot);
-
- var _register = function(target, tween, scrub) {
- var id = target._gsTweenID, a, i;
- if (!_tweenLookup[id || (target._gsTweenID = id = "t" + (_tweenLookupNum++))]) {
- _tweenLookup[id] = {target:target, tweens:[]};
- }
- if (tween) {
- a = _tweenLookup[id].tweens;
- a[(i = a.length)] = tween;
- if (scrub) {
- while (--i > -1) {
- if (a[i] === tween) {
- a.splice(i, 1);
- }
- }
- }
- }
- return _tweenLookup[id].tweens;
- },
-
- _applyOverwrite = function(target, tween, props, mode, siblings) {
- var i, changed, curTween;
- if (mode === 1 || mode >= 4) {
- var l = siblings.length;
- for (i = 0; i < l; i++) {
- if ((curTween = siblings[i]) !== tween) {
- if (!curTween._gc) if (curTween._enabled(false, false)) {
- changed = true;
- }
- } else if (mode === 5) {
- break;
- }
- }
- return changed;
- }
- //NOTE: Add 0.0000000001 to overcome floating point errors that can cause the startTime to be VERY slightly off (when a tween's time() is set for example)
- var startTime = tween._startTime + 0.0000000001,
- overlaps = [],
- oCount = 0,
- globalStart;
- i = siblings.length;
- while (--i > -1) {
- if ((curTween = siblings[i]) === tween || curTween._gc || curTween._paused) {
- //ignore
- } else if (curTween._timeline !== tween._timeline) {
- globalStart = globalStart || _checkOverlap(tween, 0);
- if (_checkOverlap(curTween, globalStart) === 0) {
- overlaps[oCount++] = curTween;
- }
- } else if (curTween._startTime <= startTime) if (curTween._startTime + curTween.totalDuration() / curTween._timeScale + 0.0000000001 > startTime) if (!((tween._duration === 0 || !curTween._initted) && startTime - curTween._startTime <= 0.0000000002)) {
- overlaps[oCount++] = curTween;
- }
- }
-
- i = oCount;
- while (--i > -1) {
- curTween = overlaps[i];
- if (mode === 2) if (curTween._kill(props, target)) {
- changed = true;
- }
- if (mode !== 2 || (!curTween._firstPT && curTween._initted)) {
- if (curTween._enabled(false, false)) { //if all property tweens have been overwritten, kill the tween.
- changed = true;
- }
- }
- }
- return changed;
- },
-
- _checkOverlap = function(tween, reference) {
- var tl = tween._timeline,
- ts = tl._timeScale,
- t = tween._startTime;
- while (tl._timeline) {
- t += tl._startTime;
- ts *= tl._timeScale;
- if (tl._paused) {
- return -100;
- }
- tl = tl._timeline;
- }
- t /= ts;
- return (t > reference) ? t - reference : (!tween._initted && t - reference < 0.0000000002) ? 0.0000000001 : ((t = t + tween.totalDuration() / tween._timeScale / ts) > reference) ? 0 : t - reference - 0.0000000001;
- };
-
-
-//---- TweenLite instance methods -----------------------------------------------------------------------------
-
- p._init = function() {
- if (this.vars.startAt) {
- this.vars.startAt.overwrite = 0;
- this.vars.startAt.immediateRender = true;
- TweenLite.to(this.target, 0, this.vars.startAt);
- }
- var i, initPlugins, pt;
- if (this.vars.ease instanceof Ease) {
- this._ease = (this.vars.easeParams instanceof Array) ? this.vars.ease.config.apply(this.vars.ease, this.vars.easeParams) : this.vars.ease;
- } else if (typeof(this.vars.ease) === "function") {
- this._ease = new Ease(this.vars.ease, this.vars.easeParams);
- } else {
- this._ease = TweenLite.defaultEase;
- }
- this._easeType = this._ease._type;
- this._easePower = this._ease._power;
- this._firstPT = null;
-
- if (this._targets) {
- i = this._targets.length;
- while (--i > -1) {
- if ( this._initProps( this._targets[i], (this._propLookup[i] = {}), this._siblings[i], (this._overwrittenProps ? this._overwrittenProps[i] : null)) ) {
- initPlugins = true;
- }
- }
- } else {
- initPlugins = this._initProps(this.target, this._propLookup, this._siblings, this._overwrittenProps);
- }
-
- if (initPlugins) {
- TweenLite._onPluginEvent("_onInitAllProps", this); //reorders the array in order of priority. Uses a static TweenPlugin method in order to minimize file size in TweenLite
- }
- if (this._overwrittenProps) if (this._firstPT == null) if (typeof(this.target) !== "function") { //if all tweening properties have been overwritten, kill the tween. If the target is a function, it's probably a delayedCall so let it live.
- this._enabled(false, false);
- }
- if (this.vars.runBackwards) {
- pt = this._firstPT;
- while (pt) {
- pt.s += pt.c;
- pt.c = -pt.c;
- pt = pt._next;
- }
- }
- this._onUpdate = this.vars.onUpdate;
- this._initted = true;
- };
-
- p._initProps = function(target, propLookup, siblings, overwrittenProps) {
- var p, i, initPlugins, plugin, a, pt, v;
- if (target == null) {
- return false;
- }
- for (p in this.vars) {
- if (_reservedProps[p]) {
- if (p === "onStartParams" || p === "onUpdateParams" || p === "onCompleteParams" || p === "onReverseCompleteParams" || p === "onRepeatParams") if ((a = this.vars[p])) {
- i = a.length;
- while (--i > -1) {
- if (a[i] === "{self}") {
- a = this.vars[p] = a.concat(); //copy the array in case the user referenced the same array in multiple tweens/timelines (each {self} should be unique)
- a[i] = this;
- }
- }
- }
-
- } else if (_plugins[p] && (plugin = new _plugins[p]())._onInitTween(target, this.vars[p], this)) {
-
- //t - target [object]
- //p - property [string]
- //s - start [number]
- //c - change [number]
- //f - isFunction [boolean]
- //n - name [string]
- //pg - isPlugin [boolean]
- //pr - priority [number]
- this._firstPT = pt = {_next:this._firstPT, t:plugin, p:"setRatio", s:0, c:1, f:true, n:p, pg:true, pr:plugin._priority};
- i = plugin._overwriteProps.length;
- while (--i > -1) {
- propLookup[plugin._overwriteProps[i]] = this._firstPT;
- }
- if (plugin._priority || plugin._onInitAllProps) {
- initPlugins = true;
- }
- if (plugin._onDisable || plugin._onEnable) {
- this._notifyPluginsOfEnabled = true;
- }
-
- } else {
- this._firstPT = propLookup[p] = pt = {_next:this._firstPT, t:target, p:p, f:(typeof(target[p]) === "function"), n:p, pg:false, pr:0};
- pt.s = (!pt.f) ? parseFloat(target[p]) : target[ ((p.indexOf("set") || typeof(target["get" + p.substr(3)]) !== "function") ? p : "get" + p.substr(3)) ]();
- v = this.vars[p];
- pt.c = (typeof(v) === "number") ? v - pt.s : (typeof(v) === "string" && v.charAt(1) === "=") ? parseInt(v.charAt(0)+"1") * Number(v.substr(2)) : Number(v) || 0; //previously, we used Number(v.split("=").join("")) but that wouldn't adequately handle a value like "+=-500" or "-=-500".
- }
- if (pt) if (pt._next) {
- pt._next._prev = pt;
- }
- }
-
- if (overwrittenProps) if (this._kill(overwrittenProps, target)) { //another tween may have tried to overwrite properties of this tween before init() was called (like if two tweens start at the same time, the one created second will run first)
- return this._initProps(target, propLookup, siblings, overwrittenProps);
- }
- if (this._overwrite > 1) if (this._firstPT) if (siblings.length > 1) if (_applyOverwrite(target, this, propLookup, this._overwrite, siblings)) {
- this._kill(propLookup, target);
- return this._initProps(target, propLookup, siblings, overwrittenProps);
- }
- return initPlugins;
- };
-
- p.render = function(time, suppressEvents, force) {
- var prevTime = this._time,
- isComplete, callback, pt;
- if (time >= this._duration) {
- this._totalTime = this._time = this._duration;
- this.ratio = this._ease._calcEnd ? this._ease.getRatio(1) : 1;
- if (!this._reversed) {
- isComplete = true;
- callback = "onComplete";
- }
- if (this._duration === 0) { //zero-duration tweens are tricky because we must discern the momentum/direction of time in order to determine whether the starting values should be rendered or the ending values. If the "playhead" of its timeline goes past the zero-duration tween in the forward direction or lands directly on it, the end values should be rendered, but if the timeline's "playhead" moves past it in the backward direction (from a postitive time to a negative time), the starting values must be rendered.
- if (time === 0 || this._rawPrevTime < 0) if (this._rawPrevTime !== time) {
- force = true;
- }
- this._rawPrevTime = time;
- }
-
- } else if (time <= 0) {
- this._totalTime = this._time = 0;
- this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0;
- if (prevTime !== 0 || (this._duration === 0 && this._rawPrevTime > 0)) {
- callback = "onReverseComplete";
- isComplete = this._reversed;
- }
- if (time < 0) {
- this._active = false;
- if (this._duration === 0) { //zero-duration tweens are tricky because we must discern the momentum/direction of time in order to determine whether the starting values should be rendered or the ending values. If the "playhead" of its timeline goes past the zero-duration tween in the forward direction or lands directly on it, the end values should be rendered, but if the timeline's "playhead" moves past it in the backward direction (from a postitive time to a negative time), the starting values must be rendered.
- if (this._rawPrevTime >= 0) {
- force = true;
- }
- this._rawPrevTime = time;
- }
- } else if (!this._initted) { //if we render the very beginning (time == 0) of a fromTo(), we must force the render (normal tweens wouldn't need to render at a time of 0 when the prevTime was also 0). This is also mandatory to make sure overwriting kicks in immediately.
- force = true;
- }
-
- } else {
- this._totalTime = this._time = time;
-
- if (this._easeType) {
- var r = time / this._duration, type = this._easeType, pow = this._easePower;
- if (type === 1 || (type === 3 && r >= 0.5)) {
- r = 1 - r;
- }
- if (type === 3) {
- r *= 2;
- }
- if (pow === 1) {
- r *= r;
- } else if (pow === 2) {
- r *= r * r;
- } else if (pow === 3) {
- r *= r * r * r;
- } else if (pow === 4) {
- r *= r * r * r * r;
- }
-
- if (type === 1) {
- this.ratio = 1 - r;
- } else if (type === 2) {
- this.ratio = r;
- } else if (time / this._duration < 0.5) {
- this.ratio = r / 2;
- } else {
- this.ratio = 1 - (r / 2);
- }
-
- } else {
- this.ratio = this._ease.getRatio(time / this._duration);
- }
-
- }
-
- if (this._time === prevTime && !force) {
- return;
- } else if (!this._initted) {
- this._init();
- if (!isComplete && this._time) { //_ease is initially set to defaultEase, so now that init() has run, _ease is set properly and we need to recalculate the ratio. Overall this is faster than using conditional logic earlier in the method to avoid having to set ratio twice because we only init() once but renderTime() gets called VERY frequently.
- this.ratio = this._ease.getRatio(this._time / this._duration);
- }
- }
-
- if (!this._active) if (!this._paused) {
- this._active = true; //so that if the user renders a tween (as opposed to the timeline rendering it), the timeline is forced to re-render and align it with the proper time/frame on the next rendering cycle. Maybe the tween already finished but the user manually re-renders it as halfway done.
- }
- if (prevTime === 0) if (this.vars.onStart) if (this._time !== 0 || this._duration === 0) if (!suppressEvents) {
- this.vars.onStart.apply(this.vars.onStartScope || this, this.vars.onStartParams || _blankArray);
- }
-
- pt = this._firstPT;
- while (pt) {
- if (pt.f) {
- pt.t[pt.p](pt.c * this.ratio + pt.s);
- } else {
- pt.t[pt.p] = pt.c * this.ratio + pt.s;
- }
- pt = pt._next;
- }
-
-
- if (this._onUpdate) if (!suppressEvents) {
- this._onUpdate.apply(this.vars.onUpdateScope || this, this.vars.onUpdateParams || _blankArray);
- }
-
- if (callback) if (!this._gc) { //check _gc because there's a chance that kill() could be called in an onUpdate
- if (isComplete) {
- if (this._timeline.autoRemoveChildren) {
- this._enabled(false, false);
- }
- this._active = false;
- }
- if (!suppressEvents) if (this.vars[callback]) {
- this.vars[callback].apply(this.vars[callback + "Scope"] || this, this.vars[callback + "Params"] || _blankArray);
- }
- }
-
- };
-
- p._kill = function(vars, target) {
- if (vars === "all") {
- vars = null;
- }
- if (vars == null) if (target == null || target == this.target) {
- return this._enabled(false, false);
- }
- target = target || this._targets || this.target;
- var i, overwrittenProps, p, pt, propLookup, changed, killProps, record;
- if ((target instanceof Array || target.jquery) && typeof(target[0]) === "object") {
- i = target.length;
- while (--i > -1) {
- if (this._kill(vars, target[i])) {
- changed = true;
- }
- }
- } else {
- if (this._targets) {
- i = this._targets.length;
- while (--i > -1) {
- if (target === this._targets[i]) {
- propLookup = this._propLookup[i] || {};
- this._overwrittenProps = this._overwrittenProps || [];
- overwrittenProps = this._overwrittenProps[i] = vars ? this._overwrittenProps[i] || {} : "all";
- break;
- }
- }
- } else if (target !== this.target) {
- return false;
- } else {
- propLookup = this._propLookup;
- overwrittenProps = this._overwrittenProps = vars ? this._overwrittenProps || {} : "all";
- }
-
- if (propLookup) {
- killProps = vars || propLookup;
- record = (vars != overwrittenProps && overwrittenProps != "all" && vars != propLookup && (vars == null || vars._tempKill != true)); //_tempKill is a super-secret way to delete a particular tweening property but NOT have it remembered as an official overwritten property (like in BezierPlugin)
- for (p in killProps) {
- if ((pt = propLookup[p])) {
- if (pt.pg && pt.t._kill(killProps)) {
- changed = true; //some plugins need to be notified so they can perform cleanup tasks first
- }
- if (!pt.pg || pt.t._overwriteProps.length === 0) {
- if (pt._prev) {
- pt._prev._next = pt._next;
- } else if (pt === this._firstPT) {
- this._firstPT = pt._next;
- }
- if (pt._next) {
- pt._next._prev = pt._prev;
- }
- pt._next = pt._prev = null;
- }
- delete propLookup[p];
- }
- if (record) {
- overwrittenProps[p] = 1;
- }
- }
- }
- }
- return changed;
- };
-
- p.invalidate = function() {
- if (this._notifyPluginsOfEnabled) {
- TweenLite._onPluginEvent("_onDisable", this);
- }
- this._firstPT = null;
- this._overwrittenProps = null;
- this._onUpdate = null;
- this._initted = this._active = this._notifyPluginsOfEnabled = false;
- this._propLookup = (this._targets) ? {} : [];
- return this;
- };
-
- p._enabled = function(enabled, ignoreTimeline) {
- if (enabled && this._gc) {
- if (this._targets) {
- var i = this._targets.length;
- while (--i > -1) {
- this._siblings[i] = _register(this._targets[i], this, true);
- }
- } else {
- this._siblings = _register(this.target, this, true);
- }
- }
- Animation.prototype._enabled.call(this, enabled, ignoreTimeline);
- if (this._notifyPluginsOfEnabled) if (this._firstPT) {
- return TweenLite._onPluginEvent(((enabled) ? "_onEnable" : "_onDisable"), this);
- }
- return false;
- };
-
-
-//----TweenLite static methods -----------------------------------------------------
-
- TweenLite.to = function(target, duration, vars) {
- return new TweenLite(target, duration, vars);
- };
-
- TweenLite.from = function(target, duration, vars) {
- vars.runBackwards = true;
- if (vars.immediateRender != false) {
- vars.immediateRender = true;
- }
- return new TweenLite(target, duration, vars);
- };
-
- TweenLite.fromTo = function(target, duration, fromVars, toVars) {
- toVars.startAt = fromVars;
- if (fromVars.immediateRender) {
- toVars.immediateRender = true;
- }
- return new TweenLite(target, duration, toVars);
- };
-
- TweenLite.delayedCall = function(delay, callback, params, scope, useFrames) {
- return new TweenLite(callback, 0, {delay:delay, onComplete:callback, onCompleteParams:params, onCompleteScope:scope, onReverseComplete:callback, onReverseCompleteParams:params, onReverseCompleteScope:scope, immediateRender:false, useFrames:useFrames, overwrite:0});
- };
-
- TweenLite.set = function(target, vars) {
- return new TweenLite(target, 0, vars);
- };
-
- TweenLite.killTweensOf = TweenLite.killDelayedCallsTo = function(target, vars) {
- var a = TweenLite.getTweensOf(target),
- i = a.length;
- while (--i > -1) {
- a[i]._kill(vars, target);
- }
- };
-
- TweenLite.getTweensOf = function(target) {
- if (target == null) { return; }
- var i, a, j, t;
- if ((target instanceof Array || target.jquery) && typeof(target[0]) === "object") {
- i = target.length;
- a = [];
- while (--i > -1) {
- a = a.concat(TweenLite.getTweensOf(target[i]));
- }
- i = a.length;
- //now get rid of any duplicates (tweens of arrays of objects could cause duplicates)
- while (--i > -1) {
- t = a[i];
- j = i;
- while (--j > -1) {
- if (t === a[j]) {
- a.splice(i, 1);
- }
- }
- }
- } else {
- a = _register(target).concat();
- i = a.length;
- while (--i > -1) {
- if (a[i]._gc) {
- a.splice(i, 1);
- }
- }
- }
- return a;
- };
-
-
-
-/*
- * ----------------------------------------------------------------
- * TweenPlugin (could easily be split out as a separate file/class, but included for ease of use (so that people don't need to include another <script> call before loading plugins which is easy to forget)
- * ----------------------------------------------------------------
- */
- var TweenPlugin = _class("plugins.TweenPlugin", function(props, priority) {
- this._overwriteProps = (props || "").split(",");
- this._propName = this._overwriteProps[0];
- this._priority = priority || 0;
- }, true);
-
- p = TweenPlugin.prototype;
- TweenPlugin.version = 12;
- TweenPlugin.API = 2;
- p._firstPT = null;
-
- p._addTween = function(target, prop, start, end, overwriteProp, round) {
- var c, pt;
- if (end != null && (c = (typeof(end) === "number" || end.charAt(1) !== "=") ? Number(end) - start : parseInt(end.charAt(0)+"1") * Number(end.substr(2)))) {
- this._firstPT = pt = {_next:this._firstPT, t:target, p:prop, s:start, c:c, f:(typeof(target[prop]) === "function"), n:overwriteProp || prop, r:round};
- if (pt._next) {
- pt._next._prev = pt;
- }
- }
- }
-
- p.setRatio = function(v) {
- var pt = this._firstPT,
- val;
- while (pt) {
- val = pt.c * v + pt.s;
- if (pt.r) {
- val = (val + ((val > 0) ? 0.5 : -0.5)) >> 0; //about 4x faster than Math.round()
- }
- if (pt.f) {
- pt.t[pt.p](val);
- } else {
- pt.t[pt.p] = val;
- }
- pt = pt._next;
- }
- }
-
- p._kill = function(lookup) {
- if (lookup[this._propName] != null) {
- this._overwriteProps = [];
- } else {
- var i = this._overwriteProps.length;
- while (--i > -1) {
- if (lookup[this._overwriteProps[i]] != null) {
- this._overwriteProps.splice(i, 1);
- }
- }
- }
- var pt = this._firstPT;
- while (pt) {
- if (lookup[pt.n] != null) {
- if (pt._next) {
- pt._next._prev = pt._prev;
- }
- if (pt._prev) {
- pt._prev._next = pt._next;
- pt._prev = null;
- } else if (this._firstPT === pt) {
- this._firstPT = pt._next;
- }
- }
- pt = pt._next;
- }
- return false;
- }
-
- p._roundProps = function(lookup, value) {
- var pt = this._firstPT;
- while (pt) {
- if (lookup[this._propName] || (pt.n != null && lookup[ pt.n.split(this._propName + "_").join("") ])) { //some properties that are very plugin-specific add a prefix named after the _propName plus an underscore, so we need to ignore that extra stuff here.
- pt.r = value;
- }
- pt = pt._next;
- }
- }
-
- TweenLite._onPluginEvent = function(type, tween) {
- var pt = tween._firstPT,
- changed;
- if (type === "_onInitAllProps") {
- //sorts the PropTween linked list in order of priority because some plugins need to render earlier/later than others, like MotionBlurPlugin applies its effects after all x/y/alpha tweens have rendered on each frame.
- var pt2, first, last, next;
- while (pt) {
- next = pt._next;
- pt2 = first;
- while (pt2 && pt2.pr > pt.pr) {
- pt2 = pt2._next;
- }
- if ((pt._prev = pt2 ? pt2._prev : last)) {
- pt._prev._next = pt;
- } else {
- first = pt;
- }
- if ((pt._next = pt2)) {
- pt2._prev = pt;
- } else {
- last = pt;
- }
- pt = next;
- }
- pt = tween._firstPT = first;
- }
- while (pt) {
- if (pt.pg) if (typeof(pt.t[type]) === "function") if (pt.t[type]()) {
- changed = true;
- }
- pt = pt._next;
- }
- return changed;
- }
-
- TweenPlugin.activate = function(plugins) {
- var i = plugins.length;
- while (--i > -1) {
- if (plugins[i].API === TweenPlugin.API) {
- TweenLite._plugins[(new plugins[i]())._propName] = plugins[i];
- }
- }
- return true;
- }
-
-
-
- //now run through all the dependencies discovered and if any are missing, log that to the console as a warning. This is why it's best to have TweenLite load last - it can check all the dependencies for you.
- if ((a = window._gsQueue)) {
- for (i = 0; i < a.length; i++) {
- a[i]();
- }
- for (p in _classLookup) {
- if (!_classLookup[p].def) {
- console.log("Warning: TweenLite encountered missing dependency: com.greensock."+p);
- }
- }
- }
-
-
+/*!
+ * VERSION: beta 1.51
+ * DATE: 2012-11-13
+ * JavaScript (ActionScript 3 and 2 also available)
+ * UPDATES AND DOCS AT: http://www.greensock.com
+ *
+ * Copyright (c) 2008-2012, GreenSock. All rights reserved.
+ * This work is subject to the terms in http://www.greensock.com/terms_of_use.html or for
+ * Club GreenSock members, the software agreement that was issued with your membership.
+ *
+ * @author: Jack Doyle, [email protected]
+ */
+(function(window) {
+
+ "use strict";
+ var _namespace = function(ns) {
+ var a = ns.split("."),
+ p = window, i;
+ for (i = 0; i < a.length; i++) {
+ p[a[i]] = p = p[a[i]] || {};
+ }
+ return p;
+ },
+ gs = _namespace("com.greensock"),
+ a, i, e, e2, p, _gsInit,
+ _classLookup = {},
+
+ //_DepClass is for defining a dependent class. ns = namespace (leaving off "com.greensock." as that's assumed), dep = an array of namespaces that are required, def = the function that will return the class definition (this function will be passed each dependency in order as soon as they arrive), global = if true, the class is added to the global scope (window) or if requirejs is being used, it will tap into that instead.
+ _DepClass = function(ns, dep, def, global) {
+ this.sc = (_classLookup[ns]) ? _classLookup[ns].sc : []; //subclasses
+ _classLookup[ns] = this;
+ this.gsClass = null;
+ this.def = def;
+ var _dep = dep || [],
+ _classes = [];
+ this.check = function(init) {
+ var i = _dep.length, cnt = 0, cur;
+ while (--i > -1) {
+ if ((cur = _classLookup[_dep[i]] || new _DepClass(_dep[i])).gsClass) {
+ _classes[i] = cur.gsClass;
+ } else {
+ cnt++;
+ if (init) {
+ cur.sc.push(this);
+ }
+ }
+ }
+ if (cnt === 0 && def) {
+ var a = ("com.greensock." + ns).split("."),
+ n = a.pop(),
+ cl = _namespace(a.join("."))[n] = this.gsClass = def.apply(def, _classes);
+
+ //exports to multiple environments
+ if (global) {
+ (window.GreenSockGlobals || window)[n] = cl; //provides a way to avoid global namespace pollution. By default, the main classes like TweenLite, Power1, Strong, etc. are added to window unless a GreenSockGlobals is defined. So if you want to have things added to a custom object instead, just do something like window.GreenSockGlobals = {} before loading any GreenSock files. You can even set up an alias like window.GreenSockGlobals = windows.gs = {} so that you can access everything like gs.TweenLite. Also remember that ALL classes are added to the window.com.greensock object (in their respective packages, like com.greensock.easing.Power1, com.greensock.TweenLite, etc.)
+ if (typeof(define) === "function" && define.amd){ //AMD
+ define((window.GreenSockAMDPath ? window.GreenSockAMDPath + "/" : "") + ns.split(".").join("/"), [], function() { return cl; });
+ } else if (typeof(module) !== "undefined" && module.exports){ //node
+ module.exports = cl;
+ }
+ }
+
+ for (i = 0; i < this.sc.length; i++) {
+ this.sc[i].check(false);
+ }
+
+ }
+ };
+ this.check(true);
+ },
+ //a quick way to create a class that doesn't have any dependencies. Returns the class, but first registers it in the GreenSock namespace so that other classes can grab it (other classes might be dependent on the class).
+ _class = gs._class = function(ns, f, g) {
+ new _DepClass(ns, [], function(){ return f; }, g);
+ return f;
+ };
+
+ //used to create _DepClass instances (which basically registers a class that has dependencies). ns = namespace, dep = dependencies (array), f = initialization function which should return the class, g = global (whether or not the class should be added to the global namespace (or if RequireJS is used, it will be defined as a named module instead)
+ window._gsDefine = function(ns, dep, f, g) {
+ return new _DepClass(ns, dep, f, g);
+ };
+
+
+
+/*
+ * ----------------------------------------------------------------
+ * Ease
+ * ----------------------------------------------------------------
+ */
+ var _baseParams = [0, 0, 1, 1],
+ _blankArray = [],
+ Ease = _class("easing.Ease", function(func, extraParams, type, power) {
+ this._func = func;
+ this._type = type || 0;
+ this._power = power || 0;
+ this._params = extraParams ? _baseParams.concat(extraParams) : _baseParams;
+ }, true);
+
+ p = Ease.prototype;
+ p._calcEnd = false;
+ p.getRatio = function(p) {
+ if (this._func) {
+ this._params[0] = p;
+ return this._func.apply(null, this._params);
+ } else {
+ var t = this._type,
+ pw = this._power,
+ r = (t === 1) ? 1 - p : (t === 2) ? p : (p < 0.5) ? p * 2 : (1 - p) * 2;
+ if (pw === 1) {
+ r *= r;
+ } else if (pw === 2) {
+ r *= r * r;
+ } else if (pw === 3) {
+ r *= r * r * r;
+ } else if (pw === 4) {
+ r *= r * r * r * r;
+ }
+ return (t === 1) ? 1 - r : (t === 2) ? r : (p < 0.5) ? r / 2 : 1 - (r / 2);
+ }
+ };
+
+ //create all the standard eases like Linear, Quad, Cubic, Quart, Quint, Strong, Power0, Power1, Power2, Power3, and Power4 (each with easeIn, easeOut, and easeInOut)
+ a = ["Linear","Quad","Cubic","Quart","Quint"];
+ i = a.length;
+ while(--i > -1) {
+ e = _class("easing." + a[i], function(){}, true);
+ e2 = _class("easing.Power" + i, function(){}, true);
+ e.easeOut = e2.easeOut = new Ease(null, null, 1, i);
+ e.easeIn = e2.easeIn = new Ease(null, null, 2, i);
+ e.easeInOut = e2.easeInOut = new Ease(null, null, 3, i);
+ }
+ _class("easing.Strong", gs.easing.Power4, true);
+ gs.easing.Linear.easeNone = gs.easing.Linear.easeIn;
+
+
+/*
+ * ----------------------------------------------------------------
+ * EventDispatcher
+ * ----------------------------------------------------------------
+ */
+ var EventDispatcher = _class("events.EventDispatcher", function(target) {
+ this._listeners = {};
+ this._eventTarget = target || this;
+ });
+ p = EventDispatcher.prototype;
+
+ p.addEventListener = function(type, callback, scope, useParam, priority) {
+ priority = priority || 0;
+ var list = this._listeners[type],
+ index = 0,
+ listener, i;
+ if (list == null) {
+ this._listeners[type] = list = [];
+ }
+ i = list.length;
+ while (--i > -1) {
+ listener = list[i];
+ if (listener.c === callback) {
+ list.splice(i, 1);
+ } else if (index === 0 && listener.pr < priority) {
+ index = i + 1;
+ }
+ }
+ list.splice(index, 0, {c:callback, s:scope, up:useParam, pr:priority});
+ };
+
+ p.removeEventListener = function(type, callback) {
+ var list = this._listeners[type];
+ if (list) {
+ var i = list.length;
+ while (--i > -1) {
+ if (list[i].c === callback) {
+ list.splice(i, 1);
+ return;
+ }
+ }
+ }
+ };
+
+ p.dispatchEvent = function(type) {
+ var list = this._listeners[type];
+ if (list) {
+ var i = list.length, listener,
+ t = this._eventTarget;
+ while (--i > -1) {
+ listener = list[i];
+ if (listener.up) {
+ listener.c.call(listener.s || t, {type:type, target:t});
+ } else {
+ listener.c.call(listener.s || t);
+ }
+ }
+ }
+ };
+
+
+/*
+ * ----------------------------------------------------------------
+ * Ticker
+ * ----------------------------------------------------------------
+ */
+ var _reqAnimFrame = window.requestAnimationFrame,
+ _cancelAnimFrame = window.cancelAnimationFrame,
+ _getTime = Date.now || function() {return new Date().getTime();};
+
+ //now try to determine the requestAnimationFrame and cancelAnimationFrame functions and if none are found, we'll use a setTimeout()/clearTimeout() polyfill.
+ a = ["ms","moz","webkit","o"];
+ i = a.length;
+ while (--i > -1 && !_reqAnimFrame) {
+ _reqAnimFrame = window[a[i] + "RequestAnimationFrame"];
+ _cancelAnimFrame = window[a[i] + "CancelAnimationFrame"] || window[a[i] + "CancelRequestAnimationFrame"];
+ }
+
+ _class("Ticker", function(fps, useRAF) {
+ var _self = this,
+ _startTime = _getTime(),
+ _useRAF = (useRAF !== false && _reqAnimFrame),
+ _fps, _req, _id, _gap, _nextTime,
+ _cancelReq = function() {
+ if (_id == null) {
+ return;
+ }
+ if (!_useRAF || !_cancelAnimFrame) {
+ window.clearTimeout(_id);
+ } else {
+ _cancelAnimFrame(_id);
+ }
+ _id = null;
+ },
+ _tick = function(manual) {
+ _self.time = (_getTime() - _startTime) / 1000;
+ if (!_fps || _self.time >= _nextTime || manual) {
+ _self.frame++;
+ _nextTime = (_self.time > _nextTime) ? _self.time + _gap - (_self.time - _nextTime) : _self.time + _gap - 0.001;
+ if (_nextTime < _self.time + 0.001) {
+ _nextTime = _self.time + 0.001;
+ }
+ _self.dispatchEvent("tick");
+ }
+ if (manual !== true) {
+ _id = _req(_tick);
+ }
+ };
+
+ EventDispatcher.call(_self);
+ this.time = this.frame = 0;
+ this.tick = function() {
+ _tick(true);
+ };
+
+ this.fps = function(value) {
+ if (!arguments.length) {
+ return _fps;
+ }
+ _fps = value;
+ _gap = 1 / (_fps || 60);
+ _nextTime = this.time + _gap;
+ _req = (_fps === 0) ? function(f){} : (!_useRAF || !_reqAnimFrame) ? function(f) { return window.setTimeout( f, (((_nextTime - _self.time) * 1000 + 1) >> 0) || 1); } : _reqAnimFrame;
+ _cancelReq();
+ _id = _req(_tick);
+ };
+
+ this.useRAF = function(value) {
+ if (!arguments.length) {
+ return _useRAF;
+ }
+ _cancelReq();
+ _useRAF = value;
+ _self.fps(_fps);
+ };
+ _self.fps(fps);
+
+ //a bug in iOS 6 Safari occasionally prevents the requestAnimationFrame from working initially, so we use a 1-second timeout that automatically falls back to setTimeout() if it senses this condition.
+ window.setTimeout(function() {
+ if (_useRAF && !_id) {
+ _self.useRAF(false);
+ }
+ }, 1000);
+ });
+
+ p = gs.Ticker.prototype = new gs.events.EventDispatcher();
+ p.constructor = gs.Ticker;
+
+
+/*
+ * ----------------------------------------------------------------
+ * Animation
+ * ----------------------------------------------------------------
+ */
+ var Animation = _class("core.Animation", function(duration, vars) {
+ this.vars = vars || {};
+ this._duration = this._totalDuration = duration || 0;
+ this._delay = Number(this.vars.delay) || 0;
+ this._timeScale = 1;
+ this._active = (this.vars.immediateRender == true);
+ this.data = this.vars.data;
+ this._reversed = (this.vars.reversed == true);
+
+ if (!_rootTimeline) {
+ return;
+ }
+ if (!_gsInit) {
+ _ticker.tick(); //the first time an animation (tween or timeline) is created, we should refresh the time in order to avoid a gap. The Ticker's initial time that it records might be very early in the load process and the user may have loaded several other large scripts in the mean time, but we want tweens to act as though they started when the page's onload was fired. Also remember that the requestAnimationFrame likely won't be called until the first screen redraw.
+ _gsInit = true;
+ }
+
+ var tl = this.vars.useFrames ? _rootFramesTimeline : _rootTimeline;
+ tl.insert(this, tl._time);
+
+ if (this.vars.paused) {
+ this.paused(true);
+ }
+ }),
+ _ticker = Animation.ticker = new gs.Ticker();
+
+ p = Animation.prototype;
+ p._dirty = p._gc = p._initted = p._paused = false;
+ p._totalTime = p._time = 0;
+ p._rawPrevTime = -1;
+ p._next = p._last = p._onUpdate = p._timeline = p.timeline = null;
+ p._paused = false;
+
+ p.play = function(from, suppressEvents) {
+ if (arguments.length) {
+ this.seek(from, suppressEvents);
+ }
+ this.reversed(false);
+ return this.paused(false);
+ };
+
+ p.pause = function(atTime, suppressEvents) {
+ if (arguments.length) {
+ this.seek(atTime, suppressEvents);
+ }
+ return this.paused(true);
+ };
+
+ p.resume = function(from, suppressEvents) {
+ if (arguments.length) {
+ this.seek(from, suppressEvents);
+ }
+ return this.paused(false);
+ };
+
+ p.seek = function(time, suppressEvents) {
+ return this.totalTime(Number(time), (suppressEvents != false));
+ };
+
+ p.restart = function(includeDelay, suppressEvents) {
+ this.reversed(false);
+ this.paused(false);
+ return this.totalTime((includeDelay) ? -this._delay : 0, (suppressEvents != false));
+ };
+
+ p.reverse = function(from, suppressEvents) {
+ if (arguments.length) {
+ this.seek((from || this.totalDuration()), suppressEvents);
+ }
+ this.reversed(true);
+ return this.paused(false);
+ };
+
+ p.render = function() {
+
+ };
+
+ p.invalidate = function() {
+ return this;
+ };
+
+ p._enabled = function (enabled, ignoreTimeline) {
+ this._gc = !enabled;
+ this._active = (enabled && !this._paused && this._totalTime > 0 && this._totalTime < this._totalDuration);
+ if (ignoreTimeline != true) {
+ if (enabled && this.timeline == null) {
+ this._timeline.insert(this, this._startTime - this._delay);
+ } else if (!enabled && this.timeline != null) {
+ this._timeline._remove(this, true);
+ }
+ }
+ return false;
+ };
+
+
+ p._kill = function(vars, target) {
+ return this._enabled(false, false);
+ };
+
+ p.kill = function(vars, target) {
+ this._kill(vars, target);
+ return this;
+ };
+
+ p._uncache = function(includeSelf) {
+ var tween = includeSelf ? this : this.timeline;
+ while (tween) {
+ tween._dirty = true;
+ tween = tween.timeline;
+ }
+ return this;
+ };
+
+//----Animation getters/setters --------------------------------------------------------
+
+ p.eventCallback = function(type, callback, params, scope) {
+ if (type == null) {
+ return null;
+ } else if (type.substr(0,2) === "on") {
+ if (arguments.length === 1) {
+ return this.vars[type];
+ }
+ if (callback == null) {
+ delete this.vars[type];
+ } else {
+ this.vars[type] = callback;
+ this.vars[type + "Params"] = params;
+ this.vars[type + "Scope"] = scope;
+ if (params) {
+ var i = params.length;
+ while (--i > -1) {
+ if (params[i] === "{self}") {
+ params = this.vars[type + "Params"] = params.concat(); //copying the array avoids situations where the same array is passed to multiple tweens/timelines and {self} doesn't correctly point to each individual instance.
+ params[i] = this;
+ }
+ }
+ }
+ }
+ if (type === "onUpdate") {
+ this._onUpdate = callback;
+ }
+ }
+ return this;
+ }
+
+ p.delay = function(value) {
+ if (!arguments.length) {
+ return this._delay;
+ }
+ if (this._timeline.smoothChildTiming) {
+ this.startTime( this._startTime + value - this._delay );
+ }
+ this._delay = value;
+ return this;
+ };
+
+ p.duration = function(value) {
+ if (!arguments.length) {
+ this._dirty = false;
+ return this._duration;
+ }
+ this._duration = this._totalDuration = value;
+ this._uncache(true); //true in case it's a TweenMax or TimelineMax that has a repeat - we'll need to refresh the totalDuration.
+ if (this._timeline.smoothChildTiming) if (this._active) if (value != 0) {
+ this.totalTime(this._totalTime * (value / this._duration), true);
+ }
+ return this;
+ };
+
+ p.totalDuration = function(value) {
+ this._dirty = false;
+ return (!arguments.length) ? this._totalDuration : this.duration(value);
+ };
+
+ p.time = function(value, suppressEvents) {
+ if (!arguments.length) {
+ return this._time;
+ }
+ if (this._dirty) {
+ this.totalDuration();
+ }
+ if (value > this._duration) {
+ value = this._duration;
+ }
+ return this.totalTime(value, suppressEvents);
+ };
+
+ p.totalTime = function(time, suppressEvents) {
+ if (!arguments.length) {
+ return this._totalTime;
+ }
+ if (this._timeline) {
+ if (time < 0) {
+ time += this.totalDuration();
+ }
+ if (this._timeline.smoothChildTiming) {
+ if (this._dirty) {
+ this.totalDuration();
+ }
+ if (time > this._totalDuration) {
+ time = this._totalDuration;
+ }
+ this._startTime = (this._paused ? this._pauseTime : this._timeline._time) - ((!this._reversed ? time : this._totalDuration - time) / this._timeScale);
+ if (!this._timeline._dirty) { //for performance improvement. If the parent's cache is already dirty, it already took care of marking the anscestors as dirty too, so skip the function call here.
+ this._uncache(false);
+ }
+ if (!this._timeline._active) {
+ //in case any of the anscestors had completed but should now be enabled...
+ var tl = this._timeline;
+ while (tl._timeline) {
+ tl.totalTime(tl._totalTime, true);
+ tl = tl._timeline;
+ }
+ }
+ }
+ if (this._gc) {
+ this._enabled(true, false);
+ }
+ if (this._totalTime != time) {
+ this.render(time, suppressEvents, false);
+ }
+ }
+ return this;
+ };
+
+ p.startTime = function(value) {
+ if (!arguments.length) {
+ return this._startTime;
+ }
+ if (value != this._startTime) {
+ this._startTime = value;
+ if (this.timeline) if (this.timeline._sortChildren) {
+ this.timeline.insert(this, value - this._delay); //ensures that any necessary re-sequencing of Animations in the timeline occurs to make sure the rendering order is correct.
+ }
+ }
+ return this;
+ };
+
+ p.timeScale = function(value) {
+ if (!arguments.length) {
+ return this._timeScale;
+ }
+ value = value || 0.000001; //can't allow zero because it'll throw the math off
+ if (this._timeline && this._timeline.smoothChildTiming) {
+ var t = (this._pauseTime || this._pauseTime == 0) ? this._pauseTime : this._timeline._totalTime;
+ this._startTime = t - ((t - this._startTime) * this._timeScale / value);
+ }
+ this._timeScale = value;
+ return this._uncache(false);
+ };
+
+ p.reversed = function(value) {
+ if (!arguments.length) {
+ return this._reversed;
+ }
+ if (value != this._reversed) {
+ this._reversed = value;
+ this.totalTime(this._totalTime, true);
+ }
+ return this;
+ };
+
+ p.paused = function(value) {
+ if (!arguments.length) {
+ return this._paused;
+ }
+ if (value != this._paused) if (this._timeline) {
+ if (!value && this._timeline.smoothChildTiming) {
+ this._startTime += this._timeline.rawTime() - this._pauseTime;
+ this._uncache(false);
+ }
+ this._pauseTime = (value) ? this._timeline.rawTime() : null;
+ this._paused = value;
+ this._active = (!this._paused && this._totalTime > 0 && this._totalTime < this._totalDuration);
+ }
+ if (this._gc) if (!value) {
+ this._enabled(true, false);
+ }
+ return this;
+ };
+
+
+/*
+ * ----------------------------------------------------------------
+ * SimpleTimeline
+ * ----------------------------------------------------------------
+ */
+ var SimpleTimeline = _class("core.SimpleTimeline", function(vars) {
+ Animation.call(this, 0, vars);
+ this.autoRemoveChildren = this.smoothChildTiming = true;
+ });
+
+ p = SimpleTimeline.prototype = new Animation();
+ p.constructor = SimpleTimeline;
+ p.kill()._gc = false;
+ p._first = p._last = null;
+ p._sortChildren = false;
+
+ p.insert = function(tween, time) {
+ tween._startTime = Number(time || 0) + tween._delay;
+ if (tween._paused) if (this !== tween._timeline) { //we only adjust the _pauseTime if it wasn't in this timeline already. Remember, sometimes a tween will be inserted again into the same timeline when its startTime is changed so that the tweens in the TimelineLite/Max are re-ordered properly in the linked list (so everything renders in the proper order).
+ tween._pauseTime = tween._startTime + ((this.rawTime() - tween._startTime) / tween._timeScale);
+ }
+ if (tween.timeline) {
+ tween.timeline._remove(tween, true); //removes from existing timeline so that it can be properly added to this one.
+ }
+ tween.timeline = tween._timeline = this;
+ if (tween._gc) {
+ tween._enabled(true, true);
+ }
+
+ var prevTween = this._last;
+ if (this._sortChildren) {
+ var st = tween._startTime;
+ while (prevTween && prevTween._startTime > st) {
+ prevTween = prevTween._prev;
+ }
+ }
+ if (prevTween) {
+ tween._next = prevTween._next;
+ prevTween._next = tween;
+ } else {
+ tween._next = this._first;
+ this._first = tween;
+ }
+ if (tween._next) {
+ tween._next._prev = tween;
+ } else {
+ this._last = tween;
+ }
+ tween._prev = prevTween;
+
+ if (this._timeline) {
+ this._uncache(true);
+ }
+ return this;
+ };
+
+ p._remove = function(tween, skipDisable) {
+ if (tween.timeline === this) {
+ if (!skipDisable) {
+ tween._enabled(false, true);
+ }
+ tween.timeline = null;
+
+ if (tween._prev) {
+ tween._prev._next = tween._next;
+ } else if (this._first === tween) {
+ this._first = tween._next;
+ }
+ if (tween._next) {
+ tween._next._prev = tween._prev;
+ } else if (this._last === tween) {
+ this._last = tween._prev;
+ }
+
+ if (this._timeline) {
+ this._uncache(true);
+ }
+ }
+ return this;
+ };
+
+ p.render = function(time, suppressEvents, force) {
+ var tween = this._first,
+ next;
+ this._totalTime = this._time = this._rawPrevTime = time;
+ while (tween) {
+ next = tween._next; //record it here because the value could change after rendering...
+ if (tween._active || (time >= tween._startTime && !tween._paused)) {
+ if (!tween._reversed) {
+ tween.render((time - tween._startTime) * tween._timeScale, suppressEvents, false);
+ } else {
+ tween.render(((!tween._dirty) ? tween._totalDuration : tween.totalDuration()) - ((time - tween._startTime) * tween._timeScale), suppressEvents, false);
+ }
+ }
+ tween = next;
+ }
+ };
+
+ p.rawTime = function() {
+ return this._totalTime;
+ };
+
+
+/*
+ * ----------------------------------------------------------------
+ * TweenLite
+ * ----------------------------------------------------------------
+ */
+ var TweenLite = _class("TweenLite", function(target, duration, vars) {
+ Animation.call(this, duration, vars);
+
+ if (target == null) {
+ throw "Cannot tween an undefined reference.";
+ }
+ this.target = target;
+
+ this._overwrite = (this.vars.overwrite == null) ? _overwriteLookup[TweenLite.defaultOverwrite] : (typeof(this.vars.overwrite) === "number") ? this.vars.overwrite >> 0 : _overwriteLookup[this.vars.overwrite];
+
+ var jq, i, targ;
+ if ((target instanceof Array || target.jquery) && typeof(target[0]) === "object") {
+ this._targets = target.slice(0); //works for both jQuery and Array instances
+ this._propLookup = [];
+ this._siblings = [];
+ for (i = 0; i < this._targets.length; i++) {
+ targ = this._targets[i];
+ //in case the user is passing in an array of jQuery objects, for example, we need to check one more level and pull things out if necessary...
+ if (targ.jquery) {
+ this._targets.splice(i--, 1);
+ this._targets = this._targets.concat(targ.constructor.makeArray(targ));
+ continue;
+ }
+ this._siblings[i] = _register(targ, this, false);
+ if (this._overwrite === 1) if (this._siblings[i].length > 1) {
+ _applyOverwrite(targ, this, null, 1, this._siblings[i]);
+ }
+ }
+
+ } else {
+ this._propLookup = {};
+ this._siblings = _register(target, this, false);
+ if (this._overwrite === 1) if (this._siblings.length > 1) {
+ _applyOverwrite(target, this, null, 1, this._siblings);
+ }
+ }
+
+ if (this.vars.immediateRender || (duration === 0 && this._delay === 0 && this.vars.immediateRender != false)) {
+ this.render(-this._delay, false, true);
+ }
+ }, true);
+
+ p = TweenLite.prototype = new Animation();
+ p.constructor = TweenLite;
+ p.kill()._gc = false;
+
+//----TweenLite defaults, overwrite management, and root updates ----------------------------------------------------
+
+ p.ratio = 0;
+ p._firstPT = p._targets = p._overwrittenProps = null;
+ p._notifyPluginsOfEnabled = false;
+
+ TweenLite.version = 12;
+ TweenLite.defaultEase = p._ease = new Ease(null, null, 1, 1);
+ TweenLite.defaultOverwrite = "auto";
+ TweenLite.ticker = _ticker;
+
+ var _plugins = TweenLite._plugins = {},
+ _tweenLookup = TweenLite._tweenLookup = {},
+ _tweenLookupNum = 0,
+ _reservedProps = {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},
+ _overwriteLookup = {none:0, all:1, auto:2, concurrent:3, allOnStart:4, preexisting:5, "true":1, "false":0},
+ _rootFramesTimeline = Animation._rootFramesTimeline = new SimpleTimeline(),
+ _rootTimeline = Animation._rootTimeline = new SimpleTimeline();
+
+ _rootTimeline._startTime = _ticker.time;
+ _rootFramesTimeline._startTime = _ticker.frame;
+ _rootTimeline._active = _rootFramesTimeline._active = true;
+
+ Animation._updateRoot = function() {
+ _rootTimeline.render((_ticker.time - _rootTimeline._startTime) * _rootTimeline._timeScale, false, false);
+ _rootFramesTimeline.render((_ticker.frame - _rootFramesTimeline._startTime) * _rootFramesTimeline._timeScale, false, false);
+ if (!(_ticker.frame % 120)) { //dump garbage every 120 frames...
+ var i, a, p;
+ for (p in _tweenLookup) {
+ a = _tweenLookup[p].tweens;
+ i = a.length;
+ while (--i > -1) {
+ if (a[i]._gc) {
+ a.splice(i, 1);
+ }
+ }
+ if (a.length === 0) {
+ delete _tweenLookup[p];
+ }
+ }
+ }
+ };
+
+ _ticker.addEventListener("tick", Animation._updateRoot);
+
+ var _register = function(target, tween, scrub) {
+ var id = target._gsTweenID, a, i;
+ if (!_tweenLookup[id || (target._gsTweenID = id = "t" + (_tweenLookupNum++))]) {
+ _tweenLookup[id] = {target:target, tweens:[]};
+ }
+ if (tween) {
+ a = _tweenLookup[id].tweens;
+ a[(i = a.length)] = tween;
+ if (scrub) {
+ while (--i > -1) {
+ if (a[i] === tween) {
+ a.splice(i, 1);
+ }
+ }
+ }
+ }
+ return _tweenLookup[id].tweens;
+ },
+
+ _applyOverwrite = function(target, tween, props, mode, siblings) {
+ var i, changed, curTween;
+ if (mode === 1 || mode >= 4) {
+ var l = siblings.length;
+ for (i = 0; i < l; i++) {
+ if ((curTween = siblings[i]) !== tween) {
+ if (!curTween._gc) if (curTween._enabled(false, false)) {
+ changed = true;
+ }
+ } else if (mode === 5) {
+ break;
+ }
+ }
+ return changed;
+ }
+ //NOTE: Add 0.0000000001 to overcome floating point errors that can cause the startTime to be VERY slightly off (when a tween's time() is set for example)
+ var startTime = tween._startTime + 0.0000000001,
+ overlaps = [],
+ oCount = 0,
+ globalStart;
+ i = siblings.length;
+ while (--i > -1) {
+ if ((curTween = siblings[i]) === tween || curTween._gc || curTween._paused) {
+ //ignore
+ } else if (curTween._timeline !== tween._timeline) {
+ globalStart = globalStart || _checkOverlap(tween, 0);
+ if (_checkOverlap(curTween, globalStart) === 0) {
+ overlaps[oCount++] = curTween;
+ }
+ } else if (curTween._startTime <= startTime) if (curTween._startTime + curTween.totalDuration() / curTween._timeScale + 0.0000000001 > startTime) if (!((tween._duration === 0 || !curTween._initted) && startTime - curTween._startTime <= 0.0000000002)) {
+ overlaps[oCount++] = curTween;
+ }
+ }
+
+ i = oCount;
+ while (--i > -1) {
+ curTween = overlaps[i];
+ if (mode === 2) if (curTween._kill(props, target)) {
+ changed = true;
+ }
+ if (mode !== 2 || (!curTween._firstPT && curTween._initted)) {
+ if (curTween._enabled(false, false)) { //if all property tweens have been overwritten, kill the tween.
+ changed = true;
+ }
+ }
+ }
+ return changed;
+ },
+
+ _checkOverlap = function(tween, reference) {
+ var tl = tween._timeline,
+ ts = tl._timeScale,
+ t = tween._startTime;
+ while (tl._timeline) {
+ t += tl._startTime;
+ ts *= tl._timeScale;
+ if (tl._paused) {
+ return -100;
+ }
+ tl = tl._timeline;
+ }
+ t /= ts;
+ return (t > reference) ? t - reference : (!tween._initted && t - reference < 0.0000000002) ? 0.0000000001 : ((t = t + tween.totalDuration() / tween._timeScale / ts) > reference) ? 0 : t - reference - 0.0000000001;
+ };
+
+
+//---- TweenLite instance methods -----------------------------------------------------------------------------
+
+ p._init = function() {
+ if (this.vars.startAt) {
+ this.vars.startAt.overwrite = 0;
+ this.vars.startAt.immediateRender = true;
+ TweenLite.to(this.target, 0, this.vars.startAt);
+ }
+ var i, initPlugins, pt;
+ if (this.vars.ease instanceof Ease) {
+ this._ease = (this.vars.easeParams instanceof Array) ? this.vars.ease.config.apply(this.vars.ease, this.vars.easeParams) : this.vars.ease;
+ } else if (typeof(this.vars.ease) === "function") {
+ this._ease = new Ease(this.vars.ease, this.vars.easeParams);
+ } else {
+ this._ease = TweenLite.defaultEase;
+ }
+ this._easeType = this._ease._type;
+ this._easePower = this._ease._power;
+ this._firstPT = null;
+
+ if (this._targets) {
+ i = this._targets.length;
+ while (--i > -1) {
+ if ( this._initProps( this._targets[i], (this._propLookup[i] = {}), this._siblings[i], (this._overwrittenProps ? this._overwrittenProps[i] : null)) ) {
+ initPlugins = true;
+ }
+ }
+ } else {
+ initPlugins = this._initProps(this.target, this._propLookup, this._siblings, this._overwrittenProps);
+ }
+
+ if (initPlugins) {
+ TweenLite._onPluginEvent("_onInitAllProps", this); //reorders the array in order of priority. Uses a static TweenPlugin method in order to minimize file size in TweenLite
+ }
+ if (this._overwrittenProps) if (this._firstPT == null) if (typeof(this.target) !== "function") { //if all tweening properties have been overwritten, kill the tween. If the target is a function, it's probably a delayedCall so let it live.
+ this._enabled(false, false);
+ }
+ if (this.vars.runBackwards) {
+ pt = this._firstPT;
+ while (pt) {
+ pt.s += pt.c;
+ pt.c = -pt.c;
+ pt = pt._next;
+ }
+ }
+ this._onUpdate = this.vars.onUpdate;
+ this._initted = true;
+ };
+
+ p._initProps = function(target, propLookup, siblings, overwrittenProps) {
+ var p, i, initPlugins, plugin, a, pt, v;
+ if (target == null) {
+ return false;
+ }
+ for (p in this.vars) {
+ if (_reservedProps[p]) {
+ if (p === "onStartParams" || p === "onUpdateParams" || p === "onCompleteParams" || p === "onReverseCompleteParams" || p === "onRepeatParams") if ((a = this.vars[p])) {
+ i = a.length;
+ while (--i > -1) {
+ if (a[i] === "{self}") {
+ a = this.vars[p] = a.concat(); //copy the array in case the user referenced the same array in multiple tweens/timelines (each {self} should be unique)
+ a[i] = this;
+ }
+ }
+ }
+
+ } else if (_plugins[p] && (plugin = new _plugins[p]())._onInitTween(target, this.vars[p], this)) {
+
+ //t - target [object]
+ //p - property [string]
+ //s - start [number]
+ //c - change [number]
+ //f - isFunction [boolean]
+ //n - name [string]
+ //pg - isPlugin [boolean]
+ //pr - priority [number]
+ this._firstPT = pt = {_next:this._firstPT, t:plugin, p:"setRatio", s:0, c:1, f:true, n:p, pg:true, pr:plugin._priority};
+ i = plugin._overwriteProps.length;
+ while (--i > -1) {
+ propLookup[plugin._overwriteProps[i]] = this._firstPT;
+ }
+ if (plugin._priority || plugin._onInitAllProps) {
+ initPlugins = true;
+ }
+ if (plugin._onDisable || plugin._onEnable) {
+ this._notifyPluginsOfEnabled = true;
+ }
+
+ } else {
+ this._firstPT = propLookup[p] = pt = {_next:this._firstPT, t:target, p:p, f:(typeof(target[p]) === "function"), n:p, pg:false, pr:0};
+ pt.s = (!pt.f) ? parseFloat(target[p]) : target[ ((p.indexOf("set") || typeof(target["get" + p.substr(3)]) !== "function") ? p : "get" + p.substr(3)) ]();
+ v = this.vars[p];
+ pt.c = (typeof(v) === "number") ? v - pt.s : (typeof(v) === "string" && v.charAt(1) === "=") ? parseInt(v.charAt(0)+"1") * Number(v.substr(2)) : Number(v) || 0; //previously, we used Number(v.split("=").join("")) but that wouldn't adequately handle a value like "+=-500" or "-=-500".
+ }
+ if (pt) if (pt._next) {
+ pt._next._prev = pt;
+ }
+ }
+
+ if (overwrittenProps) if (this._kill(overwrittenProps, target)) { //another tween may have tried to overwrite properties of this tween before init() was called (like if two tweens start at the same time, the one created second will run first)
+ return this._initProps(target, propLookup, siblings, overwrittenProps);
+ }
+ if (this._overwrite > 1) if (this._firstPT) if (siblings.length > 1) if (_applyOverwrite(target, this, propLookup, this._overwrite, siblings)) {
+ this._kill(propLookup, target);
+ return this._initProps(target, propLookup, siblings, overwrittenProps);
+ }
+ return initPlugins;
+ };
+
+ p.render = function(time, suppressEvents, force) {
+ var prevTime = this._time,
+ isComplete, callback, pt;
+ if (time >= this._duration) {
+ this._totalTime = this._time = this._duration;
+ this.ratio = this._ease._calcEnd ? this._ease.getRatio(1) : 1;
+ if (!this._reversed) {
+ isComplete = true;
+ callback = "onComplete";
+ }
+ if (this._duration === 0) { //zero-duration tweens are tricky because we must discern the momentum/direction of time in order to determine whether the starting values should be rendered or the ending values. If the "playhead" of its timeline goes past the zero-duration tween in the forward direction or lands directly on it, the end values should be rendered, but if the timeline's "playhead" moves past it in the backward direction (from a postitive time to a negative time), the starting values must be rendered.
+ if (time === 0 || this._rawPrevTime < 0) if (this._rawPrevTime !== time) {
+ force = true;
+ }
+ this._rawPrevTime = time;
+ }
+
+ } else if (time <= 0) {
+ this._totalTime = this._time = 0;
+ this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0;
+ if (prevTime !== 0 || (this._duration === 0 && this._rawPrevTime > 0)) {
+ callback = "onReverseComplete";
+ isComplete = this._reversed;
+ }
+ if (time < 0) {
+ this._active = false;
+ if (this._duration === 0) { //zero-duration tweens are tricky because we must discern the momentum/direction of time in order to determine whether the starting values should be rendered or the ending values. If the "playhead" of its timeline goes past the zero-duration tween in the forward direction or lands directly on it, the end values should be rendered, but if the timeline's "playhead" moves past it in the backward direction (from a postitive time to a negative time), the starting values must be rendered.
+ if (this._rawPrevTime >= 0) {
+ force = true;
+ }
+ this._rawPrevTime = time;
+ }
+ } else if (!this._initted) { //if we render the very beginning (time == 0) of a fromTo(), we must force the render (normal tweens wouldn't need to render at a time of 0 when the prevTime was also 0). This is also mandatory to make sure overwriting kicks in immediately.
+ force = true;
+ }
+
+ } else {
+ this._totalTime = this._time = time;
+
+ if (this._easeType) {
+ var r = time / this._duration, type = this._easeType, pow = this._easePower;
+ if (type === 1 || (type === 3 && r >= 0.5)) {
+ r = 1 - r;
+ }
+ if (type === 3) {
+ r *= 2;
+ }
+ if (pow === 1) {
+ r *= r;
+ } else if (pow === 2) {
+ r *= r * r;
+ } else if (pow === 3) {
+ r *= r * r * r;
+ } else if (pow === 4) {
+ r *= r * r * r * r;
+ }
+
+ if (type === 1) {
+ this.ratio = 1 - r;
+ } else if (type === 2) {
+ this.ratio = r;
+ } else if (time / this._duration < 0.5) {
+ this.ratio = r / 2;
+ } else {
+ this.ratio = 1 - (r / 2);
+ }
+
+ } else {
+ this.ratio = this._ease.getRatio(time / this._duration);
+ }
+
+ }
+
+ if (this._time === prevTime && !force) {
+ return;
+ } else if (!this._initted) {
+ this._init();
+ if (!isComplete && this._time) { //_ease is initially set to defaultEase, so now that init() has run, _ease is set properly and we need to recalculate the ratio. Overall this is faster than using conditional logic earlier in the method to avoid having to set ratio twice because we only init() once but renderTime() gets called VERY frequently.
+ this.ratio = this._ease.getRatio(this._time / this._duration);
+ }
+ }
+
+ if (!this._active) if (!this._paused) {
+ this._active = true; //so that if the user renders a tween (as opposed to the timeline rendering it), the timeline is forced to re-render and align it with the proper time/frame on the next rendering cycle. Maybe the tween already finished but the user manually re-renders it as halfway done.
+ }
+ if (prevTime === 0) if (this.vars.onStart) if (this._time !== 0 || this._duration === 0) if (!suppressEvents) {
+ this.vars.onStart.apply(this.vars.onStartScope || this, this.vars.onStartParams || _blankArray);
+ }
+
+ pt = this._firstPT;
+ while (pt) {
+ if (pt.f) {
+ pt.t[pt.p](pt.c * this.ratio + pt.s);
+ } else {
+ pt.t[pt.p] = pt.c * this.ratio + pt.s;
+ }
+ pt = pt._next;
+ }
+
+
+ if (this._onUpdate) if (!suppressEvents) {
+ this._onUpdate.apply(this.vars.onUpdateScope || this, this.vars.onUpdateParams || _blankArray);
+ }
+
+ if (callback) if (!this._gc) { //check _gc because there's a chance that kill() could be called in an onUpdate
+ if (isComplete) {
+ if (this._timeline.autoRemoveChildren) {
+ this._enabled(false, false);
+ }
+ this._active = false;
+ }
+ if (!suppressEvents) if (this.vars[callback]) {
+ this.vars[callback].apply(this.vars[callback + "Scope"] || this, this.vars[callback + "Params"] || _blankArray);
+ }
+ }
+
+ };
+
+ p._kill = function(vars, target) {
+ if (vars === "all") {
+ vars = null;
+ }
+ if (vars == null) if (target == null || target == this.target) {
+ return this._enabled(false, false);
+ }
+ target = target || this._targets || this.target;
+ var i, overwrittenProps, p, pt, propLookup, changed, killProps, record;
+ if ((target instanceof Array || target.jquery) && typeof(target[0]) === "object") {
+ i = target.length;
+ while (--i > -1) {
+ if (this._kill(vars, target[i])) {
+ changed = true;
+ }
+ }
+ } else {
+ if (this._targets) {
+ i = this._targets.length;
+ while (--i > -1) {
+ if (target === this._targets[i]) {
+ propLookup = this._propLookup[i] || {};
+ this._overwrittenProps = this._overwrittenProps || [];
+ overwrittenProps = this._overwrittenProps[i] = vars ? this._overwrittenProps[i] || {} : "all";
+ break;
+ }
+ }
+ } else if (target !== this.target) {
+ return false;
+ } else {
+ propLookup = this._propLookup;
+ overwrittenProps = this._overwrittenProps = vars ? this._overwrittenProps || {} : "all";
+ }
+
+ if (propLookup) {
+ killProps = vars || propLookup;
+ record = (vars != overwrittenProps && overwrittenProps != "all" && vars != propLookup && (vars == null || vars._tempKill != true)); //_tempKill is a super-secret way to delete a particular tweening property but NOT have it remembered as an official overwritten property (like in BezierPlugin)
+ for (p in killProps) {
+ if ((pt = propLookup[p])) {
+ if (pt.pg && pt.t._kill(killProps)) {
+ changed = true; //some plugins need to be notified so they can perform cleanup tasks first
+ }
+ if (!pt.pg || pt.t._overwriteProps.length === 0) {
+ if (pt._prev) {
+ pt._prev._next = pt._next;
+ } else if (pt === this._firstPT) {
+ this._firstPT = pt._next;
+ }
+ if (pt._next) {
+ pt._next._prev = pt._prev;
+ }
+ pt._next = pt._prev = null;
+ }
+ delete propLookup[p];
+ }
+ if (record) {
+ overwrittenProps[p] = 1;
+ }
+ }
+ }
+ }
+ return changed;
+ };
+
+ p.invalidate = function() {
+ if (this._notifyPluginsOfEnabled) {
+ TweenLite._onPluginEvent("_onDisable", this);
+ }
+ this._firstPT = null;
+ this._overwrittenProps = null;
+ this._onUpdate = null;
+ this._initted = this._active = this._notifyPluginsOfEnabled = false;
+ this._propLookup = (this._targets) ? {} : [];
+ return this;
+ };
+
+ p._enabled = function(enabled, ignoreTimeline) {
+ if (enabled && this._gc) {
+ if (this._targets) {
+ var i = this._targets.length;
+ while (--i > -1) {
+ this._siblings[i] = _register(this._targets[i], this, true);
+ }
+ } else {
+ this._siblings = _register(this.target, this, true);
+ }
+ }
+ Animation.prototype._enabled.call(this, enabled, ignoreTimeline);
+ if (this._notifyPluginsOfEnabled) if (this._firstPT) {
+ return TweenLite._onPluginEvent(((enabled) ? "_onEnable" : "_onDisable"), this);
+ }
+ return false;
+ };
+
+
+//----TweenLite static methods -----------------------------------------------------
+
+ TweenLite.to = function(target, duration, vars) {
+ return new TweenLite(target, duration, vars);
+ };
+
+ TweenLite.from = function(target, duration, vars) {
+ vars.runBackwards = true;
+ if (vars.immediateRender != false) {
+ vars.immediateRender = true;
+ }
+ return new TweenLite(target, duration, vars);
+ };
+
+ TweenLite.fromTo = function(target, duration, fromVars, toVars) {
+ toVars.startAt = fromVars;
+ if (fromVars.immediateRender) {
+ toVars.immediateRender = true;
+ }
+ return new TweenLite(target, duration, toVars);
+ };
+
+ TweenLite.delayedCall = function(delay, callback, params, scope, useFrames) {
+ return new TweenLite(callback, 0, {delay:delay, onComplete:callback, onCompleteParams:params, onCompleteScope:scope, onReverseComplete:callback, onReverseCompleteParams:params, onReverseCompleteScope:scope, immediateRender:false, useFrames:useFrames, overwrite:0});
+ };
+
+ TweenLite.set = function(target, vars) {
+ return new TweenLite(target, 0, vars);
+ };
+
+ TweenLite.killTweensOf = TweenLite.killDelayedCallsTo = function(target, vars) {
+ var a = TweenLite.getTweensOf(target),
+ i = a.length;
+ while (--i > -1) {
+ a[i]._kill(vars, target);
+ }
+ };
+
+ TweenLite.getTweensOf = function(target) {
+ if (target == null) { return; }
+ var i, a, j, t;
+ if ((target instanceof Array || target.jquery) && typeof(target[0]) === "object") {
+ i = target.length;
+ a = [];
+ while (--i > -1) {
+ a = a.concat(TweenLite.getTweensOf(target[i]));
+ }
+ i = a.length;
+ //now get rid of any duplicates (tweens of arrays of objects could cause duplicates)
+ while (--i > -1) {
+ t = a[i];
+ j = i;
+ while (--j > -1) {
+ if (t === a[j]) {
+ a.splice(i, 1);
+ }
+ }
+ }
+ } else {
+ a = _register(target).concat();
+ i = a.length;
+ while (--i > -1) {
+ if (a[i]._gc) {
+ a.splice(i, 1);
+ }
+ }
+ }
+ return a;
+ };
+
+
+
+/*
+ * ----------------------------------------------------------------
+ * TweenPlugin (could easily be split out as a separate file/class, but included for ease of use (so that people don't need to include another <script> call before loading plugins which is easy to forget)
+ * ----------------------------------------------------------------
+ */
+ var TweenPlugin = _class("plugins.TweenPlugin", function(props, priority) {
+ this._overwriteProps = (props || "").split(",");
+ this._propName = this._overwriteProps[0];
+ this._priority = priority || 0;
+ }, true);
+
+ p = TweenPlugin.prototype;
+ TweenPlugin.version = 12;
+ TweenPlugin.API = 2;
+ p._firstPT = null;
+
+ p._addTween = function(target, prop, start, end, overwriteProp, round) {
+ var c, pt;
+ if (end != null && (c = (typeof(end) === "number" || end.charAt(1) !== "=") ? Number(end) - start : parseInt(end.charAt(0)+"1") * Number(end.substr(2)))) {
+ this._firstPT = pt = {_next:this._firstPT, t:target, p:prop, s:start, c:c, f:(typeof(target[prop]) === "function"), n:overwriteProp || prop, r:round};
+ if (pt._next) {
+ pt._next._prev = pt;
+ }
+ }
+ }
+
+ p.setRatio = function(v) {
+ var pt = this._firstPT,
+ val;
+ while (pt) {
+ val = pt.c * v + pt.s;
+ if (pt.r) {
+ val = (val + ((val > 0) ? 0.5 : -0.5)) >> 0; //about 4x faster than Math.round()
+ }
+ if (pt.f) {
+ pt.t[pt.p](val);
+ } else {
+ pt.t[pt.p] = val;
+ }
+ pt = pt._next;
+ }
+ }
+
+ p._kill = function(lookup) {
+ if (lookup[this._propName] != null) {
+ this._overwriteProps = [];
+ } else {
+ var i = this._overwriteProps.length;
+ while (--i > -1) {
+ if (lookup[this._overwriteProps[i]] != null) {
+ this._overwriteProps.splice(i, 1);
+ }
+ }
+ }
+ var pt = this._firstPT;
+ while (pt) {
+ if (lookup[pt.n] != null) {
+ if (pt._next) {
+ pt._next._prev = pt._prev;
+ }
+ if (pt._prev) {
+ pt._prev._next = pt._next;
+ pt._prev = null;
+ } else if (this._firstPT === pt) {
+ this._firstPT = pt._next;
+ }
+ }
+ pt = pt._next;
+ }
+ return false;
+ }
+
+ p._roundProps = function(lookup, value) {
+ var pt = this._firstPT;
+ while (pt) {
+ if (lookup[this._propName] || (pt.n != null && lookup[ pt.n.split(this._propName + "_").join("") ])) { //some properties that are very plugin-specific add a prefix named after the _propName plus an underscore, so we need to ignore that extra stuff here.
+ pt.r = value;
+ }
+ pt = pt._next;
+ }
+ }
+
+ TweenLite._onPluginEvent = function(type, tween) {
+ var pt = tween._firstPT,
+ changed;
+ if (type === "_onInitAllProps") {
+ //sorts the PropTween linked list in order of priority because some plugins need to render earlier/later than others, like MotionBlurPlugin applies its effects after all x/y/alpha tweens have rendered on each frame.
+ var pt2, first, last, next;
+ while (pt) {
+ next = pt._next;
+ pt2 = first;
+ while (pt2 && pt2.pr > pt.pr) {
+ pt2 = pt2._next;
+ }
+ if ((pt._prev = pt2 ? pt2._prev : last)) {
+ pt._prev._next = pt;
+ } else {
+ first = pt;
+ }
+ if ((pt._next = pt2)) {
+ pt2._prev = pt;
+ } else {
+ last = pt;
+ }
+ pt = next;
+ }
+ pt = tween._firstPT = first;
+ }
+ while (pt) {
+ if (pt.pg) if (typeof(pt.t[type]) === "function") if (pt.t[type]()) {
+ changed = true;
+ }
+ pt = pt._next;
+ }
+ return changed;
+ }
+
+ TweenPlugin.activate = function(plugins) {
+ var i = plugins.length;
+ while (--i > -1) {
+ if (plugins[i].API === TweenPlugin.API) {
+ TweenLite._plugins[(new plugins[i]())._propName] = plugins[i];
+ }
+ }
+ return true;
+ }
+
+
+
+ //now run through all the dependencies discovered and if any are missing, log that to the console as a warning. This is why it's best to have TweenLite load last - it can check all the dependencies for you.
+ if ((a = window._gsQueue)) {
+ for (i = 0; i < a.length; i++) {
+ a[i]();
+ }
+ for (p in _classLookup) {
+ if (!_classLookup[p].def) {
+ console.log("Warning: TweenLite encountered missing dependency: com.greensock."+p);
+ }
+ }
+ }
+
+
})(window);
\ No newline at end of file
diff --git a/src/uncompressed/TweenMax.js b/src/uncompressed/TweenMax.js
index 79679a6..ba770ba 100755
--- a/src/uncompressed/TweenMax.js
+++ b/src/uncompressed/TweenMax.js
@@ -1,6 +1,6 @@
/**
- * VERSION: beta 1.542
- * DATE: 2012-10-01
+ * VERSION: beta 1.5421
+ * DATE: 2012-11-13
* JavaScript (ActionScript 3 and 2 also available)
* UPDATES AND DOCS AT: http://www.greensock.com
*
@@ -2186,7 +2186,7 @@
m.scaleY = Math.sqrt(d * d + c * c);
m.rotation = (a || b) ? Math.atan2(b, a) : m.rotation || 0; //note: if scaleX is 0, we cannot accurately measure rotation. Same for skewX with a scaleY of 0. Therefore, we default to the previously recorded value (or zero if that doesn't exist).
m.skewX = (c || d) ? Math.atan2(c, d) + m.rotation : m.skewX || 0;
- if (Math.abs(m.skewX) > Math.PI / 2) {
+ if (Math.abs(m.skewX) > Math.PI / 2 && Math.abs(m.skewX) < Math.PI * 1.5) {
if (invX) {
m.scaleX *= -1;
m.skewX += (m.rotation <= 0) ? Math.PI : -Math.PI;
@@ -3447,10 +3447,11 @@
* EventDispatcher
* ----------------------------------------------------------------
*/
- p = _class("events.EventDispatcher", function(target) {
+ var EventDispatcher = _class("events.EventDispatcher", function(target) {
this._listeners = {};
this._eventTarget = target || this;
- }).prototype;
+ });
+ p = EventDispatcher.prototype;
p.addEventListener = function(type, callback, scope, useParam, priority) {
priority = priority || 0;
@@ -3518,33 +3519,44 @@
_reqAnimFrame = window[a[i] + "RequestAnimationFrame"];
_cancelAnimFrame = window[a[i] + "CancelAnimationFrame"] || window[a[i] + "CancelRequestAnimationFrame"];
}
- if (!_cancelAnimFrame) {
- _cancelAnimFrame = function(id) {
- window.clearTimeout(id);
- }
- }
_class("Ticker", function(fps, useRAF) {
- this.time = 0;
- this.frame = 0;
var _self = this,
_startTime = _getTime(),
- _useRAF = (useRAF !== false),
- _fps, _req, _id, _gap, _nextTime;
-
- this.tick = function() {
- _self.time = (_getTime() - _startTime) / 1000;
- if (!_fps || _self.time >= _nextTime) {
- _self.frame++;
- _nextTime = _self.time + _gap - (_self.time - _nextTime) - 0.0005;
- if (_nextTime <= _self.time) {
- _nextTime = _self.time + 0.001;
+ _useRAF = (useRAF !== false && _reqAnimFrame),
+ _fps, _req, _id, _gap, _nextTime,
+ _cancelReq = function() {
+ if (_id == null) {
+ return;
}
- _self.dispatchEvent("tick");
- }
- _id = _req( _self.tick );
+ if (!_useRAF || !_cancelAnimFrame) {
+ window.clearTimeout(_id);
+ } else {
+ _cancelAnimFrame(_id);
+ }
+ _id = null;
+ },
+ _tick = function(manual) {
+ _self.time = (_getTime() - _startTime) / 1000;
+ if (!_fps || _self.time >= _nextTime || manual) {
+ _self.frame++;
+ _nextTime = (_self.time > _nextTime) ? _self.time + _gap - (_self.time - _nextTime) : _self.time + _gap - 0.001;
+ if (_nextTime < _self.time + 0.001) {
+ _nextTime = _self.time + 0.001;
+ }
+ _self.dispatchEvent("tick");
+ }
+ if (manual !== true) {
+ _id = _req(_tick);
+ }
+ };
+
+ EventDispatcher.call(_self);
+ this.time = this.frame = 0;
+ this.tick = function() {
+ _tick(true);
};
-
+
this.fps = function(value) {
if (!arguments.length) {
return _fps;
@@ -3552,20 +3564,27 @@
_fps = value;
_gap = 1 / (_fps || 60);
_nextTime = this.time + _gap;
- _req = (_fps === 0) ? function(f){} : (!_useRAF || !_reqAnimFrame) ? function(f) { return window.setTimeout( f, (((_nextTime - _self.time) * 1000 + 1) >> 0) || 1); } : _reqAnimFrame;
- _cancelAnimFrame(_id);
- _id = _req( _self.tick );
+ _req = (_fps === 0) ? function(f){} : (!_useRAF || !_reqAnimFrame) ? function(f) { return window.setTimeout( f, (((_nextTime - _self.time) * 1000 + 1) >> 0) || 1); } : _reqAnimFrame;
+ _cancelReq();
+ _id = _req(_tick);
};
-
+
this.useRAF = function(value) {
if (!arguments.length) {
- return _useRAF
+ return _useRAF;
}
+ _cancelReq();
_useRAF = value;
- this.fps(_fps);
+ _self.fps(_fps);
};
-
- this.fps(fps);
+ _self.fps(fps);
+
+ //a bug in iOS 6 Safari occasionally prevents the requestAnimationFrame from working initially, so we use a 1-second timeout that automatically falls back to setTimeout() if it senses this condition.
+ window.setTimeout(function() {
+ if (_useRAF && !_id) {
+ _self.useRAF(false);
+ }
+ }, 1000);
});
p = gs.Ticker.prototype = new gs.events.EventDispatcher();
@@ -4155,7 +4174,6 @@
if (this.vars.ease instanceof Ease) {
this._ease = (this.vars.easeParams instanceof Array) ? this.vars.ease.config.apply(this.vars.ease, this.vars.easeParams) : this.vars.ease;
} else if (typeof(this.vars.ease) === "function") {
-
this._ease = new Ease(this.vars.ease, this.vars.easeParams);
} else {
this._ease = TweenLite.defaultEase;
@@ -4194,7 +4212,7 @@
};
p._initProps = function(target, propLookup, siblings, overwrittenProps) {
- var p, i, initPlugins, plugin, a, pt;
+ var p, i, initPlugins, plugin, a, pt, v;
if (target == null) {
return false;
}
@@ -4235,7 +4253,8 @@
} else {
this._firstPT = propLookup[p] = pt = {_next:this._firstPT, t:target, p:p, f:(typeof(target[p]) === "function"), n:p, pg:false, pr:0};
pt.s = (!pt.f) ? parseFloat(target[p]) : target[ ((p.indexOf("set") || typeof(target["get" + p.substr(3)]) !== "function") ? p : "get" + p.substr(3)) ]();
- pt.c = (typeof(this.vars[p]) === "number") ? this.vars[p] - pt.s : (typeof(this.vars[p]) === "string") ? parseFloat(this.vars[p].split("=").join("")) : 0;
+ v = this.vars[p];
+ pt.c = (typeof(v) === "number") ? v - pt.s : (typeof(v) === "string" && v.charAt(1) === "=") ? parseInt(v.charAt(0)+"1") * Number(v.substr(2)) : Number(v) || 0; //previously, we used Number(v.split("=").join("")) but that wouldn't adequately handle a value like "+=-500" or "-=-500".
}
if (pt) if (pt._next) {
pt._next._prev = pt;
@@ -4554,11 +4573,11 @@
p._firstPT = null;
p._addTween = function(target, prop, start, end, overwriteProp, round) {
- var c;
- if (end != null && (c = (typeof(end) === "number" || end.charAt(1) !== "=") ? Number(end) - start : Number(end.split("=").join("")))) {
- this._firstPT = {_next:this._firstPT, t:target, p:prop, s:start, c:c, f:(typeof(target[prop]) === "function"), n:overwriteProp || prop, r:round};
- if (this._firstPT._next) {
- this._firstPT._next._prev = this._firstPT;
+ var c, pt;
+ if (end != null && (c = (typeof(end) === "number" || end.charAt(1) !== "=") ? Number(end) - start : parseInt(end.charAt(0)+"1") * Number(end.substr(2)))) {
+ this._firstPT = pt = {_next:this._firstPT, t:target, p:prop, s:start, c:c, f:(typeof(target[prop]) === "function"), n:overwriteProp || prop, r:round};
+ if (pt._next) {
+ pt._next._prev = pt;
}
}
}
diff --git a/src/uncompressed/plugins/CSSPlugin.js b/src/uncompressed/plugins/CSSPlugin.js
index 9cbd65a..feff5e0 100755
--- a/src/uncompressed/plugins/CSSPlugin.js
+++ b/src/uncompressed/plugins/CSSPlugin.js
@@ -1,6 +1,6 @@
/*!
- * VERSION: beta 1.542
- * DATE: 2012-10-01
+ * VERSION: beta 1.5421
+ * DATE: 2012-11-13
* JavaScript
* UPDATES AND DOCS AT: http://www.greensock.com
*
@@ -214,7 +214,7 @@
m.scaleY = Math.sqrt(d * d + c * c);
m.rotation = (a || b) ? Math.atan2(b, a) : m.rotation || 0; //note: if scaleX is 0, we cannot accurately measure rotation. Same for skewX with a scaleY of 0. Therefore, we default to the previously recorded value (or zero if that doesn't exist).
m.skewX = (c || d) ? Math.atan2(c, d) + m.rotation : m.skewX || 0;
- if (Math.abs(m.skewX) > Math.PI / 2) {
+ if (Math.abs(m.skewX) > Math.PI / 2 && Math.abs(m.skewX) < Math.PI * 1.5) {
if (invX) {
m.scaleX *= -1;
m.skewX += (m.rotation <= 0) ? Math.PI : -Math.PI;