//Specify the marquee's width (in pixels)
var marqueewidth=330;
//Specify the marquee's height (in pixels, pertains only to NS)
var marqueeheight=20;
//Specify the marquee's scroll speed (larger is faster)
var speed=4;
//Specify the marquee contents
var marqueecontents='<font face="Arial">Welcome to Tiscali. There are currently no service problems.</font>';

function regenerate(){
  window.location.reload();
}
function regenerate2(){
  if (!document.all || document.layers){
   // setTimeout("window.onresize=regenerate",450);
    initializemarquee();
  }
  if(window._setup) {
    _setup();
  }
}

function initializemarquee(){
  document.marquee01.document.marquee02.document.write('<nobr>'+marqueecontents+'</nobr>');
  document.marquee01.document.marquee02.document.close();
  thelength=document.marquee01.document.marquee02.document.width;
  scrollit();
}

function scrollit(){
  if (document.marquee01.document.marquee02.left>=thelength*(-1)){
    document.marquee01.document.marquee02.left-=speed;
    setTimeout("scrollit()",100);
  }
  else{
    document.marquee01.document.marquee02.left=marqueewidth;
    scrollit();
  }
}

function startmarquee(msg,sp,w,h) {
  msg = msg ? msg : "No message";
  sp = sp ? sp : 4;
  w = w ? w : 200;
  h = h ? h : 10;
  marqueecontents = msg;
  speed = sp;
  marqueewidth= w;
  marqueeheight=h;

  if (document.all) {
    document.write('<marquee scrollAmount='+speed+' style="width:'+marqueewidth+'" id="ms">'+marqueecontents+'</marquee>');
  } else if(document.layers) {
    document.write('<ilayer width='+marqueewidth+' height='+marqueeheight+' name="marquee01">');
    document.write('<layer name="marquee02"></layer>&nbsp;');
    document.write('</ilayer>');
  } else {
    document.write(marqueecontents);
  }

}

//window.onload=regenerate2;