/* 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 = [
  ['RTDiver/RedThroatedDiver001B9I9889-1framedcopy.jpg','Red-throated Diver','Ref# RTDI01 (1/7)'],
  ['RTDiver/RedThroatedDiver002B9I9891-2framedcopy.jpg','Red-throated Diver','Ref# RTDI02 (2/7)'],
  ['RTDiver/RedThroatedDiver003B9I9892-3framedcopy.jpg','Red-throated Diver','Ref# RTDI03 (3/7)'],
  ['RTDiver/RedThroatedDiver004B9I9817-4framedcopy.jpg','Red-throated Diver','Ref# RTDI04 (4/7)'],
  ['RTDiver/RedThroatedDiver005B9I9818-5framedcopy.jpg','Red-throated Diver','Ref# RTDI05 (5/7)'],
  ['RTDiver/RedThroatedDiver006B9I9820-6largeframedcopy.jpg','Red-throated Diver','Ref# RTDI06 (6/7)'],
  ['RTDiver/RedThroatedDiver007B9I9853-7framedcopy.jpg','Red-throated Diver','Ref# RTDI07 (7/7)']
  
]

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);
}

