var px = 10;//mehr=schneller
var timer;
function scrollDenDiv(val){
clearTimeout(timer);
d=document.getElementById('inhalt')
y=d.scrollTop;
if(val==1)y-=px;
if(val==2)y+=px;
if(y<=d.scrollHeight-d.offsetHeight+px&&y>=0-px){
d.scrollTop=y;
timer=setTimeout('scrollDenDiv('+val+')',50);
}
if(y<0||y>d.scrollHeight-d.offsetHeight){
clearTimeout(timer);
}
}

var px = 10;//mehr=schneller
var timer;
function scrollDenDiv2(val){
clearTimeout(timer);
d=document.getElementById('inhalt2')
y=d.scrollTop;
if(val==1)y-=px;
if(val==2)y+=px;
if(y<=d.scrollHeight-d.offsetHeight+px&&y>=0-px){
d.scrollTop=y;
timer=setTimeout('scrollDenDiv2('+val+')',50);
}
if(y<0||y>d.scrollHeight-d.offsetHeight){
clearTimeout(timer);
}
}

var px = 10;//mehr=schneller
var timer;
function scrollDenDiv3(val){
clearTimeout(timer);
d=document.getElementById('inhalt3')
y=d.scrollTop;
if(val==1)y-=px;
if(val==2)y+=px;
if(y<=d.scrollHeight-d.offsetHeight+px&&y>=0-px){
d.scrollTop=y;
timer=setTimeout('scrollDenDiv3('+val+')',50);
}
if(y<0||y>d.scrollHeight-d.offsetHeight){
clearTimeout(timer);
}
}

