// 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/0110/_images/VITA_group-shot.jpg', 'VITA','(l-r) Ron Albert, IRS territory manager, Chuck Anderson, CEO and president of the United Way of Palm Beach County, United Way Board Chair Chris Oberlink, Commissioner Koons and Joanne Arroyo, a VITA client'],
	['/newsroom/0110/_images/VITA_Koons-speaking.jpg', 'Community Forum','Commissioner Koons said helping people save money boosts the local economy.'],
	['/newsroom/0110/_images/VITA_Joanne-speaking.jpg', 'Community Forum','Joanne Arroyo, a single mother of three, said she was recently able to purchase her first home, thanks to tax credits and government aid programs she learned about through VITA.']
]

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);
}
