NS4 = (document.layers) ? true : false; IE4 = (document.all && !document.getElementById) ? true : false; IE5 = (document.all && document.getElementById) ? true : false; NS6 = (!document.all && document.getElementById) ? true : false; b2 = 0; a2 = 0; c2 =0;; //element index top; if(IE5 || NS6) { elm2 = document.getElementById("news2"); container2 = document.getElementById("scrollnews2"); } if(NS4) { container2 = document.nsscrollnews2; elm2 = document.nsscrollnews.document.nsnews2; elm2.left = container2.clip.width; } function init2() { if(b2<10) { b2=b2+1; } tid32=setTimeout("init2()",1); if(NS4) { elm2.left = container2.clip.width; } if(IE5 || NS6) { elm2.style.left = container2.offsetWidth; } a2=0; if(b2==10) { clearTimeout(tid32); b2=0; scrollnews2(); } } function scrollnews2() { step=25; if(NS4) { elm_height2 = elm2.clip.width + container2.clip.width; if(a2 < elm_height2) { a2=a2+1; c2=c2-1; } elm2.left = container2.clip.width +c2; } if(NS6 || IE5) { elm2.style.left = container2.offsetWidth; elm_height2 = elm2.offsetWidth + container2.offsetWidth; if(a2 < elm_height2) { a2=a2+1; c2=c2-0.5; } elm2.style.left = container2.offsetWidth + c2; } tid22= setTimeout("scrollnews2()",1); if(a2 == elm_height2) { clearTimeout(tid22);a2=0;c2=0;init2(); } } i2=0; function stopp2() { if (i2<10) { i2=i2+1; } tid222=setTimeout("stopp2()",50); if (i2==10) { clearTimeout(tid222); i2=0; scrollnews2(); } }