defaultStep = 1;
step = defaultStep;

function resetDiv(id) {
  toTop(id);
  toLeft(id);
}


function scrollDivDown(id){
clearTimeout(timerDown)
document.getElementById(id).scrollTop+=step
timerDown=setTimeout("scrollDivDown('"+id+"')",10)
}

function scrollDivLeft(id) {
clearTimeout(timerLeft)
document.getElementById(id).scrollLeft-=step
timerLeft=setTimeout("scrollDivLeft('"+id+"')",10)

}

function scrollDivRight(id) {
clearTimeout(timerRight)
document.getElementById(id).scrollLeft+=step
timerRight=setTimeout("scrollDivRight('"+id+"')",10)
}


function scrollDivUp(id){
clearTimeout(timerUp)
document.getElementById(id).scrollTop-=step
timerUp=setTimeout("scrollDivUp('"+id+"')",10)
}

timerDown = "";
timerLeft = "";
timerRight = "";
timerUp = "";


function stopMe(){
clearTimeout(timerDown)
clearTimeout(timerLeft)
clearTimeout(timerRight)

clearTimeout(timerUp)
}

function toBottom(id){
document.getElementById(id).scrollTop=document.getElementById(id).scrollHeight
}

function toLeft(id) {
document.getElementById(id).scrollLeft=0
}

function toPoint(id){
document.getElementById(id).scrollTop=100
}

function toRight(id) {
document.getElementById(id).scrollRight=0
}

function toTop(id){
document.getElementById(id).scrollTop=0
}


//document.onmousemove=function(){stopMe()}
