var scrollerDelay='5000';
var scrollerSpeed=15; 
var scrollerSpeedB=scrollerSpeed;
var scrollerHeight=82;
var divNum=1;
var scrollId=0;

function scrollerStart()
{  
    document.getElementById('scrollerContainer').style.height=scrollerHeight + "px";
    activeDiv="scroller" + divNum.toString();
    obj=document.getElementById(activeDiv);
    document.getElementById(activeDiv).style.visibility="visible";
    document.getElementById("scrollerPad" + divNum.toString()).style.visibility="visible";
    currentTop=obj.style.top;
    obj.style.height=scrollerHeight + "px";
    if(!currentTop){currentTop=scrollerHeight + "px";}
    currentTop=currentTop.replace("px","");
    cTop=parseInt(currentTop) - 1;
    
    if(cTop==0)
    {
        obj.style.top="0px";
        pauseScroller(); return;
    }
    obj.style.top=(cTop) + "px";
    if(cTop<(-scrollerHeight))
    {
        //setup next one
        obj.style.top=scrollerHeight + "px";
        obj.style.height=scrollerHeight + "px";
        divNum++;
        activeDiv="scroller" + divNum.toString();
        obj=document.getElementById(activeDiv);
        if(obj==null)
        {
            divNum=1;
            obj=document.getElementById("scroller1");
        }
        currentTop=obj.style.top;
        if(!currentTop){currentTop=scrollerHeight + "px";}
    }
    //alert(cTop);
    //document.getElementById('debug').innerHTML="DEBUG NOTE: " + divNum + ":" + obj.style.top + ":" + activeDiv;
    scrollId=setTimeout('scrollerStart()',scrollerSpeed);
}

function pauseScroller()
{
    //document.getElementById('debug').innerHTML="DEBUG NOTE: PAUSE";
    scrollId=setTimeout('scrollerStart()',scrollerDelay);
}