var index; var tabMetier= new Array(); var tabAcccroche= new Array(); var tabImage= new Array(); tabAcccroche[0]=' '; tabMetier[0]=' '; tabImage[0]='20100112143042.jpg'; tabAcccroche[1]=' '; tabMetier[1]=' '; tabImage[1]='20100112143104.jpg'; tabAcccroche[2]='Water treatment for public swimming pools'; tabMetier[2]='What we do'; tabImage[2]='20100216181538.jpg'; tabAcccroche[3]='Products for private swimming pools'; tabMetier[3]='What we do'; tabImage[3]='20100216150640.jpg'; tabAcccroche[4]='Treatment of fountains and pools'; tabMetier[4]='What we do'; tabImage[4]='20100216171806.jpg'; tabAcccroche[5]='Water potabilisation'; tabMetier[5]='What we do'; tabImage[5]='20100218150051.jpg'; tabAcccroche[6]='Treatment of industrial water'; tabMetier[6]='What we do'; tabImage[6]='20100216152421.jpg'; tabAcccroche[7]='Water treatment for public swimming pools'; tabMetier[7]='What we do'; tabImage[7]='20100216164702.jpg'; tabAcccroche[8]='Water treatment for public swimming pools'; tabMetier[8]='What we do'; tabImage[8]='20100217090211.jpg'; tabAcccroche[9]='Treatment of fountains and pools'; tabMetier[9]='What we do'; tabImage[9]='20100216181828.jpg'; tabAcccroche[10]='Products for private swimming pools'; tabMetier[10]='What we do'; tabImage[10]='20100216165415.jpg'; tabAcccroche[11]='Treatment of industrial water'; tabMetier[11]='What we do'; tabImage[11]='20100216165842.jpg'; var nbImg; var intervalDiapo; function Diaporama(nombre, courrante, chemin, nom, extension){ nbImg = nombre; index = courrante; this.chemin = chemin; this.nom = nom; this.extension = extension; /* * Fonction qui permet de passer à l'image suivante lors du click sur le bouton next */ this.suivante = function() { if (index0) { clearInterval(intervalDiapo); $('#diapo'+index).fadeOut(1000,function(){ intervalDiapo=setInterval(diapoAutomatique,5000); }); window.document.getElementById('diapo_accroche').innerHTML=tabAcccroche[index-1]; window.document.getElementById('diapo_metier').innerHTML=tabMetier[index-1]; index--; } }; for (var i=0; i'); } else{ document.write('"/>'); } } intervalDiapo = setInterval(diapoAutomatique,5000); } function diapoAutomatique() { if (index