// 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/0908/_images/d3_L1000098_shool.jpg','Chancellor Elementary School','Dr. Laura Mardyks, Chancellor School&quot;s principal, enlisted a student named Alex help her take Commissioner Bob Kanjian on his tour of the school and to meet the students.'],
	['/newsroom/0908/_images/d3_L1000092_school.jpg','Chancellor Elementary School','Commissioner Bob Kanjian talks to one of the many classes he visited on Monday morning, while closely escorted by his two tour guides, Alex and Waylon, at his left.'],
	['/newsroom/0908/_images/d3_L1000088_school.jpg','Chancellor Elementary School','Commissioner Bob Kanjian gets up close to see one student proudly display his class work.']
]

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);
}

