function init() { if(b<10) { b=b+1; } tid3=setTimeout("init()",2); if(b==10) {clearTimeout(tid3);b=0; if(NS4) { scrollElm = document.nsscrollnews.document.nsnews; scrollElm.top = 0; } if(IE5 || NS6) { scrollElm = document.getElementById("news"); container = document.getElementById("scrollnews"); scrollElm.style.top = 0; container.style.top = 0; } scrollnews(); } } function scrollnews() { if(NS4) { scrollElm = document.nsscrollnews.document.nsnews; scrollElm_height = scrollElm.clip.height if(a f+scrollElm_height){ clearTimeout(tid);a=0;c=0;init(); } } if(NS4){ if(c==-scrollElm_height-step){ clearTimeout(tid);a=0;c=0;init(); } } if(a==step){ clearTimeout(tid);a=0;stopp(); } } i=0; function stopp() { if(i<10) { i=i+1; } tid2=setTimeout("stopp()",180); if(i==10) {clearTimeout(tid2);i=0;scrollnews()} }