// oli's wunderwuziscript

var scroll=false;

// moves an element up an amount of pixels until it reached min.
function moveContentUp(element,amount,min,max)
	{
	posStr=document.getElementById(element).style.top;
	if (posStr=="")
		{pos=0;} else {pos=parseInt(posStr);}
	if (pos>min)
		{pos=pos-amount;}
	document.getElementById(element).style.top=pos+"px";
	// this next two lines loop to this same script, if scroll is true.
	// the 30 on the end is the interval:
	// the function is repeated every 30 miliseconds.
	// if you want the scrolling faster or slower, change that number.
	if (scroll)
		window.setTimeout("moveContentUp('"+element+"',"+amount+","+min+","+max+")",60);
	}

// moves an element down an amount of pixels until it reached max.
function moveContentDown(element,amount,min,max)
	{
	posStr=document.getElementById(element).style.top;
	if (posStr=="")
		{pos=0;} else {pos=parseInt(posStr);}
	if (pos<max) 
		{pos=pos+amount;}
	document.getElementById(element).style.top=pos+"px";
	// this next two lines loop to this same script, if scroll is true.
	// the 30 on the end is the interval:
	// the function is repeated every 30 miliseconds.
	// if you want the scrolling faster or slower, change that number.
	if (scroll)
		window.setTimeout("moveContentDown('"+element+"',"+amount+","+min+","+max+")",60);
	}

