/* ----- Scrollfunktion ------- */
tempo=5
ebene=document.getElementById("scrolltext")
ebene.style.top=0
function rauf(){
if (parseInt(ebene.style.top)<=0){
ebene.style.top=parseInt(ebene.style.top)+tempo;
raufwdh=setTimeout("rauf()",20);
/*if (parseInt(ebene.style.top)>=(scrollhoehe*(-1)+28)) {
ebene.style.top=parseInt(ebene.style.top)-tempo
raufwdh=setTimeout("rauf()",20)*/
}
}

function runter(){
if (parseInt(ebene.style.top)>=(scrollhoehe*(-1)+28)) {
ebene.style.top=parseInt(ebene.style.top)-tempo;
runterwdh=setTimeout("runter()",20);
/* if (parseInt(ebene.style.top)<=0){
ebene.style.top=parseInt(ebene.style.top)+tempo
runterwdh=setTimeout("runter()",20)*/
}
}

function schnellerrauf(){
if (parseInt(ebene.style.top)<=0){
ebene.style.top=parseInt(ebene.style.top)+(tempo*2);
raufwdh=setTimeout("schnellerrauf()",20);
/* if (parseInt(ebene.style.top)>=(scrollhoehe*(-1)+30)) {
ebene.style.top=parseInt(ebene.style.top)-(tempo*2)
raufwdh=setTimeout("schnellerrauf()",20) */
}
}

function schnellerrunter(){
if (parseInt(ebene.style.top)>=(scrollhoehe*(-1)+30)) {
ebene.style.top=parseInt(ebene.style.top)-(tempo*2);
runterwdh=setTimeout("schnellerrunter()",20);
/* if (parseInt(ebene.style.top)<=0){
ebene.style.top=parseInt(ebene.style.top)+(tempo*2)
runterwdh=setTimeout("schnellerrunter()",20)*/
}
}

function ganzrauf(){
ebene.style.top=0;
//ebene.style.top=scrollhoehe*(-1)+28
}

function ganzrunter(){
ebene.style.top=scrollhoehe*(-1)+28;
//ebene.style.top=0
}

function ebenenhoehe(){
scrollhoehe=ebene.offsetHeight;
}
window.onload=ebenenhoehe;