/* 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 = [
  ['Family Gathering 2008/images/June22-08 007_jpg.jpg','','Photograph 1 of 72'],
  ['Family Gathering 2008/images/June22-08 009_jpg.jpg','','Photograph 2 of 72'],
  ['Family Gathering 2008/images/June22-08 011_jpg.jpg','','Photograph 3 of 72'],
  ['Family Gathering 2008/images/June22-08 014_jpg.jpg','','Photograph 4 of 72'],
  ['Family Gathering 2008/images/June22-08 018_jpg.jpg','','Photograph 5 of 72'],
  ['Family Gathering 2008/images/June22-08 019_jpg.jpg','','Photograph 6 of 72'],
  ['Family Gathering 2008/images/June22-08 020_jpg.jpg','','Photograph 7 of 72'],
  ['Family Gathering 2008/images/June22-08 021_jpg.jpg','','Photograph 8 of 72'],
  ['Family Gathering 2008/images/June22-08 023_jpg.jpg','','Photograph 9 of 72'],
  ['Family Gathering 2008/images/June22-08 024_jpg.jpg','','Photograph 10 of 72'],
  ['Family Gathering 2008/images/June22-08 025_jpg.jpg','','Photograph 11 of 72'],
  ['Family Gathering 2008/images/June22-08 026_jpg.jpg','','Photograph 12 of 72'],
  ['Family Gathering 2008/images/June22-08 027_jpg.jpg','','Photograph 13 of 72'],
  ['Family Gathering 2008/images/June22-08 028_jpg.jpg','','Photograph 14 of 72'],
  ['Family Gathering 2008/images/June22-08 029_jpg.jpg','','Photograph 15 of 72'],
  ['Family Gathering 2008/images/June22-08 030_jpg.jpg','','Photograph 16 of 72'],
  ['Family Gathering 2008/images/June22-08 031_jpg.jpg','','Photograph 17 of 72'],
  ['Family Gathering 2008/images/June22-08 032_jpg.jpg','','Photograph 18 of 72'],
  ['Family Gathering 2008/images/June22-08 033_jpg.jpg','','Photograph 19 of 72'],
  ['Family Gathering 2008/images/June22-08 037_jpg.jpg','','Photograph 20 of 72'],
  ['Family Gathering 2008/images/June22-08 038_jpg.jpg','','Photograph 21 of 72'],
  ['Family Gathering 2008/images/June22-08 039_jpg.jpg','','Photograph 22 of 72'],
  ['Family Gathering 2008/images/June22-08 040_jpg.jpg','','Photograph 23 of 72'],
  ['Family Gathering 2008/images/June22-08 041_jpg.jpg','','Photograph 24 of 72'],
  ['Family Gathering 2008/images/June22-08 042_jpg.jpg','','Photograph 25 of 72'],
  ['Family Gathering 2008/images/June22-08 044_jpg.jpg','','Photograph 26 of 72'],
  ['Family Gathering 2008/images/June22-08 045_jpg.jpg','','Photograph 27 of 72'],
  ['Family Gathering 2008/images/June22-08 046_jpg.jpg','','Photograph 28 of 72'],
  ['Family Gathering 2008/images/June22-08 048_jpg.jpg','','Photograph 29 of 72'],
  ['Family Gathering 2008/images/June22-08 049_jpg.jpg','','Photograph 30 of 72'],
  ['Family Gathering 2008/images/June22-08 050_jpg.jpg','','Photograph 31 of 72'],
  ['Family Gathering 2008/images/June22-08 052_jpg.jpg','','Photograph 32 of 72'],
  ['Family Gathering 2008/images/June22-08 054_jpg.jpg','','Photograph 33 of 72'],
  ['Family Gathering 2008/images/June22-08 056_jpg.jpg','','Photograph 34 of 72'],
  ['Family Gathering 2008/images/June22-08 058_jpg.jpg','','Photograph 35 of 72'],
  ['Family Gathering 2008/images/June22-08 059_jpg.jpg','','Photograph 36 of 72'],
  ['Family Gathering 2008/images/June22-08 060_jpg.jpg','','Photograph 37 of 72'],
  ['Family Gathering 2008/images/June22-08 061_jpg.jpg','','Photograph 38 of 72'],
  ['Family Gathering 2008/images/June22-08 062_jpg.jpg','','Photograph 39 of 72'],
  ['Family Gathering 2008/images/June22-08 064_jpg.jpg','','Photograph 40 of 72'],
  ['Family Gathering 2008/images/June22-08 065_jpg.jpg','','Photograph 41 of 72'],
  ['Family Gathering 2008/images/June22-08 067_jpg.jpg','','Photograph 42 of 72'],
  ['Family Gathering 2008/images/June22-08 068_jpg.jpg','','Photograph 43 of 72'],
  ['Family Gathering 2008/images/June22-08 070_jpg.jpg','','Photograph 44 of 72'],
  ['Family Gathering 2008/images/June22-08 072_jpg.jpg','','Photograph 45 of 72'],
  ['Family Gathering 2008/images/June22-08 073_jpg.jpg','','Photograph 46 of 72'],
  ['Family Gathering 2008/images/June22-08 074_jpg.jpg','','Photograph 47 of 72'],
  ['Family Gathering 2008/images/June22-08 075_jpg.jpg','','Photograph 48 of 72'],
  ['Family Gathering 2008/images/June22-08 076_jpg.jpg','','Photograph 49 of 72'],
  ['Family Gathering 2008/images/June22-08 077_jpg.jpg','','Photograph 50 of 72'],
  ['Family Gathering 2008/images/June22-08 078_jpg.jpg','','Photograph 51 of 72'],
  ['Family Gathering 2008/images/June22-08 082_jpg.jpg','','Photograph 52 of 72'],
  ['Family Gathering 2008/images/June22-08 083_jpg.jpg','','Photograph 53 of 72'],
  ['Family Gathering 2008/images/June22-08 085_jpg.jpg','','Photograph 54 of 72'],
  ['Family Gathering 2008/images/June22-08 088_jpg.jpg','','Photograph 55 of 72'],
  ['Family Gathering 2008/images/June22-08 089_jpg.jpg','','Photograph 56 of 72'],
  ['Family Gathering 2008/images/June22-08 090_jpg.jpg','','Photograph 57 of 72'],
  ['Family Gathering 2008/images/June22-08 091_jpg.jpg','','Photograph 58 of 72'],
  ['Family Gathering 2008/images/June22-08 092_jpg.jpg','','Photograph 59 of 72'],
  ['Family Gathering 2008/images/June22-08 093_jpg.jpg','','Photograph 60 of 72'],
  ['Family Gathering 2008/images/June22-08 095_jpg.jpg','','Photograph 61 of 72'],
  ['Family Gathering 2008/images/June22-08 101_jpg.jpg','','Photograph 62 of 72'],
  ['Family Gathering 2008/images/June22-08 102_jpg.jpg','','Photograph 63 of 72'],
  ['Family Gathering 2008/images/June22-08 106_jpg.jpg','','Photograph 64 of 72'],
  ['Family Gathering 2008/images/June22-08 107_jpg.jpg','','Photograph 65 of 72'],
  ['Family Gathering 2008/images/June22-08 108_jpg.jpg','','Photograph 66 of 72'],
  ['Family Gathering 2008/images/June22-08 109_jpg.jpg','','Photograph 67 of 72'],
  ['Family Gathering 2008/images/June22-08 110_jpg.jpg','','Photograph 68 of 72'],
  ['Family Gathering 2008/images/June22-08 111_jpg.jpg','','Photograph 69 of 72'],
  ['Family Gathering 2008/images/June22-08 112_jpg.jpg','','Photograph 70 of 72'],
  ['Family Gathering 2008/images/June22-08 114_jpg.jpg','','Photograph 71 of 72'],
  ['Family Gathering 2008/images/June22-08 115_jpg.jpg','','Photograph 72 of 72']
]

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);
}

function slideshowTo(slide_num) {
  num = slide_num;
  slideshow(num);
}


