var beforeMsg = "<a href=/comun/chat STYLE='cursor: hand;'><font size=1 face=Tahoma,verdana,arial,helvetica color=#0000CC><b>";
var afterMsg = "</b></font></a>";
var msgRotateSpeed = 2500; // Rotate delay in milliseconds
var textStr = new Array();
textStr[0] = "Diego: Hola, de dónde hablas?";
textStr[1] = "Marta: Soy Marta de Salta y tú?";
textStr[2] = "Fernando: Soy diseñador de webs";
textStr[3] = "Lourdes: Me gusta bailar y quiero aprender salsa";
textStr[4] = "JoseMa: Quiero viajar a conocer la Patagonia";
textStr[5] = "ChicasPoderosas: Somos 3 chicas de Bs As que vivimos en Miami";
textStr[6] = "Analía: Chao, gente!!! Me voy a lo de la uni...";
textStr[7] = "Marcos: Hay alguién de la UBA por acá?...";
textStr[8] = "Analía: Hola!!! quién quiere hablar conmigo?";
textStr[9] = "Carolina: Nadie ha visto a Megahacker hoy por acá???";
textStr[10] = "Carmen: Nos vemos en el centro a las 8pm";
textStr[11] = "Pepa: Hace días que no te encontraba y me hacías una falta!";
textStr[12] = "CiberGaucho: Oye, chico, quedamos fijos en eso o no?";

if (document.layers) {
	document.write('<ilayer id="NS4message" height=25 width=100% style="cursor: hand;">')
	document.write('<layer id="NS4message2" height=25 width=100% style="cursor: hand;"></layer></ilayer>')
	temp = 'document.NS4message.document.NS4message2.document.write(beforeMsg + textStr[i++] + afterMsg);'+
	'document.NS4message.document.NS4message2.document.close()';
	}
else if (document.getElementById) {
	document.write(beforeMsg + '<div id="message" style="position:relative; cursor: hand;">Cargando chat...</div>' + afterMsg);
	temp = 'document.getElementById("message").firstChild.nodeValue =  textStr[i++];';
	}
else if (document.all) {
	document.write(beforeMsg + '<div id="message" style="position:relative; cursor: hand;">Cargando chat...</div>' + afterMsg);
	temp = 'message.innerHTML = textStr[i++];';
	}
var i=Math.floor(Math.random()*(textStr.length));
function msgRotate() {
eval(temp);
if (i == textStr.length) i = 0;
i=Math.floor(Math.random()*(textStr.length))
setTimeout("msgRotate()", msgRotateSpeed);
}
window.onload = msgRotate;

