	var position = 0;
	var move_pixels = 148;
	var move_increment = 4;
	var current;
	function id(idname) {
		return document.getElementById(idname);	
	}
	function scroll_left(cnt) {
		stop_at = (cnt-6)*(-move_pixels);
		if(position != stop_at) {
			current = position;
			position = position-move_pixels;
			move_left();
		}
	}
	function scroll_right() {
		if(position) {
			current = position;
			position = position+move_pixels;
			move_right();
		}
	}
	function move_left() {
		current-=move_increment;
		id("carousel").style.left=current+"px";
		if(current >= position) {
			setTimeout("move_left()",1);
		} else {
			current+=move_increment;
		}
	}
	function move_right() {
		current+=move_increment;
		id("carousel").style.left=current+"px";
		if(current <= position) {
			setTimeout("move_right()",1);
		} else {
			current-=move_increment;	
		}
	}