var timerUp,timerDown;
var speedup=0;
function scrollUp(id,speed) {					
	speed=(speed)?speed:3;
	speed+=speedup;
	speedup+=0.01;		
	document.getElementById(id).scrollTop-=speed;	
	timerUp=setTimeout("scrollUp('"+id+"')",10);
}
function scrollDown(id,speed) {	    
	speed=(speed)?speed:3;	
	speed+=speedup;
	speedup+=0.01;		
	document.getElementById(id).scrollTop+=speed;	
	timerDown=setTimeout("scrollDown('"+id+"')",10);
}
function jumpTop(id) {	    
	document.getElementById(id).scrollTop=0;		
}
function jumpBottom(id) {	
    var obj=document.getElementById(id);
	obj.scrollTop=obj.scrollHeight;	
}
function sLeft(id) {			
	document.getElementById(id).scrollLeft-=3;	
	timerUp=setTimeout("sLeft('"+id+"')",10);
} 
function sRight(id) {	
    document.getElementById(id).scrollLeft+=3;
	timerDown=setTimeout("sRight('"+id+"')",10);
}
function scrollStop(){
  if (timerUp) clearTimeout(timerUp); 
  if (timerDown) clearTimeout(timerDown);
  speedup=0;  
}