/******************************************** - themepunch tools ver. 1.0 - last update of tools 16.04.2014 *********************************************/ /* * @fileoverview touchswipe - jquery plugin * @version 1.6.6 * * @author matt bryson http://www.github.com/mattbryson * @see https://github.com/mattbryson/touchswipe-jquery-plugin * @see http://labs.skinkers.com/touchswipe/ * @see http://plugins.jquery.com/project/touchswipe * * copyright (c) 2010 matt bryson * dual licensed under the mit or gpl version 2 licenses. * */ (function(a){if(typeof define==="function"&&define.amd&&define.amd.jquery){define(["jquery"],a)}else{a(jquery)}}(function(f){var p="left",o="right",e="up",x="down",c="in",z="out",m="none",s="auto",l="swipe",t="pinch",a="tap",j="doubletap",b="longtap",y="hold",d="horizontal",u="vertical",i="all",r=10,g="start",k="move",h="end",q="cancel",a="ontouchstart" in window,v=window.navigator.mspointerenabled&&!window.navigator.pointerenabled,d=window.navigator.pointerenabled||window.navigator.mspointerenabled,b="touchswipe";var n={fingers:1,threshold:75,cancelthreshold:null,pinchthreshold:20,maxtimethreshold:null,fingerreleasethreshold:250,longtapthreshold:500,doubletapthreshold:200,swipe:null,swipeleft:null,swiperight:null,swipeup:null,swipedown:null,swipestatus:null,pinchin:null,pinchout:null,pinchstatus:null,click:null,tap:null,doubletap:null,longtap:null,hold:null,triggerontouchend:true,triggerontouchleave:false,allowpagescroll:"auto",fallbacktomouseevents:true,excludedelements:"label, button, input, select, textarea, a, .noswipe"};f.fn.swipe=function(g){var f=f(this),e=f.data(b);if(e&&typeof g==="string"){if(e[g]){return e[g].apply(this,array.prototype.slice.call(arguments,1))}else{f.error("method "+g+" does not exist on jquery.swipe")}}else{if(!e&&(typeof g==="object"||!g)){return w.apply(this,arguments)}}return f};f.fn.swipe.defaults=n;f.fn.swipe.phases={phase_start:g,phase_move:k,phase_end:h,phase_cancel:q};f.fn.swipe.directions={left:p,right:o,up:e,down:x,in:c,out:z};f.fn.swipe.pagescroll={none:m,horizontal:d,vertical:u,auto:s};f.fn.swipe.fingers={one:1,two:2,three:3,all:i};function w(e){if(e&&(e.allowpagescroll===undefined&&(e.swipe!==undefined||e.swipestatus!==undefined))){e.allowpagescroll=m}if(e.click!==undefined&&e.tap===undefined){e.tap=e.click}if(!e){e={}}e=f.extend({},f.fn.swipe.defaults,e);return this.each(function(){var g=f(this);var f=g.data(b);if(!f){f=new c(this,e);g.data(b,f)}})}function c(a4,av){var az=(a||d||!av.fallbacktomouseevents),j=az?(d?(v?"mspointerdown":"pointerdown"):"touchstart"):"mousedown",ay=az?(d?(v?"mspointermove":"pointermove"):"touchmove"):"mousemove",u=az?(d?(v?"mspointerup":"pointerup"):"touchend"):"mouseup",s=az?null:"mouseleave",ad=(d?(v?"mspointercancel":"pointercancel"):"touchcancel");var ag=0,ap=null,ab=0,a1=0,az=0,g=1,aq=0,aj=0,m=null;var ar=f(a4);var z="start";var w=0;var aq=null;var t=0,a2=0,a5=0,ad=0,n=0;var aw=null,af=null;try{ar.bind(j,an);ar.bind(ad,a9)}catch(ak){f.error("events not supported "+j+","+ad+" on jquery.swipe")}this.enable=function(){ar.bind(j,an);ar.bind(ad,a9);return ar};this.disable=function(){ak();return ar};this.destroy=function(){ak();ar.data(b,null);return ar};this.option=function(bc,bb){if(av[bc]!==undefined){if(bb===undefined){return av[bc]}else{av[bc]=bb}}else{f.error("option "+bc+" does not exist on jquery.swipe.options")}return null};function an(bd){if(ab()){return}if(f(bd.target).closest(av.excludedelements,ar).length>0){return}var be=bd.originalevent?bd.originalevent:bd;var bc,bb=a?be.touches[0]:be;z=g;if(a){w=be.touches.length}else{bd.preventdefault()}ag=0;ap=null;aj=null;ab=0;a1=0;az=0;g=1;aq=0;aq=aj();m=aa();r();if(!a||(w===av.fingers||av.fingers===i)||ax()){ai(0,bb);t=at();if(w==2){ai(1,be.touches[1]);a1=az=au(aq[0].start,aq[1].start)}if(av.swipestatus||av.pinchstatus){bc=o(be,z)}}else{bc=false}if(bc===false){z=q;o(be,z);return bc}else{if(av.hold){af=settimeout(f.proxy(function(){ar.trigger("hold",[be.target]);if(av.hold){bc=av.hold.call(ar,be,be.target)}},this),av.longtapthreshold)}ao(true)}return null}function a3(be){var bh=be.originalevent?be.originalevent:be;if(z===h||z===q||am()){return}var bd,bc=a?bh.touches[0]:bh;var bf=ah(bc);a2=at();if(a){w=bh.touches.length}if(av.hold){cleartimeout(af)}z=k;if(w==2){if(a1==0){ai(1,bh.touches[1]);a1=az=au(aq[0].start,aq[1].start)}else{ah(bh.touches[1]);az=au(aq[0].end,aq[1].end);aj=ar(aq[0].end,aq[1].end)}g=a7(a1,az);aq=math.abs(a1-az)}if((w===av.fingers||av.fingers===i)||!a||ax()){ap=al(bf.start,bf.end);al(be,ap);ag=as(bf.start,bf.end);ab=am();ai(ap,ag);if(av.swipestatus||av.pinchstatus){bd=o(bh,z)}if(!av.triggerontouchend||av.triggerontouchleave){var bb=true;if(av.triggerontouchleave){var bg=ay(this);bb=e(bf.end,bg)}if(!av.triggerontouchend&&bb){z=ac(k)}else{if(av.triggerontouchleave&&!bb){z=ac(h)}}if(z==q||z==h){o(bh,z)}}}else{z=q;o(bh,z)}if(bd===false){z=q;o(bh,z)}}function l(bb){var bc=bb.originalevent;if(a){if(bc.touches.length>0){f();return true}}if(am()){w=ad}a2=at();ab=am();if(ba()||!an()){z=q;o(bc,z)}else{if(av.triggerontouchend||(av.triggerontouchend==false&&z===k)){bb.preventdefault();z=h;o(bc,z)}else{if(!av.triggerontouchend&&a6()){z=h;af(bc,z,a)}else{if(z===k){z=q;o(bc,z)}}}}ao(false);return null}function a9(){w=0;a2=0;t=0;a1=0;az=0;g=1;r();ao(false)}function k(bb){var bc=bb.originalevent;if(av.triggerontouchleave){z=ac(h);o(bc,z)}}function ak(){ar.unbind(j,an);ar.unbind(ad,a9);ar.unbind(ay,a3);ar.unbind(u,l);if(s){ar.unbind(s,k)}ao(false)}function ac(bf){var be=bf;var bd=aa();var bc=an();var bb=ba();if(!bd||bb){be=q}else{if(bc&&bf==k&&(!av.triggerontouchend||av.triggerontouchleave)){be=h}else{if(!bc&&bf==h&&av.triggerontouchleave){be=q}}}return be}function o(bd,bb){var bc=undefined;if(i()||v()){bc=af(bd,bb,l)}else{if((p()||ax())&&bc!==false){bc=af(bd,bb,t)}}if(ag()&&bc!==false){bc=af(bd,bb,j)}else{if(ap()&&bc!==false){bc=af(bd,bb,b)}else{if(ah()&&bc!==false){bc=af(bd,bb,a)}}}if(bb===q){a9(bd)}if(bb===h){if(a){if(bd.touches.length==0){a9(bd)}}else{a9(bd)}}return bc}function af(be,bb,bd){var bc=undefined;if(bd==l){ar.trigger("swipestatus",[bb,ap||null,ag||0,ab||0,w,aq]);if(av.swipestatus){bc=av.swipestatus.call(ar,be,bb,ap||null,ag||0,ab||0,w,aq);if(bc===false){return false}}if(bb==h&&av()){ar.trigger("swipe",[ap,ag,ab,w,aq]);if(av.swipe){bc=av.swipe.call(ar,be,ap,ag,ab,w,aq);if(bc===false){return false}}switch(ap){case p:ar.trigger("swipeleft",[ap,ag,ab,w,aq]);if(av.swipeleft){bc=av.swipeleft.call(ar,be,ap,ag,ab,w,aq)}break;case o:ar.trigger("swiperight",[ap,ag,ab,w,aq]);if(av.swiperight){bc=av.swiperight.call(ar,be,ap,ag,ab,w,aq)}break;case e:ar.trigger("swipeup",[ap,ag,ab,w,aq]);if(av.swipeup){bc=av.swipeup.call(ar,be,ap,ag,ab,w,aq)}break;case x:ar.trigger("swipedown",[ap,ag,ab,w,aq]);if(av.swipedown){bc=av.swipedown.call(ar,be,ap,ag,ab,w,aq)}break}}}if(bd==t){ar.trigger("pinchstatus",[bb,aj||null,aq||0,ab||0,w,g,aq]);if(av.pinchstatus){bc=av.pinchstatus.call(ar,be,bb,aj||null,aq||0,ab||0,w,g,aq);if(bc===false){return false}}if(bb==h&&a8()){switch(aj){case c:ar.trigger("pinchin",[aj||null,aq||0,ab||0,w,g,aq]);if(av.pinchin){bc=av.pinchin.call(ar,be,aj||null,aq||0,ab||0,w,g,aq)}break;case z:ar.trigger("pinchout",[aj||null,aq||0,ab||0,w,g,aq]);if(av.pinchout){bc=av.pinchout.call(ar,be,aj||null,aq||0,ab||0,w,g,aq)}break}}}if(bd==a){if(bb===q||bb===h){cleartimeout(aw);cleartimeout(af);if(y()&&!h()){n=at();aw=settimeout(f.proxy(function(){n=null;ar.trigger("tap",[be.target]);if(av.tap){bc=av.tap.call(ar,be,be.target)}},this),av.doubletapthreshold)}else{n=null;ar.trigger("tap",[be.target]);if(av.tap){bc=av.tap.call(ar,be,be.target)}}}}else{if(bd==j){if(bb===q||bb===h){cleartimeout(aw);n=null;ar.trigger("doubletap",[be.target]);if(av.doubletap){bc=av.doubletap.call(ar,be,be.target)}}}else{if(bd==b){if(bb===q||bb===h){cleartimeout(aw);n=null;ar.trigger("longtap",[be.target]);if(av.longtap){bc=av.longtap.call(ar,be,be.target)}}}}}return bc}function an(){var bb=true;if(av.threshold!==null){bb=ag>=av.threshold}return bb}function ba(){var bb=false;if(av.cancelthreshold!==null&&ap!==null){bb=(at(ap)-ag)>=av.cancelthreshold}return bb}function ae(){if(av.pinchthreshold!==null){return aq>=av.pinchthreshold}return true}function aa(){var bb;if(av.maxtimethreshold){if(ab>=av.maxtimethreshold){bb=false}else{bb=true}}else{bb=true}return bb}function al(bb,bc){if(av.allowpagescroll===m||ax()){bb.preventdefault()}else{var bd=av.allowpagescroll===s;switch(bc){case p:if((av.swipeleft&&bd)||(!bd&&av.allowpagescroll!=d)){bb.preventdefault()}break;case o:if((av.swiperight&&bd)||(!bd&&av.allowpagescroll!=d)){bb.preventdefault()}break;case e:if((av.swipeup&&bd)||(!bd&&av.allowpagescroll!=u)){bb.preventdefault()}break;case x:if((av.swipedown&&bd)||(!bd&&av.allowpagescroll!=u)){bb.preventdefault()}break}}}function a8(){var bc=ao();var bb=x();var bd=ae();return bc&&bb&&bd}function ax(){return !!(av.pinchstatus||av.pinchin||av.pinchout)}function p(){return !!(a8()&&ax())}function av(){var be=aa();var bg=an();var bd=ao();var bb=x();var bc=ba();var bf=!bc&&bb&&bd&&bg&&be;return bf}function v(){return !!(av.swipe||av.swipestatus||av.swipeleft||av.swiperight||av.swipeup||av.swipedown)}function i(){return !!(av()&&v())}function ao(){return((w===av.fingers||av.fingers===i)||!a)}function x(){return aq[0].end.x!==0}function a6(){return !!(av.tap)}function y(){return !!(av.doubletap)}function au(){return !!(av.longtap)}function q(){if(n==null){return false}var bb=at();return(y()&&((bb-n)<=av.doubletapthreshold))}function h(){return q()}function ax(){return((w===1||!a)&&(isnan(ag)||agav.longtapthreshold)&&(ag=0)){return p}else{if((bd<=360)&&(bd>=315)){return p}else{if((bd>=135)&&(bd<=225)){return o}else{if((bd>45)&&(bd<135)){return x}else{return e}}}}}function at(){var bb=new date();return bb.gettime()}function ay(bb){bb=f(bb);var bd=bb.offset();var bc={left:bd.left,right:bd.left+bb.outerwidth(),top:bd.top,bottom:bd.top+bb.outerheight()};return bc}function e(bb,bc){return(bb.x>bc.left&&bb.xbc.top&&bb.ye;e++)n[s[e]]=n=n[s[e]]||{};return n},h=l("com.greensock"),_=1e-10,u=function(t){var e,i=[],s=t.length;for(e=0;e!==s;i.push(t[e++]));return i},f=function(){},m=function(){var t=object.prototype.tostring,e=t.call([]);return function(i){return null!=i&&(i instanceof array||"object"==typeof i&&!!i.push&&t.call(i)===e)}}(),p={},c=function(s,n,r,a){this.sc=p[s]?p[s].sc:[],p[s]=this,this.gsclass=null,this.func=r;var o=[];this.check=function(h){for(var _,u,f,m,d=n.length,v=d;--d>-1;)(_=p[n[d]]||new c(n[d],[])).gsclass?(o[d]=_.gsclass,v--):h&&_.sc.push(this);if(0===v&&r)for(u=("com.greensock."+s).split("."),f=u.pop(),m=l(u.join("."))[f]=this.gsclass=r.apply(r,o),a&&(i[f]=m,"function"==typeof define&&define.amd?define((t.greensockamdpath?t.greensockamdpath+"/":"")+s.split(".").pop(),[],function(){return m}):s===e&&"undefined"!=typeof module&&module.exports&&(module.exports=m)),d=0;this.sc.length>d;d++)this.sc[d].check()},this.check(!0)},d=t._gsdefine=function(t,e,i,s){return new c(t,e,i,s)},v=h._class=function(t,e,i){return e=e||function(){},d(t,[],function(){return e},i),e};d.globals=i;var g=[0,0,1,1],t=[],y=v("easing.ease",function(t,e,i,s){this._func=t,this._type=i||0,this._power=s||0,this._params=e?g.concat(e):g},!0),w=y.map={},p=y.register=function(t,e,i,s){for(var n,r,a,o,l=e.split(","),_=l.length,u=(i||"easein,easeout,easeinout").split(",");--_>-1;)for(r=l[_],n=s?v("easing."+r,null,!0):h.easing[r]||{},a=u.length;--a>-1;)o=u[a],w[r+"."+o]=w[o+r]=n[o]=t.getratio?t:t[o]||new t};for(r=y.prototype,r._calcend=!1,r.getratio=function(t){if(this._func)return this._params[0]=t,this._func.apply(null,this._params);var e=this._type,i=this._power,s=1===e?1-t:2===e?t:.5>t?2*t:2*(1-t);return 1===i?s*=s:2===i?s*=s*s:3===i?s*=s*s*s:4===i&&(s*=s*s*s*s),1===e?1-s:2===e?s:.5>t?s/2:1-s/2},s=["linear","quad","cubic","quart","quint,strong"],n=s.length;--n>-1;)r=s[n]+",power"+n,p(new y(null,null,1,n),r,"easeout",!0),p(new y(null,null,2,n),r,"easein"+(0===n?",easenone":"")),p(new y(null,null,3,n),r,"easeinout");w.linear=h.easing.linear.easein,w.swing=h.easing.quad.easeinout;var b=v("events.eventdispatcher",function(t){this._listeners={},this._eventtarget=t||this});r=b.prototype,r.addeventlistener=function(t,e,i,s,n){n=n||0;var r,l,h=this._listeners[t],_=0;for(null==h&&(this._listeners[t]=h=[]),l=h.length;--l>-1;)r=h[l],r.c===e&&r.s===i?h.splice(l,1):0===_&&n>r.pr&&(_=l+1);h.splice(_,0,{c:e,s:i,up:s,pr:n}),this!==a||o||a.wake()},r.removeeventlistener=function(t,e){var i,s=this._listeners[t];if(s)for(i=s.length;--i>-1;)if(s[i].c===e)return s.splice(i,1),void 0},r.dispatchevent=function(t){var e,i,s,n=this._listeners[t];if(n)for(e=n.length,i=this._eventtarget;--e>-1;)s=n[e],s.up?s.c.call(s.s||i,{type:t,target:i}):s.c.call(s.s||i)};var k=t.requestanimationframe,a=t.cancelanimationframe,s=date.now||function(){return(new date).gettime()},x=s();for(s=["ms","moz","webkit","o"],n=s.length;--n>-1&&!k;)k=t[s[n]+"requestanimationframe"],a=t[s[n]+"cancelanimationframe"]||t[s[n]+"cancelrequestanimationframe"];v("ticker",function(t,e){var i,s,n,r,l,h=this,u=s(),m=e!==!1&&k,p=500,c=33,d=function(t){var e,a,o=s()-x;o>p&&(u+=o-c),x+=o,h.time=(x-u)/1e3,e=h.time-l,(!i||e>0||t===!0)&&(h.frame++,l+=e+(e>=r?.004:r-e),a=!0),t!==!0&&(n=s(d)),a&&h.dispatchevent("tick")};b.call(h),h.time=h.frame=0,h.tick=function(){d(!0)},h.lagsmoothing=function(t,e){p=t||1/_,c=math.min(e,p,0)},h.sleep=function(){null!=n&&(m&&a?a(n):cleartimeout(n),s=f,n=null,h===a&&(o=!1))},h.wake=function(){null!==n?h.sleep():h.frame>10&&(x=s()-p+5),s=0===i?f:m&&k?k:function(t){return settimeout(t,0|1e3*(l-h.time)+1)},h===a&&(o=!0),d(2)},h.fps=function(t){return arguments.length?(i=t,r=1/(i||60),l=this.time+r,h.wake(),void 0):i},h.useraf=function(t){return arguments.length?(h.sleep(),m=t,h.fps(i),void 0):m},h.fps(t),settimeout(function(){m&&(!n||5>h.frame)&&h.useraf(!1)},1500)}),r=h.ticker.prototype=new h.events.eventdispatcher,r.constructor=h.ticker;var c=v("core.animation",function(t,e){if(this.vars=e=e||{},this._duration=this._totalduration=t||0,this._delay=number(e.delay)||0,this._timescale=1,this._active=e.immediaterender===!0,this.data=e.data,this._reversed=e.reversed===!0,b){o||a.wake();var i=this.vars.useframes?q:b;i.add(this,i._time),this.vars.paused&&this.paused(!0)}});a=c.ticker=new h.ticker,r=c.prototype,r._dirty=r._gc=r._initted=r._paused=!1,r._totaltime=r._time=0,r._rawprevtime=-1,r._next=r._last=r._onupdate=r._timeline=r.timeline=null,r._paused=!1;var r=function(){o&&s()-x>2e3&&a.wake(),settimeout(r,2e3)};r(),r.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},r.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},r.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},r.seek=function(t,e){return this.totaltime(number(t),e!==!1)},r.restart=function(t,e){return this.reversed(!1).paused(!1).totaltime(t?-this._delay:0,e!==!1,!0)},r.reverse=function(t,e){return null!=t&&this.seek(t||this.totalduration(),e),this.reversed(!0).paused(!1)},r.render=function(){},r.invalidate=function(){return this},r.isactive=function(){var t,e=this._timeline,i=this._starttime;return!e||!this._gc&&!this._paused&&e.isactive()&&(t=e.rawtime())>=i&&i+this.totalduration()/this._timescale>t},r._enabled=function(t,e){return o||a.wake(),this._gc=!t,this._active=this.isactive(),e!==!0&&(t&&!this.timeline?this._timeline.add(this,this._starttime-this._delay):!t&&this.timeline&&this._timeline._remove(this,!0)),!1},r._kill=function(){return this._enabled(!1,!1)},r.kill=function(t,e){return this._kill(t,e),this},r._uncache=function(t){for(var e=t?this:this.timeline;e;)e._dirty=!0,e=e.timeline;return this},r._swapselfinparams=function(t){for(var e=t.length,i=t.concat();--e>-1;)"{self}"===t[e]&&(i[e]=this);return i},r.eventcallback=function(t,e,i,s){if("on"===(t||"").substr(0,2)){var n=this.vars;if(1===arguments.length)return n[t];null==e?delete n[t]:(n[t]=e,n[t+"params"]=m(i)&&-1!==i.join("").indexof("{self}")?this._swapselfinparams(i):i,n[t+"scope"]=s),"onupdate"===t&&(this._onupdate=e)}return this},r.delay=function(t){return arguments.length?(this._timeline.smoothchildtiming&&this.starttime(this._starttime+t-this._delay),this._delay=t,this):this._delay},r.duration=function(t){return arguments.length?(this._duration=this._totalduration=t,this._uncache(!0),this._timeline.smoothchildtiming&&this._time>0&&this._timethis._duration?this._duration:t,e)):this._time},r.totaltime=function(t,e,i){if(o||a.wake(),!arguments.length)return this._totaltime;if(this._timeline){if(0>t&&!i&&(t+=this.totalduration()),this._timeline.smoothchildtiming){this._dirty&&this.totalduration();var s=this._totalduration,n=this._timeline;if(t>s&&!i&&(t=s),this._starttime=(this._paused?this._pausetime:n._time)-(this._reversed?s-t:t)/this._timescale,n._dirty||this._uncache(!1),n._timeline)for(;n._timeline;)n._timeline._time!==(n._starttime+n._totaltime)/n._timescale&&n.totaltime(n._totaltime,!0),n=n._timeline}this._gc&&this._enabled(!0,!1),(this._totaltime!==t||0===this._duration)&&(this.render(t,e,!1),o.length&&m())}return this},r.progress=r.totalprogress=function(t,e){return arguments.length?this.totaltime(this.duration()*t,e):this._time/this.duration()},r.starttime=function(t){return arguments.length?(t!==this._starttime&&(this._starttime=t,this.timeline&&this.timeline._sortchildren&&this.timeline.add(this,t-this._delay)),this):this._starttime},r.timescale=function(t){if(!arguments.length)return this._timescale;if(t=t||_,this._timeline&&this._timeline.smoothchildtiming){var e=this._pausetime,i=e||0===e?e:this._timeline.totaltime();this._starttime=i-(i-this._starttime)*this._timescale/t}return this._timescale=t,this._uncache(!1)},r.reversed=function(t){return arguments.length?(t!=this._reversed&&(this._reversed=t,this.totaltime(this._timeline&&!this._timeline.smoothchildtiming?this.totalduration()-this._totaltime:this._totaltime,!0)),this):this._reversed},r.paused=function(t){if(!arguments.length)return this._paused;if(t!=this._paused&&this._timeline){o||t||a.wake();var e=this._timeline,i=e.rawtime(),s=i-this._pausetime;!t&&e.smoothchildtiming&&(this._starttime+=s,this._uncache(!1)),this._pausetime=t?i:null,this._paused=t,this._active=this.isactive(),!t&&0!==s&&this._initted&&this.duration()&&this.render(e.smoothchildtiming?this._totaltime:(i-this._starttime)/this._timescale,!0,!0)}return this._gc&&!t&&this._enabled(!0,!1),this};var d=v("core.simpletimeline",function(t){c.call(this,0,t),this.autoremovechildren=this.smoothchildtiming=!0});r=d.prototype=new c,r.constructor=d,r.kill()._gc=!1,r._first=r._last=null,r._sortchildren=!1,r.add=r.insert=function(t,e){var i,s;if(t._starttime=number(e||0)+t._delay,t._paused&&this!==t._timeline&&(t._pausetime=t._starttime+(this.rawtime()-t._starttime)/t._timescale),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),i=this._last,this._sortchildren)for(s=t._starttime;i&&i._starttime>s;)i=i._prev;return i?(t._next=i._next,i._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=i,this._timeline&&this._uncache(!0),this},r._remove=function(t,e){return t.timeline===this&&(e||t._enabled(!1,!0),t._prev?t._prev._next=t._next:this._first===t&&(this._first=t._next),t._next?t._next._prev=t._prev:this._last===t&&(this._last=t._prev),t._next=t._prev=t.timeline=null,this._timeline&&this._uncache(!0)),this},r.render=function(t,e,i){var s,n=this._first;for(this._totaltime=this._time=this._rawprevtime=t;n;)s=n._next,(n._active||t>=n._starttime&&!n._paused)&&(n._reversed?n.render((n._dirty?n.totalduration():n._totalduration)-(t-n._starttime)*n._timescale,e,i):n.render((t-n._starttime)*n._timescale,e,i)),n=s},r.rawtime=function(){return o||a.wake(),this._totaltime};var i=v("tweenlite",function(e,i,s){if(c.call(this,i,s),this.render=i.prototype.render,null==e)throw"cannot tween a null target.";this.target=e="string"!=typeof e?e:i.selector(e)||e;var n,r,a,o=e.jquery||e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodetype&&e[0].style&&!e.nodetype),l=this.vars.overwrite;if(this._overwrite=l=null==l?q[i.defaultoverwrite]:"number"==typeof l?l>>0:q[l],(o||e instanceof array||e.push&&m(e))&&"number"!=typeof e[0])for(this._targets=a=u(e),this._proplookup=[],this._siblings=[],n=0;a.length>n;n++)r=a[n],r?"string"!=typeof r?r.length&&r!==t&&r[0]&&(r[0]===t||r[0].nodetype&&r[0].style&&!r.nodetype)?(a.splice(n--,1),this._targets=a=a.concat(u(r))):(this._siblings[n]=$(r,this,!1),1===l&&this._siblings[n].length>1&&k(r,this,null,1,this._siblings[n])):(r=a[n--]=i.selector(r),"string"==typeof r&&a.splice(n+1,1)):a.splice(n--,1);else this._proplookup={},this._siblings=$(e,this,!1),1===l&&this._siblings.length>1&&k(e,this,null,1,this._siblings);(this.vars.immediaterender||0===i&&0===this._delay&&this.vars.immediaterender!==!1)&&(this._time=-_,this.render(-this._delay))},!0),e=function(e){return e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodetype&&e[0].style&&!e.nodetype)},z=function(t,e){var i,s={};for(i in t)g[i]||i in e&&"transform"!==i&&"x"!==i&&"y"!==i&&"width"!==i&&"height"!==i&&"classname"!==i&&"border"!==i||!(!u[i]||u[i]&&u[i]._autocss)||(s[i]=t[i],delete t[i]);t.css=s};r=i.prototype=new c,r.constructor=i,r.kill()._gc=!1,r.ratio=0,r._firstpt=r._targets=r._overwrittenprops=r._startat=null,r._notifypluginsofenabled=r._lazy=!1,i.version="1.13.1",i.defaultease=r._ease=new y(null,null,1,1),i.defaultoverwrite="auto",i.ticker=a,i.autosleep=!0,i.lagsmoothing=function(t,e){a.lagsmoothing(t,e)},i.selector=t.$||t.jquery||function(e){var i=t.$||t.jquery;return i?(i.selector=i,i(e)):"undefined"==typeof document?e:document.queryselectorall?document.queryselectorall(e):document.getelementbyid("#"===e.charat(0)?e.substr(1):e)};var o=[],l={},n=i._internals={isarray:m,isselector:e,lazytweens:o},u=i._plugins={},f=n.tweenlookup={},j=0,g=n.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,immediaterender:1,repeat:1,repeatdelay:1,data:1,paused:1,reversed:1,autocss:1,lazy:1},q={none:0,all:1,auto:2,concurrent:3,allonstart:4,preexisting:5,"true":1,"false":0},q=c._rootframestimeline=new d,b=c._roottimeline=new d,m=n.lazyrender=function(){var t=o.length;for(l={};--t>-1;)s=o[t],s&&s._lazy!==!1&&(s.render(s._lazy,!1,!0),s._lazy=!1);o.length=0};b._starttime=a.time,q._starttime=a.frame,b._active=q._active=!0,settimeout(m,1),c._updateroot=i.render=function(){var t,e,i;if(o.length&&m(),b.render((a.time-b._starttime)*b._timescale,!1,!1),q.render((a.frame-q._starttime)*q._timescale,!1,!1),o.length&&m(),!(a.frame%120)){for(i in f){for(e=f[i].tweens,t=e.length;--t>-1;)e[t]._gc&&e.splice(t,1);0===e.length&&delete f[i]}if(i=b._first,(!i||i._paused)&&i.autosleep&&!q._first&&1===a._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||a.sleep()}}},a.addeventlistener("tick",c._updateroot);var $=function(t,e,i){var s,n,r=t._gstweenid;if(f[r||(t._gstweenid=r="t"+j++)]||(f[r]={target:t,tweens:[]}),e&&(s=f[r].tweens,s[n=s.length]=e,i))for(;--n>-1;)s[n]===e&&s.splice(n,1);return f[r].tweens},k=function(t,e,i,s,n){var r,a,o,l;if(1===s||s>=4){for(l=n.length,r=0;l>r;r++)if((o=n[r])!==e)o._gc||o._enabled(!1,!1)&&(a=!0);else if(5===s)break;return a}var h,u=e._starttime+_,f=[],m=0,p=0===e._duration;for(r=n.length;--r>-1;)(o=n[r])===e||o._gc||o._paused||(o._timeline!==e._timeline?(h=h||h(e,0,p),0===h(o,h,p)&&(f[m++]=o)):u>=o._starttime&&o._starttime+o.totalduration()/o._timescale>u&&((p||!o._initted)&&2e-10>=u-o._starttime||(f[m++]=o)));for(r=m;--r>-1;)o=f[r],2===s&&o._kill(i,t)&&(a=!0),(2!==s||!o._firstpt&&o._initted)&&o._enabled(!1,!1)&&(a=!0);return a},h=function(t,e,i){for(var s=t._timeline,n=s._timescale,r=t._starttime;s._timeline;){if(r+=s._starttime,n*=s._timescale,s._paused)return-100;s=s._timeline}return r/=n,r>e?r-e:i&&r===e||!t._initted&&2*_>r-e?_:(r+=t.totalduration()/t._timescale/n)>e+_?0:r-e-_};r._init=function(){var t,e,i,s,n,r=this.vars,a=this._overwrittenprops,o=this._duration,l=!!r.immediaterender,h=r.ease;if(r.startat){this._startat&&(this._startat.render(-1,!0),this._startat.kill()),n={};for(s in r.startat)n[s]=r.startat[s];if(n.overwrite=!1,n.immediaterender=!0,n.lazy=l&&r.lazy!==!1,n.startat=n.delay=null,this._startat=i.to(this.target,0,n),l)if(this._time>0)this._startat=null;else if(0!==o)return}else if(r.runbackwards&&0!==o)if(this._startat)this._startat.render(-1,!0),this._startat.kill(),this._startat=null;else{i={};for(s in r)g[s]&&"autocss"!==s||(i[s]=r[s]);if(i.overwrite=0,i.data="isfromstart",i.lazy=l&&r.lazy!==!1,i.immediaterender=l,this._startat=i.to(this.target,0,i),l){if(0===this._time)return}else this._startat._init(),this._startat._enabled(!1)}if(this._ease=h=h?h instanceof y?h:"function"==typeof h?new y(h,r.easeparams):w[h]||i.defaultease:i.defaultease,r.easeparams instanceof array&&h.config&&(this._ease=h.config.apply(h,r.easeparams)),this._easetype=this._ease._type,this._easepower=this._ease._power,this._firstpt=null,this._targets)for(t=this._targets.length;--t>-1;)this._initprops(this._targets[t],this._proplookup[t]={},this._siblings[t],a?a[t]:null)&&(e=!0);else e=this._initprops(this.target,this._proplookup,this._siblings,a);if(e&&i._onpluginevent("_oninitallprops",this),a&&(this._firstpt||"function"!=typeof this.target&&this._enabled(!1,!1)),r.runbackwards)for(i=this._firstpt;i;)i.s+=i.c,i.c=-i.c,i=i._next;this._onupdate=r.onupdate,this._initted=!0},r._initprops=function(e,i,s,n){var r,a,o,l,h,_;if(null==e)return!1;l[e._gstweenid]&&m(),this.vars.css||e.style&&e!==t&&e.nodetype&&u.css&&this.vars.autocss!==!1&&z(this.vars,e);for(r in this.vars){if(_=this.vars[r],g[r])_&&(_ instanceof array||_.push&&m(_))&&-1!==_.join("").indexof("{self}")&&(this.vars[r]=_=this._swapselfinparams(_,this));else if(u[r]&&(l=new u[r])._oninittween(e,this.vars[r],this)){for(this._firstpt=h={_next:this._firstpt,t:l,p:"setratio",s:0,c:1,f:!0,n:r,pg:!0,pr:l._priority},a=l._overwriteprops.length;--a>-1;)i[l._overwriteprops[a]]=this._firstpt;(l._priority||l._oninitallprops)&&(o=!0),(l._ondisable||l._onenable)&&(this._notifypluginsofenabled=!0)}else this._firstpt=i[r]=h={_next:this._firstpt,t:e,p:r,f:"function"==typeof e[r],n:r,pg:!1,pr:0},h.s=h.f?e[r.indexof("set")||"function"!=typeof e["get"+r.substr(3)]?r:"get"+r.substr(3)]():parsefloat(e[r]),h.c="string"==typeof _&&"="===_.charat(1)?parseint(_.charat(0)+"1",10)*number(_.substr(2)):number(_)-h.s||0;h&&h._next&&(h._next._prev=h)}return n&&this._kill(n,e)?this._initprops(e,i,s,n):this._overwrite>1&&this._firstpt&&s.length>1&&k(e,this,i,this._overwrite,s)?(this._kill(i,e),this._initprops(e,i,s,n)):(this._firstpt&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(l[e._gstweenid]=!0),o)},r.render=function(t,e,i){var s,n,r,a,o=this._time,l=this._duration,h=this._rawprevtime;if(t>=l)this._totaltime=this._time=l,this.ratio=this._ease._calcend?this._ease.getratio(1):1,this._reversed||(s=!0,n="oncomplete"),0===l&&(this._initted||!this.vars.lazy||i)&&(this._starttime===this._timeline._duration&&(t=0),(0===t||0>h||h===_)&&h!==t&&(i=!0,h>_&&(n="onreversecomplete")),this._rawprevtime=a=!e||t||h===t?t:_);else if(1e-7>t)this._totaltime=this._time=0,this.ratio=this._ease._calcend?this._ease.getratio(0):0,(0!==o||0===l&&h>0&&h!==_)&&(n="onreversecomplete",s=this._reversed),0>t?(this._active=!1,0===l&&(this._initted||!this.vars.lazy||i)&&(h>=0&&(i=!0),this._rawprevtime=a=!e||t||h===t?t:_)):this._initted||(i=!0);else if(this._totaltime=this._time=t,this._easetype){var u=t/l,f=this._easetype,m=this._easepower;(1===f||3===f&&u>=.5)&&(u=1-u),3===f&&(u*=2),1===m?u*=u:2===m?u*=u*u:3===m?u*=u*u*u:4===m&&(u*=u*u*u*u),this.ratio=1===f?1-u:2===f?u:.5>t/l?u/2:1-u/2}else this.ratio=this._ease.getratio(t/l);if(this._time!==o||i){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstpt&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totaltime=o,this._rawprevtime=h,o.push(this),this._lazy=t,void 0;this._time&&!s?this.ratio=this._ease.getratio(this._time/l):s&&this._ease._calcend&&(this.ratio=this._ease.getratio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==o&&t>=0&&(this._active=!0),0===o&&(this._startat&&(t>=0?this._startat.render(t,e,i):n||(n="_dummygs")),this.vars.onstart&&(0!==this._time||0===l)&&(e||this.vars.onstart.apply(this.vars.onstartscope||this,this.vars.onstartparams||t))),r=this._firstpt;r;)r.f?r.t[r.p](r.c*this.ratio+r.s):r.t[r.p]=r.c*this.ratio+r.s,r=r._next;this._onupdate&&(0>t&&this._startat&&this._starttime&&this._startat.render(t,e,i),e||(this._time!==o||s)&&this._onupdate.apply(this.vars.onupdatescope||this,this.vars.onupdateparams||t)),n&&(!this._gc||i)&&(0>t&&this._startat&&!this._onupdate&&this._starttime&&this._startat.render(t,e,i),s&&(this._timeline.autoremovechildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[n]&&this.vars[n].apply(this.vars[n+"scope"]||this,this.vars[n+"params"]||t),0===l&&this._rawprevtime===_&&a!==_&&(this._rawprevtime=0))}},r._kill=function(t,e){if("all"===t&&(t=null),null==t&&(null==e||e===this.target))return this._lazy=!1,this._enabled(!1,!1);e="string"!=typeof e?e||this._targets||this.target:i.selector(e)||e;var i,s,n,r,a,o,l,h;if((m(e)||e(e))&&"number"!=typeof e[0])for(i=e.length;--i>-1;)this._kill(t,e[i])&&(o=!0);else{if(this._targets){for(i=this._targets.length;--i>-1;)if(e===this._targets[i]){a=this._proplookup[i]||{},this._overwrittenprops=this._overwrittenprops||[],s=this._overwrittenprops[i]=t?this._overwrittenprops[i]||{}:"all";break}}else{if(e!==this.target)return!1;a=this._proplookup,s=this._overwrittenprops=t?this._overwrittenprops||{}:"all"}if(a){l=t||a,h=t!==s&&"all"!==s&&t!==a&&("object"!=typeof t||!t._tempkill);for(n in l)(r=a[n])&&(r.pg&&r.t._kill(l)&&(o=!0),r.pg&&0!==r.t._overwriteprops.length||(r._prev?r._prev._next=r._next:r===this._firstpt&&(this._firstpt=r._next),r._next&&(r._next._prev=r._prev),r._next=r._prev=null),delete a[n]),h&&(s[n]=1);!this._firstpt&&this._initted&&this._enabled(!1,!1)}}return o},r.invalidate=function(){return this._notifypluginsofenabled&&i._onpluginevent("_ondisable",this),this._firstpt=null,this._overwrittenprops=null,this._onupdate=null,this._startat=null,this._initted=this._active=this._notifypluginsofenabled=this._lazy=!1,this._proplookup=this._targets?{}:[],this},r._enabled=function(t,e){if(o||a.wake(),t&&this._gc){var i,s=this._targets;if(s)for(i=s.length;--i>-1;)this._siblings[i]=$(s[i],this,!0);else this._siblings=$(this.target,this,!0)}return c.prototype._enabled.call(this,t,e),this._notifypluginsofenabled&&this._firstpt?i._onpluginevent(t?"_onenable":"_ondisable",this):!1},i.to=function(t,e,i){return new i(t,e,i)},i.from=function(t,e,i){return i.runbackwards=!0,i.immediaterender=0!=i.immediaterender,new i(t,e,i)},i.fromto=function(t,e,i,s){return s.startat=i,s.immediaterender=0!=s.immediaterender&&0!=i.immediaterender,new i(t,e,s)},i.delayedcall=function(t,e,i,s,n){return new i(e,0,{delay:t,oncomplete:e,oncompleteparams:i,oncompletescope:s,onreversecomplete:e,onreversecompleteparams:i,onreversecompletescope:s,immediaterender:!1,useframes:n,overwrite:0})},i.set=function(t,e){return new i(t,0,e)},i.gettweensof=function(t,e){if(null==t)return[];t="string"!=typeof t?t:i.selector(t)||t;var i,s,n,r;if((m(t)||e(t))&&"number"!=typeof t[0]){for(i=t.length,s=[];--i>-1;)s=s.concat(i.gettweensof(t[i],e));for(i=s.length;--i>-1;)for(r=s[i],n=i;--n>-1;)r===s[n]&&s.splice(i,1)}else for(s=$(t).concat(),i=s.length;--i>-1;)(s[i]._gc||e&&!s[i].isactive())&&s.splice(i,1);return s},i.killtweensof=i.killdelayedcallsto=function(t,e,i){"object"==typeof e&&(i=e,e=!1);for(var s=i.gettweensof(t,e),n=s.length;--n>-1;)s[n]._kill(i,t)};var j=v("plugins.tweenplugin",function(t,e){this._overwriteprops=(t||"").split(","),this._propname=this._overwriteprops[0],this._priority=e||0,this._super=j.prototype},!0);if(r=j.prototype,j.version="1.10.1",j.api=2,r._firstpt=null,r._addtween=function(t,e,i,s,n,r){var a,o;return null!=s&&(a="number"==typeof s||"="!==s.charat(1)?number(s)-i:parseint(s.charat(0)+"1",10)*number(s.substr(2)))?(this._firstpt=o={_next:this._firstpt,t:t,p:e,s:i,c:a,f:"function"==typeof t[e],n:n||e,r:r},o._next&&(o._next._prev=o),o):void 0},r.setratio=function(t){for(var e,i=this._firstpt,s=1e-6;i;)e=i.c*t+i.s,i.r?e=math.round(e):s>e&&e>-s&&(e=0),i.f?i.t[i.p](e):i.t[i.p]=e,i=i._next},r._kill=function(t){var e,i=this._overwriteprops,s=this._firstpt;if(null!=t[this._propname])this._overwriteprops=[];else for(e=i.length;--e>-1;)null!=t[i[e]]&&i.splice(e,1);for(;s;)null!=t[s.n]&&(s._next&&(s._next._prev=s._prev),s._prev?(s._prev._next=s._next,s._prev=null):this._firstpt===s&&(this._firstpt=s._next)),s=s._next;return!1},r._roundprops=function(t,e){for(var i=this._firstpt;i;)(t[this._propname]||null!=i.n&&t[i.n.split(this._propname+"_").join("")])&&(i.r=e),i=i._next},i._onpluginevent=function(t,e){var i,s,n,r,a,o=e._firstpt;if("_oninitallprops"===t){for(;o;){for(a=o._next,s=n;s&&s.pr>o.pr;)s=s._next;(o._prev=s?s._prev:r)?o._prev._next=o:n=o,(o._next=s)?s._prev=o:r=o,o=a}o=e._firstpt=n}for(;o;)o.pg&&"function"==typeof o.t[t]&&o.t[t]()&&(i=!0),o=o._next;return i},j.activate=function(t){for(var e=t.length;--e>-1;)t[e].api===j.api&&(u[(new t[e])._propname]=t[e]);return!0},d.plugin=function(t){if(!(t&&t.propname&&t.init&&t.api))throw"illegal plugin definition.";var e,i=t.propname,s=t.priority||0,n=t.overwriteprops,r={init:"_oninittween",set:"setratio",kill:"_kill",round:"_roundprops",initall:"_oninitallprops"},a=v("plugins."+i.charat(0).touppercase()+i.substr(1)+"plugin",function(){j.call(this,i,s),this._overwriteprops=n||[]},t.global===!0),o=a.prototype=new j(i);o.constructor=a,a.api=t.api;for(e in r)"function"==typeof t[e]&&(o[r[e]]=t[e]);return a.version=t.version,j.activate([a]),a},s=t._gsqueue){for(n=0;s.length>n;n++)s[n]();for(r in p)p[r].func||t.console.log("gsap encountered missing dependency: com.greensock."+r)}o=!1}})("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window,"tweenlite"); /*! * version: 1.13.1 * date: 2014-07-22 * updates and docs at: http://www.greensock.com * * @license copyright (c) 2008-2014, greensock. all rights reserved. * this work is subject to the terms at 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, jack@greensock.com */ var _gsscope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsscope._gsqueue||(_gsscope._gsqueue=[])).push(function(){"use strict";_gsscope._gsdefine("timelinelite",["core.animation","core.simpletimeline","tweenlite"],function(t,e,i){var s=function(t){e.call(this,t),this._labels={},this.autoremovechildren=this.vars.autoremovechildren===!0,this.smoothchildtiming=this.vars.smoothchildtiming===!0,this._sortchildren=!0,this._onupdate=this.vars.onupdate;var i,s,r=this.vars;for(s in r)i=r[s],o(i)&&-1!==i.join("").indexof("{self}")&&(r[s]=this._swapselfinparams(i));o(r.tweens)&&this.add(r.tweens,0,r.align,r.stagger)},r=1e-10,n=i._internals,a=n.isselector,o=n.isarray,h=n.lazytweens,l=n.lazyrender,_=[],u=_gsscope._gsdefine.globals,p=function(t){var e,i={};for(e in t)i[e]=t[e];return i},f=function(t,e,i,s){t._timeline.pause(t._starttime),e&&e.apply(s||t._timeline,i||_)},c=function(t){var e,i=[],s=t.length;for(e=0;e!==s;i.push(t[e++]));return i},m=s.prototype=new e;return s.version="1.13.1",m.constructor=s,m.kill()._gc=!1,m.to=function(t,e,s,r){var n=s.repeat&&u.tweenmax||i;return e?this.add(new n(t,e,s),r):this.set(t,s,r)},m.from=function(t,e,s,r){return this.add((s.repeat&&u.tweenmax||i).from(t,e,s),r)},m.fromto=function(t,e,s,r,n){var a=r.repeat&&u.tweenmax||i;return e?this.add(a.fromto(t,e,s,r),n):this.set(t,r,n)},m.staggerto=function(t,e,r,n,o,h,l,_){var u,f=new s({oncomplete:h,oncompleteparams:l,oncompletescope:_,smoothchildtiming:this.smoothchildtiming});for("string"==typeof t&&(t=i.selector(t)||t),a(t)&&(t=c(t)),n=n||0,u=0;t.length>u;u++)r.startat&&(r.startat=p(r.startat)),f.to(t[u],e,p(r),u*n);return this.add(f,o)},m.staggerfrom=function(t,e,i,s,r,n,a,o){return i.immediaterender=0!=i.immediaterender,i.runbackwards=!0,this.staggerto(t,e,i,s,r,n,a,o)},m.staggerfromto=function(t,e,i,s,r,n,a,o,h){return s.startat=i,s.immediaterender=0!=s.immediaterender&&0!=i.immediaterender,this.staggerto(t,e,s,r,n,a,o,h)},m.call=function(t,e,s,r){return this.add(i.delayedcall(0,t,e,s),r)},m.set=function(t,e,s){return s=this._parsetimeorlabel(s,0,!0),null==e.immediaterender&&(e.immediaterender=s===this._time&&!this._paused),this.add(new i(t,0,e),s)},s.exportroot=function(t,e){t=t||{},null==t.smoothchildtiming&&(t.smoothchildtiming=!0);var r,n,a=new s(t),o=a._timeline;for(null==e&&(e=!0),o._remove(a,!0),a._starttime=0,a._rawprevtime=a._time=a._totaltime=o._time,r=o._first;r;)n=r._next,e&&r instanceof i&&r.target===r.vars.oncomplete||a.add(r,r._starttime-r._delay),r=n;return o.add(a,0),a},m.add=function(r,n,a,h){var l,_,u,p,f,c;if("number"!=typeof n&&(n=this._parsetimeorlabel(n,0,!0,r)),!(r instanceof t)){if(r instanceof array||r&&r.push&&o(r)){for(a=a||"normal",h=h||0,l=n,_=r.length,u=0;_>u;u++)o(p=r[u])&&(p=new s({tweens:p})),this.add(p,l),"string"!=typeof p&&"function"!=typeof p&&("sequence"===a?l=p._starttime+p.totalduration()/p._timescale:"start"===a&&(p._starttime-=p.delay())),l+=h;return this._uncache(!0)}if("string"==typeof r)return this.addlabel(r,n);if("function"!=typeof r)throw"cannot add "+r+" into the timeline; it is not a tween, timeline, function, or string.";r=i.delayedcall(0,r)}if(e.prototype.add.call(this,r,n),(this._gc||this._time===this._duration)&&!this._paused&&this._durationr._starttime;f._timeline;)c&&f._timeline.smoothchildtiming?f.totaltime(f._totaltime,!0):f._gc&&f._enabled(!0,!1),f=f._timeline;return this},m.remove=function(e){if(e instanceof t)return this._remove(e,!1);if(e instanceof array||e&&e.push&&o(e)){for(var i=e.length;--i>-1;)this.remove(e[i]);return this}return"string"==typeof e?this.removelabel(e):this.kill(null,e)},m._remove=function(t,i){e.prototype._remove.call(this,t,i);var s=this._last;return s?this._time>s._starttime+s._totalduration/s._timescale&&(this._time=this.duration(),this._totaltime=this._totalduration):this._time=this._totaltime=this._duration=this._totalduration=0,this},m.append=function(t,e){return this.add(t,this._parsetimeorlabel(null,e,!0,t))},m.insert=m.insertmultiple=function(t,e,i,s){return this.add(t,e||0,i,s)},m.appendmultiple=function(t,e,i,s){return this.add(t,this._parsetimeorlabel(null,e,!0,t),i,s)},m.addlabel=function(t,e){return this._labels[t]=this._parsetimeorlabel(e),this},m.addpause=function(t,e,i,s){return this.call(f,["{self}",e,i,s],this,t)},m.removelabel=function(t){return delete this._labels[t],this},m.getlabeltime=function(t){return null!=this._labels[t]?this._labels[t]:-1},m._parsetimeorlabel=function(e,i,s,r){var n;if(r instanceof t&&r.timeline===this)this.remove(r);else if(r&&(r instanceof array||r.push&&o(r)))for(n=r.length;--n>-1;)r[n]instanceof t&&r[n].timeline===this&&this.remove(r[n]);if("string"==typeof i)return this._parsetimeorlabel(i,s&&"number"==typeof e&&null==this._labels[i]?e-this.duration():0,s);if(i=i||0,"string"!=typeof e||!isnan(e)&&null==this._labels[e])null==e&&(e=this.duration());else{if(n=e.indexof("="),-1===n)return null==this._labels[e]?s?this._labels[e]=this.duration()+i:i:this._labels[e]+i;i=parseint(e.charat(n-1)+"1",10)*number(e.substr(n+1)),e=n>1?this._parsetimeorlabel(e.substr(0,n-1),0,s):this.duration()}return number(e)+i},m.seek=function(t,e){return this.totaltime("number"==typeof t?t:this._parsetimeorlabel(t),e!==!1)},m.stop=function(){return this.paused(!0)},m.gotoandplay=function(t,e){return this.play(t,e)},m.gotoandstop=function(t,e){return this.pause(t,e)},m.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var s,n,a,o,u,p=this._dirty?this.totalduration():this._totalduration,f=this._time,c=this._starttime,m=this._timescale,d=this._paused;if(t>=p?(this._totaltime=this._time=p,this._reversed||this._haspausedchild()||(n=!0,o="oncomplete",0===this._duration&&(0===t||0>this._rawprevtime||this._rawprevtime===r)&&this._rawprevtime!==t&&this._first&&(u=!0,this._rawprevtime>r&&(o="onreversecomplete"))),this._rawprevtime=this._duration||!e||t||this._rawprevtime===t?t:r,t=p+1e-4):1e-7>t?(this._totaltime=this._time=0,(0!==f||0===this._duration&&this._rawprevtime!==r&&(this._rawprevtime>0||0>t&&this._rawprevtime>=0))&&(o="onreversecomplete",n=this._reversed),0>t?(this._active=!1,this._rawprevtime>=0&&this._first&&(u=!0),this._rawprevtime=t):(this._rawprevtime=this._duration||!e||t||this._rawprevtime===t?t:r,t=0,this._initted||(u=!0))):this._totaltime=this._time=this._rawprevtime=t,this._time!==f&&this._first||i||u){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==f&&t>0&&(this._active=!0),0===f&&this.vars.onstart&&0!==this._time&&(e||this.vars.onstart.apply(this.vars.onstartscope||this,this.vars.onstartparams||_)),this._time>=f)for(s=this._first;s&&(a=s._next,!this._paused||d);)(s._active||s._starttime<=this._time&&!s._paused&&!s._gc)&&(s._reversed?s.render((s._dirty?s.totalduration():s._totalduration)-(t-s._starttime)*s._timescale,e,i):s.render((t-s._starttime)*s._timescale,e,i)),s=a;else for(s=this._last;s&&(a=s._prev,!this._paused||d);)(s._active||f>=s._starttime&&!s._paused&&!s._gc)&&(s._reversed?s.render((s._dirty?s.totalduration():s._totalduration)-(t-s._starttime)*s._timescale,e,i):s.render((t-s._starttime)*s._timescale,e,i)),s=a;this._onupdate&&(e||(h.length&&l(),this._onupdate.apply(this.vars.onupdatescope||this,this.vars.onupdateparams||_))),o&&(this._gc||(c===this._starttime||m!==this._timescale)&&(0===this._time||p>=this.totalduration())&&(n&&(h.length&&l(),this._timeline.autoremovechildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[o]&&this.vars[o].apply(this.vars[o+"scope"]||this,this.vars[o+"params"]||_)))}},m._haspausedchild=function(){for(var t=this._first;t;){if(t._paused||t instanceof s&&t._haspausedchild())return!0;t=t._next}return!1},m.getchildren=function(t,e,s,r){r=r||-9999999999;for(var n=[],a=this._first,o=0;a;)r>a._starttime||(a instanceof i?e!==!1&&(n[o++]=a):(s!==!1&&(n[o++]=a),t!==!1&&(n=n.concat(a.getchildren(!0,e,s)),o=n.length))),a=a._next;return n},m.gettweensof=function(t,e){var s,r,n=this._gc,a=[],o=0;for(n&&this._enabled(!0,!0),s=i.gettweensof(t),r=s.length;--r>-1;)(s[r].timeline===this||e&&this._contains(s[r]))&&(a[o++]=s[r]);return n&&this._enabled(!1,!0),a},m._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},m.shiftchildren=function(t,e,i){i=i||0;for(var s,r=this._first,n=this._labels;r;)r._starttime>=i&&(r._starttime+=t),r=r._next;if(e)for(s in n)n[s]>=i&&(n[s]+=t);return this._uncache(!0)},m._kill=function(t,e){if(!t&&!e)return this._enabled(!1,!1);for(var i=e?this.gettweensof(e):this.getchildren(!0,!0,!1),s=i.length,r=!1;--s>-1;)i[s]._kill(t,e)&&(r=!0);return r},m.clear=function(t){var e=this.getchildren(!1,!0,!0),i=e.length;for(this._time=this._totaltime=0;--i>-1;)e[i]._enabled(!1,!1);return t!==!1&&(this._labels={}),this._uncache(!0)},m.invalidate=function(){for(var t=this._first;t;)t.invalidate(),t=t._next;return this},m._enabled=function(t,i){if(t===this._gc)for(var s=this._first;s;)s._enabled(t,!0),s=s._next;return e.prototype._enabled.call(this,t,i)},m.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timescale(this._duration/t),this):(this._dirty&&this.totalduration(),this._duration)},m.totalduration=function(t){if(!arguments.length){if(this._dirty){for(var e,i,s=0,r=this._last,n=999999999999;r;)e=r._prev,r._dirty&&r.totalduration(),r._starttime>n&&this._sortchildren&&!r._paused?this.add(r,r._starttime-r._delay):n=r._starttime,0>r._starttime&&!r._paused&&(s-=r._starttime,this._timeline.smoothchildtiming&&(this._starttime+=r._starttime/this._timescale),this.shiftchildren(-r._starttime,!1,-9999999999),n=0),i=r._starttime+r._totalduration/r._timescale,i>s&&(s=i),r=e;this._duration=this._totalduration=s,this._dirty=!1}return this._totalduration}return 0!==this.totalduration()&&0!==t&&this.timescale(this._totalduration/t),this},m.usesframes=function(){for(var e=this._timeline;e._timeline;)e=e._timeline;return e===t._rootframestimeline},m.rawtime=function(){return this._paused?this._totaltime:(this._timeline.rawtime()-this._starttime)*this._timescale},s},!0)}),_gsscope._gsdefine&&_gsscope._gsqueue.pop()(),function(t){"use strict";var e=function(){return(_gsscope.greensockglobals||_gsscope)[t]};"function"==typeof define&&define.amd?define(["tweenlite"],e):"undefined"!=typeof module&&module.exports&&(require("./tweenlite.js"),module.exports=e())}("timelinelite"); /*! * version: beta 1.9.4 * date: 2014-07-17 * updates and docs at: http://www.greensock.com * * @license copyright (c) 2008-2014, greensock. all rights reserved. * this work is subject to the terms at 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, jack@greensock.com **/ var _gsscope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsscope._gsqueue||(_gsscope._gsqueue=[])).push(function(){"use strict";_gsscope._gsdefine("easing.back",["easing.ease"],function(t){var e,i,s,r=_gsscope.greensockglobals||_gsscope,n=r.com.greensock,a=2*math.pi,o=math.pi/2,h=n._class,l=function(e,i){var s=h("easing."+e,function(){},!0),r=s.prototype=new t;return r.constructor=s,r.getratio=i,s},_=t.register||function(){},u=function(t,e,i,s){var r=h("easing."+t,{easeout:new e,easein:new i,easeinout:new s},!0);return _(r,t),r},c=function(t,e,i){this.t=t,this.v=e,i&&(this.next=i,i.prev=this,this.c=i.v-e,this.gap=i.t-t)},p=function(e,i){var s=h("easing."+e,function(t){this._p1=t||0===t?t:1.70158,this._p2=1.525*this._p1},!0),r=s.prototype=new t;return r.constructor=s,r.getratio=i,r.config=function(t){return new s(t)},s},f=u("back",p("backout",function(t){return(t-=1)*t*((this._p1+1)*t+this._p1)+1}),p("backin",function(t){return t*t*((this._p1+1)*t-this._p1)}),p("backinout",function(t){return 1>(t*=2)?.5*t*t*((this._p2+1)*t-this._p2):.5*((t-=2)*t*((this._p2+1)*t+this._p2)+2)})),m=h("easing.slowmo",function(t,e,i){e=e||0===e?e:.7,null==t?t=.7:t>1&&(t=1),this._p=1!==t?e:0,this._p1=(1-t)/2,this._p2=t,this._p3=this._p1+this._p2,this._calcend=i===!0},!0),d=m.prototype=new t;return d.constructor=m,d.getratio=function(t){var e=t+(.5-t)*this._p;return this._p1>t?this._calcend?1-(t=1-t/this._p1)*t:e-(t=1-t/this._p1)*t*t*t*e:t>this._p3?this._calcend?1-(t=(t-this._p3)/this._p1)*t:e+(t-e)*(t=(t-this._p3)/this._p1)*t*t*t:this._calcend?1:e},m.ease=new m(.7,.7),d.config=m.config=function(t,e,i){return new m(t,e,i)},e=h("easing.steppedease",function(t){t=t||1,this._p1=1/t,this._p2=t+1},!0),d=e.prototype=new t,d.constructor=e,d.getratio=function(t){return 0>t?t=0:t>=1&&(t=.999999999),(this._p2*t>>0)*this._p1},d.config=e.config=function(t){return new e(t)},i=h("easing.roughease",function(e){e=e||{};for(var i,s,r,n,a,o,h=e.taper||"none",l=[],_=0,u=0|(e.points||20),p=u,f=e.randomize!==!1,m=e.clamp===!0,d=e.template instanceof t?e.template:null,g="number"==typeof e.strength?.4*e.strength:.4;--p>-1;)i=f?math.random():1/u*p,s=d?d.getratio(i):i,"none"===h?r=g:"out"===h?(n=1-i,r=n*n*g):"in"===h?r=i*i*g:.5>i?(n=2*i,r=.5*n*n*g):(n=2*(1-i),r=.5*n*n*g),f?s+=math.random()*r-.5*r:p%2?s+=.5*r:s-=.5*r,m&&(s>1?s=1:0>s&&(s=0)),l[_++]={x:i,y:s};for(l.sort(function(t,e){return t.x-e.x}),o=new c(1,1,null),p=u;--p>-1;)a=l[p],o=new c(a.x,a.y,o);this._prev=new c(0,0,0!==o.t?o:o.next)},!0),d=i.prototype=new t,d.constructor=i,d.getratio=function(t){var e=this._prev;if(t>e.t){for(;e.next&&t>=e.t;)e=e.next;e=e.prev}else for(;e.prev&&e.t>=t;)e=e.prev;return this._prev=e,e.v+(t-e.t)/e.gap*e.c},d.config=function(t){return new i(t)},i.ease=new i,u("bounce",l("bounceout",function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}),l("bouncein",function(t){return 1/2.75>(t=1-t)?1-7.5625*t*t:2/2.75>t?1-(7.5625*(t-=1.5/2.75)*t+.75):2.5/2.75>t?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)}),l("bounceinout",function(t){var e=.5>t;return t=e?1-2*t:2*t-1,t=1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,e?.5*(1-t):.5*t+.5})),u("circ",l("circout",function(t){return math.sqrt(1-(t-=1)*t)}),l("circin",function(t){return-(math.sqrt(1-t*t)-1)}),l("circinout",function(t){return 1>(t*=2)?-.5*(math.sqrt(1-t*t)-1):.5*(math.sqrt(1-(t-=2)*t)+1)})),s=function(e,i,s){var r=h("easing."+e,function(t,e){this._p1=t||1,this._p2=e||s,this._p3=this._p2/a*(math.asin(1/this._p1)||0)},!0),n=r.prototype=new t;return n.constructor=r,n.getratio=i,n.config=function(t,e){return new r(t,e)},r},u("elastic",s("elasticout",function(t){return this._p1*math.pow(2,-10*t)*math.sin((t-this._p3)*a/this._p2)+1},.3),s("elasticin",function(t){return-(this._p1*math.pow(2,10*(t-=1))*math.sin((t-this._p3)*a/this._p2))},.3),s("elasticinout",function(t){return 1>(t*=2)?-.5*this._p1*math.pow(2,10*(t-=1))*math.sin((t-this._p3)*a/this._p2):.5*this._p1*math.pow(2,-10*(t-=1))*math.sin((t-this._p3)*a/this._p2)+1},.45)),u("expo",l("expoout",function(t){return 1-math.pow(2,-10*t)}),l("expoin",function(t){return math.pow(2,10*(t-1))-.001}),l("expoinout",function(t){return 1>(t*=2)?.5*math.pow(2,10*(t-1)):.5*(2-math.pow(2,-10*(t-1)))})),u("sine",l("sineout",function(t){return math.sin(t*o)}),l("sinein",function(t){return-math.cos(t*o)+1}),l("sineinout",function(t){return-.5*(math.cos(math.pi*t)-1)})),h("easing.easelookup",{find:function(e){return t.map[e]}},!0),_(r.slowmo,"slowmo","ease,"),_(i,"roughease","ease,"),_(e,"steppedease","ease,"),f},!0)}),_gsscope._gsdefine&&_gsscope._gsqueue.pop()(); /*! * version: 1.13.0 * date: 2014-07-17 * updates and docs at: http://www.greensock.com * * @license copyright (c) 2008-2014, greensock. all rights reserved. * this work is subject to the terms at 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, jack@greensock.com */ var _gsscope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsscope._gsqueue||(_gsscope._gsqueue=[])).push(function(){"use strict";_gsscope._gsdefine("plugins.cssplugin",["plugins.tweenplugin","tweenlite"],function(t,e){var i,r,s,n,a=function(){t.call(this,"css"),this._overwriteprops.length=0,this.setratio=a.prototype.setratio},o={},l=a.prototype=new t("css");l.constructor=a,a.version="1.13.0",a.api=2,a.defaulttransformperspective=0,a.defaultskewtype="compensated",l="px",a.suffixmap={top:l,right:l,bottom:l,left:l,width:l,height:l,fontsize:l,padding:l,margin:l,perspective:l,lineheight:""};var h,u,f,p,_,c,d=/(?:\d|\-\d|\.\d|\-\.\d)+/g,m=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,g=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-za-z0-9]*(?:%|\b)/gi,v=/[^\d\-\.]/g,y=/(?:\d|\-|\+|=|#|\.)*/g,t=/opacity *= *([^)]*)/i,x=/opacity:([^;]*)/i,w=/alpha\(opacity *=.+?\)/i,b=/^(rgb|hsl)/,p=/([a-z])/g,s=/-([a-z])/gi,k=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,r=function(t,e){return e.touppercase()},c=/(?:left|right|width)/i,a=/(m11|m12|m21|m22)=[\d\-\.e]+/gi,o=/progid\:dximagetransform\.microsoft\.matrix\(.+?\)/i,d=/,(?=[^\)]*(?:\(|$))/gi,m=math.pi/180,l=180/math.pi,n={},x=document,z=x.createelement("div"),i=x.createelement("img"),e=a._internals={_specialprops:o},f=navigator.useragent,y=function(){var t,e=f.indexof("android"),i=x.createelement("div");return f=-1!==f.indexof("safari")&&-1===f.indexof("chrome")&&(-1===e||number(f.substr(e+8,1))>3),_=f&&6>number(f.substr(f.indexof("version/")+8,1)),p=-1!==f.indexof("firefox"),/msie ([0-9]{1,}[\.0-9]{0,})/.exec(f)&&(c=parsefloat(regexp.$1)),i.innerhtml="a",t=i.getelementsbytagname("a")[0],t?/^0.55/.test(t.style.opacity):!1}(),b=function(t){return t.test("string"==typeof t?t:(t.currentstyle?t.currentstyle.filter:t.style.filter)||"")?parsefloat(regexp.$1)/100:1},u=function(t){window.console&&console.log(t)},j="",w="",v=function(t,e){e=e||z;var i,r,s=e.style;if(void 0!==s[t])return t;for(t=t.charat(0).touppercase()+t.substr(1),i=["o","moz","ms","ms","webkit"],r=5;--r>-1&&void 0===s[i[r]+t];);return r>=0?(w=3===r?"ms":i[r],j="-"+w.tolowercase()+"-",w+t):null},q=x.defaultview?x.defaultview.getcomputedstyle:function(){},h=a.getstyle=function(t,e,i,r,s){var n;return y||"opacity"!==e?(!r&&t.style[e]?n=t.style[e]:(i=i||q(t))?n=i[e]||i.getpropertyvalue(e)||i.getpropertyvalue(e.replace(p,"-$1").tolowercase()):t.currentstyle&&(n=t.currentstyle[e]),null==s||n&&"none"!==n&&"auto"!==n&&"auto auto"!==n?n:s):b(t)},q=e.converttopixels=function(t,i,r,s,n){if("px"===s||!s)return r;if("auto"===s||!r)return 0;var o,l,h,u=c.test(i),f=t,p=z.style,_=0>r;if(_&&(r=-r),"%"===s&&-1!==i.indexof("border"))o=r/100*(u?t.clientwidth:t.clientheight);else{if(p.csstext="border:0 solid red;position:"+h(t,"position")+";line-height:0;","%"!==s&&f.appendchild)p[u?"borderleftwidth":"bordertopwidth"]=r+s;else{if(f=t.parentnode||x.body,l=f._gscache,h=e.ticker.frame,l&&u&&l.time===h)return l.width*r/100;p[u?"width":"height"]=r+s}f.appendchild(z),o=parsefloat(z[u?"offsetwidth":"offsetheight"]),f.removechild(z),u&&"%"===s&&a.cachewidths!==!1&&(l=f._gscache=f._gscache||{},l.time=h,l.width=100*(o/r)),0!==o||n||(o=q(t,i,r,s,!0))}return _?-o:o},g=e.calculateoffset=function(t,e,i){if("absolute"!==h(t,"position",i))return 0;var r="left"===e?"left":"top",s=h(t,"margin"+r,i);return t["offset"+r]-(q(t,e,parsefloat(s),s.replace(y,""))||0)},z=function(t,e){var i,r,s={};if(e=e||q(t,null))if(i=e.length)for(;--i>-1;)s[e[i].replace(s,r)]=e.getpropertyvalue(e[i]);else for(i in e)s[i]=e[i];else if(e=t.currentstyle||t.style)for(i in e)"string"==typeof i&&void 0===s[i]&&(s[i.replace(s,r)]=e[i]);return y||(s.opacity=b(t)),r=pe(t,e,!1),s.rotation=r.rotation,s.skewx=r.skewx,s.scalex=r.scalex,s.scaley=r.scaley,s.x=r.x,s.y=r.y,we&&(s.z=r.z,s.rotationx=r.rotationx,s.rotationy=r.rotationy,s.scalez=r.scalez),s.filters&&delete s.filters,s},$=function(t,e,i,r,s){var n,a,o,l={},h=t.style;for(a in i)"csstext"!==a&&"length"!==a&&isnan(a)&&(e[a]!==(n=i[a])||s&&s[a])&&-1===a.indexof("origin")&&("number"==typeof n||"string"==typeof n)&&(l[a]="auto"!==n||"left"!==a&&"top"!==a?""!==n&&"auto"!==n&&"none"!==n||"string"!=typeof e[a]||""===e[a].replace(v,"")?n:0:g(t,a),void 0!==h[a]&&(o=new fe(h,a,h[a],o)));if(r)for(a in r)"classname"!==a&&(l[a]=r[a]);return{difs:l,firstmpt:o}},k={width:["left","right"],height:["top","bottom"]},j=["marginleft","marginright","margintop","marginbottom"],te=function(t,e,i){var r=parsefloat("width"===e?t.offsetwidth:t.offsetheight),s=k[e],n=s.length;for(i=i||q(t,null);--n>-1;)r-=parsefloat(h(t,"padding"+s[n],i,!0))||0,r-=parsefloat(h(t,"border"+s[n]+"width",i,!0))||0;return r},ee=function(t,e){(null==t||""===t||"auto"===t||"auto auto"===t)&&(t="0 0");var i=t.split(" "),r=-1!==t.indexof("left")?"0%":-1!==t.indexof("right")?"100%":i[0],s=-1!==t.indexof("top")?"0%":-1!==t.indexof("bottom")?"100%":i[1];return null==s?s="0":"center"===s&&(s="50%"),("center"===r||isnan(parsefloat(r))&&-1===(r+"").indexof("="))&&(r="50%"),e&&(e.oxp=-1!==r.indexof("%"),e.oyp=-1!==s.indexof("%"),e.oxr="="===r.charat(1),e.oyr="="===s.charat(1),e.ox=parsefloat(r.replace(v,"")),e.oy=parsefloat(s.replace(v,""))),r+" "+s+(i.length>2?" "+i[2]:"")},ie=function(t,e){return"string"==typeof t&&"="===t.charat(1)?parseint(t.charat(0)+"1",10)*parsefloat(t.substr(2)):parsefloat(t)-parsefloat(e)},re=function(t,e){return null==t?e:"string"==typeof t&&"="===t.charat(1)?parseint(t.charat(0)+"1",10)*number(t.substr(2))+e:parsefloat(t)},se=function(t,e,i,r){var s,n,a,o,l=1e-6;return null==t?o=e:"number"==typeof t?o=t:(s=360,n=t.split("_"),a=number(n[0].replace(v,""))*(-1===t.indexof("rad")?1:l)-("="===t.charat(1)?0:e),n.length&&(r&&(r[i]=e+a),-1!==t.indexof("short")&&(a%=s,a!==a%(s/2)&&(a=0>a?a+s:a-s)),-1!==t.indexof("_cw")&&0>a?a=(a+9999999999*s)%s-(0|a/s)*s:-1!==t.indexof("ccw")&&a>0&&(a=(a-9999999999*s)%s-(0|a/s)*s)),o=e+a),l>o&&o>-l&&(o=0),o},ne={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]},ae=function(t,e,i){return t=0>t?t+1:t>1?t-1:t,0|255*(1>6*t?e+6*(i-e)*t:.5>t?i:2>3*t?e+6*(i-e)*(2/3-t):e)+.5},oe=function(t){var e,i,r,s,n,a;return t&&""!==t?"number"==typeof t?[t>>16,255&t>>8,255&t]:(","===t.charat(t.length-1)&&(t=t.substr(0,t.length-1)),ne[t]?ne[t]:"#"===t.charat(0)?(4===t.length&&(e=t.charat(1),i=t.charat(2),r=t.charat(3),t="#"+e+e+i+i+r+r),t=parseint(t.substr(1),16),[t>>16,255&t>>8,255&t]):"hsl"===t.substr(0,3)?(t=t.match(d),s=number(t[0])%360/360,n=number(t[1])/100,a=number(t[2])/100,i=.5>=a?a*(n+1):a+n-a*n,e=2*a-i,t.length>3&&(t[3]=number(t[3])),t[0]=ae(s+1/3,e,i),t[1]=ae(s,e,i),t[2]=ae(s-1/3,e,i),t):(t=t.match(d)||ne.transparent,t[0]=number(t[0]),t[1]=number(t[1]),t[2]=number(t[2]),t.length>3&&(t[3]=number(t[3])),t)):ne.black},le="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\b#.+?\\b";for(l in ne)le+="|"+l+"\\b";le=regexp(le+")","gi");var he=function(t,e,i,r){if(null==t)return function(t){return t};var s,n=e?(t.match(le)||[""])[0]:"",a=t.split(n).join("").match(g)||[],o=t.substr(0,t.indexof(a[0])),l=")"===t.charat(t.length-1)?")":"",h=-1!==t.indexof(" ")?" ":",",u=a.length,f=u>0?a[0].replace(d,""):"";return u?s=e?function(t){var e,p,_,c;if("number"==typeof t)t+=f;else if(r&&d.test(t)){for(c=t.replace(d,"|").split("|"),_=0;c.length>_;_++)c[_]=s(c[_]);return c.join(",")}if(e=(t.match(le)||[n])[0],p=t.split(e).join("").match(g)||[],_=p.length,u>_--)for(;u>++_;)p[_]=i?p[0|(_-1)/2]:a[_];return o+p.join(h)+h+e+l+(-1!==t.indexof("inset")?" inset":"")}:function(t){var e,n,p;if("number"==typeof t)t+=f;else if(r&&d.test(t)){for(n=t.replace(d,"|").split("|"),p=0;n.length>p;p++)n[p]=s(n[p]);return n.join(",")}if(e=t.match(g)||[],p=e.length,u>p--)for(;u>++p;)e[p]=i?e[0|(p-1)/2]:a[p];return o+e.join(h)+l}:function(t){return t}},ue=function(t){return t=t.split(","),function(e,i,r,s,n,a,o){var l,h=(i+"").split(" ");for(o={},l=0;4>l;l++)o[t[l]]=h[l]=h[l]||h[(l-1)/2>>0];return s.parse(e,o,n,a)}},fe=(e._setpluginratio=function(t){this.plugin.setratio(t);for(var e,i,r,s,n=this.data,a=n.proxy,o=n.firstmpt,l=1e-6;o;)e=a[o.v],o.r?e=math.round(e):l>e&&e>-l&&(e=0),o.t[o.p]=e,o=o._next;if(n.autorotate&&(n.autorotate.rotation=a.rotation),1===t)for(o=n.firstmpt;o;){if(i=o.t,i.type){if(1===i.type){for(s=i.xs0+i.s+i.xs1,r=1;i.l>r;r++)s+=i["xn"+r]+i["xs"+(r+1)];i.e=s}}else i.e=i.s+i.xs0;o=o._next}},function(t,e,i,r,s){this.t=t,this.p=e,this.v=i,this.r=s,r&&(r._prev=this,this._next=r)}),pe=(e._parsetoproxy=function(t,e,i,r,s,n){var a,o,l,h,u,f=r,p={},_={},c=i._transform,d=n;for(i._transform=null,n=e,r=u=i.parse(t,e,r,s),n=d,n&&(i._transform=c,f&&(f._prev=null,f._prev&&(f._prev._next=null)));r&&r!==f;){if(1>=r.type&&(o=r.p,_[o]=r.s+r.c,p[o]=r.s,n||(h=new fe(r,"s",o,h,r.r),r.c=0),1===r.type))for(a=r.l;--a>0;)l="xn"+a,o=r.p+"_"+l,_[o]=r.data[l],p[o]=r[l],n||(h=new fe(r,l,o,h,r.rxp[l]));r=r._next}return{proxy:p,end:_,firstmpt:h,pt:u}},e.cssproptween=function(t,e,r,s,a,o,l,h,u,f,p){this.t=t,this.p=e,this.s=r,this.c=s,this.n=l||e,t instanceof pe||n.push(this.n),this.r=h,this.type=o||0,u&&(this.pr=u,i=!0),this.b=void 0===f?r:f,this.e=void 0===p?r+s:p,a&&(this._next=a,a._prev=this)}),_e=a.parsecomplex=function(t,e,i,r,s,n,a,o,l,u){i=i||n||"",a=new pe(t,e,0,0,a,u?2:1,null,!1,o,i,r),r+="";var f,p,_,c,g,v,y,t,x,w,p,s,k=i.split(", ").join(",").split(" "),r=r.split(", ").join(",").split(" "),c=k.length,a=h!==!1;for((-1!==r.indexof(",")||-1!==i.indexof(","))&&(k=k.join(" ").replace(d,", ").split(" "),r=r.join(" ").replace(d,", ").split(" "),c=k.length),c!==r.length&&(k=(n||"").split(" "),c=k.length),a.plugin=l,a.setratio=u,f=0;c>f;f++)if(c=k[f],g=r[f],t=parsefloat(c),t||0===t)a.appendxtra("",t,ie(g,t),g.replace(m,""),a&&-1!==g.indexof("px"),!0);else if(s&&("#"===c.charat(0)||ne[c]||b.test(c)))s=","===g.charat(g.length-1)?"),":")",c=oe(c),g=oe(g),x=c.length+g.length>6,x&&!y&&0===g[3]?(a["xs"+a.l]+=a.l?" transparent":"transparent",a.e=a.e.split(r[f]).join("transparent")):(y||(x=!1),a.appendxtra(x?"rgba(":"rgb(",c[0],g[0]-c[0],",",!0,!0).appendxtra("",c[1],g[1]-c[1],",",!0).appendxtra("",c[2],g[2]-c[2],x?",":s,!0),x&&(c=4>c.length?1:c[3],a.appendxtra("",c,(4>g.length?1:g[3])-c,s,!1)));else if(v=c.match(d)){if(y=g.match(m),!y||y.length!==v.length)return a;for(_=0,p=0;v.length>p;p++)p=v[p],w=c.indexof(p,_),a.appendxtra(c.substr(_,w-_),number(p),ie(y[p],p),"",a&&"px"===c.substr(w+p.length,2),0===p),_=w+p.length;a["xs"+a.l]+=c.substr(_)}else a["xs"+a.l]+=a.l?" "+c:c;if(-1!==r.indexof("=")&&a.data){for(s=a.xs0+a.data.s,f=1;a.l>f;f++)s+=a["xs"+f]+a.data["xn"+f];a.e=s+a["xs"+f]}return a.l||(a.type=-1,a.xs0=a.e),a.xfirst||a},ce=9;for(l=pe.prototype,l.l=l.pr=0;--ce>0;)l["xn"+ce]=0,l["xs"+ce]="";l.xs0="",l._next=l._prev=l.xfirst=l.data=l.plugin=l.setratio=l.rxp=null,l.appendxtra=function(t,e,i,r,s,n){var a=this,o=a.l;return a["xs"+o]+=n&&o?" "+t:t||"",i||0===o||a.plugin?(a.l++,a.type=a.setratio?2:1,a["xs"+a.l]=r||"",o>0?(a.data["xn"+o]=e+i,a.rxp["xn"+o]=s,a["xn"+o]=e,a.plugin||(a.xfirst=new pe(a,"xn"+o,e,i,a.xfirst||a,0,a.n,s,a.pr),a.xfirst.xs0=0),a):(a.data={s:e+i},a.rxp={},a.s=e,a.c=i,a.r=s,a)):(a["xs"+o]+=e+(r||""),a)};var de=function(t,e){e=e||{},this.p=e.prefix?v(t)||t:t,o[t]=o[this.p]=this,this.format=e.formatter||he(e.defaultvalue,e.color,e.collapsible,e.multi),e.parser&&(this.parse=e.parser),this.clrs=e.color,this.multi=e.multi,this.keyword=e.keyword,this.dflt=e.defaultvalue,this.pr=e.priority||0},me=e._registercomplexspecialprop=function(t,e,i){"object"!=typeof e&&(e={parser:i});var r,s,n=t.split(","),a=e.defaultvalue;for(i=i||[a],r=0;n.length>r;r++)e.prefix=0===r&&e.prefix,e.defaultvalue=i[r]||a,s=new de(n[r],e)},ge=function(t){if(!o[t]){var e=t.charat(0).touppercase()+t.substr(1)+"plugin";me(t,{parser:function(t,i,r,s,n,a,l){var h=(_gsscope.greensockglobals||_gsscope).com.greensock.plugins[e];return h?(h._cssregister(),o[r].parse(t,i,r,s,n,a,l)):(u("error: "+e+" js file not loaded."),n)}})}};l=de.prototype,l.parsecomplex=function(t,e,i,r,s,n){var a,o,l,h,u,f,p=this.keyword;if(this.multi&&(d.test(i)||d.test(e)?(o=e.replace(d,"|").split("|"),l=i.replace(d,"|").split("|")):p&&(o=[e],l=[i])),l){for(h=l.length>o.length?l.length:o.length,a=0;h>a;a++)e=o[a]=o[a]||this.dflt,i=l[a]=l[a]||this.dflt,p&&(u=e.indexof(p),f=i.indexof(p),u!==f&&(i=-1===f?l:o,i[a]+=" "+p));e=o.join(", "),i=l.join(", ")}return _e(t,this.p,e,i,this.clrs,this.dflt,r,this.pr,s,n)},l.parse=function(t,e,i,r,n,a){return this.parsecomplex(t.style,this.format(h(t,this.p,s,!1,this.dflt)),this.format(e),n,a)},a.registerspecialprop=function(t,e,i){me(t,{parser:function(t,r,s,n,a,o){var l=new pe(t,s,0,0,a,2,s,!1,i);return l.plugin=o,l.setratio=e(t,r,n._tween,s),l},priority:i})};var ve="scalex,scaley,scalez,x,y,z,skewx,skewy,rotation,rotationx,rotationy,perspective,xpercent,ypercent".split(","),ye=v("transform"),te=j+"transform",xe=v("transformorigin"),we=null!==v("perspective"),be=e.transform=function(){this.skewy=0},pe=e.gettransform=function(t,e,i,r){if(t._gstransform&&i&&!r)return t._gstransform;var s,n,o,l,h,u,f,p,_,c,d,m,g,v=i?t._gstransform||new be:new be,y=0>v.scalex,t=2e-5,x=1e5,w=179.99,b=w*m,p=we?parsefloat(h(t,xe,e,!1,"0 0 0").split(" ")[2])||v.zorigin||0:0;if(ye?s=h(t,te,e,!0):t.currentstyle&&(s=t.currentstyle.filter.match(a),s=s&&4===s.length?[s[0].substr(4),number(s[2].substr(4)),number(s[1].substr(4)),s[3].substr(4),v.x||0,v.y||0].join(","):""),s&&"none"!==s&&"matrix(1, 0, 0, 1, 0, 0)"!==s){for(n=(s||"").match(/(?:\-|\b)[\d\-\.e]+\b/gi)||[],o=n.length;--o>-1;)l=number(n[o]),n[o]=(h=l-(l|=0))?(0|h*x+(0>h?-.5:.5))/x+l:l;if(16===n.length){var s=n[8],k=n[9],r=n[10],c=n[12],o=n[13],d=n[14];if(v.zorigin&&(d=-v.zorigin,c=s*d-n[12],o=k*d-n[13],d=r*d+v.zorigin-n[14]),!i||r||null==v.rotationx){var n,x,z,i,e,f,y,b=n[0],u=n[1],j=n[2],w=n[3],v=n[4],q=n[5],q=n[6],g=n[7],z=n[11],$=math.atan2(q,r),k=-b>$||$>b;v.rotationx=$*l,$&&(i=math.cos(-$),e=math.sin(-$),n=v*i+s*e,x=q*i+k*e,z=q*i+r*e,s=v*-e+s*i,k=q*-e+k*i,r=q*-e+r*i,z=g*-e+z*i,v=n,q=x,q=z),$=math.atan2(s,b),v.rotationy=$*l,$&&(f=-b>$||$>b,i=math.cos(-$),e=math.sin(-$),n=b*i-s*e,x=u*i-k*e,z=j*i-r*e,k=u*e+k*i,r=j*e+r*i,z=w*e+z*i,b=n,u=x,j=z),$=math.atan2(u,q),v.rotation=$*l,$&&(y=-b>$||$>b,i=math.cos(-$),e=math.sin(-$),b=b*i+v*e,x=u*i+q*e,q=u*-e+q*i,q=j*-e+q*i,u=x),y&&k?v.rotation=v.rotationx=0:y&&f?v.rotation=v.rotationy=0:f&&k&&(v.rotationy=v.rotationx=0),v.scalex=(0|math.sqrt(b*b+u*u)*x+.5)/x,v.scaley=(0|math.sqrt(q*q+k*k)*x+.5)/x,v.scalez=(0|math.sqrt(q*q+r*r)*x+.5)/x,v.skewx=0,v.perspective=z?1/(0>z?-z:z):0,v.x=c,v.y=o,v.z=d}}else if(!(we&&!r&&n.length&&v.x===n[4]&&v.y===n[5]&&(v.rotationx||v.rotationy)||void 0!==v.x&&"none"===h(t,"display",e))){var j=n.length>=6,te=j?n[0]:1,ee=n[1]||0,ie=n[2]||0,re=j?n[3]:1;v.x=n[4]||0,v.y=n[5]||0,u=math.sqrt(te*te+ee*ee),f=math.sqrt(re*re+ie*ie),p=te||ee?math.atan2(ee,te)*l:v.rotation||0,_=ie||re?math.atan2(ie,re)*l+p:v.skewx||0,c=u-math.abs(v.scalex||0),d=f-math.abs(v.scaley||0),math.abs(_)>90&&270>math.abs(_)&&(y?(u*=-1,_+=0>=p?180:-180,p+=0>=p?180:-180):(f*=-1,_+=0>=_?180:-180)),m=(p-v.rotation)%180,g=(_-v.skewx)%180,(void 0===v.skewx||c>t||-t>c||d>t||-t>d||m>-w&&w>m&&false|m*x||g>-w&&w>g&&false|g*x)&&(v.scalex=u,v.scaley=f,v.rotation=p,v.skewx=_),we&&(v.rotationx=v.rotationy=v.z=0,v.perspective=parsefloat(a.defaulttransformperspective)||0,v.scalez=1)}v.zorigin=p;for(o in v)t>v[o]&&v[o]>-t&&(v[o]=0)}else v={x:0,y:0,z:0,scalex:1,scaley:1,scalez:1,skewx:0,perspective:0,rotation:0,rotationx:0,rotationy:0,zorigin:0};return i&&(t._gstransform=v),v.xpercent=v.ypercent=0,v},se=function(t){var e,i,r=this.data,s=-r.rotation*m,n=s+r.skewx*m,a=1e5,o=(0|math.cos(s)*r.scalex*a)/a,l=(0|math.sin(s)*r.scalex*a)/a,h=(0|math.sin(n)*-r.scaley*a)/a,u=(0|math.cos(n)*r.scaley*a)/a,f=this.t.style,p=this.t.currentstyle;if(p){i=l,l=-h,h=-i,e=p.filter,f.filter="";var _,d,m=this.t.offsetwidth,g=this.t.offsetheight,v="absolute"!==p.position,x="progid:dximagetransform.microsoft.matrix(m11="+o+", m12="+l+", m21="+h+", m22="+u,w=r.x+m*r.xpercent/100,b=r.y+g*r.ypercent/100;if(null!=r.ox&&(_=(r.oxp?.01*m*r.ox:r.ox)-m/2,d=(r.oyp?.01*g*r.oy:r.oy)-g/2,w+=_-(_*o+d*l),b+=d-(_*h+d*u)),v?(_=m/2,d=g/2,x+=", dx="+(_-(_*o+d*l)+w)+", dy="+(d-(_*h+d*u)+b)+")"):x+=", sizingmethod='auto expand')",f.filter=-1!==e.indexof("dximagetransform.microsoft.matrix(")?e.replace(o,x):x+" "+e,(0===t||1===t)&&1===o&&0===l&&0===h&&1===u&&(v&&-1===x.indexof("dx=0, dy=0")||t.test(e)&&100!==parsefloat(regexp.$1)||-1===e.indexof("gradient("&&e.indexof("alpha"))&&f.removeattribute("filter")),!v){var p,s,k,r=8>c?1:-1;for(_=r.ieoffsetx||0,d=r.ieoffsety||0,r.ieoffsetx=math.round((m-((0>o?-o:o)*m+(0>l?-l:l)*g))/2+w),r.ieoffsety=math.round((g-((0>u?-u:u)*g+(0>h?-h:h)*m))/2+b),ce=0;4>ce;ce++)s=j[ce],p=p[s],i=-1!==p.indexof("px")?parsefloat(p):q(this.t,s,parsefloat(p),p.replace(y,""))||0,k=i!==r[s]?2>ce?-r.ieoffsetx:-r.ieoffsety:2>ce?_-r.ieoffsetx:d-r.ieoffsety,f[s]=(r[s]=math.round(i-k*(0===ce||2===ce?1:r)))+"px"}}},ke=e.set3dtransformratio=function(t){var e,i,r,s,n,a,o,l,h,u,f,_,c,d,m,g,v,y,t,x,w,b,p,s=this.data,k=this.t.style,r=s.rotation*m,c=s.scalex,a=s.scaley,o=s.scalez,d=s.x,l=s.y,n=s.z,x=s.perspective;if(!(1!==t&&0!==t||"auto"!==s.force3d||s.rotationy||s.rotationx||1!==o||x||n))return re.call(this,t),void 0;if(p){var z=1e-4;z>c&&c>-z&&(c=o=2e-5),z>a&&a>-z&&(a=o=2e-5),!x||s.z||s.rotationx||s.rotationy||(x=0)}if(r||s.skewx)y=math.cos(r),t=math.sin(r),e=y,n=t,s.skewx&&(r-=s.skewx*m,y=math.cos(r),t=math.sin(r),"simple"===s.skewtype&&(x=math.tan(s.skewx*m),x=math.sqrt(1+x*x),y*=x,t*=x)),i=-t,a=y;else{if(!(s.rotationy||s.rotationx||1!==o||x))return k[ye]=(s.xpercent||s.ypercent?"translate("+s.xpercent+"%,"+s.ypercent+"%) translate3d(":"translate3d(")+d+"px,"+l+"px,"+n+"px)"+(1!==c||1!==a?" scale("+c+","+a+")":""),void 0;e=a=1,i=n=0}f=1,r=s=o=l=h=u=_=c=d=0,m=x?-1/x:0,g=s.zorigin,v=1e5,r=s.rotationy*m,r&&(y=math.cos(r),t=math.sin(r),h=f*-t,c=m*-t,r=e*t,o=n*t,f*=y,m*=y,e*=y,n*=y),r=s.rotationx*m,r&&(y=math.cos(r),t=math.sin(r),x=i*y+r*t,w=a*y+o*t,b=u*y+f*t,p=d*y+m*t,r=i*-t+r*y,o=a*-t+o*y,f=u*-t+f*y,m=d*-t+m*y,i=x,a=w,u=b,d=p),1!==o&&(r*=o,o*=o,f*=o,m*=o),1!==a&&(i*=a,a*=a,u*=a,d*=a),1!==c&&(e*=c,n*=c,h*=c,c*=c),g&&(_-=g,s=r*_,l=o*_,_=f*_+g),s=(x=(s+=d)-(s|=0))?(0|x*v+(0>x?-.5:.5))/v+s:s,l=(x=(l+=l)-(l|=0))?(0|x*v+(0>x?-.5:.5))/v+l:l,_=(x=(_+=n)-(_|=0))?(0|x*v+(0>x?-.5:.5))/v+_:_,k[ye]=(s.xpercent||s.ypercent?"translate("+s.xpercent+"%,"+s.ypercent+"%) matrix3d(":"matrix3d(")+[(0|e*v)/v,(0|n*v)/v,(0|h*v)/v,(0|c*v)/v,(0|i*v)/v,(0|a*v)/v,(0|u*v)/v,(0|d*v)/v,(0|r*v)/v,(0|o*v)/v,(0|f*v)/v,(0|m*v)/v,s,l,_,x?1+-_/x:1].join(",")+")"},re=e.set2dtransformratio=function(t){var e,i,r,s,n,a=this.data,o=this.t,l=o.style,h=a.x,u=a.y;return a.rotationx||a.rotationy||a.z||a.force3d===!0||"auto"===a.force3d&&1!==t&&0!==t?(this.setratio=ke,ke.call(this,t),void 0):(a.rotation||a.skewx?(e=a.rotation*m,i=e-a.skewx*m,r=1e5,s=a.scalex*r,n=a.scaley*r,l[ye]=(a.xpercent||a.ypercent?"translate("+a.xpercent+"%,"+a.ypercent+"%) matrix(":"matrix(")+(0|math.cos(e)*s)/r+","+(0|math.sin(e)*s)/r+","+(0|math.sin(i)*-n)/r+","+(0|math.cos(i)*n)/r+","+h+","+u+")"):l[ye]=(a.xpercent||a.ypercent?"translate("+a.xpercent+"%,"+a.ypercent+"%) matrix(":"matrix(")+a.scalex+",0,0,"+a.scaley+","+h+","+u+")",void 0)};me("transform,scale,scalex,scaley,scalez,x,y,z,rotation,rotationx,rotationy,rotationz,skewx,skewy,shortrotation,shortrotationx,shortrotationy,shortrotationz,transformorigin,transformperspective,directionalrotation,parsetransform,force3d,skewtype,xpercent,ypercent",{parser:function(t,e,i,r,n,o,l){if(r._transform)return n;var h,u,f,p,_,c,d,m=r._transform=pe(t,s,!0,l.parsetransform),g=t.style,v=1e-6,y=ve.length,t=l,x={};if("string"==typeof t.transform&&ye)f=z.style,f[ye]=t.transform,f.display="block",f.position="absolute",x.body.appendchild(z),h=pe(z,null,!1),x.body.removechild(z);else if("object"==typeof t){if(h={scalex:re(null!=t.scalex?t.scalex:t.scale,m.scalex),scaley:re(null!=t.scaley?t.scaley:t.scale,m.scaley),scalez:re(t.scalez,m.scalez),x:re(t.x,m.x),y:re(t.y,m.y),z:re(t.z,m.z),xpercent:re(t.xpercent,m.xpercent),ypercent:re(t.ypercent,m.ypercent),perspective:re(t.transformperspective,m.perspective)},d=t.directionalrotation,null!=d)if("object"==typeof d)for(f in d)t[f]=d[f];else t.rotation=d;"string"==typeof t.x&&-1!==t.x.indexof("%")&&(h.x=0,h.xpercent=re(t.x,m.xpercent)),"string"==typeof t.y&&-1!==t.y.indexof("%")&&(h.y=0,h.ypercent=re(t.y,m.ypercent)),h.rotation=se("rotation"in t?t.rotation:"shortrotation"in t?t.shortrotation+"_short":"rotationz"in t?t.rotationz:m.rotation,m.rotation,"rotation",x),we&&(h.rotationx=se("rotationx"in t?t.rotationx:"shortrotationx"in t?t.shortrotationx+"_short":m.rotationx||0,m.rotationx,"rotationx",x),h.rotationy=se("rotationy"in t?t.rotationy:"shortrotationy"in t?t.shortrotationy+"_short":m.rotationy||0,m.rotationy,"rotationy",x)),h.skewx=null==t.skewx?m.skewx:se(t.skewx,m.skewx),h.skewy=null==t.skewy?m.skewy:se(t.skewy,m.skewy),(u=h.skewy-m.skewy)&&(h.skewx+=u,h.rotation+=u)}for(we&&null!=t.force3d&&(m.force3d=t.force3d,c=!0),m.skewtype=t.skewtype||m.skewtype||a.defaultskewtype,_=m.force3d||m.z||m.rotationx||m.rotationy||h.z||h.rotationx||h.rotationy||h.perspective,_||null==t.scale||(h.scalez=1);--y>-1;)i=ve[y],p=h[i]-m[i],(p>v||-v>p||null!=n[i])&&(c=!0,n=new pe(m,i,m[i],p,n),i in x&&(n.e=x[i]),n.xs0=0,n.plugin=o,r._overwriteprops.push(n.n));return p=t.transformorigin,(p||we&&_&&m.zorigin)&&(ye?(c=!0,i=xe,p=(p||h(t,i,s,!1,"50% 50%"))+"",n=new pe(g,i,0,0,n,-1,"transformorigin"),n.b=g[i],n.plugin=o,we?(f=m.zorigin,p=p.split(" "),m.zorigin=(p.length>2&&(0===f||"0px"!==p[2])?parsefloat(p[2]):f)||0,n.xs0=n.e=p[0]+" "+(p[1]||"50%")+" 0px",n=new pe(m,"zorigin",0,0,n,-1,n.n),n.b=f,n.xs0=n.e=m.zorigin):n.xs0=n.e=p):ee(p+"",m)),c&&(r._transformtype=_||3===this._transformtype?3:2),n},prefix:!0}),me("boxshadow",{defaultvalue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),me("borderradius",{defaultvalue:"0px",parser:function(t,e,i,n,a){e=this.format(e);var o,l,h,u,f,p,_,c,d,m,g,v,y,t,x,w,b=["bordertopleftradius","bordertoprightradius","borderbottomrightradius","borderbottomleftradius"],p=t.style;for(d=parsefloat(t.offsetwidth),m=parsefloat(t.offsetheight),o=e.split(" "),l=0;b.length>l;l++)this.p.indexof("border")&&(b[l]=v(b[l])),f=u=h(t,b[l],s,!1,"0px"),-1!==f.indexof(" ")&&(u=f.split(" "),f=u[0],u=u[1]),p=h=o[l],_=parsefloat(f),v=f.substr((_+"").length),y="="===p.charat(1),y?(c=parseint(p.charat(0)+"1",10),p=p.substr(2),c*=parsefloat(p),g=p.substr((c+"").length-(0>c?1:0))||""):(c=parsefloat(p),g=p.substr((c+"").length)),""===g&&(g=r[i]||v),g!==v&&(t=q(t,"borderleft",_,v),x=q(t,"bordertop",_,v),"%"===g?(f=100*(t/d)+"%",u=100*(x/m)+"%"):"em"===g?(w=q(t,"borderleft",1,"em"),f=t/w+"em",u=x/w+"em"):(f=t+"px",u=x+"px"),y&&(p=parsefloat(f)+c+g,h=parsefloat(u)+c+g)),a=_e(p,b[l],f+" "+u,p+" "+h,!1,"0px",a);return a},prefix:!0,formatter:he("0px 0px 0px 0px",!1,!0)}),me("backgroundposition",{defaultvalue:"0 0",parser:function(t,e,i,r,n,a){var o,l,h,u,f,p,_="background-position",d=s||q(t,null),m=this.format((d?c?d.getpropertyvalue(_+"-x")+" "+d.getpropertyvalue(_+"-y"):d.getpropertyvalue(_):t.currentstyle.backgroundpositionx+" "+t.currentstyle.backgroundpositiony)||"0 0"),g=this.format(e);if(-1!==m.indexof("%")!=(-1!==g.indexof("%"))&&(p=h(t,"backgroundimage").replace(k,""),p&&"none"!==p)){for(o=m.split(" "),l=g.split(" "),i.setattribute("src",p),h=2;--h>-1;)m=o[h],u=-1!==m.indexof("%"),u!==(-1!==l[h].indexof("%"))&&(f=0===h?t.offsetwidth-i.width:t.offsetheight-i.height,o[h]=u?parsefloat(m)/100*f+"px":100*(parsefloat(m)/f)+"%");m=o.join(" ")}return this.parsecomplex(t.style,m,g,n,a)},formatter:ee}),me("backgroundsize",{defaultvalue:"0 0",formatter:ee}),me("perspective",{defaultvalue:"0px",prefix:!0}),me("perspectiveorigin",{defaultvalue:"50% 50%",prefix:!0}),me("transformstyle",{prefix:!0}),me("backfacevisibility",{prefix:!0}),me("userselect",{prefix:!0}),me("margin",{parser:ue("margintop,marginright,marginbottom,marginleft")}),me("padding",{parser:ue("paddingtop,paddingright,paddingbottom,paddingleft")}),me("clip",{defaultvalue:"rect(0px,0px,0px,0px)",parser:function(t,e,i,r,n,a){var o,l,h;return 9>c?(l=t.currentstyle,h=8>c?" ":",",o="rect("+l.cliptop+h+l.clipright+h+l.clipbottom+h+l.clipleft+")",e=this.format(e).split(",").join(h)):(o=this.format(h(t,this.p,s,!1,this.dflt)),e=this.format(e)),this.parsecomplex(t.style,o,e,n,a)}}),me("textshadow",{defaultvalue:"0px 0px 0px #999",color:!0,multi:!0}),me("autoround,strictunits",{parser:function(t,e,i,r,s){return s}}),me("border",{defaultvalue:"0px solid #000",parser:function(t,e,i,r,n,a){return this.parsecomplex(t.style,this.format(h(t,"bordertopwidth",s,!1,"0px")+" "+h(t,"bordertopstyle",s,!1,"solid")+" "+h(t,"bordertopcolor",s,!1,"#000")),this.format(e),n,a)},color:!0,formatter:function(t){var e=t.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(t.match(le)||["#000"])[0]}}),me("borderwidth",{parser:ue("bordertopwidth,borderrightwidth,borderbottomwidth,borderleftwidth")}),me("float,cssfloat,stylefloat",{parser:function(t,e,i,r,s){var n=t.style,a="cssfloat"in n?"cssfloat":"stylefloat";return new pe(n,a,0,0,s,-1,i,!1,0,n[a],e)}});var ce=function(t){var e,i=this.t,r=i.filter||h(this.data,"filter"),s=0|this.s+this.c*t;100===s&&(-1===r.indexof("atrix(")&&-1===r.indexof("radient(")&&-1===r.indexof("oader(")?(i.removeattribute("filter"),e=!h(this.data,"filter")):(i.filter=r.replace(w,""),e=!0)),e||(this.xn1&&(i.filter=r=r||"alpha(opacity="+s+")"),-1===r.indexof("pacity")?0===s&&this.xn1||(i.filter=r+" alpha(opacity="+s+")"):i.filter=r.replace(t,"opacity="+s))};me("opacity,alpha,autoalpha",{defaultvalue:"1",parser:function(t,e,i,r,n,a){var o=parsefloat(h(t,"opacity",s,!1,"1")),l=t.style,h="autoalpha"===i;return"string"==typeof e&&"="===e.charat(1)&&(e=("-"===e.charat(0)?-1:1)*parsefloat(e.substr(2))+o),h&&1===o&&"hidden"===h(t,"visibility",s)&&0!==e&&(o=0),y?n=new pe(l,"opacity",o,e-o,n):(n=new pe(l,"opacity",100*o,100*(e-o),n),n.xn1=h?1:0,l.zoom=1,n.type=2,n.b="alpha(opacity="+n.s+")",n.e="alpha(opacity="+(n.s+n.c)+")",n.data=t,n.plugin=a,n.setratio=ce),h&&(n=new pe(l,"visibility",0,0,n,-1,null,!1,0,0!==o?"inherit":"hidden",0===e?"hidden":"inherit"),n.xs0="inherit",r._overwriteprops.push(n.n),r._overwriteprops.push(i)),n}});var ae=function(t,e){e&&(t.removeproperty?("ms"===e.substr(0,2)&&(e="m"+e.substr(1)),t.removeproperty(e.replace(p,"-$1").tolowercase())):t.removeattribute(e))},oe=function(t){if(this.t._gsclasspt=this,1===t||0===t){this.t.setattribute("class",0===t?this.b:this.e);for(var e=this.data,i=this.t.style;e;)e.v?i[e.p]=e.v:ae(i,e.p),e=e._next;1===t&&this.t._gsclasspt===this&&(this.t._gsclasspt=null)}else this.t.getattribute("class")!==this.e&&this.t.setattribute("class",this.e)};me("classname",{parser:function(t,e,r,n,a,o,l){var h,u,f,p,_,c=t.getattribute("class")||"",d=t.style.csstext;if(a=n._classnamept=new pe(t,r,0,0,a,2),a.setratio=oe,a.pr=-11,i=!0,a.b=c,u=z(t,s),f=t._gsclasspt){for(p={},_=f.data;_;)p[_.p]=1,_=_._next;f.setratio(1)}return t._gsclasspt=a,a.e="="!==e.charat(1)?e:c.replace(regexp("\\s*\\b"+e.substr(2)+"\\b"),"")+("+"===e.charat(0)?" "+e.substr(2):""),n._tween._duration&&(t.setattribute("class",a.e),h=$(t,u,z(t),l,p),t.setattribute("class",c),a.data=h.firstmpt,t.style.csstext=d,a=a.xfirst=n.parse(t,h.difs,a,o)),a}});var de=function(t){if((1===t||0===t)&&this.data._totaltime===this.data._totalduration&&"isfromstart"!==this.data.data){var e,i,r,s,n=this.t.style,a=o.transform.parse;if("all"===this.e)n.csstext="",s=!0;else for(e=this.e.split(","),r=e.length;--r>-1;)i=e[r],o[i]&&(o[i].parse===a?s=!0:i="transformorigin"===i?xe:o[i].p),ae(n,i);s&&(ae(n,ye),this.t._gstransform&&delete this.t._gstransform)}};for(me("clearprops",{parser:function(t,e,r,s,n){return n=new pe(t,r,0,0,n,2),n.setratio=de,n.e=e,n.pr=-10,n.data=s._tween,i=!0,n}}),l="bezier,throwprops,physicsprops,physics2d".split(","),ce=l.length;ce--;)ge(l[ce]);l=a.prototype,l._firstpt=null,l._oninittween=function(t,e,o){if(!t.nodetype)return!1;this._target=t,this._tween=o,this._vars=e,h=e.autoround,i=!1,r=e.suffixmap||a.suffixmap,s=q(t,""),n=this._overwriteprops;var l,p,c,d,m,g,v,y,t,w=t.style;if(u&&""===w.zindex&&(l=h(t,"zindex",s),("auto"===l||""===l)&&this._addlazyset(w,"zindex",0)),"string"==typeof e&&(d=w.csstext,l=z(t,s),w.csstext=d+";"+e,l=$(t,l,z(t)).difs,!y&&x.test(e)&&(l.opacity=parsefloat(regexp.$1)),e=l,w.csstext=d),this._firstpt=p=this.parse(t,e,null),this._transformtype){for(t=3===this._transformtype,ye?f&&(u=!0,""===w.zindex&&(v=h(t,"zindex",s),("auto"===v||""===v)&&this._addlazyset(w,"zindex",0)),_&&this._addlazyset(w,"webkitbackfacevisibility",this._vars.webkitbackfacevisibility||(t?"visible":"hidden"))):w.zoom=1,c=p;c&&c._next;)c=c._next;y=new pe(t,"transform",0,0,null,2),this._linkcssp(y,null,c),y.setratio=t&&we?ke:ye?re:se,y.data=this._transform||pe(t,s,!0),n.pop()}if(i){for(;p;){for(g=p._next,c=d;c&&c.pr>p.pr;)c=c._next;(p._prev=c?c._prev:m)?p._prev._next=p:d=p,(p._next=c)?c._prev=p:m=p,p=g}this._firstpt=d}return!0},l.parse=function(t,e,i,n){var a,l,u,f,p,_,c,d,m,g,v=t.style;for(a in e)_=e[a],l=o[a],l?i=l.parse(t,_,a,this,i,n,e):(p=h(t,a,s)+"",m="string"==typeof _,"color"===a||"fill"===a||"stroke"===a||-1!==a.indexof("color")||m&&b.test(_)?(m||(_=oe(_),_=(_.length>3?"rgba(":"rgb(")+_.join(",")+")"),i=_e(v,a,p,_,!0,"transparent",i,0,n)):!m||-1===_.indexof(" ")&&-1===_.indexof(",")?(u=parsefloat(p),c=u||0===u?p.substr((u+"").length):"",(""===p||"auto"===p)&&("width"===a||"height"===a?(u=te(t,a,s),c="px"):"left"===a||"top"===a?(u=g(t,a,s),c="px"):(u="opacity"!==a?0:1,c="")),g=m&&"="===_.charat(1),g?(f=parseint(_.charat(0)+"1",10),_=_.substr(2),f*=parsefloat(_),d=_.replace(y,"")):(f=parsefloat(_),d=m?_.substr((f+"").length)||"":""),""===d&&(d=a in r?r[a]:c),_=f||0===f?(g?f+u:f)+d:e[a],c!==d&&""!==d&&(f||0===f)&&u&&(u=q(t,a,u,c),"%"===d?(u/=q(t,a,100,"%")/100,e.strictunits!==!0&&(p=u+"%")):"em"===d?u/=q(t,a,1,"em"):"px"!==d&&(f=q(t,a,f,d),d="px"),g&&(f||0===f)&&(_=f+u+d)),g&&(f+=u),!u&&0!==u||!f&&0!==f?void 0!==v[a]&&(_||"nan"!=_+""&&null!=_)?(i=new pe(v,a,f||u||0,0,i,-1,a,!1,0,p,_),i.xs0="none"!==_||"display"!==a&&-1===a.indexof("style")?_:p):u("invalid "+a+" tween value: "+e[a]):(i=new pe(v,a,u,f-u,i,0,a,h!==!1&&("px"===d||"zindex"===a),0,p,_),i.xs0=d)):i=_e(v,a,p,_,!0,null,i,0,n)),n&&i&&!i.plugin&&(i.plugin=n);return i},l.setratio=function(t){var e,i,r,s=this._firstpt,n=1e-6;if(1!==t||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(t||this._tween._time!==this._tween._duration&&0!==this._tween._time||this._tween._rawprevtime===-1e-6)for(;s;){if(e=s.c*t+s.s,s.r?e=math.round(e):n>e&&e>-n&&(e=0),s.type)if(1===s.type)if(r=s.l,2===r)s.t[s.p]=s.xs0+e+s.xs1+s.xn1+s.xs2;else if(3===r)s.t[s.p]=s.xs0+e+s.xs1+s.xn1+s.xs2+s.xn2+s.xs3;else if(4===r)s.t[s.p]=s.xs0+e+s.xs1+s.xn1+s.xs2+s.xn2+s.xs3+s.xn3+s.xs4;else if(5===r)s.t[s.p]=s.xs0+e+s.xs1+s.xn1+s.xs2+s.xn2+s.xs3+s.xn3+s.xs4+s.xn4+s.xs5;else{for(i=s.xs0+e+s.xs1,r=1;s.l>r;r++)i+=s["xn"+r]+s["xs"+(r+1)];s.t[s.p]=i}else-1===s.type?s.t[s.p]=s.xs0:s.setratio&&s.setratio(t);else s.t[s.p]=e+s.xs0;s=s._next}else for(;s;)2!==s.type?s.t[s.p]=s.b:s.setratio(t),s=s._next;else for(;s;)2!==s.type?s.t[s.p]=s.e:s.setratio(t),s=s._next},l._enabletransforms=function(t){this._transformtype=t||3===this._transformtype?3:2,this._transform=this._transform||pe(this._target,s,!0)};var me=function(){this.t[this.p]=this.e,this.data._linkcssp(this,this._next,null,!0)};l._addlazyset=function(t,e,i){var r=this._firstpt=new pe(t,e,0,0,this._firstpt,2);r.e=i,r.setratio=me,r.data=this},l._linkcssp=function(t,e,i,r){return t&&(e&&(e._prev=t),t._next&&(t._next._prev=t._prev),t._prev?t._prev._next=t._next:this._firstpt===t&&(this._firstpt=t._next,r=!0),i?i._next=t:r||null!==this._firstpt||(this._firstpt=t),t._next=e,t._prev=i),t },l._kill=function(e){var i,r,s,n=e;if(e.autoalpha||e.alpha){n={};for(r in e)n[r]=e[r];n.opacity=1,n.autoalpha&&(n.visibility=1)}return e.classname&&(i=this._classnamept)&&(s=i.xfirst,s&&s._prev?this._linkcssp(s._prev,i._next,s._prev._prev):s===this._firstpt&&(this._firstpt=i._next),i._next&&this._linkcssp(i._next,i._next._next,s._prev),this._classnamept=null),t.prototype._kill.call(this,n)};var le=function(t,e,i){var r,s,n,a;if(t.slice)for(s=t.length;--s>-1;)le(t[s],e,i);else for(r=t.childnodes,s=r.length;--s>-1;)n=r[s],a=n.type,n.style&&(e.push(z(n)),i&&i.push(n)),1!==a&&9!==a&&11!==a||!n.childnodes.length||le(n,e,i)};return a.cascadeto=function(t,i,r){var s,n,a,o=e.to(t,i,r),l=[o],h=[],u=[],f=[],p=e._internals.reservedprops;for(t=o._targets||o.target,le(t,h,f),o.render(i,!0),le(t,u),o.render(0,!0),o._enabled(!0),s=f.length;--s>-1;)if(n=$(f[s],h[s],u[s]),n.firstmpt){n=n.difs;for(a in r)p[a]&&(n[a]=r[a]);l.push(e.to(f[s],i,n))}return l},t.activate([a]),a},!0)}),_gsscope._gsdefine&&_gsscope._gsqueue.pop()(),function(t){"use strict";var e=function(){return(_gsscope.greensockglobals||_gsscope)[t]};"function"==typeof define&&define.amd?define(["tweenlite"],e):"undefined"!=typeof module&&module.exports&&(require("../tweenlite.js"),module.exports=e())}("cssplugin"); /*! * version: beta 0.2.4 * date: 2014-07-17 * updates and docs at: http://www.greensock.com * * @license copyright (c) 2008-2014, greensock. all rights reserved. * splittext is a club greensock membership benefit; you must have a valid membership to use * this code without violating the terms of use. visit http://www.greensock.com/club/ to sign up or get more details. * this work is subject to the software agreement that was issued with your membership. * * @author: jack doyle, jack@greensock.com */ var _gsscope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(function(t){"use strict";var e=t.greensockglobals||t,i=function(t){var i,s=t.split("."),r=e;for(i=0;s.length>i;i++)r[s[i]]=r=r[s[i]]||{};return r},s=i("com.greensock.utils"),r=function(t){var e=t.nodetype,i="";if(1===e||9===e||11===e){if("string"==typeof t.textcontent)return t.textcontent;for(t=t.firstchild;t;t=t.nextsibling)i+=r(t)}else if(3===e||4===e)return t.nodevalue;return i},n=document,a=n.defaultview?n.defaultview.getcomputedstyle:function(){},o=/([a-z])/g,h=function(t,e,i,s){var r;return(i=i||a(t,null))?(t=i.getpropertyvalue(e.replace(o,"-$1").tolowercase()),r=t||i.length?t:i[e]):t.currentstyle&&(i=t.currentstyle,r=i[e]),s?r:parseint(r,10)||0},l=function(t){return t.length&&t[0]&&(t[0].nodetype&&t[0].style&&!t.nodetype||t[0].length&&t[0][0])?!0:!1},_=function(t){var e,i,s,r=[],n=t.length;for(e=0;n>e;e++)if(i=t[e],l(i))for(s=i.length,s=0;i.length>s;s++)r.push(i[s]);else r.push(i);return r},u=")eefec303079ad17405c",c=/(?:
||
)/gi,p=n.all&&!n.addeventlistener,f="
":">")}},d=s.splittext=e.splittext=function(t,e){if("string"==typeof t&&(t=d.selector(t)),!t)throw"cannot split a null element.";this.elements=l(t)?_(t):[t],this.chars=[],this.words=[],this.lines=[],this._originals=[],this.vars=e||{},this.split(e)},g=function(t,e,i,s,o){c.test(t.innerhtml)&&(t.innerhtml=t.innerhtml.replace(c,u));var l,_,p,f,d,g,v,y,t,w,b,x,p,s=r(t),c=e.type||e.split||"chars,words,lines",k=-1!==c.indexof("lines")?[]:null,r=-1!==c.indexof("words"),a=-1!==c.indexof("chars"),d="absolute"===e.position||e.absolute===!0,o=d?"­ ":" ",m=-999,l=a(t),z=h(t,"paddingleft",l),i=h(t,"borderbottomwidth",l)+h(t,"bordertopwidth",l),e=h(t,"borderleftwidth",l)+h(t,"borderrightwidth",l),n=h(t,"paddingtop",l)+h(t,"paddingbottom",l),f=h(t,"paddingleft",l)+h(t,"paddingright",l),x=h(t,"textalign",l,!0),u=t.clientheight,b=t.clientwidth,j=s.length,y="
",q=m(e.wordsclass),g=m(e.charsclass),v=-1!==(e.linesclass||"").indexof("++"),q=e.linesclass;for(v&&(q=q.split("++").join("")),p=q(),f=0;j>f;f++)g=s.charat(f),")"===g&&s.substr(f,20)===u?(p+=y+"
",f!==j-1&&(p+=" "+q()),f+=19):" "===g&&" "!==s.charat(f-1)&&f!==j-1?(p+=y,f!==j-1&&(p+=o+q())):p+=a&&" "!==g?g()+g+"":g;for(t.innerhtml=p+y,d=t.getelementsbytagname("*"),j=d.length,v=[],f=0;j>f;f++)v[f]=d[f];if(k||d)for(f=0;j>f;f++)y=v[f],_=y.parentnode===t,(_||d||a&&!r)&&(t=y.offsettop,k&&_&&t!==m&&"br"!==y.nodename&&(l=[],k.push(l),m=t),d&&(y._x=y.offsetleft,y._y=t,y._w=y.offsetwidth,y._h=y.offsetheight),k&&(r!==_&&a||(l.push(y),y._x-=z),_&&f&&(v[f-1]._wordend=!0)));for(f=0;j>f;f++)y=v[f],_=y.parentnode===t,"br"!==y.nodename?(d&&(b=y.style,r||_||(y._x+=y.parentnode._x,y._y+=y.parentnode._y),b.left=y._x+"px",b.top=y._y+"px",b.position="absolute",b.display="block",b.width=y._w+1+"px",b.height=y._h+"px"),r?_?s.push(y):a&&i.push(y):_?(t.removechild(y),v.splice(f--,1),j--):!_&&a&&(t=!k&&!d&&y.nextsibling,t.appendchild(y),t||t.appendchild(n.createtextnode(" ")),i.push(y))):k||d?(t.removechild(y),v.splice(f--,1),j--):r||t.appendchild(y);if(k){for(d&&(w=n.createelement("div"),t.appendchild(w),x=w.offsetwidth+"px",t=w.offsetparent===t?0:t.offsetleft,t.removechild(w)),b=t.style.csstext,t.style.csstext="display:none;";t.firstchild;)t.removechild(t.firstchild);for(p=!d||!r&&!a,f=0;k.length>f;f++){for(l=k[f],w=n.createelement("div"),w.style.csstext="display:block;text-align:"+x+";position:"+(d?"absolute;":"relative;"),q&&(w.classname=q+(v?f+1:"")),o.push(w),j=l.length,d=0;j>d;d++)"br"!==l[d].nodename&&(y=l[d],w.appendchild(y),p&&(y._wordend||r)&&w.appendchild(n.createtextnode(" ")),d&&(0===d&&(w.style.top=y._y+"px",w.style.left=z+t+"px"),y.style.top="0px",t&&(y.style.left=y._x-t+"px")));r||a||(w.innerhtml=r(w).split(string.fromcharcode(160)).join(" ")),d&&(w.style.width=x,w.style.height=y._h+"px"),t.appendchild(w)}t.style.csstext=b}d&&(u>t.clientheight&&(t.style.height=u-n+"px",u>t.clientheight&&(t.style.height=u+i+"px")),b>t.clientwidth&&(t.style.width=b-f+"px",b>t.clientwidth&&(t.style.width=b+e+"px")))},v=d.prototype;v.split=function(t){this.issplit&&this.revert(),this.vars=t||this.vars,this._originals.length=this.chars.length=this.words.length=this.lines.length=0;for(var e=0;this.elements.length>e;e++)this._originals[e]=this.elements[e].innerhtml,g(this.elements[e],this.vars,this.chars,this.words,this.lines);return this.issplit=!0,this},v.revert=function(){if(!this._originals)throw"revert() call wasn't scoped properly.";for(var t=this._originals.length;--t>-1;)this.elements[t].innerhtml=this._originals[t];return this.chars=[],this.words=[],this.lines=[],this.issplit=!1,this},d.selector=t.$||t.jquery||function(e){return t.$?(d.selector=t.$,t.$(e)):n?n.getelementbyid("#"===e.charat(0)?e.substr(1):e):e},d.version="0.2.4"})(_gsscope),function(t){"use strict";var e=function(){return(_gsscope.greensockglobals||_gsscope)[t]};"function"==typeof define&&define.amd?define(["tweenlite"],e):"undefined"!=typeof module&&module.exports&&(module.exports=e())}("splittext"); try{ window.greensockgobals = null; window._gsqueue = null; delete(window.greensockglobals); delete(window._gsqueue); } catch(e) {} try{ window.greensockglobals = oldgs; window._gsqueue = oldgs_queue; } catch(e) {} if (window.tplogs==true) try { console.groupend(); } catch(e) {} (function(e,t){ e.waitforimages={hasimageproperties:["backgroundimage","liststyleimage","borderimage","bordercornerimage"]};e.expr[":"].uncached=function(t){var n=document.createelement("img");n.src=t.src;return e(t).is('img[src!=""]')&&!n.complete};e.fn.waitforimages=function(t,n,r){if(e.isplainobject(arguments[0])){n=t.each;r=t.waitforall;t=t.finished}t=t||e.noop;n=n||e.noop;r=!!r;if(!e.isfunction(t)||!e.isfunction(n)){throw new typeerror("an invalid callback was supplied.")}return this.each(function(){var i=e(this),s=[];if(r){var o=e.waitforimages.hasimageproperties||[],u=/url\((['"]?)(.*?)\1\)/g;i.find("*").each(function(){var t=e(this);if(t.is("img:uncached")){s.push({src:t.attr("src"),element:t[0]})}e.each(o,function(e,n){var r=t.css(n);if(!r){return true}var i;while(i=u.exec(r)){s.push({src:i[2],element:t[0]})}})})}else{i.find("img:uncached").each(function(){s.push({src:this.src,element:this})})}var f=s.length,l=0;if(f==0){t.call(i[0])}e.each(s,function(r,s){var o=new image;e(o).bind("load error",function(e){l++;n.call(s.element,l,f,e.type=="load");if(l==f){t.call(i[0]);return false}});o.src=s.src})})}; })(jquery)