/* Please do not delete these credit lines, but all the others you can change. This is a small script which does open a box with a message
in it. Easily put in this script in your <body> section.That's all what you have to do. Now every visitor who visits your page sees that box.
If you have some questions contact me at mayestro@2xs.de */
// 1999 by Christian Maier 1999   http://www.beste-links.de.cx
var max=0;
function textlist()
{
	max=textlist.arguments.length; for (i=0; i<max; i++) this[i]=textlist.arguments[i];
}

x=0; pos=0; bit=0; talap="Jezsuiták párbeszédben...";

function textticker(tl)
{

	if (bit==0) 
	{
		l=talap.length;
	} 
	else 
	{
		l=tl[x].length;
		tl[x]=tl[x].replace("<P>","");
		tl[x]=tl[x].replace("<p>","");
		tl[x]=tl[x].replace("</P>","");
		tl[x]=tl[x].replace("</p>","");
	}

	
	

	if (bit==0)
	{
		document.getElementById("tickdiv").className="motto2";
		document.getElementById("tickfield").innerHTML=talap.substring(0,pos)+"_"
	}
	else 
	{
		document.getElementById("tickdiv").className="motto1";
		if (pos>79)
		{
			row=Math.floor(pos/80);
			pos1=row*80;
// 			pos2=pos-pos1;
		}
		else
		{
			pos1=0;
// 			pos2=pos;
		}
		document.getElementById("tickfield").innerHTML=tl[x].substring(pos1,pos)+"_"
	}
	
	if(pos++==l)
	{
		pos=0;
		setTimeout("textticker(tl)",5000);

		if (bit==0) bit=1;
		

		ran_unrounded=Math.random()*(max-1);
		x=Math.floor(ran_unrounded)+1;
	} 
	else setTimeout("textticker(tl)",50);
}

