// JavaScript Document
var step = 1;
var left_interval;

ObjScroll = new Object();

ObjScroll.left = 0;

function scroll_ (dir, nameobj) {
	is_left = true;
	ObjScroll.obj = document.getElementById(nameobj);
	left_interval = window.setInterval("ObjScroll.moveLeft()", 250);
	//var str = "";
	//for(i in obj) str += "\t" + i;
	//alert(str);
	//alert(obj.style.left);
	//if(dir == 'r') {
	//	if(obj.style.left > 5) obj.style.left -= step;
	//} else {
	//	obj.style.left += step;
	//}
	//step += step;
}

ObjScroll.moveLeft = function () {
	//obj.scrollLeft += step;
	this.left += step;
	//alert("left: " + this.left);
	this.obj.style.left = this.left + "px";
	//alert("px : " + this.obj.style.left);
	step += step;
	//alertAll(this.obj.style);
}

function resetStep() {
	step = 1;
	clearInterval(left_interval);
}

function alertAll(obj) {
	var str = "";
	for(var it in obj) {
		str += it + "\t";
	}
	alert(str);
}
