// wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
// Produced by DoubleYou, Dec 1999
// www.doubleyou.com
// info@doubleyou.com
// Este js vale para animar o frenar los textos ...
// wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww












































function DoubleYouFrenadoInit() {
this.frenadoTo=DoubleYouFrenadoTo;
this.frenadoBy=DoubleYouFrenadoBy;
this.frenadoloop=DoubleYouFrenadoLoop;
} 

function DoubleYouFrenadoTo(finalx,finaly,velocidad,intervalo,fn) {
if (finalx==null) this.finalx=this.x;
else this.finalx=finalx;
if (finaly==null) this.finaly=this.y;
else this.finaly=finaly;
this.velocidad=velocidad;
this.intervalo=intervalo;
this.fn=fn;
this.frenadoActive=true;
this.posx=this.x;
this.posy=this.y;
this.frenadoloop();
} 

function DoubleYouFrenadoBy(incrementox,incrementoy,velocidad,intervalo,fn) {
if (incrementox==null) this.finalx=this.x;
else this.finalx=this.x+incrementox;
if (incrementoy==null) this.incrementoy=this.y;
else this.finaly=this.y+incrementoy;
this.velocidad=velocidad;
this.intervalo=intervalo;
this.fn=fn;
this.frenadoActive=true;
this.posx=this.x;
this.posy=this.y;
this.frenadoloop();
} 

function DoubleYouFrenadoLoop() {
if (this.frenadoActive) {
this.posx=(this.finalx+this.velocidad*this.posx)/(this.velocidad+1);
this.posy=(this.finaly+this.velocidad*this.posy)/(this.velocidad+1);
this.moveTo(this.posx,this.posy);
if ((Math.abs(this.finaly-this.posy)<1)&&(Math.abs(this.finalx-this.posx)<1)) {this.moveTo(this.finalx,this.finaly);
if (this.fn!=null) eval(this.fn);} else setTimeout(this.obj+".frenadoloop()",this.intervalo);
} 

}
