var Gal = {
	elem: null,
	moveAmt: 0, moveDir: 0, movePx: 15, moveDelay: 3, tId: null,
	showImg: function() {
		if (!this.elem)
			this.elem = document.getElementById('big_img_c');
		this.elem.style.display = 'block';
	},		
	hideImg: function() {
		this.elem.style.display = 'none';
	},
	move: function(dir, px) {
		if (this.tId) {
			clearTimeout(this.tId);
			$('tn_container').scrollLeft += Gal.moveDir * Gal.moveAmt;
		}
		this.moveAmt = px;
		this.moveDir = dir;
		this.doMove(dir, px);
	},
	doMove: function() {
		var ma;
		if (Gal.moveAmt > 0) {
			$('tn_container').scrollLeft += Gal.moveDir * Gal.movePx;
			Gal.moveAmt -= Gal.movePx;
			Gal.tId = setTimeout('Gal.doMove();', Gal.moveDelay);
		}
	}
}