// JavaScript Document for exhibition gallery slideshow

<!--

var x=1
var mySlides=new Array(4)
<!-- there are 80 slides, but array starts counting from 0
for (var n = 0; n < 5; x < 5) {
mySlides[n]="images/slides/slide"+x+".jpg";
n++;
x++;
}

thisSlide = 0
imgCt = mySlides.length - 1

function chgSlide(direction) {
 if (document.images) {
  thisSlide = thisSlide + direction
   if (thisSlide > imgCt) {
   thisSlide = 0
   }
   if (thisSlide < 0) {
   thisSlide = imgCt
   }
   document.mySlide.src=mySlides[thisSlide]
 }
}

//-->