(function(c){var d=navigator.userAgent.toLowerCase();c.$IE=/msie/.test(d);c.$OPERA=/opera/.test(d);c.$MOZ=/gecko/.test(d);c.$IE6=/msie 6/.test(d);c.$IE7=/msie 7/.test(d);c.$IE8=/msie 8/.test(d);c.$SAFARI=/safari/.test(d);c.$winXP=/windows nt 5.1/.test(d);c.$winVista=/windows nt 6.0/.test(d);c.$Mac=/Macintosh/.test(d);c.$FF2=/Firefox\/2/i.test(d);c.$TT=/tencenttraveler/.test(d);c.$360=/360se/.test(d);c.$CHROME=/chrome/.test(d);c.$Maxthon=false;try{var a=window.external;c.$Maxthon=a.max_version?true:false}catch(b){}})(window);(function(a){a.$C=function(b){return document.createElement(b)};a.$E=function(b){return document.getElementById(b)};a.getElementByClz=function(d,c,h){d=d||document;var e=[];h=" "+h+" ";var k=d.getElementsByTagName(c),g=k.length;for(var f=0;f<g;++f){var b=k[f];if(b.nodeType==1){var j=" "+b.className+" ";if(j.indexOf(h)!=-1){e[e.length]=b}}}return e};a.$setStyle=function(e,d){function f(g,h,i){if(!$IE){if(h=="float"){h="cssFloat"}g.style[h]=i}else{switch(h){case"opacity":g.style.filter="alpha(opacity="+(i*100)+")";if(!g.currentStyle||!g.currentStyle.hasLayout){g.style.zoom=1}break;case"float":h="styleFloat";default:g.style[h]=i}}}var c=function(j){var g=j.split("-");var k=g[0];for(var h=1;h<g.length;h++){k+=g[h].charAt(0).toUpperCase()+g[h].substring(1)}return k};if(typeof e=="string"){e=$E(e)}for(var b in d){styleAttr=c(b);f(e,styleAttr,d[b])}}})(window);String.prototype.trim=function(){return this.replace(/^(\s|\u00A0)+|(\s|\u00A0)+$/g,"")};var Tween={};(function(){var k={simple:function(p,m,n,o){return n*p/o+m},backEaseIn:function(n,m,q,p){var o=1.70158;return q*(n/=p)*n*((o+1)*n-o)+m},backEaseOut:function(o,m,v,u,n,r){var q=1.70158;return v*((o=o/u-1)*o*((q+1)*o+q)+1)+m},backEaseInOut:function(o,m,v,u,n,r){var q=1.70158;if((o/=u/2)<1){return v/2*(o*o*(((q*=(1.525))+1)*o-q))+m}return v/2*((o-=2)*o*(((q*=(1.525))+1)*o+q)+2)+m},bounceEaseOut:function(n,m,p,o){if((n/=o)<(1/2.75)){return p*(7.5625*n*n)+m}else{if(n<(2/2.75)){return p*(7.5625*(n-=(1.5/2.75))*n+0.75)+m}else{if(n<(2.5/2.75)){return p*(7.5625*(n-=(2.25/2.75))*n+0.9375)+m}else{return p*(7.5625*(n-=(2.625/2.75))*n+0.984375)+m}}}},bounceEaseIn:function(n,m,p,o){return p-k.bounceEaseOut(o-n,0,p,o)+m},bounceEaseInOut:function(n,m,p,o){if(n<o/2){return k.bounceEaseIn(n*2,0,p,o)*0.5+m}else{return k.bounceEaseOut(n*2-o,0,p,o)*0.5+p*0.5+m}},strongEaseInOut:function(n,m,p,o){return p*(n/=o)*n*n*n*n+m},regularEaseIn:function(n,m,p,o){return p*(n/=o)*n+m},regularEaseOut:function(n,m,p,o){return -p*(n/=o)*(n-2)+m},regularEaseInOut:function(n,m,p,o){if((n/=o/2)<1){return p/2*n*n+m}return -p/2*((--n)*(n-2)-1)+m},strongEaseIn:function(n,m,p,o){return p*(n/=o)*n*n*n*n+m},strongEaseOut:function(n,m,p,o){return p*((n=n/o-1)*n*n*n*n+1)+m},strongEaseInOut:function(n,m,p,o){if((n/=o/2)<1){return p/2*n*n*n*n*n+m}return p/2*((n-=2)*n*n*n*n+2)+m},elasticEaseIn:function(o,m,v,u,n,r){if(o==0){return m}if((o/=u)==1){return m+v}if(!r){r=u*0.3}if(!n||n<Math.abs(v)){n=v;var q=r/4}else{var q=r/(2*Math.PI)*Math.asin(v/n)}return -(n*Math.pow(2,10*(o-=1))*Math.sin((o*u-q)*(2*Math.PI)/r))+m},elasticEaseOut:function(o,m,v,u,n,r){if(o==0){return m}if((o/=u)==1){return m+v}if(!r){r=u*0.3}if(!n||n<Math.abs(v)){n=v;var q=r/4}else{var q=r/(2*Math.PI)*Math.asin(v/n)}return(n*Math.pow(2,-10*o)*Math.sin((o*u-q)*(2*Math.PI)/r)+v+m)},elasticEaseInOut:function(o,m,v,u,n,r){if(o==0){return m}if((o/=u/2)==2){return m+v}if(!r){var r=u*(0.3*1.5)}if(!n||n<Math.abs(v)){var n=v;var q=r/4}else{var q=r/(2*Math.PI)*Math.asin(v/n)}if(o<1){return -0.5*(n*Math.pow(2,10*(o-=1))*Math.sin((o*u-q)*(2*Math.PI)/r))+m}return n*Math.pow(2,-10*(o-=1))*Math.sin((o*u-q)*(2*Math.PI)/r)*0.5+v+m}};var g=function(m){return m.uniqueID};if(!$IE){g=function(n){try{var m;if(n.getAttribute("uniqueID")==null){m="moz__id"+parseInt(Math.random()*100)+"_"+new Date().getTime();n.setAttribute("uniqueID",m);return m}return n.getAttribute("uniqueID")}finally{m=null}}}function i(n){try{var m=n.constructor.toString().toLowerCase();return m.slice(m.indexOf("function")+9,m.indexOf("()"))}finally{m=null}}function h(q,p){var o,n,m=[];n=p.length;for(o=0;o<n;o++){m[m.length]=parseFloat(q.style[p[o]])}return m}function j(m){return i(m)!="array"?[m]:m}function c(m,s){try{var p=i(m);var t=[],r=[],q,o,n;if(p!="array"){n=f(m);n[1]=s=="opacity"?"":n[1];t=[n[0]];r=[n[1]]}else{o=m.length;for(q=0;q<o;q++){n=f(m[q]);n[1]=s[q]=="opacity"?"":n[1];t[t.length]=n[0];r[r.length]=n[1]}}return[t,r]}finally{p=t=r=q=o=n=null}}function f(n){try{var m=/(-?\d.?\d*)([a-z%]*)/i.exec(n);return[m[1],m[2]?m[2]:"px"]}finally{m=null}}var a={};var e={};function b(o){try{var n=g(o);var m;if(a[n]!=true){m=new d();e[n]={node:o,func:m};a[n]=true;return m}else{return e[n].func}}finally{n=m=null}}function d(){this._timer=null}d.prototype.start=function(u,t,p,s,q,v){this.reset();v=v||{};if(v.end){this._func.end=v.end}if(v.tween){this._func.tween=v.tween}var n=j(t);var m=h(u,n);var o=c(p,n);this._node=u;this._property=n;this._endingvalue=o[0];this._suffixvalue=o[1];this._startvalue=m;this._end=false;this._fps=0;if(s!=null){this._seconds=s}if(k[q]!=null){this._animation=k[q]}this._starttime=new Date().getTime();var r=this;this._timer=setInterval(function(){r.play()},10)};d.prototype.play=function(){var m=this;var r=(new Date().getTime()-this._starttime)/1000;var p,o,n=this._property.length;if(r>this._seconds){r=this._seconds}for(p=0;p<n;p++){o=this._animation(r,this._startvalue[p],this._endingvalue[p]-this._startvalue[p],this._seconds);var q={};q[m._property[p]]=o+m._suffixvalue[p];$setStyle(m._node,q)}this._fps++;this._func.tween();if(r==this._seconds){this.stop()}};d.prototype.stop=function(){clearInterval(this._timer);this._end=true;this._func.end()};d.prototype.reset=function(){clearInterval(this._timer);this._end=false;this._node=null;this._property=[];this._startvalue=[];this._endingvalue=[];this._suffixvalue=[];this._fps=0;this._seconds=0.5;this._animation=k.simple;this._func={end:function(){},tween:function(){}}};function l(r,s,n,q,o,p){var m=b(r);m.start.apply(m,arguments)}l.stop=function(m){b(m).stop()};l.isTween=function(m){return !b(m)._end};Tween=l})();