// Horizontal ticker.

// LANGUAGE="JavaScript"

{

  var timerID = null;
  var timerRunning = false;
  var id,pause=0,position=0;
  var ScrollLength = 75;
  var TotMsg;
  var InBetween = "  - - -  ";

  TotMsg = MakeMessage(MsgListA, InBetween);

  var i,k;
  k=(ScrollLength/TotMsg.length)+1;
  for(i=0;i<=k;i++) TotMsg += InBetween + TotMsg;

  function RunHorizTicker(TheMessage, TheTicker)
  {
      TheTicker.value= TheMessage.substring(position,position+ScrollLength);
      if(position++==TheMessage.length) position=0;
      id=setTimeout("RunHorizTicker(TotMsg,document.form2.ticker)",1000/10); 
  }

  function action()
  {
      if(!pause)
      {
        clearTimeout(id);
        pause=1; 
      }
      else
      {
        RunHorizTicker(TheMessage, TheTicker);
        pause=0; 
      }
  }


  if (document.getElementById || document.all)
  {
    document.write("<center><form name='form2'><input type='text' name='ticker' size='75'></center><P>");
  }


}


