// 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/1009/_images/d6_102109_Santamaria.jpg', 'D6 Forum','Commissioner Santamaria opens the floor.'],
	['/newsroom/1009/_images/d6_102109_Pafford.jpg', 'D6 Forum','Rep. Mark Pafford warned citizens to be wary of proposed tax hikes posing as &ldquo;fees.&rdquo;'],
	['/newsroom/1009/_images/d6_102109_audience.jpg', 'D6 Forum','Residents raised good questions and received thoughtful, informative answers.'],
	['/newsroom/1009/_images/d6_102109_Walker.jpg','D6 Forum','John Walker, of The Acreage, urged residents to have more than one well-water test done at their home, as readings for harmful substances can vary significantly.']
]

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);
}

