var diapositives = { 'count': 0, 'current': 0, 'diapositives':{} }; function ajouter_dipositive(ident, nom) { diapositives.diapositives[diapositives.count] = { 'identifiant':ident, 'nom':nom }; if(diapositives.count!=0) { document.getElementById('page'+ident).style.display = 'none'; document.getElementById('notes'+ident).style.display = 'none'; } diapositives.count++; } function diapositive_suivante() { document.getElementById('page'+diapositives.diapositives[diapositives.current].identifiant).style.display = 'none'; document.getElementById('notes'+diapositives.diapositives[diapositives.current].identifiant).style.display = 'none'; diapositives.current++; if(diapositives.current>=diapositives.count) diapositives.current=0; document.getElementById('page'+diapositives.diapositives[diapositives.current].identifiant).style.display = 'block'; document.getElementById('notes'+diapositives.diapositives[diapositives.current].identifiant).style.display = 'block'; resizePopupLightbox(1024, 768); }