/*
mytext = new Array();
mytext[0] = "První text je kapičku dlouhý ...........";
mytext[1] = "Druhý text";
mytext[2] = "Třetí text";
mytext[3] = "Čtvrtý text";
*/
var pozice = 0;
var max=0;
function textlist(){
	max=textlist.arguments.length; for (i=0; i<max; i++) this[i]=textlist.arguments[i];
}
function textlink(){
	max=textlink.arguments.length; for (i=0; i<max; i++) this[i]=textlink.arguments[i];
}

var texttoprint=new textlist(mytext[pozice]);
var linktoprint=new textlink(mylink[pozice]);

var x=0; pos=0;
var delka=texttoprint[0].length;
function textticker(){
	tickerlink = document.getElementById("myticker");
//	document.getElementById("myticker").value=texttoprint[x].substring(0,pos)+" ·";
	znak = ""; if(pos<delka) znak = "_";
	tickerlink.innerHTML = texttoprint[x].substring(0,pos)+znak;
	tickerlink.href = linktoprint[x];
//	window.status = texttoprint[x].substring(0,pos);
	if(pos++==delka){
		pos=0;
		setTimeout("textticker()",3000);
		x++;
		if(x==max){
			x=0;
			pozice++;
			if(pozice>(mytext.length-1)){
				pozice=0;
			}
			texttoprint=new textlist(mytext[pozice]);
			linktoprint=new textlink(mylink[pozice]);
		}
		delka=texttoprint[x].length;
	} else
		setTimeout("textticker()",50);
}

//document.write('<input class="ticker" type="text" name="myticker" id="myticker" />');
//document.write('<a href="index.php?" class="scroll-text2" id="myticker"></a>');
