var speed=20
var step=2
var top="#top"
var Start="Start"
var Stop="Stop"
var Show="Show"
var x,scroll,divW,sText=""
function onclickIE(idAttr,handler,call){if((document.all)&&(document.getElementById)){idAttr[handler]=new Function(call)}}
function startScroller(){document.getElementById('tag').style.whiteSpace='nowrap'
pw=document.getElementById('tag').offsetWidth;lw=document.getElementById('scroller').offsetLeft;x-=step
if(x<(lw-pw)){x=divW}
document.getElementById('tag').style.left=x+'px'
scroll=setTimeout('startScroller()',speed)}
function debugPw(){}
function initScroller(){if(document.getElementById&&document.createElement&&document.body.appendChild){divW=document.getElementById('scroller').offsetWidth
document.getElementById('scroller').style.overflow='hidden';x=divW
document.getElementById('tag').style.position='relative'
document.getElementById('tag').style.left=divW+'px'
var ss=document.getElementById('tag').childNodes
for(i=0;i<ss.length;i++){sText+=ss[i].nodeValue+" "}
debugPw();scroll=setTimeout('startScroller()',speed)}}
function addLoadEvent(func){if(!document.getElementById|!document.getElementsByTagName)return
var oldonload=window.onload
if(typeof window.onload!='function'){window.onload=func;}else{window.onload=function(){oldonload()
func()}}}
