// widget scroll

var currenttype = "up";
var toppos = 80;
var highest = 70;
var lowest = 0;

function scrollit(){
if (toppos <= 0) {scrolldown()} else {scrollup()} 
}

function scrolldown(){
document.getElementById('innerbox').style.top=toppos + "px";
toppos=toppos+10;
if (toppos>highest) {toppos = 80; return false}
t=setTimeout("scrolldown()",30);
}

function scrollup(){
document.getElementById('innerbox').style.top=toppos + "px";
toppos=toppos-10;
if (toppos<lowest) {toppos = 0; return false}
t=setTimeout("scrollup()",30);
}
