//D'autres scripts sur http://www.multimania.com/jscript
//Si vous utilisez ce script, merci de m'avertir ! 	< jscript@multimania.com >


function disp(txt) {document.write(txt);}
// ne pas changer le nom 'banniere'
var banniere=new CreerBan(100,50,500,1,"#FFFFFF",1500);
// CreerBan(x,y,largeur,taille,couleur de fond,delay en millisecondes)
// Definition des textes
banniere.Add("<FONT COLOR='#009999'>La Vend&eacute;e,&nbsp;</font>");
banniere.Add("<FONT COLOR='#009999'>c&acute;est l&acute;effet mer</font>");
banniere.Add("<FONT COLOR='#009999'> Un oc&eacute;an de vitalit&eacute; . . .</FONT>");
function CreerBan(x,y,largeur,hauteur,color,delay) {
	this.indice=0;
	this.nb_txt=0;
	this.x=x;
	this.y=y;
	this.largeur=largeur;
	this.hauteur=hauteur;
	this.color=color;
	this.delay=delay;
	this.navig='old';
	if (document.layers) {this.navig='ns';}
	if (document.all) {this.navig='ie';}

	this.Add=AddBan;
	this.Init=InitBan;
}
function AddBan(txt) {
	this[this.nb_txt]=txt;
	this.nb_txt++;
}
function InitBan() {
	for (var i=0;i<this.nb_txt;i++) {
		if (this.navig=='ns') {
			disp("<LAYER name='ban"+i+"' top="+this.y+" left="+this.x+" width="+this.largeur+" bgcolor='"+this.color+"' visibility='hide'>");
			disp("<CENTER><H"+this.hauteur+">"+this[i]+"</H"+this.hauteur+"></CENTER>");
			disp("</LAYER>");
		}
		if (this.navig=='ie') {
			disp("<DIV id='ban"+i+"' style='position:absolute;backgroundColor:"+this.color+"; top:"+this.y+";left:"+this.x+";width:"+this.largeur+";visibility:hidden'>");		disp("<CENTER><H"+this.hauteur+">"+this[i]+"</H"+this.hauteur+"></CENTER>");
			disp("</DIV>");
		}

	}
	if (this.navig=='ns') {
		document.layers["ban0"].visibility="show";
		setTimeout("nsBan()",banniere.delay);		
	}
	if (this.navig=='ie') {
		document.all["ban0"].style.visibility="visible";
		setTimeout("ieBan()",banniere.delay);
	}
}
function nsBan() {
	with (banniere) {
		document.layers["ban"+indice].visibility="hide"; 
		indice++;
		if (indice>=nb_txt) {indice=0;}
		document.layers["ban"+indice].visibility="show";
	}
	setTimeout("nsBan()",banniere.delay);
}
function ieBan() {
	document.all["ban"+banniere.indice].style.visibility="hidden"; 
	banniere.indice++;
	if (banniere.indice>=banniere.nb_txt) {banniere.indice=0;}
	document.all["ban"+banniere.indice].style.visibility="visible";

	setTimeout("ieBan()",banniere.delay);
}


<!--
	banniere.Init();
//-->

