
function toTop(id){
document.getElementById(id).scrollTop=0
}

defaultStep=5
step=defaultStep

scrollMin=110
scrollMax=530

function scrollDivDown(id){
document.getElementById(id).scrollTop+=step
timerDown=setTimeout("scrollDivDown('"+id+"')",10);


scrollAlto=scrollMax-scrollMin;
divAlto=document.getElementById(id).scrollHeight;
scrollPaso=(divAlto/scrollAlto)-(scrollAlto/450);
pos=document.getElementById(id).scrollTop/scrollPaso+scrollMin;
document.getElementById("indicador_scroll_body").style.top = pos;

}

function scrollDivUp(id){
document.getElementById(id).scrollTop-=step
timerUp=setTimeout("scrollDivUp('"+id+"')",10)

scrollAlto=scrollMax-scrollMin;
divAlto=document.getElementById(id).scrollHeight;
scrollPaso=(divAlto/scrollAlto)-(scrollAlto/450);
pos=document.getElementById(id).scrollTop/scrollPaso+scrollMin;
document.getElementById("indicador_scroll_body").style.top = pos;

}

function scrollDivSet(id){
scrollAlto=scrollMax-scrollMin;
divAlto=document.getElementById(id).scrollHeight;
scrollPaso=(divAlto/scrollAlto)-(scrollAlto/450);
pos=document.getElementById(id).scrollTop/scrollPaso+scrollMin;
document.getElementById("indicador_scroll_body").style.top = pos;	
}

function toBottom(id){
document.getElementById(id).scrollTop=document.getElementById(id).scrollHeight
}

function toPoint(id){
document.getElementById(id).scrollTop=100
}

