function moveleft()
{
	var crossobj= document.getElementById("Scroll")
	var ScrollWidth =crossobj.offsetWidth
	var ContentWidth= document.getElementById("Container").offsetWidth;
	var speed = 4;
	if (isNaN(parseInt(crossobj.style.left)) == true) 
	{
		crossobj.style.left = "0px";
	}
	if (window.moveLeftvar) clearTimeout(moveLeftvar)
	if (ScrollWidth - ContentWidth > 0)
	{
		if (parseInt(crossobj.style.left) < 0)
		{
			if (parseInt(crossobj.style.left)>=(ScrollWidth*(-1)-ContentWidth))
				crossobj.style.left=parseInt(crossobj.style.left)+speed+"px";
				moveLeftvar=setTimeout("moveleft()",20);
		}
	}
}

function moveright()
{
	var crossobj= document.getElementById("Scroll");
	var ScrollWidth =crossobj.offsetWidth;
	var ContentWidth= document.getElementById("Container").offsetWidth;
	var speed = -4;
	if (window.moveRightvar) clearTimeout(moveRightvar)
	if (isNaN(parseInt(crossobj.style.left)) == true) 
	{
		crossobj.style.left = "0px";
	}
	if (ScrollWidth - ContentWidth > 0)
	{
		if ((parseInt(crossobj.style.left) * -1) <= (ScrollWidth - ContentWidth))
		{
			crossobj.style.left=(parseInt(crossobj.style.left) + speed)+"px"
			moveRightvar=setTimeout("moveright()",20)
		}
		else
		{
			clearTimeout(moveRightvar)
		}
	}
}

function stopscroll()
{
	if (window.moveLeftvar) clearTimeout(moveLeftvar)
	if (window.moveRightvar) clearTimeout(moveRightvar)
}
