// 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 = [
  ['/newsroom/0408/_images/d3_DSC02813_substation.jpg','District 3 Substation Opening','Commissioner Bob Kanjian addresses attendees at the grand opening ceremony with Captain Martin Bechtel standing in the background.'],
  ['/newsroom/0408/_images/d3_DSC02817_substation.jpg','District 3 Substation Opening', 'The grand opening of Detachment 6 is official with the ceremonial cutting of the ribbon.']
]

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);
}

