/* 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 = [
  ['images/19Front.jpg','Apartment', 'The Buffageasse Apartment'],
  ['images/19Bedroom.jpg','Double bedroom','The bedroom'],
  ['images/19LivingRoom.jpg','Living room','The living room'],
  ['images/19DiningArea.jpg','Dining area','The dining area'],
  ['images/19RearView.jpg','Countryside views','View from the window'],
  ['images/BuffageasseBreadOven.jpg','Rural Setting','The rural location at Buffageasse'],
  ['images/No19.jpg','Apartment', 'The Buffageasse Apartment']
]

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);
}
// JavaScript Document

