/* Compiled from X 4.15 by XC 1.05 on 03Jun07 */
function xAnimation(r){this.res=r||10;}xAnimation.prototype.init=function(e,t,or,ot,oe,a,b){var i=this;i.e=xGetElementById(e);i.t=t;i.or=or;i.ot=ot;i.oe=oe;i.a=a||0;i.v=xAnimation.vf[i.a];i.qc=1+(b||0);i.fq=1/i.t;if(i.a){i.fq*=i.qc*Math.PI;if(i.a==1||i.a==2){i.fq/=2;}}else{i.qc=1;}i.xd=i.x2-i.x1;i.yd=i.y2-i.y1;i.zd=i.z2-i.z1;};xAnimation.prototype.run=function(r){var i=this;if(!r)i.t1=new Date().getTime();if(!i.tmr)i.tmr=setInterval(function(){i.et=new Date().getTime()-i.t1;if(i.et<i.t){i.f=i.v(i.et*i.fq);i.x=i.xd*i.f+i.x1;i.y=i.yd*i.f+i.y1;i.z=i.zd*i.f+i.z1;i.or(i);}else{clearInterval(i.tmr);i.tmr=null;if(i.qc%2){i.x=i.x2;i.y=i.y2;i.z=i.z2;}else{i.x=i.x1;i.y=i.y1;i.z=i.z1;}i.ot(i);var rep=false;if(typeof i.oe=='function')rep=i.oe(i);else if(typeof i.oe=='string')rep=eval(i.oe);if(rep)i.resume(1);}},i.res);};xAnimation.vf=[function(r){return r;},function(r){return Math.abs(Math.sin(r));},function(r){return 1-Math.abs(Math.cos(r));},function(r){return(1-Math.cos(r))/2;}];xAnimation.prototype.pause = function(){clearInterval(this.tmr);this.tmr = null;};xAnimation.prototype.resume = function(fs){if (typeof this.tmr != 'undefined' && !this.tmr) {this.t1 = new Date().getTime();if (!fs) {this.t1 -= this.et;}this.run(!fs);}};xLibrary={version:'4.15',license:'GNU LGPL',url:'http://cross-browser.com/'};xAnimation.prototype.arc=function(e,xr,yr,a1,a2,t,a,b,oe){var i=this;i.x1=a1*(Math.PI/180);i.x2=a2*(Math.PI/180);var x0=xLeft(e)+(xWidth(e)/ 2); var y0 = xTop(e) + (xHeight(e) /2);i.xc=x0-(xr*Math.cos(i.x1));i.yc=y0-(yr*Math.sin(i.x1));i.xr=xr;i.yr=yr;i.init(e,t,h,h,oe,a,b);i.run();function h(i){i.e.style.left=(Math.round(i.xr*Math.cos(i.x)+i.xc-(xWidth(i.e)/ 2))) + 'px';i.e.style.top = (Math.round(i.yr * Math.sin(i.x) + i.yc - (xHeight(i.e) /2)))+'px';}};xAnimation.prototype.corner=function(e,c,x,y,t,a,b,oe){var i=this;i.x2=x;i.y2=y;var ex=xLeft(e),ey=xTop(e);var ew=xWidth(e),eh=xHeight(e);i.cornerStr=c.toLowerCase();switch(i.cornerStr){case'nw':i.x1=ex;i.y1=ey;break;case'sw':i.x1=ex;i.y1=ey+eh;break;case'ne':i.x1=ex+ew;i.y1=ey;break;case'se':i.x1=ex+ew;i.y1=ey+eh;break;default:return;}i.init(e,t,h,h,oe,a,b);i.run();function h(i){var e=i.e,x=Math.round(i.x),y=Math.round(i.y);var nwx=xLeft(e),nwy=xTop(e);var sex=nwx+xWidth(e),sey=nwy+xHeight(e);switch(i.cornerStr){case'nw':e.style.left=x+'px';e.style.top=y+'px';xResizeTo(e,sex-x,sey-y);break;case'sw':e.style.left=x+'px';xWidth(e,sex-x);xHeight(e,y-nwy);break;case'ne':xWidth(e,x-nwx);e.style.top=y+'px';xHeight(e,sey-y);break;case'se':xWidth(e,x-nwx);xHeight(e,y-nwy);break;}}};xAnimation.prototype.css=function(e,p,v,t,a,b,oe){var i=this;i.x1=xGetComputedStyle(e,p,true);i.x2=v;i.prop=xCamelize(p);i.init(e,t,h,h,oe,a,b);i.run();function h(i){i.e.style[i.prop]=Math.round(i.x)+'px';}};xAnimation.prototype.line=function(e,x,y,t,a,b,oe){var i=this;i.x1=xLeft(e);i.y1=xTop(e);i.x2=Math.round(x);i.y2=Math.round(y);i.init(e,t,h,h,oe,a,b);i.run();function h(i){i.e.style.left=Math.round(i.x)+'px';i.e.style.top=Math.round(i.y)+'px';}};xAnimation.prototype.opacity=function(e,o,t,a,b,oe){var i=this;i.x1=xOpacity(e);i.x2=o;i.init(e,t,h,h,oe,a,b);i.run();function h(i){xOpacity(i.e,i.x);}};xAnimation.prototype.para=function(e,xe,ye,inc,t,oe){var i=this;i.tt=t;if(!t)t=1000;i.xe=xe;i.ye=ye;i.par=0;i.inc=inc||.005;i.init(e,t,h,h,oe,0,0);i.run();function h(i){var p=xParent(i.e),xc,yc;xc=(xWidth(p)/2)-(xWidth(e)/2);yc=(xHeight(p)/2)-(xHeight(e)/2);i.e.style.left=(Math.round((eval(i.xe)*xc)+xc)+xScrollLeft(p))+'px';i.e.style.top=(Math.round((eval(i.ye)*yc)+yc)+xScrollTop(p))+'px';i.par+=i.inc;if(!i.tt)i.t+=1000;}};xAnimation.prototype.rgb=function(e,p,v,t,a,b,oe){var i=this;var co=xParseColor(xGetComputedStyle(e,p));i.x1=co.r;i.y1=co.g;i.z1=co.b;co=xParseColor(v);i.x2=co.r;i.y2=co.g;i.z2=co.b;i.prop=xCamelize(p);i.init(e,t,h,h,oe,a,b);i.run();function h(i){i.e.style[i.prop]=xRgbToHex(Math.round(i.x),Math.round(i.y),Math.round(i.z));}};xAnimation.prototype.scroll=function(e,x,y,t,a,b,oe){var i=this;i.init(e);i.win=i.e.nodeType==1?false:true;i.x1=xScrollLeft(i.e,i.win);i.y1=xScrollTop(i.e,i.win);i.x2=Math.round(x);i.y2=Math.round(y);i.init(e,t,h,h,oe,a,b);i.run();function h(i){var x=Math.round(i.x),y=Math.round(i.y);if(i.win)i.e.scrollTo(x,y);else{i.e.scrollLeft=x;i.e.scrollTop=y;}}};xAnimation.prototype.size=function(e,w,h,t,a,b,oe){var i=this;i.x1=xWidth(e);i.y1=xHeight(e);i.x2=Math.round(w);i.y2=Math.round(h);i.init(e,t,o,o,oe,a,b);i.run();function o(i){xWidth(i.e,Math.round(i.x));xHeight(i.e,Math.round(i.y));}};