// Sets a hidden variable to how many pixels to scroll down to when the 
// page reloads.
function SaveDistanceFromTop()
{
	if (navigator.appName == 'Netscape')
	{
		document.Form1.distanceFromTop.value = self.pageYOffset;
	}
	else
	{
		document.all.distanceFromTop.value = document.body.scrollTop;
	}
}
	
// Sets the amount of pixels to scroll down to. 
// Use with getDistanceFromTop().
function MoveDistanceFromTop()
{
	if (navigator.appName == 'Netscape')
	{
		scroll(0, document.Form1.distanceFromTop.value);
	}
	else
	{
		// if the user has already started scrolling before the page has finished 
		// loading, then don't scroll
		if (document.body.scrollTop == 0)
		{
			scroll(0, document.all.distanceFromTop.value);
		}
	}
}
