<!--
var x = 0;
	var dest = 0;
	var distance = 0;
	var step = 0;
	var destination = 0;
<!--
function scrollit(destination) {
		step = 1;
		dest = destination;
		if (x<dest) {
			while (x<dest) {
				step += (step / 50);
				x += step;
				this.main.scroll(x,0);
			} 
		this.main.scroll(dest,0);
		x = dest;
		}
    	if (x > dest)  {
			while (x>dest) {
				step += (step / 50);
                if(x >= (0+step))
				  {
				    x -= step; 
					this.main.scroll(x,0);
                  }
				    else { break;  }
			} 
			if(dest >= 0) { this.main.scroll(dest,0); }
			x = dest;
		}
		if (x<1) {x=1}
		if (x>5000) {x=5000}	
}