// name:         Index.js
// description:  .
// author:       Norbert Jack Schrepf
// copyright:    Webdesign Schrepf, 2004
// last changed: February 10th 2004
// to do:  

// marquee functions

var bannertext = "";

function startMarquee (text) {
  var regex = /&ouml;/;
  text = text.replace(regex,"ö");

  regex = /&Ouml;/;
  text = text.replace(regex,"Ö");
  
  var regex = /&uuml;/;
  text = text.replace(regex,"ü");

  regex = /&Uuml;/;
  text = text.replace(regex,"Ü");
  
  var regex = /&auml;/;
  text = text.replace(regex,"ä");

  regex = /&Auml;/;
  text = text.replace(regex,"Ä");
  
  regex = /&szlig;/;
  text = text.replace(regex,"ß");
  
  bannertext = text + "    +++    ";

  while ( 120 / bannertext.length > 1) {
    bannertext = bannertext + text + "    +++    ";
  }
  scrollText ();
} 

function scrollText () {
  bannertext = bannertext.substr (1) + bannertext.substr (0,1);
  document.actual.text.value = bannertext;
  setTimeout ('scrollText ()', 300);
}
