// 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/0109/_images/commissioners_Tunnel.jpg','District 6','(l-r) Teresa Stoddard, Commissioner Jeff Koons, Science Museum CEO Mary Sellers, Commissioner Santamaria, his wife Victoria, and Supervisor of Elections Susan Bucher.'],
	['/newsroom/0109/_images/d6_andreas.jpg','District 6','Dr. Andreas Trepte, a director of research for Max Planck, conducts a curatorial tour.'],
	['/newsroom/0109/_images/d6_max_planck.jpg','District 6','This is the Max Planck Society&rsquo;s North American debut of the Science Tunnel.'],
	['/newsroom/0109/_images/d6_Sellers.jpg','District 6','South Florida Science Museum CEO Mary Sellers welcomes the Santamarias.'],
	['/newsroom/0109/_images/d6_pattern_memory.jpg','District 6','This exhibit explains how memory affects interpretation of incoming data.']
]

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);
}

