
	var content = html.split("<br>");
	var position = 0;

	up = new Image();
	up.src="images/up.gif";
	upgray = new Image();
	upgray.src="images/up_gray.gif";
	uplight = new Image();
	uplight.src="images/up_light.gif";
	down = new Image();
	down.src="images/down.gif";
	downgray = new Image();
	downgray.src="images/down_gray.gif";
	downlight = new Image();
	downlight.src="images/down_light.gif";

	var maxLines = 12;
	var scrollSpeed = 100;
	var upScrolling = false;
	var downScrolling = false;

	function keyPress( event )
	{
		if (!event)
			event = window.event;
		if ( event.keyCode==38 && !downScrolling )
			startScrollUp();
		if ( event.keyCode==40 && !upScrolling  )
			startScrollDown();
	}
	function keyRelease( event )
	{
		if (!event)
			event = window.event;
		if ( event.keyCode==38 )
			endScrollUp();
		if ( event.keyCode==40 )
			endScrollDown();
	}
	document.onkeypress = keyPress;
	document.onkeyup = keyRelease;

	function swapImage( nr,obj )
	{
		document.images[nr].src=obj.src;
	}

	function startScrollUp( )
	{
		if ( !upScrolling )
		{
			if ( position>0 )
			{
				upScrolling = true;
				ScrollUp( );
			}
		}
	}

	function endScrollUp( )
	{
		upScrolling = false;
		render( position );
	}

	function ScrollUp( )
	{
		if ( !upScrolling )
			return;
		if (position > 0)
		{
			position--;
			if ( position== 0 )
				upScrolling = false;
			render( position );
			window.setTimeout( ScrollUp, scrollSpeed);
		}
	}


	function startScrollDown( )
	{
		if ( !downScrolling )
		{
			if ( position+maxLines+1<content.length )
			{
				downScrolling = true;
				ScrollDown( );
			}
		}
	}

	function endScrollDown( )
	{
		downScrolling = false;
		render( position );
	}

	function ScrollDown( )
	{
		if ( !downScrolling )
			return;
		if ( position+maxLines+1<content.length )
		{
			position++;
			if ( position+maxLines+1==content.length )
				downScrolling = false;
			render( position );
			window.setTimeout( ScrollDown, scrollSpeed);
		}
	}

	function render( pos )
	{
		var i=pos;
		var cont = (i==0)?"<br>":"...<br>";
		for ( ; (i<pos+maxLines) && (i<content.length); i++)
		{
			cont += content[i]+ "<br>";
		}
		if ( pos+maxLines+1<content.length )
			cont += "...";
		document.all['load'].innerHTML = cont;
		if ( !upScrolling && !downScrolling )
		{
			if ( pos>0 )
				swapImage( upImg, up );
			else
				swapImage( upImg, upgray );
			if ( pos+maxLines+1<content.length )
				swapImage( downImg, down );
			else
				swapImage( downImg, downgray );
		}
		if ( upScrolling )
		{
			if ( pos>0 )
				swapImage( upImg, uplight );
			else
				swapImage( upImg, upgray );
			if ( pos+maxLines<content.length )
				swapImage( downImg, down );
			else
				swapImage( downImg, downgray );
		}
		if ( downScrolling )
		{
			if ( pos>0 )
				swapImage( upImg, up );
			else
				swapImage( upImg, upgray );
			if ( pos+maxLines+1<content.length )
				swapImage( downImg, downlight );
			else
				swapImage( downImg, downgray );
		}
	}
