function startDiv(dir)
{
	y = 1; //amount to jump by
	delay = 10; //speed in milliseconds
	moving = window.setInterval("scrollDiv("+y+","+dir+")",delay);
	return true;
}
function startDiv2(dir)
{
	y = 1; //amount to jump by
	delay = 10; //speed in milliseconds
	moving = window.setInterval("scrollDiv("+y+","+dir+")",delay);
	return true;
}
function speedDiv(dir)
{
	y = 5; //amount to jump by
	delay = 1; //speed in milliseconds
	speedmoving = window.setInterval("scrollDiv("+y+","+dir+")",delay);
	return true;
}
function speedDiv2(dir)
{
	y = 5; //amount to jump by
	delay = 1; //speed in milliseconds
	speedmoving = window.setInterval("scrollDiv("+y+","+dir+")",delay);
	return true;
}
function scrollDiv(y,dir)
{
	if (dir == 1)
	{
		document.getElementById("mydiv").scrollLeft -= y;
	}
	else
	{
		document.getElementById("mydiv").scrollLeft += y;
	}
}
function scrollDiv2(y,dir)
{
	if (dir == 1)
	{
		document.getElementById("mydiv").scrollLeft -= y;
	}
	else
	{
		document.getElementById("mydiv").scrollLeft += x;
	}
}
function stopSpeedDiv()
{
	if (speedmoving)
	{
		window.clearInterval(speedmoving);
	}
}
function stopSpeedDiv2()
{
	if (speedmoving)
	{
		window.clearInterval(speedmoving);
	}
}
function stopDiv()
{
	if (moving)
	{
		window.clearInterval(moving);
	}
}
function stopDiv2()
{
	if (moving)
	{
		window.clearInterval(moving);
	}
}