var scrollingObj = null;
var scrollSpeed = 100;
var scrollMove = 0;
var timeOut = null;

function Scroll(move)
{
	scrollMove = move;
	//if (!scrollingObj) return false;
	innerScrollingObj = document.getElementById('innerBox');
	outerScrollingObj = document.getElementById('outerBox');
	var newTop = (scrollMove + parseInt(innerScrollingObj.style.top));
	
	if ((newTop + innerScrollingObj.offsetHeight) < parseInt(outerScrollingObj.style.height))
	{ 
		ceaseScroll();
		return false;
	}
	
	if (newTop > 0)
	{
		ceaseScroll();
		return false;
	}
	
	innerScrollingObj.style.top = newTop+"px";
	
	if (timeOut) clearTimeout(timeOut);
	timeOut = setTimeout('Scroll(scrollMove)',scrollSpeed);
}

function ceaseScroll()
{
	scrollingObj = null;
	scrollMove = 0;
	if (timeOut) clearTimeout(timeOut);
}

