nc4 = (document.layers)? true:false;
ie4 = (document.all)? true:false;
var X = 0;
var textes = new Array();
textes[0] = "Bonjour !!";
textes[1] = "Comment allez-vous ?";
textes[2] = "Moi &ccedil;a va bien...";
textes[3] = "Vous &ecirc;tes libre samedi ?";
textes[4] = "Une <a href=javascript:alert(\'Un&nbsp;film&nbsp;je&nbsp;veux&nbsp;dire&nbsp;;-)\');>toile</a> ?";
textes[5] = "Un resto ?";
textes[6] = "Non ?";
textes[7] = "Bon tant pis...";
textes[8] = "Je resterai seul alors.";
var avant = "<font size=5 color=#FF0000><b>";
var apres = "</b></font>";
var largeur = 250;
var gauche = 0;
var haut = 0;

function fuite() {
	gauche = Math.round((Math.random())*1000);
	haut = Math.round((Math.random())*1000);
	if (nc4) {
		if ( gauche < (innerWidth - largeur) && haut < (innerHeight - 24) ) {
			document.lieu.left = gauche;
			document.lieu.top = haut;
			}
		else {
			setTimeout("fuite()",20);
			}
		}
	if (ie4) {
		if ( gauche < (inWidth - largeur) && haut < (inHeight - 24) ) {
			lieu.style.left = gauche;
			lieu.style.top = haut;
			}
		else {
			setTimeout("fuite()",20);
			}
		}
	}

function affiche() {
	fuite();
	gauche = 0;
	haut = 0;
	if (nc4) {
		eval("interne = (document.lieu)");
		with (interne) {
			document.open();
			document.write(avant + textes[X] + apres);
			document.close();
			}
		}
	if (ie4) {
		eval('document.all.lieu.innerHTML = "' + avant + textes[X] + apres + '"');
		}
	if ( X < textes.length-1 ) {
		X++;
		setTimeout("affiche()",1500);
		}
	else {
		X = 0;
		setTimeout("affiche()",2000);
		}
	}