// JavaScript Document

window.onload = function()
{	
	loadScroller();
}

function loadScroller()
{
	
	if ($("content"))
	{

		crossobj=$("content");
		contentheight=crossobj.offsetHeight;

		if (contentheight > 200)
		{

			Event.observe($("upArrow"), "mouseover", function()
			{
				moveup();
			});
			Event.observe($("upArrow"), "mouseout", function()
			{
			clearTimeout(moveupvar);
			});
			Event.observe($("downArrow"), "mouseover", function()
			{
				movedown();
			});
			Event.observe($("downArrow"), "mouseout", function()
			{
			clearTimeout(movedownvar);
			});
		}
	}
}

//specify speed of scroll (greater=faster)

var speed=2;

function movedown(){
	if (parseInt(crossobj.style.top)>=(contentheight*(-1)+180))
	{
		crossobj.style.top=parseInt(crossobj.style.top)-speed+"px";
		crossobj.top-=speed;
		
	}
	movedownvar=setTimeout("movedown()",20);
}

function moveup(){
	if (parseInt(crossobj.style.top)<=0)
	{
		crossobj.style.top=parseInt(crossobj.style.top)+speed+"px";
		crossobj.top+=speed;
		
	}
	moveupvar=setTimeout("moveup()",20);
}