function slideshow() {

SlideChangeTime = 10000; // slide change delay in milliseconds
images = new Array(5); // 1-based number of images = array.length

// 0-based Image HTML array
images[0] = "<img src=\"aa/diapos/01_1988-08-27.jpg\" alt=\"27 août 1988 : à la répétition du mariage de Mitzi\" border=\"0\">";
images[1] = "<img src=\"aa/diapos/02_1990-06-16.jpg\" alt=\"16 juin 1990 : au Château de la Rapée\" border=\"0\">";
images[2] = "<img src=\"aa/diapos/03_2000-11-01.jpg\" alt=\"1er novembre 2000 : au mariage d'Aurélie &amp; Jacques\" border=\"0\">";
images[3] = "<img src=\"aa/diapos/04_2003-11-16.jpg\" alt=\"16 novembre 2003 : chez nous à Nogent-sur-Marne\" border=\"0\">";
images[4] = "<img src=\"aa/diapos/05_2008-07-13.jpg\" alt=\"13 juillet 2008 : au mariage de Julien &amp; Elodie\" border=\"0\">";

// initialize image
document.getElementById("slides").innerHTML = images[0];
nextIndex=1;
swapImage();  // change the image

// repeat every interval
timerID = setInterval(swapImage,SlideChangeTime);

}

function swapImage() {
  document.getElementById("slides").innerHTML = images[nextIndex];
  if (nextIndex == 0)
  {
  document.getElementById("notice").innerHTML = "1947 - 2009" ;
  } 
  else
  {
  document.getElementById("notice").innerHTML = "" ;
  }
  // increment index to UBound(images) = images.length - 1
  index = nextIndex + 1 ;
  // recurse if new index exceeds array length - 1
  if (index > images.length - 1) {
   index = 0 ;
  }
  nextIndex=index ;
  // assign new image to tag ID
  document.getElementById("noshow").innerHTML = images[nextIndex];

}
