/**
 * VERSION: beta 0.11
 * DATE: 2012-10-26
 * JavaScript 
 * UPDATES AND DOCS AT: http://www.greensock.com
 *
 * Copyright (c) 2008-2012, GreenSock. All rights reserved. 
 * This work is subject to the terms in http://www.greensock.com/terms_of_use.html or for 
 * Club GreenSock members, the software agreement that was issued with your membership.
 * 
 * @author: Jack Doyle, jack@greensock.com
 **/
(window._gsQueue||(window._gsQueue=[])).push(function(){_gsDefine("plugins.EaselPlugin",["plugins.TweenPlugin"],function(j){var h=function(){j.call(this,"easel",-1);this._overwriteProps.pop()},k=h.prototype=new j("easel",-1),l=/(\d|\.)+/g,i;_colorProps="redMultiplier greenMultiplier blueMultiplier alphaMultiplier redOffset greenOffset blueOffset alphaOffset".split(" ");_parseColorFilter=function(a,c,d){if(!i&&(i=window.ColorFilter||window.createjs.ColorFilter,!i))throw"EaselPlugin error: The EaselJS ColorFilter JavaScript file wasn't loaded.";
for(var b=a.filters||[],f=b.length,g,e;-1<--f;)if(b[f]instanceof i){g=b[f];break}g||(g=new i,b.push(g),a.filters=b);b=g.clone();if(null!=c.tint)f=_parseColor(c.tint),e=null!=c.tintAmount?Number(c.tintAmount):1,b.redOffset=Number(f[0])*e,b.greenOffset=Number(f[1])*e,b.blueOffset=Number(f[2])*e,b.redMultiplier=b.greenMultiplier=b.blueMultiplier=1-e;else for(e in c)"exposure"!==e&&"brightness"!==e&&(b[e]=Number(c[e]));null!=c.exposure?(b.redOffset=b.greenOffset=b.blueOffset=255*(Number(c.exposure)-1),
b.redMultiplier=b.greenMultiplier=b.blueMultiplier=1):null!=c.brightness&&(e=Number(c.brightness)-1,b.redOffset=b.greenOffset=b.blueOffset=0<e?255*e:0,b.redMultiplier=b.greenMultiplier=b.blueMultiplier=1-Math.abs(e));for(f=8;-1<--f;)e=_colorProps[f],g[e]!==b[e]&&d._addTween(g,e,g[e],b[e],"easel_colorFilter");d._overwriteProps.push("easel_colorFilter");if(!a.cacheID)throw"EaselPlugin warning: for filters to display in EaselJS, you must call the object's cache() method first. "+a;};_parseColor=function(a){return""===
a||null==a||"none"===a?_colorLookup.transparent:_colorLookup[a]?_colorLookup[a]:"number"===typeof a?[a>>16,a>>8&255,a&255]:"#"===a.charAt(0)?(4===a.length&&(a="#"+a.charAt(1)+a.charAt(1)+a.charAt(2)+a.charAt(2)+a.charAt(3)+a.charAt(3)),a=parseInt(a.substr(1),16),[a>>16,a>>8&255,a&255]):a.match(l)||_colorLookup.transparent};_colorLookup={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,
0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]};k.constructor=h;h.API=2;k._onInitTween=function(a,c){this._target=a;var d,b,f;for(d in c)"colorFilter"===d||"tint"===d||"tintAmount"===d||"exposure"===d||"brightness"===d?f||(_parseColorFilter(a,c.colorFilter||c,this),f=!0):null!=a[d]&&(this._firstPT=b={_next:this._firstPT,t:a,p:d,f:"function"===typeof a[d],
n:d,pr:0,type:0},b.s=!b.f?parseFloat(a[d]):a[d.indexOf("set")||"function"!==typeof a["get"+d.substr(3)]?d:"get"+d.substr(3)](),b.c="number"===typeof c[d]?c[d]-b.s:"string"===typeof c[d]?parseFloat(c[d].split("=").join("")):0,b._next&&(b._next._prev=b));return!0};k.setRatio=function(a){for(var c=this._firstPT,d;c;){d=c.c*a+c.s;c.r&&(d=d+(0<d?0.5:-0.5)>>0);if(c.f)c.t[c.p](d);else c.t[c.p]=d;c=c._next}this._target.cacheID&&this._target.updateCache()};j.activate([h]);return h},!0)});
window._gsDefine&&_gsQueue.pop()();