var tickertapeform
speed=128
len=75
space="   "
tid = 0;
message=""
c= -len;

function move() {
  cend=Math.min(c+len,message.length)
  if (c <0)
    cstart=0
  else
    cstart=c
  if (c < 0)
    f.scroll.value=space.substring(0,-c) + message.substring(cstart,cend)
  else
    f.scroll.value=message.substring(cstart,cend)
  c = c +1;
  if (c == message.length ) c = -len;
  tid=window.setTimeout("move()",speed);
}
 
function start(x) {
  f=x
  tid=window.setTimeout("move()",speed);
}
 
function cleartid() {
  window.clearTimeout(tid);
}
 
// for some reason on some pages this crashes netscape
function ticker(m,l,s)
{
message=m
len=l
speed=s
document.write('<FORM name=tickertapeform><input name=scroll style="width:97%;border-width:0px;background-color:#FFCFE7;padding:3px;" value=""></FORM>')
start(document.tickertapeform);
}

// for some reason on some pages this crashes netscape
function ticker(m)
{
message=m
len=75
speed=128
document.write('<FORM name=tickertapeform><input name=scroll style="width:97%;border-width:0px;background-color:#FFCFE7;padding:3px;"></FORM>');
start(document.tickertapeform);
}

