// FONCTION PRELOADfunction MM_preloadImages() { //v3.0  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();  var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)  if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}}// FONCTION RECHERCHEfunction f_recherche(){ if (document.form_recherche.recherche.value == 'recherche') document.form_recherche.recherche.value = '';}// INIT INITdelai = 4000;delai_jeu = 8000;// FONCTION INITfunction f_init(action){ if (action == 0) {  timer0 = setTimeout('f_init(2)', delai_jeu);  timer1 = setTimeout('f_init(1)', delai); } else if (action == 1) {  clearTimeout(timer1);  f_edito(); } else if (action == 2) {  clearTimeout(timer0);  f_jeu(); }}// INIT EDITOcourante = 1;// FONCTION EDITOfunction f_edito(){ courante += 1; if (courante == 5) courante = 1; f_zapp(courante, 1); timer2 = setTimeout('f_edito()', delai);}// FONCTION ZAPPfunction f_zapp(une, auto){ if (auto == 0) clearTimeout(timer2); // RAZ ZAPP for (i=1;i<5;i++) if (i != une) document.getElementById('zapp' + i).className = 'zapp' + i; // AFFICHAGE ZAPP document.getElementById('zapp' + une).className = 'zapp' + une + '_on'; if (une == 1) document.getElementById('zapp2').className = 'zapp2'; if (une == 2) document.getElementById('zapp1').className = 'zapp1_special'; // AFFICHAGE MOSAIQUE document.getElementById('mosaique').className = 'mosaique' + une; // RAZ UNE / AFFICHAGE UNE if (auto == 1) {  for (i=1;i<5;i++) if (i != une) f_transition(i, 0);  f_transition(une, 1); } else {  for (i=1;i<5;i++) if (i != une) document.getElementById('une' + i).style.display = 'none';  f_opacite(une, 100);  document.getElementById('une' + une).style.display = 'block'; }}// INIT TRANSITIONetape = 20;vitesse = 120;var opacite = new Array();opacite[1] = 100;opacite[2] = 0;opacite[3] = 0;opacite[4] = 0;// FONCTION TRANSITIONfunction f_transition(une, action){ if (opacite[une] != 100 && action == 1) {  opacite[une] += etape;  f_opacite(une, opacite[une]);  timer3 = setTimeout('f_transition('+une+', '+action+')', vitesse); } if (opacite[une] != 0 && action == 0) {  opacite[une] = 0; // ZERO DIRECTEMENT  // opacite[une] -= etape;  f_opacite(une, opacite[une]);  timer4 = setTimeout('f_transition('+une+', '+action+')', vitesse); }}// FONCTION OPACITEfunction f_opacite(une, opacite){ objet = document.getElementById('une' + une).style; objet.filter = "alpha(opacity=" + opacite + ")"; objet.MozOpacity = (opacite / 100); objet.KhtmlOpacity = (opacite / 100); objet.opacity = (opacite / 100); if (opacite == 0) objet.display = 'none'; else objet.display = 'block';}// INIT JEUcourante_jeu = 1;// FONCTION JEUfunction f_jeu(){ marqueur = 0; for (i=0;i<indice;i++) {  if (document.getElementById(choix[i]).checked)  {   marqueur = 1;   f_zapp_jeu(0, 0);   break;  } } if (marqueur == 0) {  total_jeu = parseInt(document.totaljeu.total.value) + 1;  courante_jeu += 1;  if (courante_jeu == total_jeu) courante_jeu = 1;  f_zapp_jeu(courante_jeu, 1);  timer5 = setTimeout('f_jeu()', delai_jeu); }}// FONCTION ZAPP JEUfunction f_zapp_jeu(une, auto){ total_jeu = parseInt(document.totaljeu.total.value) + 1; if (auto == 0) {  une = courante_jeu;  clearTimeout(timer5); } // RAZ UNE / AFFICHAGE UNE if (auto == 1) {  for (i=1;i<total_jeu;i++) if (i != une) f_transition_jeu(i, 0);  f_transition_jeu(une, 1); } else {  for (i=1;i<total_jeu;i++) if (i != une) document.getElementById('jeu' + i).style.display = 'none';  f_opacite_jeu(une, 100);  document.getElementById('jeu' + une).style.display = 'block'; }}// INIT TRANSITION JEUetape = 20;vitesse = 120;var opacite_jeu = new Array();opacite_jeu[1] = 100;opacite_jeu[2] = 0;opacite_jeu[3] = 0;opacite_jeu[4] = 0;// FONCTION TRANSITION JEUfunction f_transition_jeu(une, action){ if (opacite_jeu[une] != 100 && action == 1) {  opacite_jeu[une] += etape;  f_opacite_jeu(une, opacite_jeu[une]);  timer6 = setTimeout('f_transition_jeu('+une+', '+action+')', vitesse); } if (opacite_jeu[une] != 0 && action == 0) {  opacite_jeu[une] = 0; // ZERO DIRECTEMENT  // opacite[une] -= etape;  f_opacite_jeu(une, opacite_jeu[une]);  timer7 = setTimeout('f_transition_jeu('+une+', '+action+')', vitesse); }}// FONCTION OPACITEfunction f_opacite_jeu(une, opacite){ objet = document.getElementById('jeu' + une).style; objet.filter = "alpha(opacity=" + opacite + ")"; objet.MozOpacity = (opacite / 100); objet.KhtmlOpacity = (opacite / 100); objet.opacity = (opacite / 100); if (opacite == 0) objet.display = 'none'; else objet.display = 'block';}// FONCTION FLASHfunction f_flash(code){ document.write(code);}