
var steps=25;
var ismoving=0;
var slideString='';
ns||ie4 ? nnMult=2 : nnMult=1;

function slideObjectInit(x,y,tempsteps,instr){
	slideString+=this.obj+".slidingObject();";
	this.endx=x=x||this.x;
	this.endy=y=y||this.y;
	this.steps=(tempsteps||this.steps||steps)/nnMult;
	this.frame=0;
	this.instr=instr;
	this.stepx=(x-this.x)/this.steps;
	this.stepy=(y-this.y)/this.steps;
	if (!this.easing)this.easing=0;
	ismoving++;
	if (ismoving==1)setTimeout("slideMove()",40*nnMult);
	}

function slidingObject(){
	if (++this.frame<this.steps){
		var addon=Math.cos(Math.PI*2*this.frame/this.steps)*this.easing;
		this.moveTo(this.x+this.stepx-addon*this.stepx,this.y+this.stepy-addon*this.stepy);
		}
	else{
		this.moveTo(this.endx,this.endy);
		ismoving--;
		slideString=eval('slideString.replace(/'+this.obj+'\.slidingObject\\(\\)\\;/,"")');
		eval(this.instr);
		}
	}

function slideMove(){
	if (slideString.length>0){
		eval(slideString);
		setTimeout("slideMove()",40*nnMult);
		}
	}

divObject.prototype.slideTo=slideObjectInit;
divObject.prototype.slidingObject=slidingObject;
divObject.prototype.easeTo=easeObjectInit;

function easeObjectInit(x,y,easing,tempspeed,instr){
	this.easing=this.easing||easing;
	this.slideTo(x,y,tempspeed,instr);
	}