/* 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/LaurierLiving2.jpg','Spacious family accomodation','The Living Room'],
  ['images/LaurierDining.jpg','Eat in or dine out','The Dining Room'],
  ['images/LaurierDoubleBedroom.jpg','Comfortable accomodation','One of the double bedrooms'],
  ['images/LaurierTBedroom.jpg','Spacious family accomodation','The twin Bedroom'],
  ['images/LaurierTwin2.jpg','Spacious family accomodation','The other twin Bedroom'],
  ['images/LaurierDouble2.jpg','Comfortable accomodation','The second double bedrooms'],
  ['images/LaurierGarden.jpg','Child Friendly','The Garden'],
  ['images/LaurierPergola.jpg','Relaxing family house','Dine out under the pergola'],
  ['images/LaurierFront1.jpg','Laurier in Villefollet', 'The House in Villefollet'],
  ['images/LaurierFront2.jpg','Child friendly enclosed property in Villefollet', 'The House in Villefollet'],
]

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

