timerID = null;

function start()
{
	ScrollInit();
	ScrollRight(2);
}
        
function ScrollLeft(speed)
{
	if(document.getElementById)
	{
		if(parseInt(txt.style.left) < 0)
		{
			txt.style.left = parseInt(txt.style.left) + speed + "px";
			timerID = setTimeout("ScrollLeft("+speed+")",50)
		}
		else
		{
		 ScrollRight(2);
		}
	}
}

function ScrollRight(speed)
{
	if(document.getElementById)
	{
		if(parseInt(txt.style.left) > cnt.offsetWidth - txt.offsetWidth)
		{
			txt.style.left = parseInt(txt.style.left) - speed + "px";
			timerID = setTimeout("ScrollRight("+speed+")",50)
		}
		else
		{
			ScrollLeft(2);
		}		
	}
}

function ScrollStop()
{
	if(document.getElementById)
	{
		clearTimeout(timerID);
	}
}

function ScrollInit()
{
	if (document.getElementById)
	{
		cnt = document.getElementById("ContOut");
		txt = document.getElementById("ContIn");
		txt.style.left = 0;
	}
}
