

//for div
defaultStep=1 
step=defaultStep 

function scrollDivDown(id){
//alert(id)
clearTimeout(timerDown) 
document.getElementById(id).scrollTop+=step 
timerDown=setTimeout("scrollDivDown('"+id+"')",10)

} 

function scrollDivUp(id){
//alert(id)
clearTimeout(timerUp)
document.getElementById(id).scrollTop-=step 
timerUp=setTimeout("scrollDivUp('"+id+"')",10)
} 

timerDown="" 
timerUp="" 

function stopMe(){
clearTimeout(timerDown) 
clearTimeout(timerUp)
}


//left & right
defaultStep=1 
mystep=defaultStep

//function ScrollDiveLeft(id){
////alert(id)
//clearTimeout(timerleft) 
//document.getElementById(id).scrollLeft+=mystep 
////alert(document.getElementById(id).scrollLeft)
//timerleft=setTimeout("ScrollDiveLeft('"+id+"')",10)
//} 

//function ScrollDiveRight(id){

//clearTimeout(timerright)
//document.getElementById(id).scrollLeft-=mystep 
//timerright=setTimeout("ScrollDiveRight('"+id+"')",10)

//} 
function ScrollDiveLeft(id){
//alert(id)
clearTimeout(timerDown) 
document.getElementById(id).scrollLeft+=step 
timerDown=setTimeout("ScrollDiveLeft('"+id+"')",10)

} 

function ScrollDiveRight(id){
//alert(id)
clearTimeout(timerUp)
document.getElementById(id).scrollLeft-=step 
timerUp=setTimeout("ScrollDiveRight('"+id+"')",10)
} 

timerleft="" 
timerright="" 

function stopMee(){
clearTimeout(timerleft) 
clearTimeout(timerright)
}

document.onmousemove=function(){stopMe()}
document.onmousemove=function(){stopMee()}



