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.nsscrollnews2.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==1) { clearTimeout(tid32); b2=0; scrollnews2(); } } function scrollnews2() { step = 1; if (is_firefox || is_opera){ step = 2; tid22= setTimeout("scrollnews2()",30); } else if (is_chrome){ tid22= setTimeout("scrollnews2()",20); } else{ if (IE7){ tid22= setTimeout("scrollnews2()",20); } else { tid22= setTimeout("scrollnews2()",20); } } if (NS4) { gesamtWeite = 0 - container2.clip.width; if (a2 < elm_height2) { a2 = a2 + 1; c2 = c2 + step; elm2.left = container2.clip.width + c2; } } if (NS6 || IE5) { elm2.style.left = container2.offsetWidth + 'px'; gesamtWeite = 0 - elm2.offsetWidth; if (elm2.offsetLeft > gesamtWeite) { a2 = a2 + 1; c2 = c2 + step; elm2.style.left = container2.offsetWidth - c2 + 'px'; } } if(elm2.offsetLeft < gesamtWeite) { clearTimeout(tid22);a2=0;c2=0;init2(); } }