// JavaScript Document

scrollStep=5
			
timerUp=""
timerDown=""

function toTop(id){
document.getElementById(id).scrollTop=0
}

function scrollDivDown(id){
clearTimeout(timerDown) 
document.getElementById(id).scrollTop+=scrollStep
timerDown=setTimeout("scrollDivDown('"+id+"')",2)
}

function scrollDivUp(id){
clearTimeout(timerUp)
document.getElementById(id).scrollTop-=scrollStep
timerUp=setTimeout("scrollDivUp('"+id+"')",2)
}

/* test */

function scrollDivLeft(id){
clearTimeout(timerDown) 
document.getElementById(id).scrollLeft+=scrollStep
timerDown=setTimeout("scrollDivLeft('"+id+"')",2)
}

function scrollDivRight(id){
clearTimeout(timerUp)
document.getElementById(id).scrollLeft-=scrollStep
timerUp=setTimeout("scrollDivRight('"+id+"')",2)
}

/* fine test */

function toBottom(id){
document.getElementById(id).scrollTop=document.getElementById(id).scrollHeight
}

function stopMe(){
clearTimeout(timerDown) 
clearTimeout(timerUp)
}
