/* 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/HousePlans/Monroe.jpg','The Monroe', '<strong>The Monroe</strong><br>A craftsman-style house harmonizes with the environment; it is simple and unpretentious; and it is always practical.'],
  ['Images/HousePlans/Austin.jpg','The Austin','<strong>The Austin</strong><br>The delight is in the details and this fine two-story home features plenty, both inside and out.'],
  ['Images/HousePlans/Cypress.jpg','The Cypress','<strong>The Cypress</strong><br>Arches accented with keystones, a mix of siding materials, a trio of roof peaks, and a covered porch stamp this home with time-honored appeal.'],
  ['Images/HousePlans/Dawson.jpg','The Dawson','<strong>The Dawson</strong><br>The efficiency of this home will allow you to control building costs so you can afford to keep its eye-catching details, including carriage-style garage doors, stone-accented foundation and gable brackets.'],
  ['Images/HousePlans/Devereaux.jpg','The Devereaux','<strong>The Devereaux</strong><br>Though moderate in size, this design accounts for great livability and marvelous curb appeal.'],
  ['Images/HousePlans/Godfrey.jpg','The Godfrey','<strong>The Godfrey</strong><br>The advantage of this cozy design is the craftsman styling with modern floor planning.'],
  ['Images/HousePlans/Gresham.jpg','The Gresham','<strong>The Gresham</strong><br>This multilevel plan affords flexibility with separate zones for formal entertaining, informal relaxation, and a private sleeping area with four bedrooms.']
]

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