// Java 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 = [
  ['photos/kccA01.jpg','information', 'Laying the foundation'],
  ['photos/kccA02.jpg','interference','Poured concrete floor'],
  ['photos/kccA03.jpg','interference','Felled ash timber milled into lumber'],
  ['photos/kccA04.jpg','interference','Demonstrating building basics on farm day'],
  ['photos/kccA05.jpg','interference','Washing field stone onsite'],
  ['photos/kccA06.jpg','interference','Constructing the front wall'],
  ['photos/kccA07.jpg','interference','Carefully adding stone to the wall'],
  ['photos/kccA08.jpg','interference','Ford Motor Company volunteers'],
  ['photos/kccB01.jpg','interference','Base material consists of dirt, limestone, clay'],
  ['photos/kccB02.jpg','interference','Mixing the base material'],
  ['photos/kccB03.jpg','interference','Water is added to the mix'],
  ['photos/kccB07.jpg','interference','Using strength to press earthen block'],
  ['photos/kccB05.jpg','interference','The first block'],
  ['photos/kccB06.jpg','interference','Block production'],
  ['photos/kccB08.jpg','interference','Children learn the basics of compressed earth block'],
  ['photos/kccB09.jpg','interference','Using their muscles'],
  ['photos/kccB10.jpg','interference','Children learning how to make compressed earth blocks'],
  ['photos/kccB11.jpg','interference','Mixing the base material is fun!'],
  ['photos/kccB12.jpg','interference','Students mixing material'],
  ['photos/kccB13.jpg','interference','Pressing block'],
  ['photos/kccB14.jpg','interference','One way to sift material'],
  ['photos/kccB15.jpg','interference','An easier way to sift material thanks to a student engineer'],
  ['photos/kccC01.jpg','interference','Starting the brick wall'],
  ['photos/kccC02.jpg','interference','Walls of strawbale and compressed earth block'],
  ['photos/kccC03.jpg','interference','Constructing a wall with strawbale'],
  ['photos/kccC06.jpg','interference','Testing the plaster for the strawbale walls'],
  ['photos/kccC07.jpg','interference','First application of plaster on the strawbale walls'],
  ['photos/kccC08.jpg','interference','Another application of plaster'],
  ['photos/kccC09.jpg','interference','Plastering the strawbale walls'],
  ['photos/kccC10.jpg','interference','Having fun with plaster and a strawbale'],
  ['photos/kccC11.jpg','interference','Applying the mortar'],
  ['photos/kccC12.jpg','interference','Setting the block'],
  ['photos/kccC13.jpg','interference','Making it level'],
  ['photos/kccC14.jpg','interference','Carefully setting block'],
  ['photos/kccC15.jpg','interference','Setting one of the last blocks'],
  ['photos/kccC16.jpg','interference','Setting the last blocks'],
  ['photos/kccC17.jpg','interference','Finishing around the windows'],
  ['photos/kccD01.jpg','interference','Collecting reeds'],
  ['photos/kccD02.jpg','interference','Voluntters collecting reeds'],
  ['photos/kccD03.jpg','interference','Reeds to be bundled into thatch'],
  ['photos/kccD04.jpg','interference','Bundled reeds for thatched roof'],
  ['photos/kccD05.jpg','interference','Volunteers help collect reeds in Monroe'],
  ['photos/kccD06.jpg','interference','Bundled reeds for the roof'],
  ['photos/kccD07.jpg','interference','Attaching the thatching to the roof'],
  ['photos/kccD09.jpg','interference','Thatching is an age-old technique'],
  ['photos/kccD10.jpg','interference','Learning to thatch'],
  ['photos/kccE01.jpg','interference','Working on the interior'],
  ['photos/kccE02.jpg','interference','Almost finished'],
  ['photos/kccE03.jpg','interference','Strawbale benches'],
  ['photos/kccE04.jpg','interference','Plastered strawbale benches'],
  ['photos/kccE05.jpg','message','The finished cottage']
]

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);
}
