/* Compiled from X 4.06 with XC 1.0 on 26Nov06 */
function xAnimation(e,at,qc,tt,orf,otf,oed,oea,oef){this.init(e,at,qc,tt,orf,otf,oed,oea,oef);var a=xAnimation.instances;var i;for(i=0;i<a.length;++i){if(!a[i])break;}a[i]=this;this.idx=i;}xAnimation.instances=[];xAnimation.prototype.init=function(e,at,qc,tt,orf,otf,oed,oea,oef){this.e=xGetElementById(e);this.at=at||2;this.qc=qc||1;this.tt=tt;this.orf=orf;this.otf=otf;this.oed=oed;this.oea=oea;this.oef=oef;this.to=20;this.as=true;return this;};xAnimation.prototype.start=function(){var a=this;if(a.at==1){a.ap=1/a.tt;}else{a.ap=a.qc*(Math.PI/(2*a.tt));}if(xDef(a.x1)){a.xm=a.x2-a.x1;}if(xDef(a.y1)){a.ym=a.y2-a.y1;}if(!(a.qc%2)){if(xDef(a.x1))a.x2=a.x1;if(xDef(a.y1))a.y2=a.y1;}if(!a.tmr){var d=new Date();a.t1=d.getTime();a.tmr=setTimeout('xAnimation.run('+a.idx+')',1);}};xAnimation.run=function(i){var a=xAnimation.instances[i];if(!a){return;}var d=new Date();a.et=d.getTime()-a.t1;if(a.et<a.tt){a.tmr=setTimeout('xAnimation.run('+i+')',a.to);a.af=a.ap*a.et;if(a.at==2){a.af=Math.abs(Math.sin(a.af));}else if(a.at==3){a.af=1-Math.abs(Math.cos(a.af));}if(xDef(a.x1))a.x=a.xm*a.af+a.x1;if(xDef(a.y1))a.y=a.ym*a.af+a.y1;a.orf(a);}else{var rep=false;if(xDef(a.x2))a.x=a.x2;if(xDef(a.y2))a.y=a.y2;a.tmr=null;a.otf(a);if(xDef(a.oef)){if(a.oed)setTimeout(a.oef,a.oed);else if(xStr(a.oef)){rep=eval(a.oef);}else{rep=a.oef(a,a.oea);}}if(rep){a.resume(true);}}};xAnimation.prototype.pause=function(){var s=false;if(this.tmr){clearTimeout(this.tmr);this.tmr=null;s=true;}return s;};xAnimation.prototype.resume=function(fromStart){var s=false;if(!this.tmr){var d=new Date();this.t1=d.getTime();if(!fromStart)this.t1-=this.et;this.tmr=setTimeout('xAnimation.run('+this.idx+')',this.to);s=true;}return s;};xAnimation.prototype.kill=function(){this.pause();xAnimation.instances[this.idx]=null;};function xAniSize(xa,w,h,tt,at,qc,oed,oea,oef){var a=xa.init(xa.e,at,qc,tt,onRun,onRun,oed,oea,oef);a.x1=xWidth(a.e);a.y1=xHeight(a.e);a.x2=w;a.y2=h;if(a.as)a.start();return a;function onRun(o){xResizeTo(o.e,Math.round(o.x),Math.round(o.y));}}xLibrary={version:'4.06',license:'GNU LGPL',url:'http://cross-browser.com/'};