//<!--
/*
* textealeatoire.js
* (c) 2005 francisek.over-blog.com
*/

/*
* Ajoutez ici vos tableaux de textes
* si votre texte contient des " remplacez-les par \"
*/
var mestextes = new Array();
var nb_mestextes = 0;
mestextes[nb_mestextes++] = "<table width=\"160\"><tr><td width=\"10\"></td><td width=\"150\" align=\"justify\"><font size=\"2\" style=\"font-style: italic; color: rgb(153, 153, 153);\"><span style=\"font-family: times new roman,times,serif;\">\"Les proverbes ressemblent aux papillons; on en attrape quelques-uns, les autres s'envolent.\"</span><br/><span style=\"font-family: times new roman,times,serif;\"><font size=\"4\" style=\"color: rgb(86, 117, 164);\">W</font>. <font size=\"4\" style=\"color: rgb(86, 117, 164);\">W</font>ander</span></font></td></tr></table>";
mestextes[nb_mestextes++] = "<table width=\"160\"><tr><td width=\"10\"></td><td width=\"150\" align=\"justify\"><font size=\"2\" style=\"font-style: italic; color: rgb(153, 153, 153);\"><span style=\"font-family: times new roman,times,serif;\">\"L'éternité c'est long, surtout vers la fin...\"</span><br/><span style=\"font-family: times new roman,times,serif;\"><font size=\"4\" style=\"color: rgb(86, 117, 164);\">W</font>oody <font size=\"4\" style=\"color: rgb(86, 117, 164);\">A</font>llen</span></font></td></tr></table>";
mestextes[nb_mestextes++] = "<table width=\"160\"><tr><td width=\"10\"></td><td width=\"150\" align=\"justify\"><font size=\"2\" style=\"font-style: italic; color: rgb(153, 153, 153);\"><span style=\"font-family: times new roman,times,serif;\">\"Je me sens très optimiste quant à l'avenir du pessimisme.\"</span><br/><span style=\"font-family: times new roman,times,serif;\"><font size=\"4\" style=\"color: rgb(86, 117, 164);\">J</font>ean <font size=\"4\" style=\"color: rgb(86, 117, 164);\">R</font>ostand</span></font></td></tr></table>";
mestextes[nb_mestextes++] = "<table width=\"160\"><tr><td width=\"10\"></td><td width=\"150\" align=\"justify\"><font size=\"2\" style=\"font-style: italic; color: rgb(153, 153, 153);\"><span style=\"font-family: times new roman,times,serif;\">\"Il faut user de tout avec modération, surtout de la modération.\"</span><br/><span style=\"font-family: times new roman,times,serif;\"><font size=\"4\" style=\"color: rgb(86, 117, 164);\">R</font>ichard <font size=\"4\" style=\"color: rgb(86, 117, 164);\">B</font>ates</span></font></td></tr></table>";
mestextes[nb_mestextes++] = "<table width=\"160\"><tr><td width=\"10\"></td><td width=\"150\" align=\"justify\"><font size=\"2\" style=\"font-style: italic; color: rgb(153, 153, 153);\"><span style=\"font-family: times new roman,times,serif;\">\"Un politicien honnête, c'est celui qui reste fidèle à celui qui l'a acheté.\"</span><br/><span style=\"font-family: times new roman,times,serif;\"><font size=\"4\" style=\"color: rgb(86, 117, 164);\">C</font>onfucius</span></font></td></tr></table>";
mestextes[nb_mestextes++] = "<table width=\"160\"><tr><td width=\"10\"></td><td width=\"150\" align=\"justify\"><font size=\"2\" style=\"font-style: italic; color: rgb(153, 153, 153);\"><span style=\"font-family: times new roman,times,serif;\">\"Un bon diplomate est quelqu'un qui peut égorger son voisin sans qu'il s'en aperçoive.\"</span><br/><span style=\"font-family: times new roman,times,serif;\"><font size=\"4\" style=\"color: rgb(86, 117, 164);\">W</font>inston <font size=\"4\" style=\"color: rgb(86, 117, 164);\">C</font>hurchill</span></font></td></tr></table>";
mestextes[nb_mestextes++] = "<table width=\"160\"><tr><td width=\"10\"></td><td width=\"150\" align=\"justify\"><font size=\"2\" style=\"font-style: italic; color: rgb(153, 153, 153);\"><span style=\"font-family: times new roman,times,serif;\">\"Tout corps plongé dans un liquide finit par avouer.\"</span><br/><span style=\"font-family: times new roman,times,serif;\"><font size=\"4\" style=\"color: rgb(86, 117, 164);\">M</font>adame <font size=\"4\" style=\"color: rgb(86, 117, 164);\">C</font>aucescu</span></font></td></tr></table>";
mestextes[nb_mestextes++] = "<table width=\"160\"><tr><td width=\"10\"></td><td width=\"150\" align=\"justify\"><font size=\"2\" style=\"font-style: italic; color: rgb(153, 153, 153);\"><span style=\"font-family: times new roman,times,serif;\">\"C'est vraiment dommage que 90% des politiciens donnent une mauvaise réputation aux 10% qui restent.\"</span><br/><span style=\"font-family: times new roman,times,serif;\"><font size=\"4\" style=\"color: rgb(86, 117, 164);\">H</font>enry <font size=\"4\" style=\"color: rgb(86, 117, 164);\">K</font>issinger</span></font></td></tr></table>";
mestextes[nb_mestextes++] = "<table width=\"160\"><tr><td width=\"10\"></td><td width=\"150\" align=\"justify\"><font size=\"2\" style=\"font-style: italic; color: rgb(153, 153, 153);\"><span style=\"font-family: times new roman,times,serif;\">\"Chez un homme politique, les études c'est quatre ans de droit, puis toute une vie de travers.\"</span><br/><span style=\"font-family: times new roman,times,serif;\"><font size=\"4\" style=\"color: rgb(86, 117, 164);\">C</font>oluche</span></font></td></tr></table>";
mestextes[nb_mestextes++] = "<table width=\"160\"><tr><td width=\"10\"></td><td width=\"150\" align=\"justify\"><font size=\"2\" style=\"font-style: italic; color: rgb(153, 153, 153);\"><span style=\"font-family: times new roman,times,serif;\">\"On entre en politique avec un bel avenir devant soi et on en sort avec un terrible passé.\"</span><br/><span style=\"font-family: times new roman,times,serif;\"><font size=\"4\" style=\"color: rgb(86, 117, 164);\">P</font>roverbe Italien</span></font></td></tr></table>";
mestextes[nb_mestextes++] = "<table width=\"160\"><tr><td width=\"10\"></td><td width=\"150\" align=\"justify\"><font size=\"2\" style=\"font-style: italic; color: rgb(153, 153, 153);\"><span style=\"font-family: times new roman,times,serif;\">\"Le commencement de toutes les sciences, c'est l'étonnement de ce que les choses sont ce qu'elles sont.\"</span><br/><span style=\"font-family: times new roman,times,serif;\"><font size=\"4\" style=\"color: rgb(86, 117, 164);\">A</font>ristote</span></font></td></tr></table>";
mestextes[nb_mestextes++] = "<table width=\"160\"><tr><td width=\"10\"></td><td width=\"150\" align=\"justify\"><font size=\"2\" style=\"font-style: italic; color: rgb(153, 153, 153);\"><span style=\"font-family: times new roman,times,serif;\">\"Bien mal acquis ne profite jamais qu'à ceux qui sont assez malin pour ne pas se faire épingler.\"</span><br/><span style=\"font-family: times new roman,times,serif;\"><font size=\"4\" style=\"color: rgb(86, 117, 164);\">P</font>ierre <font size=\"4\" style=\"color: rgb(86, 117, 164);\">D</font>ac</span></font></td></tr></table>";
mestextes[nb_mestextes++] = "<table width=\"160\"><tr><td width=\"10\"></td><td width=\"150\" align=\"justify\"><font size=\"2\" style=\"font-style: italic; color: rgb(153, 153, 153);\"><span style=\"font-family: times new roman,times,serif;\">\"C'est ce qui divise les hommes qui multiplie leurs différends.\"</span><br/><span style=\"font-family: times new roman,times,serif;\"><font size=\"4\" style=\"color: rgb(86, 117, 164);\">P</font>ierre <font size=\"4\" style=\"color: rgb(86, 117, 164);\">D</font>ac</span></font></td></tr></table>";
mestextes[nb_mestextes++] = "<table width=\"160\"><tr><td width=\"10\"></td><td width=\"150\" align=\"justify\"><font size=\"2\" style=\"font-style: italic; color: rgb(153, 153, 153);\"><span style=\"font-family: times new roman,times,serif;\">\"C'est quand on a raison qu'il est difficile de prouver qu'on n'a pas tort.\"</span><br/><span style=\"font-family: times new roman,times,serif;\"><font size=\"4\" style=\"color: rgb(86, 117, 164);\">P</font>ierre <font size=\"4\" style=\"color: rgb(86, 117, 164);\">D</font>ac</span></font></td></tr></table>";
mestextes[nb_mestextes++] = "<table width=\"160\"><tr><td width=\"10\"></td><td width=\"150\" align=\"justify\"><font size=\"2\" style=\"font-style: italic; color: rgb(153, 153, 153);\"><span style=\"font-family: times new roman,times,serif;\">\"La mort n'est, en définitive, que le résultat d'un défaut d'éducation puisqu'elle est la conséquence d'un manque de savoir vivre.\"</span><br/><span style=\"font-family: times new roman,times,serif;\"><font size=\"4\" style=\"color: rgb(86, 117, 164);\">P</font>ierre <font size=\"4\" style=\"color: rgb(86, 117, 164);\">D</font>ac</span></font></td></tr></table>";
mestextes[nb_mestextes++] = "<table width=\"160\"><tr><td width=\"10\"></td><td width=\"150\" align=\"justify\"><font size=\"2\" style=\"font-style: italic; color: rgb(153, 153, 153);\"><span style=\"font-family: times new roman,times,serif;\">\"La célébrité m'a apporté un gros avantage: les femmes qui me disent non sont plus belles qu'autrefois.\"</span><br/><span style=\"font-family: times new roman,times,serif;\"><font size=\"4\" style=\"color: rgb(86, 117, 164);\">W</font>oody <font size=\"4\" style=\"color: rgb(86, 117, 164);\">A</font>llen</span></font></td></tr></table>";
mestextes[nb_mestextes++] = "<table width=\"160\"><tr><td width=\"10\"></td><td width=\"150\" align=\"justify\"><font size=\"2\" style=\"font-style: italic; color: rgb(153, 153, 153);\"><span style=\"font-family: times new roman,times,serif;\">\"La meilleure façon de ne pas avancer est de suivre une idée fixe.\"</span><br/><span style=\"font-family: times new roman,times,serif;\"><font size=\"4\" style=\"color: rgb(86, 117, 164);\">J</font>acques <font size=\"4\" style=\"color: rgb(86, 117, 164);\">P</font>révert</span></font></td></tr></table>";
mestextes[nb_mestextes++] = "<table width=\"160\"><tr><td width=\"10\"></td><td width=\"150\" align=\"justify\"><font size=\"2\" style=\"font-style: italic; color: rgb(153, 153, 153);\"><span style=\"font-family: times new roman,times,serif;\">\"Un seul oiseau en cage la liberté est en deuil.\"</span><br/><span style=\"font-family: times new roman,times,serif;\"><font size=\"4\" style=\"color: rgb(86, 117, 164);\">J</font>acques <font size=\"4\" style=\"color: rgb(86, 117, 164);\">P</font>révert</span></font></td></tr></table>";
mestextes[nb_mestextes++] = "<table width=\"160\"><tr><td width=\"10\"></td><td width=\"150\" align=\"justify\"><font size=\"2\" style=\"font-style: italic; color: rgb(153, 153, 153);\"><span style=\"font-family: times new roman,times,serif;\">\"Il ne faut pas laisser les intellectuels jouer avec les allumettes.\"</span><br/><span style=\"font-family: times new roman,times,serif;\"><font size=\"4\" style=\"color: rgb(86, 117, 164);\">J</font>acques <font size=\"4\" style=\"color: rgb(86, 117, 164);\">P</font>révert</span></font></td></tr></table>";
mestextes[nb_mestextes++] = "<table width=\"160\"><tr><td width=\"10\"></td><td width=\"150\" align=\"justify\"><font size=\"2\" style=\"font-style: italic; color: rgb(153, 153, 153);\"><span style=\"font-family: times new roman,times,serif;\">\"La poésie c'est le plus joli surnom qu'on donne à la vie.\"</span><br/><span style=\"font-family: times new roman,times,serif;\"><font size=\"4\" style=\"color: rgb(86, 117, 164);\">J</font>acques <font size=\"4\" style=\"color: rgb(86, 117, 164);\">P</font>révert</span></font></td></tr></table>";
mestextes[nb_mestextes++] = "<table width=\"160\"><tr><td width=\"10\"></td><td width=\"150\" align=\"justify\"><font size=\"2\" style=\"font-style: italic; color: rgb(153, 153, 153);\"><span style=\"font-family: times new roman,times,serif;\">\"Il faudrait essayer d'être heureux, ne serait-ce que pour donner l'exemple.\"</span><br/><span style=\"font-family: times new roman,times,serif;\"><font size=\"4\" style=\"color: rgb(86, 117, 164);\">J</font>acques <font size=\"4\" style=\"color: rgb(86, 117, 164);\">P</font>révert</span></font></td></tr></table>";
mestextes[nb_mestextes++] = "<table width=\"160\"><tr><td width=\"10\"></td><td width=\"150\" align=\"justify\"><font size=\"2\" style=\"font-style: italic; color: rgb(153, 153, 153);\"><span style=\"font-family: times new roman,times,serif;\">\"Il n'existe que deux choses infinies, l'univers et la bêtise humaine... mais pour l'univers, je n'ai pas de certitude absolue.\"</span><br/><span style=\"font-family: times new roman,times,serif;\"><font size=\"4\" style=\"color: rgb(86, 117, 164);\">A</font>lbert <font size=\"4\" style=\"color: rgb(86, 117, 164);\">E</font>instein</span></font></td></tr></table>";
mestextes[nb_mestextes++] = "<table width=\"160\"><tr><td width=\"10\"></td><td width=\"150\" align=\"justify\"><font size=\"2\" style=\"font-style: italic; color: rgb(153, 153, 153);\"><span style=\"font-family: times new roman,times,serif;\">\"Je n’ai pas échoué, j’ai trouvé dix mille moyens qui ne fonctionnent pas.\"</span><br/><span style=\"font-family: times new roman,times,serif;\"><font size=\"4\" style=\"color: rgb(86, 117, 164);\">A</font>lbert <font size=\"4\" style=\"color: rgb(86, 117, 164);\">E</font>instein</span></font></td></tr></table>";
mestextes[nb_mestextes++] = "<table width=\"160\"><tr><td width=\"10\"></td><td width=\"150\" align=\"justify\"><font size=\"2\" style=\"font-style: italic; color: rgb(153, 153, 153);\"><span style=\"font-family: times new roman,times,serif;\">\"La folie est de toujours se comporter de la même manière et de s’attendre à un résultat différent.\"</span><br/><span style=\"font-family: times new roman,times,serif;\"><font size=\"4\" style=\"color: rgb(86, 117, 164);\">A</font>lbert <font size=\"4\" style=\"color: rgb(86, 117, 164);\">E</font>instein</span></font></td></tr></table>";
mestextes[nb_mestextes++] = "<table width=\"160\"><tr><td width=\"10\"></td><td width=\"150\" align=\"justify\"><font size=\"2\" style=\"font-style: italic; color: rgb(153, 153, 153);\"><span style=\"font-family: times new roman,times,serif;\">\"Si vous ne pouvez expliquer un concept à un enfant de six ans, c'est que vous ne le comprenez pas complètement.\"</span><br/><span style=\"font-family: times new roman,times,serif;\"><font size=\"4\" style=\"color: rgb(86, 117, 164);\">A</font>lbert <font size=\"4\" style=\"color: rgb(86, 117, 164);\">E</font>instein</span></font></td></tr></table>";


// Ne pas toucher
function aleaTexte(elemId, strs,delai) {
try {
var tableau_textes = eval(strs);
var selected = Math.floor(Math.random() * tableau_textes.length);
var obj = document.getElementById(elemId);
obj.innerHTML = tableau_textes[selected];
window.setTimeout("aleaTexte('"+elemId+"', '"+strs+"',"+delai+")", delai);
} catch(e) {};
}


aleaTexte('receveur', 'mestextes', 10000);


/*
* Pour chaque zone aléatoire, créer une ligne
* aleatexte('id_du_receveur', 'nom_du_tableau_de_textes', delai_de_changement);
* id_du_receveur = id de l'élément dont le contenu sera remplacé par le texte aléatoire
* nom_du_tableau_de_textes = nom du tableau de texte pour cet élément (par exemple: 'mestextes')
* delai_de_changement = nombre de millisecondes entre chaque changement de texte
* Exemple: Pour tirer toutes les 5 secondes un texte du tableau mestextes et le placer dans l'élément HTML d'id 'receveur':
* aleaTexte('receveur', 'mestextes', 5000);
*/
//-->