// JavaScript Document
var num=0;

imgArray = [
  ['main_photo.gif','','Pictures of Stuff'],	
  ['photo/barrier11.jpg','','Pictures of Stuff '],
  ['photo/barrier6.jpg','','Pictures of Stuff '],
  ['photo/barrier8.jpg','','Pictures of Stuff '],
  ['photo/doll_04.jpg','','Pictures of Stuff '],
  ['photo/doll_05.jpg','','Pictures of Stuff '],
  ['photo/doll_08.jpg','','Pictures of Stuff '],
  ['photo/photo_01.jpg','','Pictures of Stuff '],
  ['photo/photo_02.jpg','','Pictures of Stuff"'],
  ['photo/photo_03.jpg','','Pictures of Stuff'],
  ['photo/photo_04.jpg','','Pictures of Stuff'],
  ['photo/photo_05.jpg','','Pictures of Stuff'],
  ['photo/photo_06.jpg','','Pictures of Stuff'],
  ['photo/photo_07.jpg','','Pictures of Stuff'],
  ['photo/photo_08.jpg','','Pictures of Stuff'],
  ['photo/photo_09.jpg','','Pictures of Stuff'],
  ['photo/photo_10.jpg','','Pictures of Stuff'],
  ['photo/photo_11.jpg','','Pictures of Stuff'],
  ['photo/photo_12.jpg','','Pictures of Stuff'],
  ['photo/photo_13.jpg','','Pictures of Stuff'],
  ['photo/photo_14.jpg','','Pictures of Stuff'],
  ['photo/photo_15.jpg','','Pictures of Stuff'],
  ['photo/photo_16.jpg','','Pictures of Stuff'],
  ['photo/photo_17.jpg','','Pictures of Stuff'],
  ['photo/photo_18.jpg','','Pictures of Stuff'],
  ['photo/photo_19.jpg','','Pictures of Stuff'],
  ['photo/photo_20.jpg','','Pictures of Stuff'],
  ['photo/photo_21.jpg','','Pictures of Stuff'],
  ['photo/photo_22.jpg','','Pictures of Stuff'],
  ['photo/photo_23.jpg','','Pictures of Stuff'],
  ['photo/photo_24.jpg','','Pictures of Stuff'],
  ['photo/photo_25.jpg','','Pictures of Stuff'],
]

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);
}