// JavaScript Document


function startDiv(dir)
{
	y = 1; //amount to jump by
	x = 0;
	delay = 10; //speed in milliseconds
	moving = window.setInterval("scrollDiv("+x+","+y+","+dir+")",delay);
	return true;
}
function speedDiv(dir)
{
	y = 5; //amount to jump by
	x = 0;
	delay = 1; //speed in milliseconds
	speedmoving = window.setInterval("scrollDiv("+x+","+y+","+dir+")",delay);
	return true;
}
function scrollDiv(x,y,dir)
{
	if (dir == 1)
	{
		self.frames["myiframe"].scrollBy (x,-y);
	}
	else
	{
		self.frames["myiframe"].scrollBy (x,y);
	}
}
function stopSpeedDiv()
{
	if (speedmoving)
	{
		window.clearInterval(speedmoving);
	}
}
function stopDiv()
{
	if (moving)
	{
		window.clearInterval(moving);
	}
}
