<!--
scrollSteps = 430
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 bottom of page reached before anchor point
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()",5)
}
else{
clearTimeout(timer)
document.body.scrollTop=420
}

return false

}

// -->
