var scrollerMovers=new Array
function scrollerMover(div,property,seconds,onDone){
	this.id=scrollerMovers.length
	scrollerMovers[this.id]=this
	this.div=div
	this.timeout
	this.property=property
	this.seconds=seconds
	this.onDone=onDone
	this.updateWithinMiliseconds=10
}
scrollerMover.prototype = {
	moveTo : function(position,startDate,startPosition){
		clearTimeout(this.timeout)
		var now=new Date
		if(typeof(startDate)=='undefined'){			
			var startDate=now.getTime()
			var startPosition=this.div[this.property]			                           
		}
		
		if((now.getTime()-startDate)/1000>=this.seconds){
			this.div[this.property]=position
			if(this.onDone){
				this.onDone()
			}
		}else{
			this.div[this.property]=startPosition+((now.getTime()-startDate)/(this.seconds*1000))*(position-startPosition)
			this.timeout=setTimeout("scrollerMovers["+this.id+"].moveTo("+position+","+startDate+","+startPosition+")",this.updateWithinMiliseconds)
		}
	}
}
