	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 / 3000);
				x += step;			
		
				this.frames.iscrollx.scroll(parseInt(x),0);
			} 
						
			this.frames.iscrollx.scroll(parseInt(dest),0);
			x = dest;
		}
		
    	if (x > dest)  {
			while (x>dest) {
			    step += (step / 3000);
                if(x >= (0+step))
				  {
				    x -= step; 
					this.frames.iscrollx.scroll(parseInt(x),0);
                  }
				    else { break;  }
			} 
			if(dest >= 0) { this.frames.iscrollx.scroll(parseInt(dest),0); }
			x = dest;
		}	
		
		if (x<1) {x=1}
		//if (x>3000) {x=2500}		
}
