/******************************************** - themepunch tools ver. 1.0 - last update of tools 22.01.2013 *********************************************/ /*! hammer.js - v1.0.5 - 2013-04-07 * http://eightmedia.github.com/hammer.js * * copyright (c) 2013 jorik tangelder ; * licensed under the mit license */ (function(t,e){"use strict";function n(){if(!i.ready){i.event.determineeventtypes();for(var t in i.gestures)i.gestures.hasownproperty(t)&&i.detection.register(i.gestures[t]);i.event.ontouch(i.document,i.event_move,i.detection.detect),i.event.ontouch(i.document,i.event_end,i.detection.detect),i.ready=!0}}var i=function(t,e){return new i.instance(t,e||{})};i.defaults={stop_browser_behavior:{userselect:"none",touchaction:"none",touchcallout:"none",contentzooming:"none",userdrag:"none",taphighlightcolor:"rgba(0,0,0,0)"}},i.has_pointerevents=navigator.pointerenabled||navigator.mspointerenabled,i.has_touchevents="ontouchstart"in t,i.mobile_regex=/mobile|tablet|ip(ad|hone|od)|android/i,i.no_mouseevents=i.has_touchevents&&navigator.useragent.match(i.mobile_regex),i.event_types={},i.direction_down="down",i.direction_left="left",i.direction_up="up",i.direction_right="right",i.pointer_mouse="mouse",i.pointer_touch="touch",i.pointer_pen="pen",i.event_start="start",i.event_move="move",i.event_end="end",i.document=document,i.plugins={},i.ready=!1,i.instance=function(t,e){var r=this;return n(),this.element=t,this.enabled=!0,this.options=i.utils.extend(i.utils.extend({},i.defaults),e||{}),this.options.stop_browser_behavior&&i.utils.stopdefaultbrowserbehavior(this.element,this.options.stop_browser_behavior),i.event.ontouch(t,i.event_start,function(t){r.enabled&&i.detection.startdetect(r,t)}),this},i.instance.prototype={on:function(t,e){for(var n=t.split(" "),i=0;n.length>i;i++)this.element.addeventlistener(n[i],e,!1);return this},off:function(t,e){for(var n=t.split(" "),i=0;n.length>i;i++)this.element.removeeventlistener(n[i],e,!1);return this},trigger:function(t,e){var n=i.document.createevent("event");n.initevent(t,!0,!0),n.gesture=e;var r=this.element;return i.utils.hasparent(e.target,r)&&(r=e.target),r.dispatchevent(n),this},enable:function(t){return this.enabled=t,this}};var r=null,o=!1,s=!1;i.event={binddom:function(t,e,n){for(var i=e.split(" "),r=0;i.length>r;r++)t.addeventlistener(i[r],n,!1)},ontouch:function(t,e,n){var a=this;this.binddom(t,i.event_types[e],function(c){var u=c.type.tolowercase();if(!u.match(/mouse/)||!s){(u.match(/touch/)||u.match(/pointerdown/)||u.match(/mouse/)&&1===c.which)&&(o=!0),u.match(/touch|pointer/)&&(s=!0);var h=0;o&&(i.has_pointerevents&&e!=i.event_end?h=i.pointerevent.updatepointer(e,c):u.match(/touch/)?h=c.touches.length:s||(h=u.match(/up/)?0:1),h>0&&e==i.event_end?e=i.event_move:h||(e=i.event_end),h||null===r?r=c:c=r,n.call(i.detection,a.collecteventdata(t,e,c)),i.has_pointerevents&&e==i.event_end&&(h=i.pointerevent.updatepointer(e,c))),h||(r=null,o=!1,s=!1,i.pointerevent.reset())}})},determineeventtypes:function(){var t;t=i.has_pointerevents?i.pointerevent.getevents():i.no_mouseevents?["touchstart","touchmove","touchend touchcancel"]:["touchstart mousedown","touchmove mousemove","touchend touchcancel mouseup"],i.event_types[i.event_start]=t[0],i.event_types[i.event_move]=t[1],i.event_types[i.event_end]=t[2]},gettouchlist:function(t){return i.has_pointerevents?i.pointerevent.gettouchlist():t.touches?t.touches:[{identifier:1,pagex:t.pagex,pagey:t.pagey,target:t.target}]},collecteventdata:function(t,e,n){var r=this.gettouchlist(n,e),o=i.pointer_touch;return(n.type.match(/mouse/)||i.pointerevent.matchtype(i.pointer_mouse,n))&&(o=i.pointer_mouse),{center:i.utils.getcenter(r),timestamp:(new date).gettime(),target:n.target,touches:r,eventtype:e,pointertype:o,srcevent:n,preventdefault:function(){this.srcevent.preventmanipulation&&this.srcevent.preventmanipulation(),this.srcevent.preventdefault&&this.srcevent.preventdefault()},stoppropagation:function(){this.srcevent.stoppropagation()},stopdetect:function(){return i.detection.stopdetect()}}}},i.pointerevent={pointers:{},gettouchlist:function(){var t=this,e=[];return object.keys(t.pointers).sort().foreach(function(n){e.push(t.pointers[n])}),e},updatepointer:function(t,e){return t==i.event_end?this.pointers={}:(e.identifier=e.pointerid,this.pointers[e.pointerid]=e),object.keys(this.pointers).length},matchtype:function(t,e){if(!e.pointertype)return!1;var n={};return n[i.pointer_mouse]=e.pointertype==e.mspointer_type_mouse||e.pointertype==i.pointer_mouse,n[i.pointer_touch]=e.pointertype==e.mspointer_type_touch||e.pointertype==i.pointer_touch,n[i.pointer_pen]=e.pointertype==e.mspointer_type_pen||e.pointertype==i.pointer_pen,n[t]},getevents:function(){return["pointerdown mspointerdown","pointermove mspointermove","pointerup pointercancel mspointerup mspointercancel"]},reset:function(){this.pointers={}}},i.utils={extend:function(t,n,i){for(var r in n)t[r]!==e&&i||(t[r]=n[r]);return t},hasparent:function(t,e){for(;t;){if(t==e)return!0;t=t.parentnode}return!1},getcenter:function(t){for(var e=[],n=[],i=0,r=t.length;r>i;i++)e.push(t[i].pagex),n.push(t[i].pagey);return{pagex:(math.min.apply(math,e)+math.max.apply(math,e))/2,pagey:(math.min.apply(math,n)+math.max.apply(math,n))/2}},getvelocity:function(t,e,n){return{x:math.abs(e/t)||0,y:math.abs(n/t)||0}},getangle:function(t,e){var n=e.pagey-t.pagey,i=e.pagex-t.pagex;return 180*math.atan2(n,i)/math.pi},getdirection:function(t,e){var n=math.abs(t.pagex-e.pagex),r=math.abs(t.pagey-e.pagey);return n>=r?t.pagex-e.pagex>0?i.direction_left:i.direction_right:t.pagey-e.pagey>0?i.direction_up:i.direction_down},getdistance:function(t,e){var n=e.pagex-t.pagex,i=e.pagey-t.pagey;return math.sqrt(n*n+i*i)},getscale:function(t,e){return t.length>=2&&e.length>=2?this.getdistance(e[0],e[1])/this.getdistance(t[0],t[1]):1},getrotation:function(t,e){return t.length>=2&&e.length>=2?this.getangle(e[1],e[0])-this.getangle(t[1],t[0]):0},isvertical:function(t){return t==i.direction_up||t==i.direction_down},stopdefaultbrowserbehavior:function(t,e){var n,i=["webkit","khtml","moz","ms","o",""];if(e&&t.style){for(var r=0;i.length>r;r++)for(var o in e)e.hasownproperty(o)&&(n=o,i[r]&&(n=i[r]+n.substring(0,1).touppercase()+n.substring(1)),t.style[n]=e[o]);"none"==e.userselect&&(t.onselectstart=function(){return!1})}}},i.detection={gestures:[],current:null,previous:null,stopped:!1,startdetect:function(t,e){this.current||(this.stopped=!1,this.current={inst:t,startevent:i.utils.extend({},e),lastevent:!1,name:""},this.detect(e))},detect:function(t){if(this.current&&!this.stopped){t=this.extendeventdata(t);for(var e=this.current.inst.options,n=0,r=this.gestures.length;r>n;n++){var o=this.gestures[n];if(!this.stopped&&e[o.name]!==!1&&o.handler.call(o,t,this.current.inst)===!1){this.stopdetect();break}}return this.current&&(this.current.lastevent=t),t.eventtype==i.event_end&&!t.touches.length-1&&this.stopdetect(),t}},stopdetect:function(){this.previous=i.utils.extend({},this.current),this.current=null,this.stopped=!0},extendeventdata:function(t){var e=this.current.startevent;if(e&&(t.touches.length!=e.touches.length||t.touches===e.touches)){e.touches=[];for(var n=0,r=t.touches.length;r>n;n++)e.touches.push(i.utils.extend({},t.touches[n]))}var o=t.timestamp-e.timestamp,s=t.center.pagex-e.center.pagex,a=t.center.pagey-e.center.pagey,c=i.utils.getvelocity(o,s,a);return i.utils.extend(t,{deltatime:o,deltax:s,deltay:a,velocityx:c.x,velocityy:c.y,distance:i.utils.getdistance(e.center,t.center),angle:i.utils.getangle(e.center,t.center),direction:i.utils.getdirection(e.center,t.center),scale:i.utils.getscale(e.touches,t.touches),rotation:i.utils.getrotation(e.touches,t.touches),startevent:e}),t},register:function(t){var n=t.defaults||{};return n[t.name]===e&&(n[t.name]=!0),i.utils.extend(i.defaults,n,!0),t.index=t.index||1e3,this.gestures.push(t),this.gestures.sort(function(t,e){return t.indexe.index?1:0}),this.gestures}},i.gestures=i.gestures||{},i.gestures.hold={name:"hold",index:10,defaults:{hold_timeout:500,hold_threshold:1},timer:null,handler:function(t,e){switch(t.eventtype){case i.event_start:cleartimeout(this.timer),i.detection.current.name=this.name,this.timer=settimeout(function(){"hold"==i.detection.current.name&&e.trigger("hold",t)},e.options.hold_timeout);break;case i.event_move:t.distance>e.options.hold_threshold&&cleartimeout(this.timer);break;case i.event_end:cleartimeout(this.timer)}}},i.gestures.tap={name:"tap",index:100,defaults:{tap_max_touchtime:250,tap_max_distance:10,tap_always:!0,doubletap_distance:20,doubletap_interval:300},handler:function(t,e){if(t.eventtype==i.event_end){var n=i.detection.previous,r=!1;if(t.deltatime>e.options.tap_max_touchtime||t.distance>e.options.tap_max_distance)return;n&&"tap"==n.name&&t.timestamp-n.lastevent.timestamp0&&t.touches.length>e.options.swipe_max_touches)return;(t.velocityx>e.options.swipe_velocity||t.velocityy>e.options.swipe_velocity)&&(e.trigger(this.name,t),e.trigger(this.name+t.direction,t))}}},i.gestures.drag={name:"drag",index:50,defaults:{drag_min_distance:10,drag_max_touches:1,drag_block_horizontal:!1,drag_block_vertical:!1,drag_lock_to_axis:!1,drag_lock_min_distance:25},triggered:!1,handler:function(t,n){if(i.detection.current.name!=this.name&&this.triggered)return n.trigger(this.name+"end",t),this.triggered=!1,e;if(!(n.options.drag_max_touches>0&&t.touches.length>n.options.drag_max_touches))switch(t.eventtype){case i.event_start:this.triggered=!1;break;case i.event_move:if(t.distancet.deltay?i.direction_up:i.direction_down:0>t.deltax?i.direction_left:i.direction_right),this.triggered||(n.trigger(this.name+"start",t),this.triggered=!0),n.trigger(this.name,t),n.trigger(this.name+t.direction,t),(n.options.drag_block_vertical&&i.utils.isvertical(t.direction)||n.options.drag_block_horizontal&&!i.utils.isvertical(t.direction))&&t.preventdefault();break;case i.event_end:this.triggered&&n.trigger(this.name+"end",t),this.triggered=!1}}},i.gestures.transform={name:"transform",index:45,defaults:{transform_min_scale:.01,transform_min_rotation:1,transform_always_block:!1},triggered:!1,handler:function(t,n){if(i.detection.current.name!=this.name&&this.triggered)return n.trigger(this.name+"end",t),this.triggered=!1,e;if(!(2>t.touches.length))switch(n.options.transform_always_block&&t.preventdefault(),t.eventtype){case i.event_start:this.triggered=!1;break;case i.event_move:var r=math.abs(1-t.scale),o=math.abs(t.rotation);if(n.options.transform_min_scale>r&&n.options.transform_min_rotation>o)return;i.detection.current.name=this.name,this.triggered||(n.trigger(this.name+"start",t),this.triggered=!0),n.trigger(this.name,t),o>n.options.transform_min_rotation&&n.trigger("rotate",t),r>n.options.transform_min_scale&&(n.trigger("pinch",t),n.trigger("pinch"+(1>t.scale?"in":"out"),t));break;case i.event_end:this.triggered&&n.trigger(this.name+"end",t),this.triggered=!1}}},i.gestures.touch={name:"touch",index:-1/0,defaults:{prevent_default:!1,prevent_mouseevents:!1},handler:function(t,n){return n.options.prevent_mouseevents&&t.pointertype==i.pointer_mouse?(t.stopdetect(),e):(n.options.prevent_default&&t.preventdefault(),t.eventtype==i.event_start&&n.trigger(this.name,t),e)}},i.gestures.release={name:"release",index:1/0,handler:function(t,e){t.eventtype==i.event_end&&e.trigger(this.name,t)}},"object"==typeof module&&"object"==typeof module.exports?module.exports=i:(t.hammer=i,"function"==typeof t.define&&t.define.amd&&t.define("hammer",[],function(){return i}))})(this),function(t,e){"use strict";t!==e&&(hammer.event.binddom=function(n,i,r){t(n).on(i,function(t){var n=t.originalevent||t;n.pagex===e&&(n.pagex=t.pagex,n.pagey=t.pagey),n.target||(n.target=t.target),n.which===e&&(n.which=n.button),n.preventdefault||(n.preventdefault=t.preventdefault),n.stoppropagation||(n.stoppropagation=t.stoppropagation),r.call(this,n)})},hammer.instance.prototype.on=function(e,n){return t(this.element).on(e,n)},hammer.instance.prototype.off=function(e,n){return t(this.element).off(e,n)},hammer.instance.prototype.trigger=function(e,n){var i=t(this.element);return i.has(n.target).length&&(i=t(n.target)),i.trigger({type:e,gesture:n})},t.fn.hammer=function(e){return this.each(function(){var n=t(this),i=n.data("hammer");i?i&&e&&hammer.utils.extend(i.options,e):n.data("hammer",new hammer(this,e||{}))})})}(window.jquery||window.zepto); /*! * version: 1.11.5 * date: 2014-02-20 * 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 */ (function(t){"use strict";var e=t.greensockglobals||t;if(!e.tweenlite){var i,s,r,n,a,o=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},l=o("com.greensock"),h=1e-10,_=[].slice,u=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)}}(),f={},p=function(i,s,r,n){this.sc=f[i]?f[i].sc:[],f[i]=this,this.gsclass=null,this.func=r;var a=[];this.check=function(l){for(var h,_,u,m,c=s.length,d=c;--c>-1;)(h=f[s[c]]||new p(s[c],[])).gsclass?(a[c]=h.gsclass,d--):l&&h.sc.push(this);if(0===d&&r)for(_=("com.greensock."+i).split("."),u=_.pop(),m=o(_.join("."))[u]=this.gsclass=r.apply(r,a),n&&(e[u]=m,"function"==typeof define&&define.amd?define((t.greensockamdpath?t.greensockamdpath+"/":"")+i.split(".").join("/"),[],function(){return m}):"undefined"!=typeof module&&module.exports&&(module.exports=m)),c=0;this.sc.length>c;c++)this.sc[c].check()},this.check(!0)},c=t._gsdefine=function(t,e,i,s){return new p(t,e,i,s)},d=l._class=function(t,e,i){return e=e||function(){},c(t,[],function(){return e},i),e};c.globals=e;var v=[0,0,1,1],g=[],t=d("easing.ease",function(t,e,i,s){this._func=t,this._type=i||0,this._power=s||0,this._params=e?v.concat(e):v},!0),w=t.map={},p=t.register=function(t,e,i,s){for(var r,n,a,o,h=e.split(","),_=h.length,u=(i||"easein,easeout,easeinout").split(",");--_>-1;)for(n=h[_],r=s?d("easing."+n,null,!0):l.easing[n]||{},a=u.length;--a>-1;)o=u[a],w[n+"."+o]=w[o+n]=r[o]=t.getratio?t:t[o]||new t};for(r=t.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},i=["linear","quad","cubic","quart","quint,strong"],s=i.length;--s>-1;)r=i[s]+",power"+s,p(new t(null,null,1,s),r,"easeout",!0),p(new t(null,null,2,s),r,"easein"+(0===s?",easenone":"")),p(new t(null,null,3,s),r,"easeinout");w.linear=l.easing.linear.easein,w.swing=l.easing.quad.easeinout;var y=d("events.eventdispatcher",function(t){this._listeners={},this._eventtarget=t||this});r=y.prototype,r.addeventlistener=function(t,e,i,s,r){r=r||0;var o,l,h=this._listeners[t],_=0;for(null==h&&(this._listeners[t]=h=[]),l=h.length;--l>-1;)o=h[l],o.c===e&&o.s===i?h.splice(l,1):0===_&&r>o.pr&&(_=l+1);h.splice(_,0,{c:e,s:i,up:s,pr:r}),this!==n||a||n.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,r=this._listeners[t];if(r)for(e=r.length,i=this._eventtarget;--e>-1;)s=r[e],s.up?s.c.call(s.s||i,{type:t,target:i}):s.c.call(s.s||i)};var b=t.requestanimationframe,k=t.cancelanimationframe,a=date.now||function(){return(new date).gettime()},s=a();for(i=["ms","moz","webkit","o"],s=i.length;--s>-1&&!b;)b=t[i[s]+"requestanimationframe"],k=t[i[s]+"cancelanimationframe"]||t[i[s]+"cancelrequestanimationframe"];d("ticker",function(t,e){var i,s,r,o,l,h=this,_=a(),m=e!==!1&&b,f=function(t){s=a(),h.time=(s-_)/1e3;var e,n=h.time-l;(!i||n>0||t===!0)&&(h.frame++,l+=n+(n>=o?.004:o-n),e=!0),t!==!0&&(r=s(f)),e&&h.dispatchevent("tick")};y.call(h),h.time=h.frame=0,h.tick=function(){f(!0)},h.sleep=function(){null!=r&&(m&&k?k(r):cleartimeout(r),s=u,r=null,h===n&&(a=!1))},h.wake=function(){null!==r&&h.sleep(),s=0===i?u:m&&b?b:function(t){return settimeout(t,0|1e3*(l-h.time)+1)},h===n&&(a=!0),f(2)},h.fps=function(t){return arguments.length?(i=t,o=1/(i||60),l=this.time+o,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&&(!r||5>h.frame)&&h.useraf(!1)},1500)}),r=l.ticker.prototype=new l.events.eventdispatcher,r.constructor=l.ticker;var x=d("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,q){a||n.wake();var i=this.vars.useframes?g:q;i.add(this,i._time),this.vars.paused&&this.paused(!0)}});n=x.ticker=new l.ticker,r=x.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 c=function(){a&&a()-s>2e3&&n.wake(),settimeout(c,2e3)};c(),r.play=function(t,e){return arguments.length&&this.seek(t,e),this.reversed(!1).paused(!1)},r.pause=function(t,e){return arguments.length&&this.seek(t,e),this.paused(!0)},r.resume=function(t,e){return arguments.length&&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 arguments.length&&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 a||n.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 r=this.vars;if(1===arguments.length)return r[t];null==e?delete r[t]:(r[t]=e,r[t+"params"]=m(i)&&-1!==i.join("").indexof("{self}")?this._swapselfinparams(i):i,r[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(a||n.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,r=this._timeline;if(t>s&&!i&&(t=s),this._starttime=(this._paused?this._pausetime:r._time)-(this._reversed?s-t:t)/this._timescale,r._dirty||this._uncache(!1),r._timeline)for(;r._timeline;)r._timeline._time!==(r._starttime+r._totaltime)/r._timescale&&r.totaltime(r._totaltime,!0),r=r._timeline}this._gc&&this._enabled(!0,!1),(this._totaltime!==t||0===this._duration)&&this.render(t,e,!1)}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||h,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){a||t||n.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 r=d("core.simpletimeline",function(t){x.call(this,0,t),this.autoremovechildren=this.smoothchildtiming=!0});r=r.prototype=new x,r.constructor=r,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.timeline=null,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),this._timeline&&this._uncache(!0)),this},r.render=function(t,e,i){var s,r=this._first;for(this._totaltime=this._time=this._rawprevtime=t;r;)s=r._next,(r._active||t>=r._starttime&&!r._paused)&&(r._reversed?r.render((r._dirty?r.totalduration():r._totalduration)-(t-r._starttime)*r._timescale,e,i):r.render((t-r._starttime)*r._timescale,e,i)),r=s},r.rawtime=function(){return a||n.wake(),this._totaltime};var d=d("tweenlite",function(e,i,s){if(x.call(this,i,s),this.render=d.prototype.render,null==e)throw"cannot tween a null target.";this.target=e="string"!=typeof e?e:d.selector(e)||e;var r,n,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?j[d.defaultoverwrite]:"number"==typeof l?l>>0:j[l],(o||e instanceof array||e.push&&m(e))&&"number"!=typeof e[0])for(this._targets=a=_.call(e,0),this._proplookup=[],this._siblings=[],r=0;a.length>r;r++)n=a[r],n?"string"!=typeof n?n.length&&n!==t&&n[0]&&(n[0]===t||n[0].nodetype&&n[0].style&&!n.nodetype)?(a.splice(r--,1),this._targets=a=a.concat(_.call(n,0))):(this._siblings[r]=b(n,this,!1),1===l&&this._siblings[r].length>1&&q(n,this,null,1,this._siblings[r])):(n=a[r--]=d.selector(n),"string"==typeof n&&a.splice(r+1,1)):a.splice(r--,1);else this._proplookup={},this._siblings=b(e,this,!1),1===l&&this._siblings.length>1&&q(e,this,null,1,this._siblings);(this.vars.immediaterender||0===i&&0===this._delay&&this.vars.immediaterender!==!1)&&this.render(-this._delay,!1,!0)},!0),e=function(e){return e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodetype&&e[0].style&&!e.nodetype)},i=function(t,e){var i,s={};for(i in t)f[i]||i in e&&"x"!==i&&"y"!==i&&"width"!==i&&"height"!==i&&"classname"!==i&&"border"!==i||!(!n[i]||n[i]&&n[i]._autocss)||(s[i]=t[i],delete t[i]);t.css=s};r=d.prototype=new x,r.constructor=d,r.kill()._gc=!1,r.ratio=0,r._firstpt=r._targets=r._overwrittenprops=r._startat=null,r._notifypluginsofenabled=!1,d.version="1.11.5",d.defaultease=r._ease=new t(null,null,1,1),d.defaultoverwrite="auto",d.ticker=n,d.autosleep=!0,d.selector=t.$||t.jquery||function(e){return t.$?(d.selector=t.$,t.$(e)):t.document?t.document.getelementbyid("#"===e.charat(0)?e.substr(1):e):e};var o=d._internals={isarray:m,isselector:e},n=d._plugins={},l=d._tweenlookup={},u=0,f=o.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},j={none:0,all:1,auto:2,concurrent:3,allonstart:4,preexisting:5,"true":1,"false":0},g=x._rootframestimeline=new r,q=x._roottimeline=new r;q._starttime=n.time,g._starttime=n.frame,q._active=g._active=!0,x._updateroot=function(){if(q.render((n.time-q._starttime)*q._timescale,!1,!1),g.render((n.frame-g._starttime)*g._timescale,!1,!1),!(n.frame%120)){var t,e,i;for(i in l){for(e=l[i].tweens,t=e.length;--t>-1;)e[t]._gc&&e.splice(t,1);0===e.length&&delete l[i]}if(i=q._first,(!i||i._paused)&&d.autosleep&&!g._first&&1===n._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||n.sleep()}}},n.addeventlistener("tick",x._updateroot);var b=function(t,e,i){var s,r,n=t._gstweenid;if(l[n||(t._gstweenid=n="t"+u++)]||(l[n]={target:t,tweens:[]}),e&&(s=l[n].tweens,s[r=s.length]=e,i))for(;--r>-1;)s[r]===e&&s.splice(r,1);return l[n].tweens},q=function(t,e,i,s,r){var n,a,o,l;if(1===s||s>=4){for(l=r.length,n=0;l>n;n++)if((o=r[n])!==e)o._gc||o._enabled(!1,!1)&&(a=!0);else if(5===s)break;return a}var _,u=e._starttime+h,m=[],f=0,p=0===e._duration;for(n=r.length;--n>-1;)(o=r[n])===e||o._gc||o._paused||(o._timeline!==e._timeline?(_=_||$(e,0,p),0===$(o,_,p)&&(m[f++]=o)):u>=o._starttime&&o._starttime+o.totalduration()/o._timescale>u&&((p||!o._initted)&&2e-10>=u-o._starttime||(m[f++]=o)));for(n=f;--n>-1;)o=m[n],2===s&&o._kill(i,t)&&(a=!0),(2!==s||!o._firstpt&&o._initted)&&o._enabled(!1,!1)&&(a=!0);return a},$=function(t,e,i){for(var s=t._timeline,r=s._timescale,n=t._starttime;s._timeline;){if(n+=s._starttime,r*=s._timescale,s._paused)return-100;s=s._timeline}return n/=r,n>e?n-e:i&&n===e||!t._initted&&2*h>n-e?h:(n+=t.totalduration()/t._timescale/r)>e+h?0:n-e-h};r._init=function(){var t,e,i,s,r=this.vars,n=this._overwrittenprops,a=this._duration,o=r.immediaterender,l=r.ease;if(r.startat){if(this._startat&&this._startat.render(-1,!0),r.startat.overwrite=0,r.startat.immediaterender=!0,this._startat=d.to(this.target,0,r.startat),o)if(this._time>0)this._startat=null;else if(0!==a)return}else if(r.runbackwards&&0!==a)if(this._startat)this._startat.render(-1,!0),this._startat=null;else{i={};for(s in r)f[s]&&"autocss"!==s||(i[s]=r[s]);if(i.overwrite=0,i.data="isfromstart",this._startat=d.to(this.target,0,i),r.immediaterender){if(0===this._time)return}else this._startat.render(-1,!0)}if(this._ease=l?l instanceof t?r.easeparams instanceof array?l.config.apply(l,r.easeparams):l:"function"==typeof l?new t(l,r.easeparams):w[l]||d.defaultease:d.defaultease,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],n?n[t]:null)&&(e=!0);else e=this._initprops(this.target,this._proplookup,this._siblings,n);if(e&&d._onpluginevent("_oninitallprops",this),n&&(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,r){var n,a,o,l,h,_;if(null==e)return!1;this.vars.css||e.style&&e!==t&&e.nodetype&&n.css&&this.vars.autocss!==!1&&i(this.vars,e);for(n in this.vars){if(_=this.vars[n],f[n])_&&(_ instanceof array||_.push&&m(_))&&-1!==_.join("").indexof("{self}")&&(this.vars[n]=_=this._swapselfinparams(_,this));else if(n[n]&&(l=new n[n])._oninittween(e,this.vars[n],this)){for(this._firstpt=h={_next:this._firstpt,t:l,p:"setratio",s:0,c:1,f:!0,n:n,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[n]=h={_next:this._firstpt,t:e,p:n,f:"function"==typeof e[n],n:n,pg:!1,pr:0},h.s=h.f?e[n.indexof("set")||"function"!=typeof e["get"+n.substr(3)]?n:"get"+n.substr(3)]():parsefloat(e[n]),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 r&&this._kill(r,e)?this._initprops(e,i,s,r):this._overwrite>1&&this._firstpt&&s.length>1&&q(e,this,i,this._overwrite,s)?(this._kill(i,e),this._initprops(e,i,s,r)):o},r.render=function(t,e,i){var s,r,n,a,o=this._time,l=this._duration;if(t>=l)this._totaltime=this._time=l,this.ratio=this._ease._calcend?this._ease.getratio(1):1,this._reversed||(s=!0,r="oncomplete"),0===l&&(a=this._rawprevtime,(0===t||0>a||a===h)&&a!==t&&(i=!0,a>h&&(r="onreversecomplete")),this._rawprevtime=a=!e||t||0===a?t:h);else if(1e-7>t)this._totaltime=this._time=0,this.ratio=this._ease._calcend?this._ease.getratio(0):0,(0!==o||0===l&&this._rawprevtime>h)&&(r="onreversecomplete",s=this._reversed),0>t?(this._active=!1,0===l&&(this._rawprevtime>=0&&(i=!0),this._rawprevtime=a=!e||t||0===this._rawprevtime?t:h)):this._initted||(i=!0);else if(this._totaltime=this._time=t,this._easetype){var _=t/l,u=this._easetype,m=this._easepower;(1===u||3===u&&_>=.5)&&(_=1-_),3===u&&(_*=2),1===m?_*=_:2===m?_*=_*_:3===m?_*=_*_*_:4===m&&(_*=_*_*_*_),this.ratio=1===u?1-_:2===u?_:.5>t/l?_/2:1-_/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;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._active||!this._paused&&this._time!==o&&t>=0&&(this._active=!0),0===o&&(this._startat&&(t>=0?this._startat.render(t,e,i):r||(r="_dummygs")),this.vars.onstart&&(0!==this._time||0===l)&&(e||this.vars.onstart.apply(this.vars.onstartscope||this,this.vars.onstartparams||g))),n=this._firstpt;n;)n.f?n.t[n.p](n.c*this.ratio+n.s):n.t[n.p]=n.c*this.ratio+n.s,n=n._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||g)),r&&(this._gc||(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[r]&&this.vars[r].apply(this.vars[r+"scope"]||this,this.vars[r+"params"]||g),0===l&&this._rawprevtime===h&&a!==h&&(this._rawprevtime=0)))}},r._kill=function(t,e){if("all"===t&&(t=null),null==t&&(null==e||e===this.target))return this._enabled(!1,!1);e="string"!=typeof e?e||this._targets||this.target:d.selector(e)||e;var i,s,r,n,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(r in l)(n=a[r])&&(n.pg&&n.t._kill(l)&&(o=!0),n.pg&&0!==n.t._overwriteprops.length||(n._prev?n._prev._next=n._next:n===this._firstpt&&(this._firstpt=n._next),n._next&&(n._next._prev=n._prev),n._next=n._prev=null),delete a[r]),h&&(s[r]=1);!this._firstpt&&this._initted&&this._enabled(!1,!1)}}return o},r.invalidate=function(){return this._notifypluginsofenabled&&d._onpluginevent("_ondisable",this),this._firstpt=null,this._overwrittenprops=null,this._onupdate=null,this._startat=null,this._initted=this._active=this._notifypluginsofenabled=!1,this._proplookup=this._targets?{}:[],this},r._enabled=function(t,e){if(a||n.wake(),t&&this._gc){var i,s=this._targets;if(s)for(i=s.length;--i>-1;)this._siblings[i]=b(s[i],this,!0);else this._siblings=b(this.target,this,!0)}return x.prototype._enabled.call(this,t,e),this._notifypluginsofenabled&&this._firstpt?d._onpluginevent(t?"_onenable":"_ondisable",this):!1},d.to=function(t,e,i){return new d(t,e,i)},d.from=function(t,e,i){return i.runbackwards=!0,i.immediaterender=0!=i.immediaterender,new d(t,e,i)},d.fromto=function(t,e,i,s){return s.startat=i,s.immediaterender=0!=s.immediaterender&&0!=i.immediaterender,new d(t,e,s)},d.delayedcall=function(t,e,i,s,r){return new d(e,0,{delay:t,oncomplete:e,oncompleteparams:i,oncompletescope:s,onreversecomplete:e,onreversecompleteparams:i,onreversecompletescope:s,immediaterender:!1,useframes:r,overwrite:0})},d.set=function(t,e){return new d(t,0,e)},d.gettweensof=function(t,e){if(null==t)return[];t="string"!=typeof t?t:d.selector(t)||t;var i,s,r,n;if((m(t)||e(t))&&"number"!=typeof t[0]){for(i=t.length,s=[];--i>-1;)s=s.concat(d.gettweensof(t[i],e));for(i=s.length;--i>-1;)for(n=s[i],r=i;--r>-1;)n===s[r]&&s.splice(i,1)}else for(s=b(t).concat(),i=s.length;--i>-1;)(s[i]._gc||e&&!s[i].isactive())&&s.splice(i,1);return s},d.killtweensof=d.killdelayedcallsto=function(t,e,i){"object"==typeof e&&(i=e,e=!1);for(var s=d.gettweensof(t,e),r=s.length;--r>-1;)s[r]._kill(i,t)};var m=d("plugins.tweenplugin",function(t,e){this._overwriteprops=(t||"").split(","),this._propname=this._overwriteprops[0],this._priority=e||0,this._super=m.prototype},!0);if(r=m.prototype,m.version="1.10.1",m.api=2,r._firstpt=null,r._addtween=function(t,e,i,s,r,n){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:r||e,r:n},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=0|e+(e>0?.5:-.5):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},d._onpluginevent=function(t,e){var i,s,r,n,a,o=e._firstpt;if("_oninitallprops"===t){for(;o;){for(a=o._next,s=r;s&&s.pr>o.pr;)s=s._next;(o._prev=s?s._prev:n)?o._prev._next=o:r=o,(o._next=s)?s._prev=o:n=o,o=a}o=e._firstpt=r}for(;o;)o.pg&&"function"==typeof o.t[t]&&o.t[t]()&&(i=!0),o=o._next;return i},m.activate=function(t){for(var e=t.length;--e>-1;)t[e].api===m.api&&(n[(new t[e])._propname]=t[e]);return!0},c.plugin=function(t){if(!(t&&t.propname&&t.init&&t.api))throw"illegal plugin definition.";var e,i=t.propname,s=t.priority||0,r=t.overwriteprops,n={init:"_oninittween",set:"setratio",kill:"_kill",round:"_roundprops",initall:"_oninitallprops"},a=d("plugins."+i.charat(0).touppercase()+i.substr(1)+"plugin",function(){m.call(this,i,s),this._overwriteprops=r||[]},t.global===!0),o=a.prototype=new m(i);o.constructor=a,a.api=t.api;for(e in n)"function"==typeof t[e]&&(o[n[e]]=t[e]);return a.version=t.version,m.activate([a]),a},i=t._gsqueue){for(s=0;i.length>s;s++)i[s]();for(r in f)f[r].func||t.console.log("gsap encountered missing dependency: com.greensock."+r)}a=!1}})(window); /*! * version: 1.11.5 * date: 2014-02-20 * 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 */ (window._gsqueue||(window._gsqueue=[])).push(function(){"use strict";window._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],a(i)&&-1!==i.join("").indexof("{self}")&&(r[s]=this._swapselfinparams(i));a(r.tweens)&&this.add(r.tweens,0,r.align,r.stagger)},r=1e-10,n=i._internals.isselector,a=i._internals.isarray,o=[],h=function(t){var e,i={};for(e in t)i[e]=t[e];return i},l=function(t,e,i,s){t._timeline.pause(t._starttime),e&&e.apply(s||t._timeline,i||o)},_=o.slice,u=s.prototype=new e;return s.version="1.11.5",u.constructor=s,u.kill()._gc=!1,u.to=function(t,e,s,r){return e?this.add(new i(t,e,s),r):this.set(t,s,r)},u.from=function(t,e,s,r){return this.add(i.from(t,e,s),r)},u.fromto=function(t,e,s,r,n){return e?this.add(i.fromto(t,e,s,r),n):this.set(t,r,n)},u.staggerto=function(t,e,r,a,o,l,u,p){var f,c=new s({oncomplete:l,oncompleteparams:u,oncompletescope:p,smoothchildtiming:this.smoothchildtiming});for("string"==typeof t&&(t=i.selector(t)||t),n(t)&&(t=_.call(t,0)),a=a||0,f=0;t.length>f;f++)r.startat&&(r.startat=h(r.startat)),c.to(t[f],e,h(r),f*a);return this.add(c,o)},u.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)},u.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)},u.call=function(t,e,s,r){return this.add(i.delayedcall(0,t,e,s),r)},u.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},u.add=function(r,n,o,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&&a(r)){for(o=o||"normal",h=h||0,l=n,_=r.length,u=0;_>u;u++)a(p=r[u])&&(p=new s({tweens:p})),this.add(p,l),"string"!=typeof p&&"function"!=typeof p&&("sequence"===o?l=p._starttime+p.totalduration()/p._timescale:"start"===o&&(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},u.remove=function(e){if(e instanceof t)return this._remove(e,!1);if(e instanceof array||e&&e.push&&a(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)},u._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},u.append=function(t,e){return this.add(t,this._parsetimeorlabel(null,e,!0,t))},u.insert=u.insertmultiple=function(t,e,i,s){return this.add(t,e||0,i,s)},u.appendmultiple=function(t,e,i,s){return this.add(t,this._parsetimeorlabel(null,e,!0,t),i,s)},u.addlabel=function(t,e){return this._labels[t]=this._parsetimeorlabel(e),this},u.addpause=function(t,e,i,s){return this.call(l,["{self}",e,i,s],this,t)},u.removelabel=function(t){return delete this._labels[t],this},u.getlabeltime=function(t){return null!=this._labels[t]?this._labels[t]:-1},u._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&&a(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},u.seek=function(t,e){return this.totaltime("number"==typeof t?t:this._parsetimeorlabel(t),e!==!1)},u.stop=function(){return this.paused(!0)},u.gotoandplay=function(t,e){return this.play(t,e)},u.gotoandstop=function(t,e){return this.pause(t,e)},u.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var s,n,a,h,l,_=this._dirty?this.totalduration():this._totalduration,u=this._time,p=this._starttime,f=this._timescale,c=this._paused;if(t>=_?(this._totaltime=this._time=_,this._reversed||this._haspausedchild()||(n=!0,h="oncomplete",0===this._duration&&(0===t||0>this._rawprevtime||this._rawprevtime===r)&&this._rawprevtime!==t&&this._first&&(l=!0,this._rawprevtime>r&&(h="onreversecomplete"))),this._rawprevtime=this._duration||!e||t||0===this._rawprevtime?t:r,t=_+1e-4):1e-7>t?(this._totaltime=this._time=0,(0!==u||0===this._duration&&(this._rawprevtime>r||0>t&&this._rawprevtime>=0))&&(h="onreversecomplete",n=this._reversed),0>t?(this._active=!1,0===this._duration&&this._rawprevtime>=0&&this._first&&(l=!0),this._rawprevtime=t):(this._rawprevtime=this._duration||!e||t||0===this._rawprevtime?t:r,t=0,this._initted||(l=!0))):this._totaltime=this._time=this._rawprevtime=t,this._time!==u&&this._first||i||l){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==u&&t>0&&(this._active=!0),0===u&&this.vars.onstart&&0!==this._time&&(e||this.vars.onstart.apply(this.vars.onstartscope||this,this.vars.onstartparams||o)),this._time>=u)for(s=this._first;s&&(a=s._next,!this._paused||c);)(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||c);)(s._active||u>=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||this._onupdate.apply(this.vars.onupdatescope||this,this.vars.onupdateparams||o)),h&&(this._gc||(p===this._starttime||f!==this._timescale)&&(0===this._time||_>=this.totalduration())&&(n&&(this._timeline.autoremovechildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[h]&&this.vars[h].apply(this.vars[h+"scope"]||this,this.vars[h+"params"]||o)))}},u._haspausedchild=function(){for(var t=this._first;t;){if(t._paused||t instanceof s&&t._haspausedchild())return!0;t=t._next}return!1},u.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},u.gettweensof=function(t,e){for(var s=i.gettweensof(t),r=s.length,n=[],a=0;--r>-1;)(s[r].timeline===this||e&&this._contains(s[r]))&&(n[a++]=s[r]);return n},u._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},u.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)},u._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},u.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)},u.invalidate=function(){for(var t=this._first;t;)t.invalidate(),t=t._next;return this},u._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)},u.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timescale(this._duration/t),this):(this._dirty&&this.totalduration(),this._duration)},u.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},u.usesframes=function(){for(var e=this._timeline;e._timeline;)e=e._timeline;return e===t._rootframestimeline},u.rawtime=function(){return this._paused?this._totaltime:(this._timeline.rawtime()-this._starttime)*this._timescale},s},!0)}),window._gsdefine&&window._gsqueue.pop()(); /*! * version: beta 1.9.3 * date: 2013-04-02 * 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 **/ (window._gsqueue||(window._gsqueue=[])).push(function(){"use strict";window._gsdefine("easing.back",["easing.ease"],function(t){var e,i,s,r=window.greensockglobals||window,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)}),window._gsdefine&&window._gsqueue.pop()(); /*! * version: 1.11.5 * date: 2014-02-20 * 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 */ (window._gsqueue||(window._gsqueue=[])).push(function(){"use strict";window._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.11.5",a.api=2,a.defaulttransformperspective=0,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,_,p,f,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 *= *([^)]*)/,x=/opacity:([^;]*)/,w=/alpha\(opacity *=.+?\)/i,b=/^(rgb|hsl)/,p=/([a-z])/g,s=/-([a-z])/gi,r=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,k=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,i=x.createelement("div"),e=x.createelement("img"),f=a._internals={_specialprops:o},y=navigator.useragent,z=function(){var t,e=y.indexof("android"),i=x.createelement("div");return _=-1!==y.indexof("safari")&&-1===y.indexof("chrome")&&(-1===e||number(y.substr(e+8,1))>3),f=_&&6>number(y.substr(y.indexof("version/")+8,1)),p=-1!==y.indexof("firefox"),/msie ([0-9]{1,}[\.0-9]{0,})/.exec(y)&&(c=parsefloat(regexp.$1)),i.innerhtml="a",t=i.getelementsbytagname("a")[0],t?/^0.55/.test(t.style.opacity):!1}(),u=function(t){return t.test("string"==typeof t?t:(t.currentstyle?t.currentstyle.filter:t.style.filter)||"")?parsefloat(regexp.$1)/100:1},b=function(t){window.console&&console.log(t)},j="",w="",v=function(t,e){e=e||i;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 z||"opacity"!==e?(!r&&t.style[e]?n=t.style[e]:(i=i||q(t,null))?(t=i.getpropertyvalue(e.replace(p,"-$1").tolowercase()),n=t||i.length?t:i[e]):t.currentstyle&&(n=t.currentstyle[e]),null==s||n&&"none"!==n&&"auto"!==n&&"auto auto"!==n?n:s):u(t)},q=function(t,e,i,r,s){if("px"===r||!r)return i;if("auto"===r||!i)return 0;var n,a=c.test(e),o=t,l=i.style,h=0>i;return h&&(i=-i),"%"===r&&-1!==e.indexof("border")?n=i/100*(a?t.clientwidth:t.clientheight):(l.csstext="border:0 solid red;position:"+h(t,"position")+";line-height:0;","%"!==r&&o.appendchild?l[a?"borderleftwidth":"bordertopwidth"]=i+r:(o=t.parentnode||x.body,l[a?"width":"height"]=i+r),o.appendchild(i),n=parsefloat(i[a?"offsetwidth":"offsetheight"]),o.removechild(i),0!==n||s||(n=q(t,e,i,r,!0))),h?-n:n},z=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)},$=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,k)]=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,k)]=e[i]);return z||(s.opacity=u(t)),r=be(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},g=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:z(t,a),void 0!==h[a]&&(o=new _e(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,_=u>0?a[0].replace(d,""):"";return u?s=e?function(t){var e,p,f,c;if("number"==typeof t)t+=_;else if(r&&d.test(t)){for(c=t.replace(d,"|").split("|"),f=0;c.length>f;f++)c[f]=s(c[f]);return c.join(",")}if(e=(t.match(le)||[n])[0],p=t.split(e).join("").match(g)||[],f=p.length,u>f--)for(;u>++f;)p[f]=i?p[0|(f-1)/2]:a[f];return o+p.join(h)+h+e+l+(-1!==t.indexof("inset")?" inset":"")}:function(t){var e,n,p;if("number"==typeof t)t+=_;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)}},_e=(f._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=e>0?0|e+.5:0|e-.5: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=(f._parsetoproxy=function(t,e,i,r,s,n){var a,o,l,h,u,_=r,p={},f={},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,_&&(_._prev=null,_._prev&&(_._prev._next=null)));r&&r!==_;){if(1>=r.type&&(o=r.p,f[o]=r.s+r.c,p[o]=r.s,n||(h=new _e(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,f[o]=r.data[l],p[o]=r[l],n||(h=new _e(r,l,o,h,r.rxp[l]));r=r._next}return{proxy:p,end:f,firstmpt:h,pt:u}},f.cssproptween=function(t,e,r,s,a,o,l,h,u,_,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===_?r:_,this.e=void 0===p?r+s:p,a&&(this._next=a,a._prev=this)}),fe=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 _,p,f,c,g,v,y,t,x,w,p,s,r=i.split(", ").join(",").split(" "),k=r.split(", ").join(",").split(" "),c=r.length,a=h!==!1;for((-1!==r.indexof(",")||-1!==i.indexof(","))&&(r=r.join(" ").replace(d,", ").split(" "),k=k.join(" ").replace(d,", ").split(" "),c=r.length),c!==k.length&&(r=(n||"").split(" "),c=r.length),a.plugin=l,a.setratio=u,_=0;c>_;_++)if(c=r[_],g=k[_],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&&!z&&0===g[3]?(a["xs"+a.l]+=a.l?" transparent":"transparent",a.e=a.e.split(k[_]).join("transparent")):(z||(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(f=0,p=0;v.length>p;p++)p=v[p],w=c.indexof(p,f),a.appendxtra(c.substr(f,w-f),number(p),ie(y[p],p),"",a&&"px"===c.substr(w+p.length,2),0===p),f=w+p.length;a["xs"+a.l]+=c.substr(f)}else a["xs"+a.l]+=a.l?" "+c:c;if(-1!==r.indexof("=")&&a.data){for(s=a.xs0+a.data.s,_=1;a.l>_;_++)s+=a["xs"+_]+a.data["xn"+_];a.e=s+a["xs"+_]}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=f._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=(window.greensockglobals||window).com.greensock.plugins[e];return h?(h._cssregister(),o[r].parse(t,i,r,s,n,a,l)):(b("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,_,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),_=i.indexof(p),u!==_&&(i=-1===_?l:o,i[a]+=" "+p));e=o.join(", "),i=l.join(", ")}return fe(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,rotation,rotationx,rotationy,perspective".split(","),ye=v("transform"),te=j+"transform",xe=v("transformorigin"),we=null!==v("perspective"),be=function(t,e,i,r){if(t._gstransform&&i&&!r)return t._gstransform;var s,n,o,l,h,u,_,p,f,c,d,m,g,v=i?t._gstransform||{skewy:0}:{skewy:0},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;for(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(","):""),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],r=n[9],k=n[10],c=n[12],o=n[13],d=n[14];if(v.zorigin&&(d=-v.zorigin,c=s*d-n[12],o=r*d-n[13],d=k*d+v.zorigin-n[14]),!i||r||null==v.rotationx){var n,x,i,e,f,y,z,u=n[0],b=n[1],j=n[2],w=n[3],v=n[4],q=n[5],q=n[6],z=n[7],$=n[11],g=math.atan2(q,k),k=-b>g||g>b;v.rotationx=g*l,g&&(e=math.cos(-g),f=math.sin(-g),n=v*e+s*f,x=q*e+r*f,i=q*e+k*f,s=v*-f+s*e,r=q*-f+r*e,k=q*-f+k*e,$=z*-f+$*e,v=n,q=x,q=i),g=math.atan2(s,u),v.rotationy=g*l,g&&(y=-b>g||g>b,e=math.cos(-g),f=math.sin(-g),n=u*e-s*f,x=b*e-r*f,i=j*e-k*f,r=b*f+r*e,k=j*f+k*e,$=w*f+$*e,u=n,b=x,j=i),g=math.atan2(b,q),v.rotation=g*l,g&&(z=-b>g||g>b,e=math.cos(-g),f=math.sin(-g),u=u*e+v*f,x=b*e+q*f,q=b*-f+q*e,q=j*-f+q*e,b=x),z&&k?v.rotation=v.rotationx=0:z&&y?v.rotation=v.rotationy=0:y&&k&&(v.rotationy=v.rotationx=0),v.scalex=(0|math.sqrt(u*u+b*b)*x+.5)/x,v.scaley=(0|math.sqrt(q*q+r*r)*x+.5)/x,v.scalez=(0|math.sqrt(q*q+k*k)*x+.5)/x,v.skewx=0,v.perspective=$?1/(0>$?-$:$):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),_=math.sqrt(re*re+ie*ie),p=te||ee?math.atan2(ee,te)*l:v.rotation||0,f=ie||re?math.atan2(ie,re)*l+p:v.skewx||0,c=u-math.abs(v.scalex||0),d=_-math.abs(v.scaley||0),math.abs(f)>90&&270>math.abs(f)&&(y?(u*=-1,f+=0>=p?180:-180,p+=0>=p?180:-180):(_*=-1,f+=0>=f?180:-180)),m=(p-v.rotation)%180,g=(f-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=_,v.rotation=p,v.skewx=f),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);return i&&(t._gstransform=v),v},pe=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,_=this.t.style,p=this.t.currentstyle;if(p){i=l,l=-h,h=-i,e=p.filter,_.filter="";var f,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,b=r.y;if(null!=r.ox&&(f=(r.oxp?.01*m*r.ox:r.ox)-m/2,d=(r.oyp?.01*g*r.oy:r.oy)-g/2,w+=f-(f*o+d*l),b+=d-(f*h+d*u)),v?(f=m/2,d=g/2,x+=", dx="+(f-(f*o+d*l)+w)+", dy="+(d-(f*h+d*u)+b)+")"):x+=", sizingmethod='auto expand')",_.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"))&&_.removeattribute("filter")),!v){var p,s,r,k=8>c?1:-1;for(f=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,r=i!==r[s]?2>ce?-r.ieoffsetx:-r.ieoffsety:2>ce?f-r.ieoffsetx:d-r.ieoffsety,_[s]=(r[s]=math.round(i-r*(0===ce||2===ce?1:k)))+"px"}}},se=function(){var t,e,i,r,s,n,a,o,l,h,u,_,f,c,d,m,g,v,y,t,x,w,b,p=this.data,s=this.t.style,r=p.rotation*m,k=p.scalex,c=p.scaley,a=p.scalez,o=p.perspective;if(p){var d=1e-4;d>k&&k>-d&&(k=a=2e-5),d>c&&c>-d&&(c=a=2e-5),!o||p.z||p.rotationx||p.rotationy||(o=0)}if(r||p.skewx)v=math.cos(r),y=math.sin(r),t=v,s=y,p.skewx&&(r-=p.skewx*m,v=math.cos(r),y=math.sin(r)),e=-y,n=v;else{if(!(p.rotationy||p.rotationx||1!==a||o))return s[ye]="translate3d("+p.x+"px,"+p.y+"px,"+p.z+"px)"+(1!==k||1!==c?" scale("+k+","+c+")":""),void 0;t=n=1,e=s=0}u=1,i=r=a=o=l=h=_=f=c=0,d=o?-1/o:0,m=p.zorigin,g=1e5,r=p.rotationy*m,r&&(v=math.cos(r),y=math.sin(r),l=u*-y,f=d*-y,i=t*y,a=s*y,u*=v,d*=v,t*=v,s*=v),r=p.rotationx*m,r&&(v=math.cos(r),y=math.sin(r),t=e*v+i*y,x=n*v+a*y,w=h*v+u*y,b=c*v+d*y,i=e*-y+i*v,a=n*-y+a*v,u=h*-y+u*v,d=c*-y+d*v,e=t,n=x,h=w,c=b),1!==a&&(i*=a,a*=a,u*=a,d*=a),1!==c&&(e*=c,n*=c,h*=c,c*=c),1!==k&&(t*=k,s*=k,l*=k,f*=k),m&&(_-=m,r=i*_,o=a*_,_=u*_+m),r=(t=(r+=p.x)-(r|=0))?(0|t*g+(0>t?-.5:.5))/g+r:r,o=(t=(o+=p.y)-(o|=0))?(0|t*g+(0>t?-.5:.5))/g+o:o,_=(t=(_+=p.z)-(_|=0))?(0|t*g+(0>t?-.5:.5))/g+_:_,s[ye]="matrix3d("+[(0|t*g)/g,(0|s*g)/g,(0|l*g)/g,(0|f*g)/g,(0|e*g)/g,(0|n*g)/g,(0|h*g)/g,(0|c*g)/g,(0|i*g)/g,(0|a*g)/g,(0|u*g)/g,(0|d*g)/g,r,o,_,o?1+-_/o:1].join(",")+")"},re=function(t){var e,i,r,s,n,a=this.data,o=this.t,l=o.style;return a.rotationx||a.rotationy||a.z||a.force3d?(this.setratio=se,se.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]="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+","+a.x+","+a.y+")"):l[ye]="matrix("+a.scalex+",0,0,"+a.scaley+","+a.x+","+a.y+")",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",{parser:function(t,e,i,r,n,a,o){if(r._transform)return n;var l,h,u,_,p,f,c,d=r._transform=be(t,s,!0,o.parsetransform),m=t.style,g=1e-6,v=ve.length,y=o,t={};if("string"==typeof y.transform&&ye)u=m.csstext,m[ye]=y.transform,m.display="block",l=be(t,null,!1),m.csstext=u;else if("object"==typeof y){if(l={scalex:re(null!=y.scalex?y.scalex:y.scale,d.scalex),scaley:re(null!=y.scaley?y.scaley:y.scale,d.scaley),scalez:re(y.scalez,d.scalez),x:re(y.x,d.x),y:re(y.y,d.y),z:re(y.z,d.z),perspective:re(y.transformperspective,d.perspective)},c=y.directionalrotation,null!=c)if("object"==typeof c)for(u in c)y[u]=c[u];else y.rotation=c;l.rotation=se("rotation"in y?y.rotation:"shortrotation"in y?y.shortrotation+"_short":"rotationz"in y?y.rotationz:d.rotation,d.rotation,"rotation",t),we&&(l.rotationx=se("rotationx"in y?y.rotationx:"shortrotationx"in y?y.shortrotationx+"_short":d.rotationx||0,d.rotationx,"rotationx",t),l.rotationy=se("rotationy"in y?y.rotationy:"shortrotationy"in y?y.shortrotationy+"_short":d.rotationy||0,d.rotationy,"rotationy",t)),l.skewx=null==y.skewx?d.skewx:se(y.skewx,d.skewx),l.skewy=null==y.skewy?d.skewy:se(y.skewy,d.skewy),(h=l.skewy-d.skewy)&&(l.skewx+=h,l.rotation+=h)}for(we&&null!=y.force3d&&(d.force3d=y.force3d,f=!0),p=d.force3d||d.z||d.rotationx||d.rotationy||l.z||l.rotationx||l.rotationy||l.perspective,p||null==y.scale||(l.scalez=1);--v>-1;)i=ve[v],_=l[i]-d[i],(_>g||-g>_||null!=n[i])&&(f=!0,n=new pe(d,i,d[i],_,n),i in t&&(n.e=t[i]),n.xs0=0,n.plugin=a,r._overwriteprops.push(n.n));return _=y.transformorigin,(_||we&&p&&d.zorigin)&&(ye?(f=!0,i=xe,_=(_||h(t,i,s,!1,"50% 50%"))+"",n=new pe(m,i,0,0,n,-1,"transformorigin"),n.b=m[i],n.plugin=a,we?(u=d.zorigin,_=_.split(" "),d.zorigin=(_.length>2&&(0===u||"0px"!==_[2])?parsefloat(_[2]):u)||0,n.xs0=n.e=m[i]=_[0]+" "+(_[1]||"50%")+" 0px",n=new pe(d,"zorigin",0,0,n,-1,n.n),n.b=u,n.xs0=n.e=d.zorigin):n.xs0=n.e=m[i]=_):ee(_+"",d)),f&&(r._transformtype=p||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,_,p,f,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])),_=u=h(t,b[l],s,!1,"0px"),-1!==_.indexof(" ")&&(u=_.split(" "),_=u[0],u=u[1]),p=h=o[l],f=parsefloat(_),v=_.substr((f+"").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",f,v),x=q(t,"bordertop",f,v),"%"===g?(_=100*(t/d)+"%",u=100*(x/m)+"%"):"em"===g?(w=q(t,"borderleft",1,"em"),_=t/w+"em",u=x/w+"em"):(_=t+"px",u=x+"px"),y&&(p=parsefloat(_)+c+g,h=parsefloat(u)+c+g)),a=fe(p,b[l],_+" "+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,_,p,f="background-position",d=s||q(t,null),m=this.format((d?c?d.getpropertyvalue(f+"-x")+" "+d.getpropertyvalue(f+"-y"):d.getpropertyvalue(f):t.currentstyle.backgroundpositionx+" "+t.currentstyle.backgroundpositiony)||"0 0"),g=this.format(e);if(-1!==m.indexof("%")!=(-1!==g.indexof("%"))&&(p=h(t,"backgroundimage").replace(r,""),p&&"none"!==p)){for(o=m.split(" "),l=g.split(" "),e.setattribute("src",p),h=2;--h>-1;)m=o[h],u=-1!==m.indexof("%"),u!==(-1!==l[h].indexof("%"))&&(_=0===h?t.offsetwidth-e.width:t.offsetheight-e.height,o[h]=u?parsefloat(m)/100*_+"px":100*(parsefloat(m)/_)+"%");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 ke=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("opacity")?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),z?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=ke),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 ce=function(t,e){e&&(t.removeproperty?t.removeproperty(e.replace(p,"-$1").tolowercase()):t.removeattribute(e))},ae=function(t){if(this.t._gsclasspt=this,1===t||0===t){this.t.classname=0===t?this.b:this.e;for(var e=this.data,i=this.t.style;e;)e.v?i[e.p]=e.v:ce(i,e.p),e=e._next;1===t&&this.t._gsclasspt===this&&(this.t._gsclasspt=null)}else this.t.classname!==this.e&&(this.t.classname=this.e)};me("classname",{parser:function(t,e,r,n,a,o,l){var h,u,_,p,f,c=t.classname,d=t.style.csstext;if(a=n._classnamept=new pe(t,r,0,0,a,2),a.setratio=ae,a.pr=-11,i=!0,a.b=c,u=$(t,s),_=t._gsclasspt){for(p={},f=_.data;f;)p[f.p]=1,f=f._next;_.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.classname=a.e,h=g(t,u,$(t),l,p),t.classname=c,a.data=h.firstmpt,t.style.csstext=d,a=a.xfirst=n.parse(t,h.difs,a,o)),a}});var oe=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),ce(n,i);s&&(ce(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=oe,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)&&(w.zindex=0)),"string"==typeof e&&(d=w.csstext,l=$(t,s),w.csstext=d+";"+e,l=g(t,l,$(t)).difs,!z&&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?_&&(u=!0,""===w.zindex&&(v=h(t,"zindex",s),("auto"===v||""===v)&&(w.zindex=0)),f&&(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?se:ye?re:pe,y.data=this._transform||be(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,_,p,f,c,d,m,g,v=t.style;for(a in e)f=e[a],l=o[a],l?i=l.parse(t,f,a,this,i,n,e):(p=h(t,a,s)+"",m="string"==typeof f,"color"===a||"fill"===a||"stroke"===a||-1!==a.indexof("color")||m&&b.test(f)?(m||(f=oe(f),f=(f.length>3?"rgba(":"rgb(")+f.join(",")+")"),i=fe(v,a,p,f,!0,"transparent",i,0,n)):!m||-1===f.indexof(" ")&&-1===f.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=z(t,a,s),c="px"):(u="opacity"!==a?0:1,c="")),g=m&&"="===f.charat(1),g?(_=parseint(f.charat(0)+"1",10),f=f.substr(2),_*=parsefloat(f),d=f.replace(y,"")):(_=parsefloat(f),d=m?f.substr((_+"").length)||"":""),""===d&&(d=a in r?r[a]:c),f=_||0===_?(g?_+u:_)+d:e[a],c!==d&&""!==d&&(_||0===_)&&(u||0===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"):(_=q(t,a,_,d),d="px"),g&&(_||0===_)&&(f=_+u+d)),g&&(_+=u),!u&&0!==u||!_&&0!==_?void 0!==v[a]&&(f||"nan"!=f+""&&null!=f)?(i=new pe(v,a,_||u||0,0,i,-1,a,!1,0,p,f),i.xs0="none"!==f||"display"!==a&&-1===a.indexof("style")?f:p):b("invalid "+a+" tween value: "+e[a]):(i=new pe(v,a,u,_-u,i,0,a,h!==!1&&("px"===d||"zindex"===a),0,p,f),i.xs0=d)):i=fe(v,a,p,f,!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=e>0?0|e+.5:0|e-.5: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||be(this._target,s,!0)},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 de=function(t,e,i){var r,s,n,a;if(t.slice)for(s=t.length;--s>-1;)de(t[s],e,i);else for(r=t.childnodes,s=r.length;--s>-1;)n=r[s],a=n.type,n.style&&(e.push($(n)),i&&i.push(n)),1!==a&&9!==a&&11!==a||!n.childnodes.length||de(n,e,i)};return a.cascadeto=function(t,i,r){var s,n,a,o=e.to(t,i,r),l=[o],h=[],u=[],_=[],p=e._internals.reservedprops;for(t=o._targets||o.target,de(t,h,_),o.render(i,!0),de(t,u),o.render(0,!0),o._enabled(!0),s=_.length;--s>-1;)if(n=g(_[s],h[s],u[s]),n.firstmpt){n=n.difs;for(a in r)p[a]&&(n[a]=r[a]);l.push(e.to(_[s],i,n))}return l},t.activate([a]),a},!0)}),window._gsdefine&&window._gsqueue.pop()(); // wait for images /* * waitforimages 1.4 * ----------------- * provides a callback when all images have loaded in your given selector. * http://www.alexanderdickson.com/ * * * copyright (c) 2011 alex dickson * licensed under the mit licenses. * see website for more info. * */ (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)