var typSpeed = 50;
var stySpeed = 3000;

var typer0 = "";
var typer1 = "<strong>|</strong>";
var typer2 = "_";

var prefix = "";

var msgTxt = new Array();

// welcome messages in 25 EU languages
msgTxt[0]  = "Welcome";                 // English
msgTxt[1]  = "C&eacute;ad m&iacute;le f&aacute;ilte romhat"; // Irish
msgTxt[2]  = "Accueil";                 // French
msgTxt[3]  = "Bienvenida";              // Spanish
msgTxt[4]  = "Empfang";                 // German
msgTxt[5]  = "V&auml;lkommen";          // Swedish
msgTxt[6]  = "Welkom";                  // Dutch
msgTxt[7]  = "Velkommen";               // Danish
msgTxt[8]  = "Benvenuto";               // Italian
msgTxt[9]  = "Kalos orisate";           // Greek (Cyprus)
msgTxt[10] = "Bem-vindo";               // Portuguese
msgTxt[11] = "Tervetuloa";              // Finnish
msgTxt[12] = "Dobrodo&#154;el / Dobrodo&#154;li"; // Slovenian 
msgTxt[13] = "V&iacute;tejte";          // Czech
msgTxt[14] = "Esiet sveicinati";        // Latvian
msgTxt[15] = "Wilicom";                 // Walloon (Belgium)
msgTxt[16] = "Tere tulemast";           // Estonian
msgTxt[17] = "Sveiki";                  // Lithuanian
msgTxt[18] = "W&euml;llkomm";           // Luxemburgish
msgTxt[19] = "Isten hozta";             // Hungarian [formal]
msgTxt[20] = "Merhba";                  // Maltese
msgTxt[21] = "Witaj";                   // Polish
msgTxt[22] = "Vitajte";                 // Slovak

var totalMessages = 23;

doTicker();

/* -------------------------------------------------------------------------- */

function doTicker(){
	curMsg = -1;
	curLen = 0;
	
	if(document.getElementById){
		ancObj = document.getElementById("tckAnc");
		ticker();
	}else{
		document.write('		<style media="screen" type="text/css">');
		document.write('		<!--');
		document.write('			.styTck{');
		document.write('				display: none;');
		document.write('			}');
		document.write('		-->');
		document.write('		</style>');
	}
}

/* -------------------------------------------------------------------------- */

function ticker(){
	var myTimeout = 0;
	
	if(curLen == 0){
		curMsg++;
		curMsg = curMsg % totalMessages;
		theMsg = msgTxt[curMsg].replace(/&quot;/g, '"');
	}
	
	ancObj.innerHTML = prefix + theMsg.substring(0, curLen) + getTyper();
	
	if(curLen != theMsg.length){
		curLen++;
		myTimeout = typSpeed;
	}else{
		curLen = 0;
		myTimeout = stySpeed;
	}
	
	setTimeout("ticker()", myTimeout);
}

/* -------------------------------------------------------------------------- */

function getTyper(){
	if(curLen == theMsg.length)
		return typer0;
	
	if((curLen % 2) == 1)
		return typer1;
	else
		return typer2;
}