/* 
 * Created on : 2009/6/12
 */
var timerScrolling = 0;
var timeoutScrolling = 50;
var pixelScrolling = 1;
var idScrolling;
function content2Left(scrollerId){
    clearTimeout(timerScrolling);
	var scroller = document.getElementById(scrollerId);
	if (scroller.scrollLeft + pixelScrolling > scroller.scrollWidth - scroller.offsetWidth) {
		scroller.scrollLeft = 0;
	}
    scroller.scrollLeft += pixelScrolling;
    timerScrolling = setTimeout("content2Left('"+scrollerId+"')", timeoutScrolling);
	idScrolling = scrollerId;
}

function stopContentScrolling(){
    clearTimeout(timerScrolling);
	document.getElementById(idScrolling).scrollLeft = 0;
}

