var timer;

function scrollup(arg)
{
	if (loop)
	{
	var theCon = (ie)?eval('document.all.container'+arg+'.style'):eval('document.container'+arg+'');
	var theObj = (ie)?eval('document.all.text'+arg+'.style'):eval('document.container'+arg+'.document.text'+arg);
	
	if (ie) 
		{
		var theObjNoStyle=eval('document.all.text'+arg);
		var textHeight=eval('document.all["text'+arg+'"].offsetHeight');
		if (theObj.pixelTop > theCon.pixelHeight-textHeight)
			{
			theObj.pixelTop -= 5
			}
		} 
	else if (ns) 
			{
			if (theObj.top > theCon.clip.bottom-theObj.document.height)
			{
			theObj.top -= 5
			}
		}
	//window.alert(theObj.top)
	timer = setTimeout('scrollup('+arg+')',20)
	}
}

function scrolldown(arg)
{
	if (loop)
	{
	var theCon = (ie)?eval('document.all.container'+arg+'.style'):eval('document.container'+arg+'')
	var theObj = (ie)?eval('document.all.text'+arg+'.style'):eval('document.container'+arg+'.document.text'+arg)
	if (ie) 
		{
		if (theObj.pixelTop < 0)
			{
			theObj.pixelTop += 5
			}
		} 
	else if (ns) 
		{
		if (theObj.top < 0)
			{
			if (ns) theObj.top += 5
			}
		}
	timer = setTimeout('scrolldown('+arg+')',20)
	}
}
