function initPage() { try { oMyDiv = document.getElementById( "myDiv" ); isScrolling = false; DX = 50; DELAY = 100; var before = 0; var helper = oMyDiv.scrollLeft += DX; var after = oMyDiv.scrollLeft; if (after == 0) { arrows = document.getElementById( "menuscrollarrows" ); arrows.style.display='none'; } oMyDiv.scrollLeft = 0; } catch (e) { } }; function scroll2Left( evt ) { if ( evt ) isScrolling = true; if ( isScrolling ) { if ( oMyDiv.scrollLeft > 0 ) { oMyDiv.scrollLeft -= DX; window.setTimeout( "scroll2Left()", DELAY ); }; }; }; function scroll2Right( evt ) { if ( evt ) isScrolling = true; if ( isScrolling ) { oMyDiv.scrollLeft += DX; window.setTimeout( "scroll2Right()", DELAY ); }; }; function stopScrolling() { isScrolling = false; };