

  var diapo = new Array(); // liste de toutes les images


// construit liste pour construire menu de diaporamas
// chaque répertoire de diaporama doit contenir un thumbnail 'thumbnail.jpg' 80px
function ajoutediaporama( nimg )
{
// ajoute l'image donnée en argument à la liste diapo
  no = diapo.length;
  diapo[no] = nimg;
}


ajoutediaporama( "mo011" );
ajoutediaporama( "mo013" );
ajoutediaporama( "mo034" );
ajoutediaporama( "mo010" );
ajoutediaporama( "mo009" );
ajoutediaporama( "mo008" );
ajoutediaporama( "mo007" );
ajoutediaporama( "mo006" );
ajoutediaporama( "mo005" );
ajoutediaporama( "mo003" );
// ajoutediaporama( "mo004" );
ajoutediaporama( "mo012" );


function menu_diaporamas()
{

  largeur = 5;
  hauteur = 5;
  nitems = hauteur * largeur; // le nombre max de diaporamas affichés

  document.write( "<table cellspacing='1px' cellpadding='0px'><tr>" );

  for(n=0; n<nitems; n++)
  {
    if( n%largeur == 0 && n != 0 ) document.write( "</tr><tr>" );

    document.write( "<td align='center' valign='center' width='80px' height='90px'>" );

     ni = n+1;
     if( ni < 10 ) num = "0" + ni;
     else num = ni;

    if( diapo[n] == null )
    {
     chaine = "<img src='../../spacer.gif' border='0'>";
     document.write( chaine );
    }

    else
    {
     chaine = "<a href='../" + diapo[n] + "/index.html'><img src='../" + diapo[n] + "/thumbnail.jpg' border='1' /></a>";
     document.write( chaine );
    }

    document.write( "</td>" );
  }

  document.write( "</tr></table>" );

}



function mbp()
{
  chaine = "<br style='font-size:6pt'>";

  chaine += "<a href='javascript:clearTimeout(t); affiche(0)'><img src='../../debut.gif' border='0' width='24' height='24' title='début' /></a> ";
  chaine += "<a href='javascript:clearTimeout(t); affiche(nia-1)'><img src='../../reculer.gif' border='0' width='24' height='24' title='reculer' /></a> ";
  chaine += "<a href='javascript:clearTimeout(t)'><img src='../../stop.gif' border='0' width='24' height='24' title='arrêter' /></a>";
  chaine += "<a href='javascript:clearTimeout(t); timedMsg()'><img src='../../play.gif' border='0' width='24' height='24' title='commencer' /></a>";
  chaine += "<a href='javascript:clearTimeout(t); affiche(nia+1)'><img src='../../avancer.gif' border='0' width='24' height='24' title='avancer' /></a> ";
  chaine += "<a href='javascript:clearTimeout(t); affiche(tout.length-1)'><img src='../../fin.gif' border='0' width='24' height='24' title='fin' /></a> ";

  chaine += "<br><br style='font-size:6pt'>";

 document.write(chaine);
}

function titre()
{
 document.title = "sans mot dire";
}


function entete()
{
 chaine = "<h2><s>&nbsp;&nbsp;&nbsp;<b style='color:#666666'>sans&nbsp;&nbsp;mot&nbsp;&nbsp;dire</b>&nbsp;&nbsp;&nbsp;</s></h2>";
 document.write( chaine );
}

function copyright()
{
 chaine = "<p style='margin-top:20px; margin-bottom:5px'><s>&copy; <a href='http://www.benoitdavid.net'>benoit david</a> 2007</s></p>";
 document.write(chaine);
}


function courriel()
{
// chaine = "<a href='mailto:administrateur@benoitdavid.net'><s>&nbsp;courriel&nbsp;</s></a>";
 chaine = "<a href='mailto:administrateur@benoitdavid.net'><img src='enveloppes.jpg' width='33' height='30' border='0'></a>";
 document.write(chaine);
}

function affiche_image()
{
 chaine = "<table height='350' cellpadding='0' cellspacing='0'><tr><td valign='bottom'><img src='../../spacer.gif' border='1' name='monimg' /></tr></td></table>";
 document.write(chaine);
}