var SL = {
	a:0, ns:5, e: null,
	A: function(i) {
		$('sl_'+this.a).className = 'itemc';
		$('sl_'+i).className = 'itemca';
		this.a = i;
		this.e = $('slider');
		this.ST(i * this.e.clientWidth);
	},
	B: function() {
		if (this.a > 0)
			this.A(this.a-1);
	},
	F: function() {
		if (this.a < this.ns - 1)
			this.A(this.a+1);
	},
	tid: 0, px: 20, delay: 5,
	ST: function(p) {
		if (this.e.scrollLeft != p) {
			var dir = this.e.scrollLeft < p ? 1 : -1;
			var amt = Math.min(this.px, Math.abs(this.e.scrollLeft - p));
			this.e.scrollLeft += dir * amt;
			if (this.tid)
				clearTimeout(this.tid);
			if (this.e.scrollLeft != p)
				this.tid = setTimeout("SL.ST("+p+")", SL.delay);
		}
	}
}