// 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/0409/_images/d6_1_lakeside.jpg','District 6','(l-r) CJC Vice Chair Barbara Cheives, Carl Kendall, vice president of the Youth Empowerment Teen Council, Commissioner Santamaria, School Board member Dr. Sandra Richmond, Belle Glade Mayor Steve B. Wilson and Max Davis, co-chair of the CJC Youth Violence Prevention Project'],
	['/newsroom/0409/_images/d6_2_lakeside.jpg','District 6','The modular unit was donated by Palm Beach Day School.'],
	['/newsroom/0409/_images/d6_3_lakeside.jpg','District 6','Commissioner Santamaria called on the local business community to support creation of additional youth empowerment centers in the Lake Region.'],
	['/newsroom/0409/_images/d6_4_lakeside.jpg','District 6','About 30 community leaders, citizens and students attended the grand opening'],
	['/newsroom/0409/_images/d6_5_lakeside.jpg','District 6','The classroom features nine computer stations and a flat-screen TV.'],
	['/newsroom/0409/_images/d6_6_lakeside.jpg','District 6','Commissioner Santamaria said a youth empowerment center in the Glades was one of his top priorities when he took office.']
]

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);
}

