// DÉFINITION DES VARIABLES
var msg = new InitMsg(); // Ne pas toucher




/* ----------------------------- MODIFIER LE CODE A PARTIR D'ICI ---------------------------- */
/* ------------------------------------ DEBUT MODIFIABLE ------------------------------------ */



// Définition des variables récurrentes
var imgWidth = "826";    // Spécifier la largeur de l'image    <-<-<-<-<-<-<-<-<-<- A modifier
var imgHeight = "493";    // Spécifier la hauteur de l'image    <-<-<-<-<-<-<-<-<-<- A modifier



// DÉFINITION DES IMAGES ALÉATOIRE (EN HTML)
// Rajouter une ligne par image
// Ne modifer que la cible et le texte alternatif (src="xxxxxxx/xxxxxxxxx.xxx")(alt="xxxxxxx")
// msg.Add('<img src="chemin" alt="texte" width="' + imgWidth + '" height="' + imgHeight + '" />');

msg.Add('<img src="images/home/mosaique1.jpg" alt="mosaique1" width="' + imgWidth + '" height="' + imgHeight + '" />');
msg.Add('<img src="images/home/mosaique2.jpg" alt="mosaique2" width="' + imgWidth + '" height="' + imgHeight + '" />');
msg.Add('<img src="images/home/mosaique3.jpg" alt="mosaique3" width="' + imgWidth + '" height="' + imgHeight + '" />');




/* ------------------------------------- FIN MODIFIABLE ------------------------------------- */
/* ------------------------- NE PLUS TOUCHER LE CODE A PARTIR D'ICI ------------------------- */





// DÉFINITION DES FONCTIONS
function disp(html) {
	document.write(html)
}
function InitMsg() {
	this.nb_item = 0;
	this.Add = AddMsg;
	this.Aff = AffMsg;
}
function AddMsg(html) {
	var nb = this.nb_item;
	this[nb] = html;
	this.nb_item++;
}
function AffMsg() {
	var nb = this.nb_item;
	var no = Math.round(Math.random(1) * (nb - 1));
	disp(this[no]);
}
