<!-- Paste this code into an external JavaScript file named: simpleImageGallery.js  -->

/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: Jay M. Rumsey, OD :: http://www.nova.edu/~rumsey
 */

var num=0;

imgArray = [
  ['spring2008/1.jpg','information', '(Above): Around CT Slideshow, Harbor, Old Saybrook'],
  ['spring2008/2.jpg','interference','(Above): Around CT Slideshow, Pebble Beach, Saybrook Point'],
  ['spring2008/3.jpg','message','(Above): Around CT Slideshow, Barkhamsted Reservoir'],
  ['spring2008/4.jpg','message','(Above): Around CT Slideshow, Hartford, Wolfpack Mascots'],
  ['spring2008/5.jpg','message','(Above): Around CT Slideshow, Comstock Covered Bridge, East Haddam'],
  ['spring2008/6.jpg','message','(Above): Around CT Slideshow, Dinosaur Crossing, Oakdale, CT'],
  ['spring2008/7.jpg','message','(Above): Around CT Slideshow, Saybrook Point'],
  ['spring2008/8.jpg','message','(Above): Around CT Slideshow, Castle Craig, Meriden'],
  ['spring2008/9.jpg','information', '(Above): Around CT Slideshow, Shameless Self Promotion'],
  ['spring2008/10.jpg','information', '(Above): Around CT Slideshow, Colebrook Dam, Colebrook, CT'],
  ['spring2008/11.jpg','information', '(Above): Around CT Slideshow, Hammonasset Beach State Park, Madison, CT'],
  ['spring2008/12.jpg','information', '(Above): Around CT Slideshow, Feeding time for the Beluga Whales at Mystic Aquarium'],
  ['spring2008/13.jpg','information', '(Above): Around CT Slideshow, Mystic River Drawbridge'],
  ['spring2008/14.jpg','information', '(Above): Around CT Slideshow, New England Air Museum, Windsor Locks, CT'],
  ['spring2008/15.jpg','information', '(Above): Around CT Slideshow, Coast Guard Boat, New London, CT'],
  ['spring2008/16.jpg','information', '(Above): Around CT Slideshow, Hammonasset Beach State Park, Madison, CT'],
]

function slideshow(slide_num) {
  document.getElementById('mypic').src=imgArray[slide_num][0];
  document.getElementById('mypic').alt=imgArray[slide_num][1];
  document.getElementById('burns').innerHTML=imgArray[slide_num][2];
}

function slideshowUp() {
  num++;
  num = num % imgArray.length;
  slideshow(num);
}

function slideshowBack() {
  num--;
  if (num < 0) {num=imgArray.length-1;}
  num = num % imgArray.length;
  slideshow(num);
}
