var right = true;
var tID1 = null;

function scrollBanners() {
	var index = $('sps').offsetWidth - 855;
	
	if($('sps').offsetLeft > -(index) && right) {
		$('sps').style.left = ($('sps').offsetLeft - 1)+'px';
	}
	else {
		right = false;
	}
	
	if($('sps').offsetLeft < 0 && right == false) {
		$('sps').style.left = ($('sps').offsetLeft + 3)+'px';
	}
	else {
		right = true;
		
	}
	tID1 = setTimeout("scrollBanners()", "50");
}

function pauseBanners(what) {
	if(what == 'pause') {
		clearTimeout(tID1);
	}
	else {
		tID1 = null;
		scrollBanners();
	}
}

