function changeImage(obj, image_to_replace) {
	$(obj).fadeTo(50, '0.6', function() {
		obj.src = image_to_replace;
	});
	$(obj).fadeTo(50, 1.0);
	return true;
}

var x = 0;
function scrollit(distance) {
		step = 1;
		if (x<1) {x=0}
		if (x>1170) {x=1170}
		dest = x + 130;
		if (x<dest) {
			while (x<dest) {
				step += (step / 50);
				x += step;
				this.frames.iscrollx.scroll(x,0);
			} 
			this.frames.iscrollx.scroll(dest,0);
			x = dest;
		}
		
		if (x > dest)  {
			while (x>dest) {
				step += (step / 50);
                if(x >= (0+step))
				  {
				    x -= step; 
					this.frames.iscrollx.scroll(x,0);
                  }
				    else { break;  }
			} 
			if(dest >= 0) { this.frames.iscrollx.scroll(dest,0); }
			x = dest;
		}
}