text: /*!
   * Agile v0.1.6
   * https://github.com/a-jie/Agile
   *
   * Copyright 2011-2015, A-JIE
   * Licensed under the MIT license
   * http://www.opensource.org/licenses/mit-license
   *
   */
  (function(a,b){function F(a,b,c,d,e,f,g){this.widthSize=!0,this.heightSize=!0,F._super_.call(this,a,b,c),this.speed=d||10,this.direction=e||"left",this.backgroundWidth=f||0,this.backgroundHeight=g||0,this.originalHeight=c,this.originalWidth=b,this.scrolling()}function E(a,b){E._super_.call(this),this.radius=a||25;var b=b||"purple";this.background(b),this.x=this.y=0}function C(a,b,c,d,e,f){typeof b=="object"?(this.from=b.from,this.to=b.to,this.label=a,this.totalframes=b.totalframes||1):(this.label=a,this.from={x:b,y:c},this.to={x:d,y:e},this.totalframes=f||1)}function B(){this.keyframes={"100%":{}},this.label=c.IDUtils.getID("keyframe"),this.add.apply(this,arguments)}function y(a,b,c){y._super_.call(this),this.width=a||50,this.height=b||this.width;var c=c||"blur";this.background(c),this.x=this.y=0,this.parent={originalWidth:0,originalHeight:0,regX:0,regY:0}}function x(a,b,c,d,e,f){x._super_.call(this),w=-1,this.imgArr=a,typeof d=="boolean"?(this.speed=30,this.useCssSprite=this.speed):(this.speed=d||30,this.useCssSprite=f||!1),this.useIntervl=e||!0,this.state="stop",this.originalHeight=c,this.originalWidth=b,this.currentFrame=1,this.prevFrame=this.currentFrame,this.totalFrames=a.length,this.setBackgroundImage(),this.loop=!0,this.prvePlay=!1,this.elapsed=0,this.stop()}function v(a,b){a&&a!="3d"&&a!="2d"?(this.dom=a,v._super_.call(this,a)):v._super_._super_.call(this),c.containers.push(this),this._avatar.mode="2d",this._avatar.regX=c.Utils.getCssValue(this,"transformOrigin",0,3)||.5,this._avatar.regY=c.Utils.getCssValue(this,"transformOrigin",1,3)||.5,this._avatar.perspectiveOriginX=.5,this._avatar.perspectiveOriginY=.5,this._avatar.perspectiveOriginZ=0;if(a=="3d"||b=="3d")this.mode="3d";else if(a=="2d"||b=="2d")this.mode="2d"}function u(a,b){u._super_.call(this),typeof a=="string"?this.element=c.Css.select(a):a.jquery?this.element=a[0]:this.element=a,this.element.getAttribute("id")?this._avatar.id=this.element.getAttribute("id"):this.id=c.IDUtils.getID(this+""),this._avatar.width=parseFloat(this.css2("width"))||0,this._avatar.height=parseFloat(this.css2("height"))||0,this._avatar.alpha=this.css2("opacity")==""||this.css2("opacity")==undefined?1:this.css2("opacity"),this._avatar.position=this.css2("position")||"absolute",this._avatar.color=this.css2("backgroundColor"),this._avatar.backgroundImage=this.css2("backgroundImage"),this._avatar.zIndex=this.css2("zIndex")||0,this._avatar.display=this.css2("display")||"block",this._avatar.display!="none"&&(this._avatar.defalutDisplay=this._avatar.display),this.transform(),c.agileObjs[this.id]=this,b&&this.resetPosition()}function t(a,b,c,d,e){this.widthSize=!0,this.heightSize=!0,t._super_.call(this,a,b,c),this.originalHeight=c,this.originalWidth=b,this._avatar.currentFrame=1,d&&this.setLabel(d),this.labels={},this.speed=e||.6,this.loop=!0,this.stop()}function s(a,b,c,d){s._super_.call(this),this.text=a||"",this.size=b||18,this.color=d||"#000",this.align=c||"left",this.x=this.y=0,this.regX=this.regY=0}function r(a,b){r._super_.call(this),this.regX=0,this.regY=0,this._avatar.fromX=0,this._avatar.fromY=0,this.size=a||3,this.color=b||"blue",this.x=this.y=0,this.lines=[]}function q(a,b,c){q._super_.call(this),this.x=0,this.y=0,this.delayEventTime=5;if(a)if(typeof a=="string"){var d=new RegExp("ftp|http|png|jpg|jpeg|gif");d.test(a)?this.image=a:this.setClassImage(a)}else this.image=a;b&&(this.width=b),c&&(this.height=c)}function p(a,b,c){p._super_.call(this),this.css({width:"0px",height:"0px"}),this.css({borderStyle:"solid",borderTopColor:"transparent",borderRightColor:"transparent",borderLeftColor:"transparent"},3),this._avatar.ox=0,this.width=a||100,this.height=b||173.2,this.color=c||"#00cc22",this.x=this.y=0}function o(a,b,c){o._super_.call(this),this.radiusX=a||50,this.radiusY=b||25;var c=c||"purple";this.background(c),this.x=this.y=0}function n(a,b){n._super_.call(this),this.radius=a||25;var b=b||"purple";this.background(b),this.x=this.y=0}function m(a,b,c){m._super_.call(this),this.width=a||50,this.height=b||this.width;var c=c||"blue";this.background(c),this.x=this.y=0}function l(){this._avatar={id:"",x:0,y:0,z:0,regX:.5,regY:.5,width:0,height:0,alpha:1,visible:!0,scaleX:1,scaleY:1,scaleZ:1,skewX:0,skewY:0,rotationX:0,rotationY:0,rotationZ:0,position:"absolute",color:null,backgroundImage:null,zIndex:0,originalWidth:null,originalHeight:null,realWidth:null,realHeight:null,backface:!0,maxChildrenDepth:0},this.numChildren=0,this.childrens=[],this.filters=[],this.animations={},this.transitions={},this.parent=null,this.createElement(),this.position="absolute",this.zIndex=c.defaultDepth,this.id!=""&&(c.agileObjs[this.id]=this)}function k(){var a=this;this._urls=[],this._loaderList=[],this._targetList={},this._fileSize=[],this._num=0,this._loadScale=0,this._totalSize=0,this._oldScale=0,this.baseURL="",this.completeHandler=function(b){for(var d in a._targetList)a._loaderList[a._num-1].getAttribute("data-url")==a._targetList[d]&&(a._targetList[d]=a._loaderList[a._num-1]);a.singleLoad(),a.dispatchEvent({type:c.SINGLE_LOADED})},this.ioErrorHandler=function(b){a._targetList.push(null),a.singleLoad(),a.dispatchEvent({type:c.LOAD_ERROR})}}function f(a){this.type=a,this.agiles=[],this.styleObj={},this.arguments=arguments,this.a=this.b=this.c=this.d=this.e=this.f=this.g=null}var c=a.Agile||{_avatar:{mode:"2d",support3d:!0,backface:!0},keywordArr:["x","y","z","width","height","color","regX","regY","alpha","rotation","rotationX","rotationY","rotationZ","scaleX","scaleY","scaleZ","skewX","skewY","zIndex","round","radius","radiusX","radiusY","originalWidth","originalHeight"],perspective:500,defaultDepth:100,agileObjs:{},containers:[],getAgileByID:function(a){return c.agileObjs[a]},get keyword(){c._avatar.keyword||(c._avatar.keyword="_"+c.keywordArr.join("_")+"_");return c._avatar.keyword},get transform(){c._avatar.transform||(c._avatar.transform=c.Css.getPrefix(2)+"transform");return c._avatar.transform},get transformOrigin(){c._avatar.transformOrigin||(c._avatar.transformOrigin=c.Css.getPrefix(2)+"transform-origin");return c._avatar.transformOrigin},get mode(){return this._avatar.mode},set mode(a){this.support3d?this._avatar.mode=a:this._avatar.mode="2d"},get support3d(){return this._avatar.support3d?this._avatar.support3d:this._avatar.support3d=c.Css.support3d()},get backface(){return this._avatar.backface},set backface(a){this._avatar.backface=a;for(var b in c.agileObjs)b.backface=a}};c.GROUP_LOADED="groupLoaded",c.SINGLE_LOADED="singleLoaded",c.LOAD_ERROR="loadError",c.IMAGE_LOADED="imageLoaded",c.getAgileById=c.getAgileByID,a.Agile=c;var d=d||{select:function(a){return a.indexOf("#")==0||a.indexOf(".")==0||a=="body"?b.querySelector(a):b.getElementById(a)},createElement:function(a){var a=a||"div",c=b.createElement(a);return c},css:function(a,b,c){if(typeof b=="object"){var c=c||2;for(var e in b)c==2?d.css2(a,e,b[e]):d.css3(a,e,b[e]);return null}return d.css2(a,b,c)},css2:function(a,b,c){if(c!==undefined){a.style[""+b]=c;return c}var d=getComputedStyle(a,"");return a.style[""+b]||d.getPropertyValue(""+b)},css3j:function(a,b,c){a.style[b]="-webkit-"+c,a.style[b]="-moz-"+c,a.style[b]="-ms-"+c,a.style[b]="-o-"+c,a.style[b]=""+c},css3:function(a,b,c){var e=b.charAt(0).toUpperCase()+b.substr(1);if(c!==undefined)a.style["Webkit"+e]=c,a.style["Moz"+e]=c,a.style["ms"+e]=c,a.style["O"+e]=c,a.style[""+b]=c;else return d.getCss3(a,b)},getCss3:function(a,b){var c=getComputedStyle(a,""),d=a.style[""+b]||a.style["-webkit-"+b]||a.style["-o-"+b]||a.style["-ms-"+b]||a.style["-moz-"+b],e=c.getPropertyValue(""+b)||c.getPropertyValue("-webkit- "+b)||c.getPropertyValue("-o-"+b)||c.getPropertyValue("-ms-"+b)||c.getPropertyValue("-moz-"+b);return d||e},bakCss3:function(a,b,c){if(c!==undefined){a.style["-webkit-"+b]=c,a.style["-moz-"+b]=c,a.style["-ms-"+b]=c,a.style["-o-"+b]=c,a.style[""+b]=c;return c}var d=getComputedStyle(a,""),e=a.style[""+b]||a.style["-webkit-"+b]||a.style["-o-"+b]||a.style["-ms-"+b]||a.style["-moz-"+b],f=d.getPropertyValue(""+b)||d.getPropertyValue("-webkit- "+b)||d.getPropertyValue("-o-"+b)||d.getPropertyValue("-ms-"+b)||d.getPropertyValue("-moz-"+b);return e||f},addClass:function(a,b){var c=a.className,e=c!=""?" ":"";d.hasClass(a,b)||(a.className=c+e+b)},removeClass:function(a,b){if(this.hasClass(a,b)){var c=new RegExp("(\\s|^)"+b+"(\\s|$)");a.className=a.className.replace(c,"")}},hasClass:function(a,b){return a.className.match(new RegExp("(\\s|^)"+b+"(\\s|$)"))},getDynamicSheet:function(){if(!d.dynamicSheet){var a=b.createElement("style");a.rel="stylesheet",a.type="text/css",b.getElementsByTagName("head")[0].appendChild(a),d.dynamicSheet=a.sheet}return d.dynamicSheet},getTestElement:function(){d.testElement||(d.testElement=b.createElement("div"));return d.testElement},getPrefix:function(a){var b="",a=a||1,c=["Moz","Webkit","ms","O",""];for(var e=0,f=c.length;e<f;e++){var g=c[e];if(g+"Transition"in d.getTestElement().style){a!=1?(b=g.toLocaleLowerCase(),b!==""&&(b="-"+b+"-")):b=g;return b}}return b},support3d:function(){var c=b.createElement("p"),d,e={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};b.body.insertBefore(c,null);for(var f in e)c.style[f]!==undefined&&(c.style[f]="translate3d(1px,1px,1px)",d=a.getComputedStyle(c).getPropertyValue(e[f]));b.body.removeChild(c);return d!==undefined&&d.length>0&&d!=="none"}};c.Css=d;var e=function(){};e.prototype={constructor:e,apply:function(a){a.addEventListener=e.prototype.addEventListener,a.hasEventListener=e.prototype.hasEventListener,a.removeEventListener=e.prototype.removeEventListener,a.dispatchEvent=e.prototype.dispatchEvent},addEventListener:function(a,b){this._listeners===undefined&&(this._listeners={});var c=this._listeners;c[a]===undefined&&(c[a]=[]),c[a].indexOf(b)===-1&&c[a].push(b)},hasEventListener:function(a,b){if(this._listeners===undefined)return!1;var c=this._listeners;if(c[a]!==undefined&&c[a].indexOf(b)!==-1)return!0;return!1},removeEventListener:function(a,b){if(this._listeners!==undefined){var c=this._listeners,d=c[a];if(d!==undefined){var e=d.indexOf(b);e!==-1&&d.splice(e,1)}}},dispatchEvent:function(){var a=[];return function(b){if(this._listeners!==undefined){var c=this._listeners,d=c[b.type];if(d!==undefined){b.target=this;var e=d.length;for(var f=0;f<e;f++)a[f]=d[f];for(var f=0;f<e;f++)a[f].call(this,b)}}}}()},c.EventDispatcher=e,f.prototype.apply=function(a){this.agiles.push(a),this.styleObj[a.id]={style:"",value:""},this.type=="stroke"?(this.a=this.arguments.length>1?this.arguments[1]:5,this.b=this.arguments.length>2?this.arguments[2]:"#000"):this.type=="blur"?(this.a=this.arguments.length>1?this.arguments[1]:5,this.b=this.arguments.length>2?this.arguments[2]:"#000"):this.type=="shadow"?(this.a=this.arguments.length>1?this.arguments[1]:3,this.b=this.arguments.length>2?this.arguments[2]:3,this.c=this.arguments.length>3?this.arguments[3]:5,this.d=this.arguments.length>4?this.arguments[4]:"#000"):this.type=="glow"?(this.a=this.arguments.length>1?this.arguments[1]:5,this.b=this.arguments.length>2?this.arguments[2]:"#000"):this.type=="insetglow"||this.type=="insetGlow"||this.type=="inset-glow"?(this.a=this.arguments.length>1?this.arguments[1]:5,this.b=this.arguments.length>2?this.arguments[2]:"#000"):this.type=="3d"&&(this.a=this.arguments.length>1?this.arguments[1]:6,this.b=this.arguments.length>2?this.arguments[2]:"#000"),this.reset(a)},f.prototype.reset=function(a){var b=a==undefined?this.agiles:[a];for(var d=0,e=b.length;d<e;d++){var a=b[d];this.styleObj[a.id].value="";if(this.type=="stroke")if(a instanceof c.Text){var f=-this.a+"px "+ -this.a+"px 0 "+this.b,g=this.a+"px "+ -this.a+"px 0 "+this.b,h=-this.a+"px "+this.a+"px 0 "+this.b,i=this.a+"px "+this.a+"px 0 "+this.b;this.styleObj[a.id].value=f+","+g+","+h+","+i,console.log(this.styleObj[a.id].value)}else this.styleObj[a.id].value="0 0 0 "+this.a+"px "+this.b;else if(this.type=="blur")c.Css.css2(a.element,"color",c.Color.alpha0),c.Css.css3(a.element,"background",c.Color.alpha0),this.styleObj[a.id].value="0 0 "+this.a+"px "+this.b;else if(this.type=="shadow")this.styleObj[a.id].value=this.a+"px "+this.b+"px "+this.c+"px "+this.d;else if(this.type=="glow")this.styleObj[a.id].value="0 0 "+this.a+"px "+this.b;else if(this.type=="insetglow"||this.type=="insetGlow"||this.type=="inset-glow")this.styleObj[a.id].value="inset 0 0 "+this.a+"px "+this.b;else if(this.type=="3d")for(var d=0,e=this.a;d<e;d++)d==e-1?this.styleObj[a.id].value+=d+1+"px "+(d+1)+"px "+this.b:this.styleObj[a.id].value+=d+1+"px "+(d+1)+"px "+this.b+",";a instanceof c.Text?this.styleObj[a.id].style="textShadow":this.styleObj[a.id].style="boxShadow",c.Css.css3(a.element,this.styleObj[a.id].style,this.styleObj[a.id].value)}},f.prototype.erase=function(a){c.Utils.arrayRemove(this.agiles,a),c.Css.css3(a.element,this.styleObj[a.id].style,null),delete this.styleObj[a.id]},c.Filter=f;var g=c.IDUtils||{_idhash:{},getID:function(a){this._idhash[a]||(this._idhash[a]=0);return a+"_"+this._idhash[a]++}};c.IDUtils=g;var h=c.JsonUtils||{object2Json:function(a){var b=typeof a;if(b!="object"||a===null){b=="string"&&(a=""+a+"");return String(a)}var c,d,e=[],f=a&&a.constructor==Array;for(c in a)d=a[c],b=typeof d,b!="string"&&b=="object"&&d!==null&&(d=h.object2Json(d)),e.push((f?"":""+c+":")+String(d));var g=e.join("; ");return(f?"[":"{")+g+(f?"]":"}")},object2String:function(a){var b="";for(var c in a)b+=a[c]+", ";b=b.substr(0,b.length-2);return b},replaceChart:function(a){var b=new RegExp("%:","g"),c=new RegExp("};","g");a=a.replace(b,"%"),a=a.replace(c,"}");return a}};c.JsonUtils=h;var i=c.Utils||{inherits:function(a,b){a._super_=b;if(Object.create)a.prototype=Object.create(b.prototype,{constructor:{value:a}});else{var c=function(){};c.prototype=b.prototype,a.prototype=new c,a.prototype.constructor=a}},keys:function(a){Object.keys||(Object.keys=function(a){var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(c);return b});return Object.keys(a)},extend:function(a,b){for(var c in b){var d=b.__lookupGetter__(c),e=b.__lookupSetter__(c);d||e?(d&&a.__defineGetter__(c,d),e&&a.__defineSetter__(c,e)):a[c]=b[c]}return a},isNumber:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},isArray:function(a){return a instanceof Array||!(a instanceof Object)&&Object.prototype.toString.call(a)=="[object Array]"||typeof a.length=="number"&&typeof a.splice!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("splice")?!0:!1},isEmpty:function(a){for(var b in a)if(a.hasOwnProperty(b))return!1;return!0},arrayRemove:function(a,b){var c=a.indexOf(b);c>-1&&a.splice(c,1)},destroyObject:function(a){for(var b in a)delete a[b]},objectforkey:function(a,b){for(var c in a){var d=a[c].indexOf(b);if(d==0&&a[c].charAt(d+b.length)==" ")return c}return null},initValue:function(a,b){var c=a===undefined||a===null?b:a;return c},otherToFloat:function(a,b){var b=b||1;if(i.isNumber(a))return a<=1?a:a/b;if(typeof a=="string")if(a.indexOf("%")>-1)a=a.substring(0,a.length-1),a=parseFloat(a)/100;else if(a=="left"||a=="top")a=0;else if(a=="right"||a=="bottom")a=1;else if(a=="center"||a=="center")a=.5;else{a=parseFloat(a);return a<=1?a:a/b}return a},getStyleBySpace:function(a,b){if(!a)return null;var c=a.split(" ");return b>=c.lenght?null:c[b]},getCssValue:function(a,b,c,d){if(d==3)var e=i.getStyleBySpace(a.css3(b),c);else var e=i.getStyleBySpace(a.css2(b),c);return e?i.otherToFloat(e):null},getTransformAttribute:function(a,b){var c=a.css3("transform"),d=c.indexOf(b),e=c.indexOf(")",d)+1;return c.substring(d,e)},getTransformSubAttribute:function(a,b){var c=a.split(","),d=c[b];if(b==0)var e=d.indexOf("(")+1,f=d.length;else if(b==c.length-1)var e=0,f=d.indexOf(")");else var e=0,f=d.length;return d.substring(e,f)},replace:function(a,b,c){var d="";if(i.isArray(b))for(var e=0;e<b.length;e++)d+=b[e]+"|";else d=b;return a.replace(new RegExp(d,"gm"),c)}};typeof Object.create!="function"&&(Object.create=function(a){function b(){}b.prototype=a;return new b}),c.Utils=i;var j=c.Color||{gradient:function(a){var a=a||"linear";if(a=="linear"||a=="line"){var b="linear-gradient(";for(var d=1,e=arguments.length;d<e;d++)d==1&&c.Utils.isNumber(arguments[d])?b+=arguments[d]+"deg,":d==e-1?b+=arguments[d]+")":b+=arguments[d]+",";return b}if(a=="radial"||a=="rad"){var b="radial-gradient(";for(var d=1,e=arguments.length;d<e;d++)d==e-1?b+=arguments[d]+")":b+=arguments[d]+",";return b}},rgba:function(a,b,d,e){var e=c.Utils.initValue(e,1),f="rbga("+a+","+b+","+d+","+e+")"},hsl:function(a,b,d,e){var b=c.Utils.initValue(b,"100"),d=c.Utils.initValue(d,"100"),e=c.Utils.initValue(e,1),f="hsl("+a+","+b+"%,"+d+"%,"+e+")"},randomColor:function(){return"#"+("00000"+(Math.random()*16777216<<0).toString(16)).slice(-6)},random:function(){return"#"+("00000"+(Math.random()*16777216<<0).toString(16)).slice(-6)},alpha0:"transparent"};c.Color=j,c.gradient=j.gradient,c.EventDispatcher.prototype.apply(k.prototype),k.prototype.__defineGetter__("loadScale",function(){return this._loadScale/this._urls.length}),k.prototype.__defineGetter__("loadID",function(){return this._num}),k.prototype.__defineGetter__("targetList",function(){return this._targetList}),k.prototype.__defineGetter__("loaderList",function(){return this._loaderList}),k.prototype.__defineSetter__("fileSize",function(a){this._fileSize=a,this._totalSize=0;for(var b=0;b<this._fileSize.length;b++)this._totalSize+=this._fileSize[b]}),k.prototype.load=function(){var a=0;for(var b=0;b<arguments.length;b++){var d=arguments[b];if(typeof d=="string")this._targetList[""+a]=d,this._urls.push(d),a++;else if(c.Utils.isArray(d))for(var e=0;e<d.length;e++)this._targetList[""+a]=d[e],this._urls.push(d[e]),a++;else for(var a in d)this._targetList[a]=d[a],this._urls.push(d[a])}this.singleLoad()},k.prototype.singleLoad=function(){if(this._num>=this._urls.length)this._loadScale=this._urls.length,this.dispatchEvent({type:c.GROUP_LOADED});else{var a=String(this._urls[this._num]),b=new Image;b.onerror=this.ioErrorHandler,b.onload=this.completeHandler,b.src=this.baseURL+a,b.setAttribute("data-url",a),this._loaderList.push(b),this._num++,this._loadScale++}},k.prototype.scaleFUN=function(a){this._totalSize==0?this._loadScale=this._oldScale+a/this._urls.length:this._loadScale=this._oldScale+a*(this._fileSize[this._num-1]/this._totalSize)},k.imageBuffer={},k.getImage=function(a,b){if(typeof a=="string"){if(k.imageBuffer[a])b(k.imageBuffer[a]);else{var c=this,d=new Image;d.onload=function(c){k.imageBuffer[a]=d,b(k.imageBuffer[a])},d.src=a}return a}if(typeof a=="object"){k.imageBuffer[a.src]=a,b(k.imageBuffer[a.src]);return a.src}},c.LoadManager=k,l.prototype={set id(a){this._avatar.id=a,this.element.setAttribute("id",this._avatar.id)},get id(){return this._avatar.id},set x(a){this._avatar.x=a,this.transform()},get x(){return this._avatar.x},set y(a){this._avatar.y=a,this.transform()},get y(){return this._avatar.y},set z(a){this._avatar.z=a,this.transform()},get z(){return this._avatar.z},set scaleX(a){this._avatar.scaleX=a,this._avatar.width=a*this.originalWidth,this.transform()},get scaleX(){return this._avatar.scaleX},set scaleY(a){this._avatar.scaleY=a,this._avatar.height=a*this.originalHeight,this.transform()},get scaleY(){return this._avatar.scaleY},set scaleZ(a){this._avatar.scaleZ=a,this.transform()},get scaleZ(){return this._avatar.scaleZ},set skewX(a){this._avatar.skewX=a,this.transform()},get skewX(){return this._avatar.skewX},set skewY(a){this._avatar.skewY=a,this.transform()},get skewY(){return this._avatar.skewY},set rotationX(a){this._avatar.rotationX=a,this.transform()},get rotationX(){return this._avatar.rotationX},set rotationY(a){this._avatar.rotationY=a,this.transform()},get rotationY(){return this._avatar.rotationY},set rotationZ(a){this._avatar.rotationZ=a,this.transform()},get rotationZ(){return this._avatar.rotationZ},set rotation(a){this._avatar.rotationZ=a,this.transform()},get rotation(){return this._avatar.rotationZ},set regX(a){this._avatar.regX=a;var b=parseFloat(this.regX)*100+"%",c=parseFloat(this.regY)*100+"%";this.css3("transformOrigin",b+" "+c),this.transform()},get regX(){return this._avatar.regX},set regY(a){this._avatar.regY=a;var b=parseFloat(this.regX)*100+"%",c=parseFloat(this.regY)*100+"%";this.css3("transformOrigin",b+" "+c),this.transform()},get regY(){return this._avatar.regY},set regZ(a){this._avatar.regZ=a;var b=parseFloat(this.regX)*100+"%",c=parseFloat(this.regY)*100+"%",d=parseFloat(this.regZ)*100+"%";this.css3("transformOrigin",b+" "+c+" "+d)},get regZ(){return this._avatar.regZ},set originalWidth(a){this._avatar.originalWidth=a,this.css2("width",this.originalWidth+"px")},get originalWidth(){return this._avatar.originalWidth},set originalHeight(a){this._avatar.originalHeight=a,this.css2("height",this.originalHeight+"px")},get originalHeight(){return this._avatar.originalHeight},set width(a){this.originalWidth?this.scaleX=a/this.originalWidth:(this._avatar.width=a,this.originalWidth=a)},get width(){return this._avatar.width},set height(a){this.originalHeight?this.scaleY=a/this.originalHeight:(this._avatar.height=a,this.originalHeight=a)},get height(){return this._avatar.height},set visible(a){this._avatar.visible=a;var b=a?"block":"none";this.css2("display",b)},get visible(){return this._avatar.visible},set alpha(a){this._avatar.alpha=a,this.css2("opacity",this.alpha)},get alpha(){return this._avatar.alpha},set color(a){if(a=="random"||a=="#random")a=c.Color.randomColor();this._avatar.color=a,a.indexOf("gradient")>-1?this.css3j("background",this.color):this.css2("backgroundColor",this.color)},get color(){return this._avatar.color},set backgroundImage(a){this._avatar.backgroundImage=a;var b=a!=null||a!=undefined?"url("+this.backgroundImage+")":null;this.css2("backgroundImage",b)},get backgroundImage(){return this._avatar.backgroundImage},set position(a){this._avatar.position=a,this.css2("position",this.position)},get position(){return this._avatar.position},set zIndex(a){this._avatar.zIndex=a,this.css2("zIndex",this.zIndex)},get zIndex(){return this._avatar.zIndex},set mask(a){if(a.indexOf("gradient")>-1)this.css3("maskImage",a);else{var a=a?"url("+a+")":null;this.css3("maskImage",a)}},set select(a){var a=a==!1||a==null?"none":"auto";this.css3("userSelect",a)},set cursor(a){var a=a==!0||a=="hand"||a=="pointer"?"pointer":"auto";this.css2("cursor",a)},get cursor(){return this.css2("cursor")},set backface(a){this._avatar.backface=a;var b=a?"visible":"hidden";this.css3("backfaceVisibility",b)},get backface(){return this._avatar.backface}},l.prototype.createElement=function(){this._avatar.id=c.IDUtils.getID(this+""),this.element=c.Css.createElement(),this.element.setAttribute("id",this._avatar.id)},l.prototype.background=function(a){a.indexOf(".")>0?this.backgroundImage=a:this.color=a},l.prototype.getRealWidth=function(){this._avatar.realWidth||(this._avatar.realWidth=this.originalWidth);return this._avatar.realWidth*this.scaleX},l.prototype.getRealHeight=function(){this._avatar.realHeight||(this._avatar.realHeight=this.originalHeight);return this._avatar.realHeight*this.scaleY},l.prototype.css=function(a,b){if(this.element)return c.Css.css(this.element,a,b)},l.prototype.css2=function(a,b){if(this.element)return c.Css.css2(this.element,a,b)},l.prototype.css3=function(a,b){if(this.element)return c.Css.css3(this.element,a,b)},l.prototype.css3j=function(a,b){this.element&&c.Css.css3j(this.element,a,b)},l.prototype.addClass=function(a){this.element&&c.Css.addClass(this.element,a)},l.prototype.removeClass=function(a){this.element&&c.Css.removeClass(this.element,a)},l.prototype.addFrame=function(a,b,d){return c.Timeline.addFrame(this,a,b,d)},l.prototype.removeFrame=function(a,b){return c.Timeline.removeFrame(this,a,b)},l.prototype.removeFrameAfter=function(a,b,d){c.Timeline.removeFrameAfter(this,a,b,d)},l.prototype.pause=function(){c.Timeline.pause(this)},l.prototype.resume=function(){c.Timeline.resume(this)},l.prototype.addChild=function(a){this._avatar.maxChildrenDepth++,a.zIndex=c.defaultDepth+this._avatar.maxChildrenDepth;if(a.parent!=this){this.element.appendChild(a.element),this.numChildren++,this.childrens.push(a),a.parent=this,a.transform(),this._avatar.realWidth||(this._avatar.realWidth=this.originalWidth);var b=Math.min(a.x-a.width*a.regX,-this.width*this.regX);this._avatar.realWidth+=Math.abs(b+this.width*this.regX);var d=Math.max(a.x+a.width*(1-a.regX),this.width*(1-this.regX));this._avatar.realWidth+=d-this.width*(1-this.regX),this._avatar.realHeight||(this._avatar.realHeight=this.originalHeight);var e=Math.min(a.y-a.height*a.regY,-this.height*this.regY);this._avatar.realHeight+=Math.abs(e+this.height*this.regY);var f=Math.max(a.y+a.height*(1-a.regY),this.height*(1-this.regY));this._avatar.realHeight+=f-this.height*(1-this.regY)}return a},l.prototype.addChildAt=function(a,b){this.addChild(a),a.zIndex=b},l.prototype.removeChild=function(a){a.parent==this&&(this.element.removeChild(a.element),this.numChildren--,c.Utils.arrayRemove(this.childrens,a),a.zIndex=c.defaultDepth,a.parent=null,a.transform())},l.prototype.addFilter=function(a){this.filters.push(a),a.apply(this)},l.prototype.removeFilter=function(a){c.Utils.arrayRemove(this.filters,a),a.erase(this)},l.prototype.addEventListener=function(a,b,c){this.element.addEventListener(a,b,c)},l.prototype.removeEventListener=function(a,b,c){this.element.removeEventListener(a,b,c)},l.prototype.transform=function(){if(c.mode=="3d"&&c.support3d){var a=this.parent?this.parent.regX*this.parent.originalWidth:0,b=this.parent?this.parent.regY*this.parent.originalHeight:0,d=this.regX*this.originalWidth,e=this.regY*this.originalHeight,f="translate3d("+(this.x-d+a)+"px,"+(this.y-e+b)+"px,"+this.z+"px) ",g="rotateX("+this.rotationX+"deg) "+"rotateY("+this.rotationY+"deg) "+"rotateZ("+this.rotationZ+"deg) ",h="scale3d("+this.scaleX+","+this.scaleY+","+this.scaleZ+") ",i="skew("+this.skewX+"deg,"+this.skewY+"deg)";this.css3("transform",f+g+h+i)}else{var a=this.parent?this.parent.regX*this.parent.originalWidth:0,b=this.parent?this.parent.regY*this.parent.originalHeight:0,d=this.regX*this.originalWidth,e=this.regY*this.originalHeight,f="translate("+(this.x-d+a)+"px,"+(this.y-e+b)+"px) ",g="rotate("+this.rotationZ+"deg) ",h="scale("+this.scaleX+","+this.scaleY+") ",i="skew("+this.skewX+"deg,"+this.skewY+"deg)";this.css3("transform",f+g+h+i)}},l.prototype.toString=function(){return"DisplayObject"},l.prototype.destroy=function(){for(var a=0;a<this.childrens.length;a++)this.childrens[a].destroy();c.Utils.destroyObject(this.childrens),delete c.agileObjs[this.id],this.parent=null,this.filters=null,c.Timeline.kill(this),c.Tween.killTweensOf(this)},c.DisplayObject=l,c.Utils.inherits(m,c.DisplayObject),m.prototype.__defineGetter__("round",function(){return this._avatar.round}),m.prototype.__defineSetter__("round",function(a){this._avatar.round=a,this.css3("borderRadius",this.round+"px")}),m.prototype.toString=function(){return"Rect"},c.Rect=m,c.Utils.inherits(n,c.DisplayObject),n.prototype.__defineGetter__("radius",function(){return this._avatar.radius}),n.prototype.__defineSetter__("radius",function(a){this._avatar.radius=a,this.width=this.height=this.radius*2,this.css3("borderRadius","50%")}),n.prototype.toString=function(){return"Circle"},c.Circle=n,c.Utils.inherits(o,c.DisplayObject),o.prototype.__defineGetter__("radiusX",function(){return this._avatar.radiusX}),o.prototype.__defineSetter__("radiusX",function(a){this._avatar.radiusX=a,this.width=this.radiusX*2,this.css3("borderRadius",this.radiusX+"px"+" / "+this.radiusY+"px")}),o.prototype.__defineGetter__("radiusY",function(){return this._avatar.radiusY}),o.prototype.__defineSetter__("radiusY",function(a){this._avatar.radiusY=a,this.height=this.radiusY*2,this.css3("borderRadius",this.radiusX+"px"+" / "+this.radiusY+"px")}),o.prototype.toString=function(){return"Ellipse"},c.Ellipse=o,c.Utils.inherits(p,c.DisplayObject),p.prototype.__defineGetter__("color",function(){return this._avatar.color}),p.prototype.__defineSetter__("color",function(a){if(a=="random"||a=="#random")a=c.Color.randomColor();this._avatar.color=a,this.css3("borderBottomColor",this.color)}),p.prototype.__defineGetter__("originalWidth",function(){return this._avatar.originalWidth}),p.prototype.__defineSetter__("originalWidth",function(a){this._avatar.originalWidth=a}),p.prototype.__defineGetter__("originalHeight",function(){return this._avatar.originalHeight}),p.prototype.__defineSetter__("originalHeight",function(a){this._avatar.originalHeight=a}),p.prototype.__defineGetter__("width",function(){return this._avatar.width}),p.prototype.__defineSetter__("width",function(a){this._avatar.width=a,this.originalWidth?this.scaleX=this.width/this.originalWidth:(this.originalWidth=a,this.css({borderWidth:"0px",borderRightWidth:a+"px",borderLeftWidth:a+"px"},3),this._avatar.ox=a/2)}),p.prototype.__defineGetter__("height",function(){return this._avatar.height}),p.prototype.__defineSetter__("height",function(a){this._avatar.height=a,this.originalHeight?this.scaleY=this.height/this.originalHeight:(this.originalHeight=a,this.css({borderTopWidth:"0px",borderBottomWidth:a+"px"},3))}),p.prototype.__defineGetter__("x",function(){return this._avatar.x+this._avatar.ox}),p.prototype.__defineSetter__("x",function(a){this._avatar.x=a-this._avatar.ox,this.transform()}),p.prototype.transform=function(){if(c.mode=="3d"&&c.support3d){var a=this.parent?this.parent.regX*this.parent.originalWidth:0,b=this.parent?this.parent.regY*this.parent.originalHeight:0,d=this.regX*this.originalWidth,e=this.regY*this.originalHeight,f="translate3d("+(this._avatar.x-d+a)+"px,"+(this.y-e+b)+"px,"+this.z+"px) ",g="rotateX("+this.rotationX+"deg) "+"rotateY("+this.rotationY+"deg) "+"rotateZ("+this.rotationZ+"deg) ",h="scale3d("+this.scaleX+","+this.scaleY+","+this.scaleZ+") ",i="skew("+this.skewX+"deg,"+this.skewY+"deg)";this.css3("transform",f+g+h+i)}else{var a=this.parent?this.parent.regX*this.parent.originalWidth:0,b=this.parent?this.parent.regY*this.parent.originalHeight:0,d=this.regX*this.originalWidth,e=this.regY*this.originalHeight,f="translate("+(this._avatar.x-d+a)+"px,"+(this.y-e+b)+"px) ",g="rotate("+this.rotationZ+"deg) ",h="scale("+this.scaleX+","+this.scaleY+") ",i="skew("+this.skewX+"deg,"+this.skewY+"deg)";this.css3("transform",f+g+h+i)}},p.prototype.getCirumRadius=function(){var a=2*Math.atan2(this.height,this.width);return this.width/Math.sin(a)},p.prototype.regCircumcenter=function(){this.regY=this.getCirumRadius()/this.height},p.prototype.toString=function(){return"Triangle"},c.Triangle=p,c.Utils.inherits(q,c.DisplayObject),q.prototype.setClassImage=function(a){var b=this;this.addClass(a),this.dispatchImageLoadedEvent(function(){b.width=parseFloat(b.css2("width"))||0,b.height=parseFloat(b.css2("height"))||0,b._avatar.backgroundImage=b.css2("backgroundImage")})},q.prototype.__defineGetter__("originalWidth",function(){return this._avatar.originalWidth}),q.prototype.__defineSetter__("originalWidth",function(a){this._avatar.originalWidth=a,this.css2("width",this.originalWidth+"px"),this.widthSize=!0}),q.prototype.__defineGetter__("originalHeight",function(){return this._avatar.originalHeight}),q.prototype.__defineSetter__("originalHeight",function(a){this._avatar.originalHeight=a,this.css2("height",this.originalHeight+"px"),this.heightSize=!0}),q.prototype.__defineGetter__("image",function(){return this._avatar.image}),q.prototype.__defineSetter__("image",function(a){var b=this;b.loaded=!1,b._avatar.image=c.LoadManager.getImage(a,function(a){b.widthSize||(b._avatar.width=a.width,b._avatar.originalWidth=a.width,b.css2("width",a.width+"px")),b.heightSize||(b._avatar.height=a.height,b._avatar.originalHeight=a.height,b.css2("height",a.height+"px")),b.backgroundImage=a.src,b.transform(),b.dispatchImageLoadedEvent()})}),q.prototype.dispatchImageLoadedEvent=function(a){var d=this;setTimeout(function(){a&&a();try{var e=b.createEvent("CustomEvent");e.initCustomEvent(c.IMAGE_LOADED,!1,!1),d.element.dispatchEvent(e)}catch(f){var e=b.createEvent("HTMLEvents");e.initEvent(c.IMAGE_LOADED,!1,!1),d.element.dispatchEvent(e)}d.loaded=!0},d.delayEventTime)},q.prototype.toString=function(){return"Image"},c.Image=q,c.AgileImage=q,c.Utils.inherits(r,c.DisplayObject),r.prototype.__defineGetter__("color",function(){return this._avatar.color}),r.prototype.__defineSetter__("color",function(a){this._avatar.color=a}),r.prototype.__defineGetter__("size",function(){return this._avatar.size}),r.prototype.__defineSetter__("size",function(a){this._avatar.size=a}),r.prototype.moveTo=function(a,b){this._avatar.fromX=a,this._avatar.fromY=b},r.prototype.lineTo=function(a,b){var d=this._avatar.fromX,e=this._avatar.fromY,f=Math.sqrt((d-a)*(d-a)+(e-b)*(e-b)),g=Math.atan2(b-e,a-d)*180/Math.PI,h=c.Css.createElement();c.Css.css(h,{backgroundColor:this.color,width:f+"px",height:this.size+"px",position:"absolute"});if(c.mode=="3d")var i="translate3d("+this._avatar.fromX+"px,"+this._avatar.fromY+"px,0px) ",j="rotateZ("+g+"deg)";else var i="translate("+this._avatar.fromX+"px,"+this._avatar.fromY+"px) ",j="rotate("+g+"deg)";c.Css.css3(h,"transformOrigin","left center"),c.Css.css3(h,"transform",i+j),this.element.appendChild(h),this._avatar.fromX=a,this._avatar.fromY=b,this._avatar.width=Math.max(a,this._avatar.width),this._avatar.height=Math.max(b,this._avatar.height),this.css2("width",this.width+"px"),this.css2("height",this.height+"px"),this.lines.push(h);return h},r.prototype.curveTo=function(a,b,d){var e=this._avatar.fromX,f=this._avatar.fromY,d=c.Utils.initValue(d,.5),g=Math.sqrt((e-a)*(e-a)+(f-b)*(f-b)),h=Math.PI/4;g/=.707,g-=4*this.size;var i=Math.atan2(b-f,a-e)*180/Math.PI,j=c.Css.createElement(),k=g,l=g,m=Math.max(Math.abs(this.size/d),1);c.Css.css(j,{width:k+"px",height:l+"px",position:"absolute"}),c.Css.css(j,{borderStyle:"solid",borderTopColor:this.color,borderRightColor:"transparent",borderLeftColor:"transparent",borderBottomColor:"transparent",borderWidth:m+"px"},3);var n=k/2*(1-Math.cos(h)),o=l/2*(1-Math.sin(h));if(c.mode=="3d")var p="translate3d("+(this._avatar.fromX-n)+"px,"+(this._avatar.fromY-o)+"px,0px) ",q="rotateZ("+i+"deg) ",r="scale3d(1,"+d+",1)";else var p="translate("+(this._avatar.fromX-n)+"px,"+(this._avatar.fromY-o)+"px) ",q="rotate("+i+"deg)",r="scale(1,"+d+")";c.Css.css3(j,"transformOrigin",n*100/k+"% "+o*100/k+"%"),c.Css.css3(j,"transform",p+q+r),c.Css.css3(j,"borderRadius","50% 50%"),this.element.appendChild(j),this._avatar.fromX=a,this._avatar.fromY=b,this._avatar.width=Math.max(a,this._avatar.width),this._avatar.height=Math.max(b,this._avatar.height),this.css2("width",this.width+"px"),this.css2("height",this.height+"px"),this.lines.push(j);return j},r.prototype.clear=function(){for(var a=0,b=this.lines.length;a<b;a++)this.element.removeChild(this.lines[a]),this.lines[a]=null;this.lines.length=0},r.prototype.toString=function(){return"Line"},c.Line=r,c.Utils.inherits(s,c.DisplayObject),s.prototype.__defineGetter__("height",function(){return parseFloat(this.css2("height"))||0}),s.prototype.__defineSetter__("height",function(a){this._avatar.height=a,this.originalHeight?this.scaleY=this.height/this.originalHeight:this.originalHeight=a}),s.prototype.__defineGetter__("width",function(){return parseFloat(this.css2("width"))||0}),s.prototype.__defineSetter__("width",function(a){this._avatar.width=a,this.originalWidth?this.scaleX=this.width/this.originalWidth:this.originalWidth=a}),s.prototype.__defineSetter__("text",function(a){this._avatar.text=a,typeof this.element.textContent=="string"?this.element.textContent=this.text:this.element.innerText=this.text}),s.prototype.__defineGetter__("text",function(){return this._avatar.text}),s.prototype.__defineSetter__("htmlText",function(a){this._avatar.text=a,this.element.innerHTML=this.htmlText}),s.prototype.__defineGetter__("htmlText",function(){return this._avatar.text}),s.prototype.__defineSetter__("align",function(a){this._avatar.align=a,this.css2("textAlign",this.align)}),s.prototype.__defineGetter__("align",function(){return this._avatar.align}),s.prototype.__defineSetter__("color",function(a){this._avatar.color=a,this.css2("color",this.color)}),s.prototype.__defineGetter__("color",function(){return this._avatar.color}),s.prototype.__defineSetter__("size",function(a){this._avatar.size=a,this.css2("fontSize",this.size+"px")}),s.prototype.__defineGetter__("size",function(){return this._avatar.size}),s.prototype.__defineSetter__("font",function(a){this._avatar.font=a,this.css2("fontFamily",this.font)}),s.prototype.__defineGetter__("font",function(){return this._avatar.font}),s.prototype.__defineSetter__("weight",function(a){this._avatar.weight=a,this.css2("fontWeight",this.weight)}),s.prototype.__defineGetter__("weight",function(){return this._avatar.weight}),s.prototype.__defineSetter__("smooth",function(a){a?this.css3("fontSmoothing","antialiased !important"):this.css3("fontSmoothing",null)}),s.prototype.toString=function(){return"Text"},c.Text=s,c.Utils.inherits(t,c.Image),t.prototype.__defineGetter__("currentFrame",function(){var a=this.labels[this.label].totalframes,b=this.labels[this.label].width,d=this.labels[this.label].height;if(d==0){var e=c.Utils.getCssValue(this,"backgroundPosition",0,2);this._avatar.currentFrame=e*a/b}else{var e=c.Utils.getCssValue(this,"backgroundPosition",1,2);this._avatar.currentFrame=e*a/d}return this._avatar.currentFrame}),t.prototype.__defineGetter__("label",function(){return this._avatar.label}),t.prototype.__defineSetter__("label",function(a){if(this.labels[a]){this._avatar.label=a;var b=this.labels[a].frame,d=this.labels[a].totalframes;c.Timeline.indexOf(b)<=-1&&c.Timeline.insertKeyframes(this,b);var e=this.loop?-1:0;c.Timeline.removeFrameByIndex(this,this.currentTimelineIndex),this.currentTimelineIndex=c.Timeline.playFrame(this,this.speed,b,{loop:e,ease:"steps("+d+")"}),this.totalframes=d,this.play()}}),t.prototype.__defineGetter__("speed",function(){return this._avatar.speed}),t.prototype.__defineSetter__("speed",function(a){this._avatar.speed=a;if(this.labels[this.label]){c.Timeline.removeFrameByIndex(this,this.currentTimelineIndex);var b=this.loop?-1:0,d=this.labels[this.label].frame,e=this.labels[this.label].totalframes;c.Timeline.removeFrameByIndex(this,this.currentTimelineIndex),this.currentTimelineIndex=c.Timeline.playFrame(this,this.speed,d,{loop:b,ease:"steps("+e+")"})}this.play()}),t.prototype.stop=function(){this.playing=!1,this.pause()},t.prototype.play=function(a){if(this.recordLabel){this.animations[this.recordLabel.index]=this.recordLabel.frame;var b=c.JsonUtils.object2String(this.animations);this.css3("animation",b)}this.playing=!0,this.resume()},t.prototype.gotoAndPlay=function(a){if(typeof a=="string")this.label=a;else{a--;var b=this.labels[this.label].to,d=this.labels[this.label].totalframes,e=this.labels[this.label].width,f=this.labels[this.label].height;if(f==0)var g=e*a/d,h=-g+"px "+ -b.y+"px";else var g=f*a/d,h=-b.x+"px "+ -g+"px";this.css2("backgroundPosition",h);var i=c.JsonUtils.object2String(this.animations);this.css3("animation",i),this.play()}},t.prototype.gotoAndStop=function(a){if(typeof a=="string")this.label=a;else{a--;var b=this.labels[this.label].to,d=this.labels[this.label].totalframes,e=this.labels[this.label].width,f=this.labels[this.label].height;if(f==0)var g=e*a/d,h=-g+"px "+ -b.y+"px";else var g=f*a/d,h=-b.x+"px "+ -g+"px";this.css2("backgroundPosition",h);var i=c.Timeline.removeFrameByIndex(this,this.currentTimelineIndex);this.recordLabel={frame:i,index:this.currentTimelineIndex}}},t.prototype.setLabel=function(a,b,c,d){if(typeof a=="object"){if(a.from&&a.to){var e=a.from,c=a.to,f=a.label,g=a.totalframes;return this.setLabel(f,e,c,g)}for(var f in a){var e=a[f].from,c=a[f].to,g=a[f].totalframes;return this.setLabel(f,e,c,g)}}else this.labels[a]=this.makeFrame(b,c,d),this.label=a;return this.labels[a]},t.prototype.makeFrame=function(a,b,d){var a=a||{x:"0px",y:"0px"},b=b||{x:"-200%",y:"0px"},e=Math.abs(parseFloat(b.x-a.x)),f=Math.abs(parseFloat(b.y-a.y)),g=new c.Keyframes,h=-a.x,i=-a.y,j=-b.x,k=-b.y;g.add(0,{"background-position":h+"px "+i+"px"}),g.add(100,{"background-position":j+"px "+k+"px"});return{frame:g,totalframes:d,width:e,height:f,from:a,to:b}},t.prototype.toString=function(){return"MovieClip"},c.MovieClip=t,c.Utils.inherits(u,c.DisplayObject),u.prototype.createElement=function(){},u.prototype.resetPosition=function(){this.originalWidth=this.width,this.originalHeight=this.height},u.prototype.__defineGetter__("visible",function(){return this._avatar.visible}),u.prototype.__defineSetter__("visible",function(a){this._avatar.visible=a;var b=this._avatar.defalutDisplay?this._avatar.defalutDisplay:"block",c=a?b:"none";this.css2("display",c)}),u.prototype.toString=function(){return"Dom"},c.Dom=u,c.Utils.inherits(v,c.Dom),v.prototype.createElement=function(){this.dom||(this._avatar.id=c.IDUtils.getID(this+""),this.element=c.Css.createElement(),this.element.setAttribute("id",this._avatar.id))},v.prototype.__defineGetter__("mode",function(){return this._avatar.mode}),v.prototype.__defineSetter__("mode",function(a){this._avatar.mode=a;var a=a=="2d"?"flat":"preserve-3d";this.css3("transformStyle",a)}),v.prototype.__defineGetter__("perspective",function(){return this._avatar.perspective}),v.prototype.__defineSetter__("perspective",function(a){this._avatar.perspective=a,this.css3("perspective",a+"px")}),v.prototype.__defineGetter__("perspectiveOriginX",function(){return this._avatar.perspectiveOriginX}),v.prototype.__defineSetter__("perspectiveOriginX",function(a){this._avatar.perspectiveOriginX=a,a=this.perspectiveOriginX*100+"%",perspectiveOriginY=this.perspectiveOriginY*100+"%",this.css3("perspectiveOrigin",a+" "+perspectiveOriginY)}),v.prototype.__defineGetter__("perspectiveOriginY",function(){return this._avatar.perspectiveOriginY}),v.prototype.__defineSetter__("perspectiveOriginY",function(a){this._avatar.perspectiveOriginY=a,perspectiveOriginX=this.perspectiveOriginX*100+"%",a=this.perspectiveOriginY*100+"%",this.css3("perspectiveOrigin",perspectiveOriginX+" "+a)}),v.prototype.__defineGetter__("perspectiveOriginZ",function(){return this._avatar.perspectiveOriginZ}),v.prototype.__defineSetter__("perspectiveOriginZ",function(a){this._avatar.perspectiveOriginZ=a,perspectiveOriginX=this.perspectiveOriginX*100+"%",perspectiveOriginY=this.perspectiveOriginY*100+"%",a=this.perspectiveOriginZ+"px",this.css3("perspectiveOrigin",perspectiveOriginX+" "+perspectiveOriginY+" "+a)}),v.prototype.addChild=function(a){v._super_.prototype.addChild.call(this,a),a.backface=this.backface,c.backface==!1&&(a.backface=!1)},v.prototype.toString=function(){return"Container"},v.prototype.destroy=function(){v._super_.prototype.destroy.apply(this),c.Utils.arrayRemove(c.containers,this)},c.Container=v;var w;c.Utils.inherits(x,c.DisplayObject),x.prototype.setBackgroundImage=function(){this.useCssSprite?(this.removeClass(this.imgArr[this.prevFrame-1]),this.addClass(this.imgArr[this.currentFrame-1])):this.backgroundImage=this.imgArr[this.currentFrame-1]},x.prototype.play=function(){if(this.useIntervl){var a=this;w<0&&(w=setInterval(function(){a.update.apply(a)},1e3/this.speed))}this.state="play"},x.prototype.stop=function(a){this.useIntervl&&a&&(clearInterval(w),w=-1),this.state="stop"},x.prototype.gotoAndPlay=function(a){this.currentFrame=a,this.setBackgroundImage(),this.play(),this.state="play"},x.prototype.gotoAndStop=function(a){this.currentFrame=a,this.setBackgroundImage(),this.stop(),this.state="stop"},x.prototype.update=function(){if(this.state!="stop"){if(!this.useIntervl){this.oldTime||(this.oldTime=(new Date).getTime());var a=(new Date).getTime();this.elapsed+=a-this.oldTime,this.oldTime=a;if(this.elapsed>=1e3/this.speed)this.elapsed=this.elapsed%(1e3/this.speed);else return}this.render()}},x.prototype.render=function(){this.state!="stop"&&(this.prevFrame=this.currentFrame,this.prvePlay?this.currentFrame--:this.currentFrame++,this.prvePlay?this.loop?this.currentFrame<1&&(this.currentFrame=this.totalFrames):this.currentFrame<=1&&(this.currentFrame=1,this.stop()):this.loop?this.currentFrame>this.totalFrames&&(this.currentFrame=1):this.currentFrame>=this.totalFrames&&(this.currentFrame=this.totalFrames,this.stop()),this.setBackgroundImage())},x.prototype.toString=function(){return"SpriteSheet"},c.SpriteSheet=x,c.Utils.inherits(y,c.DisplayObject),y.prototype.clearStyle=function(){this.css3("transform",""),this.element.style.cssText="",this.element.style=""},y.prototype.copyParent=function(a){this.parent.regX=a.regX,this.parent.regY=a.regY,this.parent.originalWidth=a.originalWidth,this.parent.originalHeight=a.originalHeight},y.prototype.copySelf=function(a,b){this.regX=a.regX,this.regY=a.regY,this.originalWidth=a.originalWidth,this.originalHeight=a.originalHeight,a.parent&&this.copyParent(a.parent),b&&(this.x=a.x,this.y=a.y,this.z=a.z,this.scaleX=a.scaleX,this.scaleY=a.scaleY,this.scaleZ=a.scaleZ,this.rotation=a.rotation,this.rotationX=a.rotationX,this.rotationY=a.rotationY,this.rotationZ=a.rotationZ,this.skewX=a.skewX,this.skewY=a.skewY)},y.prototype.toString=function(){return"Avatar"},c.Avatar=y;var z=c.Tween||{keyword:["ease","delay","yoyo","all","loop","repeat","frame","onStart","onUpdate","onComplete","onCompleteParams","overwrite","setTimeout"],callbacks:{},arguments:{},oldAttribute:{},setTimeout:!0,timeoutDelay:30,index:0};z.to=function(a,b,c){var d=c.all?["all"]:z.apply(a,c,z.index),e="";for(var f=0;f<d.length;f++)f>0&&(e+=", "),e+=d[f],e+=" "+b+"s",c.ease&&(e+=" "+c.ease),c.delay&&(e+=" "+c.delay+"s");var g=-999,h=!1;h=c.setTimeout===undefined?z.setTimeout:c.setTimeout,h?g=setTimeout(function(a,b,c,d){z.start(a,b,c,d),g=-999},z.timeoutDelay,a,e,c,z.index):z.start(a,e,c,z.index),z.arguments[z.index+""]=[a,b,c,g];return z.index++},z.start=function(a,b,d,e){if(d.overwrite)z.killTweensOf(a),c.Utils.destroyObject(a.transitions),a.transitions[e+""]=b;else{var f=c.Utils.isEmpty(a.transitions)||c.JsonUtils.object2String(a.transitions)=="none"?"":c.Css.css3(a.element,"transition")+", ";a.transitions[e+""]=b,b=f+b}c.Css.css3(a.element,"transition",b),z.set(a,d),z.addCallback(a);if(d.onStart){var g=d.delay||0;setTimeout(d.onStart,g*1e3)}d.onComplete&&(d.onCompleteParams?z.callbacks[a.id].completes[e+""]=[d.onComplete,d.onCompleteParams]:z.callbacks[a.id].completes[e+""]=[d.onComplete])},z.from=function(a,b,c){var d={};for(var e in c){var f="_"+e+"_",g=z.getKeywordString().search(new RegExp(f,"i"));g==-1?(d[e]=a[e],a[e]=c[e]):d[e]=c[e]}return z.to(a,b,d)},z.fromTo=function(a,b,c,d){for(var e in c){var f="_"+e+"_",g=z.getKeywordString().search(new RegExp(f,"i"));g==-1&&(a[e]=c[e])}return z.to(a,b,d)},z.apply=function(a,b,d){var e=[];for(var f in b){var g="_"+f+"_",h=z.getKeywordString().search(new RegExp(g,"i"));h<=-1&&(z.getOldAttribute(a,d)[f]=a[f],f=="alpha"?f="opacity":f!="color"||a instanceof c.Text?f=="x"||f=="y"||f=="z"?f=c.transform:f=="scaleX"||f=="scaleY"||f=="scaleZ"?f=c.transform:f=="rotationX"||f=="rotation"||f=="rotationY"||f=="rotationZ"?f=c.transform:f=="skewX"||f=="skewY"?f=c.transform:f=="regX"||f=="regY"?f=z.Agile.transformOrigin:f=="width"||f=="height"?f=c.transform:f=="originalWidth"?f="width":f=="originalHeight"&&(f="height"):f="background-color",e.indexOf(f)<0&&e.push(f))}return e},z.killTweensOf=function(a,b){if(c.Utils.isNumber(a)){if(z.arguments[a+""]){var d=z.arguments[a+""][0],e=z.arguments[a+""][2],f=z.arguments[a+""][3];f>0&&(clearTimeout(f),f=-999),b&&z.set(d,e),c.Css.css3(d.element,"transition","none !important"),c.Css.css3(d.element,"transition","none"),z.removeCallback(d),delete z.arguments[a+""],delete d.transitions[a+""]}}else{for(var g in z.arguments){var h=z.arguments[g];if(h[0]==a){var f=h[3];f>0&&(clearTimeout(f),f=-999),delete z.arguments[g]}}if(b&&z.oldAttribute[a.id])for(var g in z.oldAttribute[a.id]){for(var i in z.oldAttribute[a.id][g])a[i]=z.oldAttribute[a.id][g][i];delete z.oldAttribute[a.id][g]}c.Utils.destroyObject(a.transitions),delete z.oldAttribute[a.id],z.removeCallback(a),c.Css.css3(a.element,"transition","none !important"),c.Css.css3(a.element,"transition","none")}},z.killAll=function(a){for(var b in z.oldAttribute){var d=c.getAgileByID(b);z.killTweensOf(d,a)}},z.set=function(a,b){a.css3("transition");for(var d in b){var e="_"+d+"_",f=z.getKeywordString().search(new RegExp(e,"i"));if(f<=-1){var g=c.keyword.search(new RegExp(e,"i"));if(g<=-1)if(d.indexOf("-")>-1){var h=d.split("-");for(var f=0;f<h.length;f++)f!=0&&(h[f]=h[f].charAt(0).toUpperCase()+h[f].substr(1));a.css2(h.join(""),b[d])}else a.css2(d,b[d]);else a[d]=b[d]}}},z.remove=function(a,b){b=b+"",delete a.transitions[b];var d=c.JsonUtils.object2String(a.transitions);c.Css.css3(a.element,"transition",d)},z.getKeywordString=function(){z.keywordString||(z.keywordString="_"+z.keyword.join("_")+"_");return z.keywordString},z.addCallback=function(a){z.callbacks[a.id]||(z.callbacks[a.id]={fun:function(b){for(var c in a.transitions)if(a.transitions[c].indexOf(b.propertyName)>-1){z.remove(a,c),z.deleteOldAttribute(a,c);if(z.callbacks[a.id].completes[c]){z.callbacks[a.id].completes[c].length==1?z.callbacks[a.id].completes[c][0].apply(a):z.callbacks[a.id].completes[c][0].apply(a,z.callbacks[a.id].completes[c][1]);try{delete z.callbacks[a.id].completes[c]}catch(b){}}}},completes:{}},z.prefixEvent(),a.element.addEventListener(z.transitionend,z.callbacks[a.id].fun,!1));return z.callbacks[a.id]},z.removeCallback=function(a){z.callbacks[a.id]&&(z.prefixEvent(),a.element.removeEventListener(z.transitionend,z.callbacks[a.id].fun,!1),z.callbacks[a.id].completes&&c.Utils.destroyObject(z.callbacks[a.id].completes),c.Utils.destroyObject(z.callbacks[a.id]),delete z.callbacks[a.id])},z.prefixEvent=function(){if(!z.transitionend){var a=c.Css.getPrefix();switch(a){case"Webkit":z.transitionend="webkitTransitionEnd";break;case"ms":z.transitionend="MSTransitionEnd";break;case"O":z.transitionend="oTransitionEnd";break;case"Moz":z.transitionend="transitionend";break;default:z.transitionend="transitionend"}}},z.getOldAttribute=function(a,b){z.oldAttribute[a.id]||(z.oldAttribute[a.id]={}),z.oldAttribute[a.id][b]||(z.oldAttribute[a.id][b]={});return z.oldAttribute[a.id][b]},z.deleteOldAttribute=function(a,b){z.oldAttribute[a.id]&&(delete z.oldAttribute[a.id][b],c.Utils.isEmpty(z.oldAttribute[a.id])&&delete z.oldAttribute[a.id])},c.Tween=z;var A=A||{index:0,callbacks:{},currentTime:0,nextTween:[],replace:!1,remove:!0,get avatar(){this.avatarmc||(this.avatarmc=new c.Avatar(1,1));return this.avatarmc}};A.addFrame=function(a,b,d,e){if(d instanceof c.Keyframes)e||(e={}),A.insertKeyframes(a,d,e.replace),A.apply(a,b,d,e);else if(typeof d=="object"){if(d.hasOwnProperty("frame"))var f=d.frame;else var f=e;A.insertKeyframes(a,f,d.replace),A.apply(a,b,f,d)}return A.index++},A.playFrame=function(a,b,d,e){if(d instanceof c.Keyframes)e||(e={}),A.apply(a,b,d,e);else if(typeof d=="object"){if(d.hasOwnProperty("frame"))var f=d.frame;else var f=e;A.apply(a,b,f,d)}return A.index++},A.insertKeyframes=function(a,b,d){(d||A.replace)&&A.removeKeyframes(a.id+"_"+b.label);var e=c.Css.getPrefix(2);A.avatar.clearStyle(),A.avatar.copySelf(a,"all");var f={};for(var g in b.keyframes){var h=b.keyframes[g];f[g]={};for(var i in h){var j="_"+i+"_",k=c.keyword.search(new RegExp(j,"i"));if(k<=-1)if(i.indexOf("-")>-1){var l=i.split("-");for(var k=0;k<l.length;k++)k!=0&&(l[k]=l[k].charAt(0).toUpperCase()+l[k].substr(1));A.avatar.css2(l.join(""),h[i])}else A.avatar.css2(i,h[i]);else A.avatar[i]=h[i];i=="alpha"?f[g].opacity=A.avatar[i]:i!="color"||a instanceof c.Text?i=="x"||i=="y"||i=="z"?f[g][e+"transform"]=A.avatar.css3("transform"):i=="scaleX"||i=="scaleY"||i=="scaleZ"?f[g][e+"transform"]=A.avatar.css3("transform"):i=="rotationX"||i=="rotationY"||i=="rotationZ"||i=="rotation"?f[g][e+"transform"]=A.avatar.css3("transform"):i=="skewX"||i=="skewY"?f[g][e+"transform"]=A.avatar.css3("transform"):i=="width"||i=="height"?f[g][e+"transform"]=A.avatar.css3("transform"):i=="regX"||i=="regY"?f[g][e+"transform-origin"]=A.avatar.css3("transformOrigin"):i=="originalWidth"?f[g].width=A.avatar.css2("width"):i=="originalHeight"?f[g].height=A.avatar.css2("height"):i=="round"?f[g]["border-radius"]=A.avatar[i]+"px":f[g][i]=A.avatar.css2(i):f[g]["background-color"]=A.avatar[i]}}var m="@"+c.Css.getPrefix(2)+"keyframes",n=c.Css.getDynamicSheet(),o=c.JsonUtils.object2Json(f);o=c.JsonUtils.replaceChart(o);var p=m+" "+a.id+"_"+b.label+o;n.insertRule(p,n.cssRules.length),n=null},A.apply=function(a,b,d,e){var f="",g=typeof d=="string"?d:d.label;f+=a.id+"_"+g+" ",f+=b+"s ",e.ease&&(f+=e.ease+" "),e.delay&&(f+=e.delay+"s "),e.loop?(e.loop<=0&&(e.loop="infinite"),f+=e.loop+" "):e.repeat&&(e.repeat<=0&&(e.repeat="infinite"),f+=e.repeat+" "),e.yoyo&&(e.yoyo==!0&&(e.yoyo="alternate"),e.yoyo==!1&&(e.yoyo="normal"),f+=e.yoyo+" "),f+="forwards";var h=c.Utils.isEmpty(a.animations)?"":c.Css.css3(a.element,"animation")+", ";a.animations[A.index+""]=f,f=h+f,a.css3("animation",f),A.addCallback(a),A.callbacks[a.id].sets[A.index+""]=d.merge(),A.callbacks[a.id].removes[A.index+""]=e.remove||A.remove,e.onComplete&&(e.onCompleteParams?A.callbacks[a.id].completes[A.index+""]=[e.onComplete,e.onCompleteParams]:A.callbacks[a.id].completes[A.index+""]=[e.onComplete])},A.removeKeyframes=function(a){var b=typeof a=="string"?a:a.label,d=c.Css.getDynamicSheet(),e=d.cssRules||d.rules||[];for(var f=0;f<e.length;f++){var g=e[f];(g.type===CSSRule.KEYFRAMES_RULE||g.type===CSSRule.MOZ_KEYFRAMES_RULE||g.type===CSSRule.WEBKIT_KEYFRAMES_RULE||g.type===CSSRule.O_KEYFRAMES_RULE||g.type===CSSRule.MS_KEYFRAMES_RULE)&&g.name==b&&d.deleteRule(f)}},A.indexOf=function(a){var b=typeof a=="string"?a:a.label,d=c.Css.getDynamicSheet(),e=d.cssRules||d.rules||[];for(var f=0;f<e.length;f++){var g=e[f];if(g.type===CSSRule.KEYFRAMES_RULE||g.type===CSSRule.MOZ_KEYFRAMES_RULE||g.type===CSSRule.WEBKIT_KEYFRAMES_RULE||g.type===CSSRule.O_KEYFRAMES_RULE||g.type===CSSRule.MS_KEYFRAMES_RULE)if(g.name==a)return 100}return-100},A.pause=function(a){c.Css.css3(a.element,"animationPlayState","paused")},A.resume=function(a){c.Css.css3(a.element,"animationPlayState","running")},A.toggle=function(a){c.Css.css3(a.element,"animationPlayState")=="running"?A.pause(a):A.resume(a)},A.removeFrameByIndex=function(a,b){b=b+"";var d=a.animations[b];if(d){a.animations[b]="0";var e=c.JsonUtils.object2String(a.animations);c.Utils.replace(e,["0,","0"," "],"")==""?A.removeAllFrames(a):a.css3("animation",e)}return d},A.removeFrame=function(a,b,d){if(c.Utils.isNumber(b))var e=b,f=a.animations[e+""];else if(typeof b=="string"){if(b.indexOf(a.id)>-1)var f=b;else var f=a.id+"_"+b;var e=c.Utils.objectforkey(a.animations,f)}else var f=a.id+"_"+b.label,e=c.Utils.objectforkey(a.animations,f);d&&A.removeKeyframes(f);return A.removeFrameByIndex(a,e)},A.removeFrameAfter=function(a,b,c,d){function e(f){A.removeFrame(a,b,d),a.element.removeEventListener(A.animationiteration,e),c&&c()}A.prefixEvent(),a.element.addEventListener(A.animationiteration,e,!1)},A.removeAllFrames=function(a){for(var b in a.animations)delete a.animations[b];c.Css.css3(a.element,"animation","")},A.kill=function(a){A.removeAllFrames(a),A.callbacks[a.id]&&(A.prefixEvent(),a.element.removeEventListener(A.animationend,A.callbacks[a.id].fun),delete A.callbacks[a.id])},A.set=function(a,b){if(!!b)for(var d in b){var e="_"+d+"_",f=c.keyword.search(new RegExp(e,"i"));if(f<=-1)if(d.indexOf("-")>-1){var g=d.split("-");for(var f=0;f<g.length;f++)f!=0&&(g[f]=g[f].charAt(0).toUpperCase()+g[f].substr(1));a.css2(g.join(""),b[d])}else a.css2(d,b[d]);else a[d]=b[d]}},A.addCallback=function(a){A.callbacks[a.id]||(A.callbacks[a.id]={fun:function(b){for(var c in a.animations)if(a.animations[c].indexOf(b.animationName)==0){A.removeFrame(a,c,A.callbacks[a.id].removes[c]),delete A.callbacks[a.id].removes[c],A.set(a,A.callbacks[a.id].sets[c]),delete A.callbacks[a.id].sets[c];if(A.callbacks[a.id].completes[c]){A.callbacks[a.id].completes[c].length==1?A.callbacks[a.id].completes[c][0].apply(a):A.callbacks[a.id].completes[c][0].apply(a,A.callbacks[a.id].completes[c][1]);try{delete A.callbacks[a.id].completes[c]}catch(b){}}}},completes:{},removes:{},sets:{}},A.prefixEvent(),a.element.addEventListener(A.animationend,A.callbacks[a.id].fun,!1));return A.callbacks[a.id]},A.prefixEvent=function(){if(!A.animationend){var a=c.Css.getPrefix();switch(a){case"Webkit":A.animationend="webkitAnimationEnd",A.animationiteration="webkitAnimationIteration";break;case"ms":A.animationend="MSAnimationEnd",A.animationiteration="MSAnimationIteration";break;case"O":A.animationend="oanimationend",A.animationiteration="oanimationiteration";break;case"Moz":A.animationend="animationend",A.animationiteration="animationiteration";break;default:A.animationend="animationend",A.animationiteration="animationiteration"}}},c.Timeline=A,B.prototype.add=function(){if(typeof arguments[0]=="object"){for(var a in arguments[0]){var b=arguments[0][a];if(c.Utils.isNumber(a))var d=a+"%";else if(a.indexOf("%")>-1)var d=a;else var d=a+"%";delete arguments[0][a+""],arguments[0][d]=b,this.setColor(arguments[0][d])}c.Utils.extend(this.keyframes,arguments[0])}else if(c.Utils.isNumber(arguments[0])){var d=arguments[0]+"%";if(arguments.length==3){var e=arguments[1],f=arguments[2],g={};g[d]={},g[d][e]=f}else{var f=arguments[1],g={};g[d]=f}this.setColor(g[d]),c.Utils.extend(this.keyframes,g)}else if((arguments[0]+"").indexOf("%")>-1){var d=arguments[0];if(arguments.length==3){var e=arguments[1],f=arguments[2],g={};g[d]={},g[d][e]=f}else{var f=arguments[1],g={};g[d]=f}this.setColor(g[d]),c.Utils.extend(this.keyframes,g)}this.fill()},B.prototype.get=function(a){c.Utils.isNumber(a)?a=a+"%":a=a;return this.Keyframes[a]},B.prototype.remove=function(a){c.Utils.isNumber(a)?a=a+"%":a=a,a?delete this.Keyframes[a]:this.Keyframes.length=0},B.prototype.fill=function(){this.sort();var a;for(var b in this.keyframes){for(var c in a)this.keyframes[b][c]===undefined&&(this.keyframes[b][c]=a[c]);a=this.keyframes[b]}},B.prototype.sort=function(){var a={},b=c.Utils.keys(this.keyframes);b.sort(function(a,b){return parseFloat(a)-parseFloat(b)});for(var d=0,e=b.length;d<e;d++){var f=b[d];a[f]=this.keyframes[f]}this.keyframes=a;return this.keyframes},B.prototype.merge=function(){var a={};for(var b in this.keyframes)for(var c in this.keyframes[b])a[c]=this.keyframes[b][c];return a},B.prototype.setColor=function(a){a.color&&a.color=="random"&&(a.color=c.Color.randomColor())},B.prototype.destroy=function(){c.Utils.destroyObject(this.keyframes),this.keyframes.length=0},B.prototype.toString=function(){return"Keyframes"},c.Keyframes=c.KeyFrames=B,C.prototype.toString=function(){return"MovieClipLabel"},c.MovieClipLabel=C;var D=c.ease||{linear:"linear",easeBasic:"ease",easeInBasic:"ease-in",easeOutBasic:"ease-out",easeInOutBasic:"ease-in-out",easeOutCubic:"cubic-bezier(.215,.61,.355,1)",easeInOutCubic:"cubic-bezier(.645,.045,.355,1)",easeInCirc:"cubic-bezier(.6,.04,.98,.335)",easeOutCirc:"cubic-bezier(.075,.82,.165,1)",easeInOutCirc:"cubic-bezier(.785,.135,.15,.86)",easeInExpo:"cubic-bezier(.95,.05,.795,.035)",easeOutExpo:"cubic-bezier(.19,1,.22,1)",easeInOutExpo:"cubic-bezier(1,0,0,1)",easeInQuad:"cubic-bezier(.55,.085,.68,.53)",easeOutQuad:"cubic-bezier(.25,.46,.45,.94)",easeInOutQuad:"cubic-bezier(.455,.03,.515,.955)",easeInQuart:"cubic-bezier(.895,.03,.685,.22)",easeOutQuart:"cubic-bezier(.165,.84,.44,1)",easeInOutQuart:"cubic-bezier(.77,0,.175,1)",easeInQuint:"cubic-bezier(.755,.05,.855,.06)",easeOutQuint:"cubic-bezier(.23,1,.32,1)",easeInOutQuint:"cubic-bezier(.86,0,.07,1)",easeInSine:"cubic-bezier(.47,0,.745,.715)",easeOutSine:"cubic-bezier(.39,.575,.565,1)",easeInOutSine:"cubic-bezier(.445,.05,.55,.95)",easeInBack:"cubic-bezier(.6,-.28,.735,.045)",easeOutBack:"cubic-bezier(.175, .885,.32,1.275)",easeInOutBack:"cubic-bezier(.68,-.55,.265,1.55)",stepStart:"step-start",stepStop:"step-stop"};c.ease=D,c.Utils.inherits(E,c.DisplayObject),E.prototype.__defineGetter__("radius",function(){return this._avatar.radius}),E.prototype.__defineSetter__("radius",function(a){this._avatar.radius=a,this.width=this.radius*2,this.height=this.radius,this.css3("borderRadius",this.radius+"px "+this.radius+"px 0 0")}),E.prototype.toString=function(){return"Semicircle"},c.Semicircle=E,c.Utils.inherits(F,c.Image),F.prototype.__defineGetter__("backgroundWidth",function(){return this._avatar.backgroundWidth}),F.prototype.__defineSetter__("backgroundWidth",function(a){this._avatar.backgroundWidth=a,this.scrolling()}),F.prototype.__defineGetter__("backgroundHeight",function(){return this._avatar.backgroundHeight}),F.prototype.__defineSetter__("backgroundHeight",function(a){this._avatar.backgroundHeight=a,this.scrolling()}),F.prototype.__defineGetter__("speed",function(){return this._avatar.speed}),F.prototype.__defineSetter__("speed",function(a){this._avatar.speed=a,this.scrolling()}),F.prototype.__defineGetter__("direction",function(){return this._avatar.direction}),F.prototype.__defineSetter__("direction",function(a){this._avatar.direction=a,this.scrolling()}),F.prototype.scrolling=function(a,b){var b=b||c.ease.linear,a=a||this.speed;this.scrollframes&&(this.removeFrame(this.scrollframes),this.scrollframes.destroy()),this.scrollframes=new c.Keyframes,this.scrollframes.add(0,{"background-position":"0% 0%"});if(this.direction=="left"){var d=this.backgroundWidth?1*this.backgroundWidth+"px":"200%";this.scrollframes.add(100,{"background-position":d+" 0%"})}else if(this.direction=="right"){var d=this.backgroundWidth?-1*this.backgroundWidth+"px":"-200%";this.scrollframes.add(100,{"background-position":d+" 0%"})}else if(this.direction=="up"){var d=this.backgroundHeight?-1*this.backgroundHeight+"px":"0%";this.scrollframes.add(100,{"background-position":"0% "+d})}else if(this.direction=="down"||this.direction=="bottom"){var d=this.backgroundHeight?1*this.backgroundHeight+"px":"0%";this.scrollframes.add(100,{"background-position":"0% "+d})}this.addFrame(a,this.scrollframes,{loop:-1,ease:b})},F.prototype.toString=function(){return"ScrollingBg"},c.ScrollingBg=F})(window,document),function(){var a=Object.prototype,b=a.__defineGetter__,c=a.__defineSetter__,d=a.__lookupGetter__,e=a.__lookupSetter__,f=a.hasOwnProperty;b&&c&&d&&e&&(Object.defineProperty||(Object.defineProperty=function(a,g,h){if(arguments.length<3)throw new TypeError("Arguments not optional");g+="";if(f.call(h,"value")){!d.call(a,g)&&!e.call(a,g)&&(a[g]=h.value);if(f.call(h,"get")||f.call(h,"set"))throw new TypeError("Cannot specify an accessor and a value")}if(!(h.writable&&h.enumerable&&h.configurable))throw new TypeError("This implementation of Object.defineProperty does not support false for configurable, enumerable, or writable.");h.get&&b.call(a,g,h.get),h.set&&c.call(a,g,h.set);return a}),Object.getOwnPropertyDescriptor||(Object.getOwnPropertyDescriptor=function(a,b){if(arguments.length<2)throw new TypeError("Arguments not optional.");b+="";var c={configurable:!0,enumerable:!0,writable:!0},g=d.call(a,b),h=e.call(a,b);if(!f.call(a,b))return c;if(!g&&!h){c.value=a[b];return c}delete c.writable,c.get=c.set=undefined,g&&(c.get=g),h&&(c.set=h);return c}),Object.defineProperties||(Object.defineProperties=function(a,b){var c;for(c in b)f.call(b,c)&&Object.defineProperty(a,c,b[c])}))}(),function(){var a=0,b=["ms","moz","webkit","o"];for(var c=0;c<b.length&&!window.requestAnimationFrame;++c)window.requestAnimationFrame=window[b[c]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[b[c]+"CancelAnimationFrame"]||window[b[c]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(b,c){var d=(new Date).getTime(),e=Math.max(0,16-(d-a)),f=window.setTimeout(function(){b(d+e)},e);a=d+e;return f}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(a){clearTimeout(a)})}()