var message = new Array(
		"Syst\350mes",
		"R\351seaux",
		"Internet",
		"Intranet",
		"Formations",
		"Maintenance",
		"S\351curit\351",
		"Ventoux",
		"Installation",
		"Logiciels",
		"Mat\351riels",
		"Linux",
		"Windows",
		"Mac"
);
var i = Math.round(Math.random()*100000) % message.length;
function anime() {
	
	//alert("i = " + i);
	var p = document.createElement("p");
	p.setAttribute("id", "texte");
	p.appendChild(document.createTextNode(message[i]));
	var old_p = document.getElementById("texte");
	if (old_p == null) $('bloc1').appendChild(p);
	else $('bloc1').replaceChild(p, old_p);
	
	new Effect.Appear('bloc1', {duration:2, fps:18, from:0.0, to:1.0, delay:1});
	//new Effect.toggle('bloc1', 'appear');
	//new Effect.toggle('bloc1', 'appear');
	
	//i = (i+1)%message.length;
	i = Math.round(Math.random()*100000) % message.length;
	setTimeout('anime();', 5000);
}

function pause() {
	anime();
}

Event.observe(window, "load", anime);

