var max=0;
function textlist() {
	max=textlist.arguments.length;
	for (i=0; i<max; i++)
	this[i]=textlist.arguments[i];
}
tl = new textlist( 
"Welcome to Majdalany.com",
"Latest news:",
"Olga Dagher aka Goguy Passes Away",
"Number of registered Majdalany.com users exceeds 200",
"Jeannette Tadros Passes Away",
"News items can be read in full by going to News",
"Register with Majdalany.com to contribute information directly."
);
// x is the current letter in the headline
// pos is the cursor position
var x = 0; pos = 0;
// l is the length of current headline
var l = tl[0].length;

function textticker() {
	document.tickform.tickfield.value = tl[x].substring(0, pos) + "_";
	if(pos++ == l) {
		pos = 0;
		setTimeout("textticker()", 4000); 
		if(++x == max) x = 0; 
		l = tl[x].length;
	} else
		setTimeout("textticker()",70);
}
