var speed = 30;	//Scroll-hastighed
var pause = 600;	//Pause inden teksten gentages
var stop = 4000;	//Tid teksten bliver stående 

var textList = new Array();
//Tekster - Angiv mindst en
textList[0] = "PolArt gives an overview of polish stamps in my own collection.";	
textList[1] = "Additionally PolArt gives some historical background on Poland.";		
textList[2] = "PolArt can render support in clossing gaps in Your collection.";	
textList[3] = "I heartly welcome You to PolArt and hope You will spend good time here.";
textList[4] = "Villy Boel Jensen, Szczecin, Poland.";

var n = 0;
var i = 0;
var j = 0;
var space = 150; 
if (navigator.appName=='Microsoft Internet Explorer') space = 150;
if (navigator.appName=='Netscape') space=250;

function doStatusTick(){
i = 0;
j = 0;
if (n==textList.length) n=0;

if (textList[n]!=null) {
	text=textList[n];
	while (j++<space) {text=" "+text;}
	statusScroll();
	n++;
}
else {
	n++; 
	doStatusTick()}
}

function statusScroll() {
	window.status = text.substring(i++, text.length);
	if (i==space) 
		setTimeout("statusScroll()", stop);
	else if (i==text.length) {
		window.status=" "; 
		setTimeout("doStatusTick()", pause);}
	else 
		setTimeout("statusScroll()", speed);
}
