//Copyright: Christoph Bergmann
var max=0;
function textlist() {
  max = textlist.arguments.length;
  for (i=0; i<max; i++)
    this[i]=textlist.arguments[i];
}

var tl = new textlist();
var x=0; pos=0;
var l = 0;

function setTL(list) {
  tl = list;
  l=tl[0].length;
}

function textticker() {
  document.tickerform.tickerfeld.value=tl[x].substring(0,pos);
  if(pos++==l) {
    pos=0;
    setTimeout("textticker()",5000); // Pause nach jeder Zeile
    x++;
    if(x==max)
    x=0;
    l=tl[x].length;
  } else
    setTimeout("textticker()",10); // Pause nach der letzten Zeile
}

function doTicker() {
  document.write('<center><form name="tickerform">');
  document.write('<textarea class="ticker_textarea" cols="10" rows="13" type="text" name="tickerfeld" ');
  document.write('style="width:190px; heigth:300px; background-color:#FFFFFF; font-family:Arial; font-size:10pt; font-weight:normal; ');                // Schrift Gewicht (bold, lighter)
  document.write('color:#333399; text-align:center; border:0; " readonly></textarea>');
  document.write('</form></center>');
  textticker();
}

