// JavaScript Document

/* 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 = [
['pic1.jpg','pic1','18th Century Colonial Saltbox'],
['pic2.jpg','pic2','Southeast View'],
['pic3.jpg','pic3','Southwest view'],
['pic4.jpg','pic4','Front'],
['pic5.jpg','pic5','What this house likely looked like over 200 years ago'],
['pic6.jpg','pic6','Center hall to main entrance'],
['pic7.jpg','pic7','Central stair (not original)'],
['pic8.jpg','pic8','Gunstock corner post of Beech in master bedroom'],
['pic9.jpg','pic9','Gunstock timbers box trimmed in 2nd floor bedroom'],
['pic10.jpg','pic10','Kitchen area at back of house - note gunstock posts'],
['pic11.jpg','pic11','Original-lathe, plaster and stencilled wallpaper']
]

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

