// 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/0609/_images/JupFarmEquesDed_032.jpg','Equestrian Facility','Guests gather in a tent for the grand-opening ceremony of the new equestrian facility in Jupiter Farms Park.'],
	['/newsroom/0609/_images/JupFarmEquesDed_094.jpg','Equestrian Facility','Costumed equestrians on their adorned horses provide Arabian horse demonstrations after the ceremony.'],	
	['/newsroom/0609/_images/JupFarmEquesDed_120.jpg','Equestrian Facility','At the event, representatives from the Rabadan Ranch, located in Jupiter, share information about their organization and miniature Herefords.'],
	['/newsroom/0609/_images/JupFarmEquesDed_111.jpg','Equestrian Facility','Guests enjoy a pig roast hosted by the Florida Cattlemen&rsquo;s Association.  '],
	['/newsroom/0609/_images/JupFarmEquesDed_057.jpg','Equestrian Facility','County Commissioner Karen Marcus (far right) helps to unveil the plaque dedicating the facility in memory of residents William T. and Geertruida E. Bellew.']
]

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);
}

