
var intTop;
var intTextHeight = document.getElementById("scroll_inner").offsetWidth;
var intDivHeight = parseInt(document.getElementById("scroll_outer").style.width);
//alert(intTextHeight)
intTextHeight =  intTextHeight - intDivHeight;
intTextHeight = -(intTextHeight);

function scroll(intDir)
{
	intTop = parseInt(document.getElementById("scroll_inner").style.left);
	//alert(intTop)
	if(intDir==1 && intTop<0)
		document.getElementById("scroll_inner").style.left = intTop +1;
	
	if(intDir==-1 && intTop>intTextHeight)
		document.getElementById("scroll_inner").style.left = intTop -1;
}

function startscroll(intDir) 
{
	//alert(intDir)
	timer1 = window.setInterval("scroll(" + intDir + ")", 5);
}

function stopscroll() 
{
	window.clearInterval(timer1);
}

