scrollSteps = 40
timer=""
function scrollWin(anchorID)
	{
		id=anchorID.substring(anchorID.indexOf("#")+1,anchorID.length)
		clearTimeout(timer)
		if  (document.body.scrollTop <= document.getElementById(id).offsetTop-scrollSteps)
			{
				window.scrollBy(0,scrollSteps)
				timer=setTimeout("scrollWin('"+id+"')",10)
				if  (document.body.scrollTop>(document.body.scrollHeight-document.body.clientHeight)-scrollSteps)
					{
						clearTimeout(timer)
						document.body.scrollTop=document.body.scrollHeight-document.body.clientHeight
					}
		    }
		else
			{
				if  (document.body.scrollTop >= document.getElementById(id).offsetTop+scrollSteps)
					{
						window.scrollBy(0,-scrollSteps)
						timer=setTimeout("scrollWin('"+id+"')",10)
					}
				else
					{
						clearTimeout(timer)
						document.body.scrollTop=document.getElementById(id).offsetTop
					}
			}
			return false
	}
function toTop()
	{
		clearTimeout(timer)
		if  (document.body.scrollTop >= scrollSteps)
			{
				window.scrollBy(0,-scrollSteps)
				timer=setTimeout("toTop()",10)
			}
		else
			{
				clearTimeout(timer)
				document.body.scrollTop=0
			}
		return false
	}
