AP.widget.autoScroll=function(scrollBodyId,scrollBoxId,lineHeight,blockHeight)
{
    this.obj=document.getElementById(scrollBodyId);
    this.box=document.getElementById(scrollBoxId);
    this.style=this.obj.style;
    this.defaultHeight=blockHeight;
    this.scrollUp=doScrollUp;
    this.stopScroll=false;
    this.obj.innerHTML+=this.obj.innerHTML;
    this.curLineHeight=0;
    this.lineHeight=lineHeight;
    this.curStopTime=0;
    this.stopTime=100;//停止时间也就是间隔时间
    this.speed=10;
    this.style.marginTop=lineHeight+"px";
    this.object=scrollBodyId+"Object";
    eval(this.object+"=this");
    setInterval(this.object+".scrollUp()",10);
    this.obj.onmouseover=new Function(this.object+".stopScroll=true");
    this.obj.onmouseout=new Function(this.object+".stopScroll=false")
};
function doScrollUp()
{
    if(this.stopScroll==true)
    {
    return
    }
    if(this.curLineHeight>=this.lineHeight)
    {
        this.curStopTime+=1;
        if(this.curStopTime>=this.stopTime)
        {
            this.curLineHeight=0;this.curStopTime=0}}
            else
            {
                this.curLineHeight+=10;
                this.style.marginTop=parseInt(this.style.marginTop)-10+"px";
                if(-parseInt(this.style.marginTop)>=this.defaultHeight)
                {
                    this.style.marginTop=0
                }
        }
}
;

