// 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 = [
  ['mainpagecarousel/main_extras/gbig1.jpg','information', '<a href="council/quality.html"><b>Journey to Excellence</b></a><b><p>The 2012 Goals!</b></p>'],
  ['mainpagecarousel/main_extras/gbig2.jpg','information', '<a href="training/index.html"><b>2012 Training</b></a><b><p>There are many exciting opportunities for training in 2012!</b></p> '],
  ['mainpagecarousel/main_extras/gbig3.jpg','interference','Council Popcorn Sales <b>>>&nbsp;<a href="giving/popcorn/index.html">Check 2011 out!</a></b><p>&nbsp;</p>'],
  ['mainpagecarousel/main_extras/gbig4.jpg','message','Our Camps <b>>><a href="camps/index.html" target="_blank">Check them Out</b><p>&nbsp;</p>']
]

function slideshow(slide_num) {
  document.getElementById('mypic1').src=imgArray[slide_num][0];
  document.getElementById('mypic1').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);
}
function slideshowShow1() {
  num--;
  if (num < 0) {num=imgArray.length-1;}
  num = num % imgArray.length;
  slideshow(0);
}
function slideshowShow2() {
  num--;
  if (num < 0) {num=imgArray.length-1;}
  num = num % imgArray.length;
  slideshow(1);
}
function slideshowShow3() {
  num--;
  if (num < 0) {num=imgArray.length-1;}
  num = num % imgArray.length;
  slideshow(2);
}
function slideshowShow4() {
  num--;
  if (num < 0) {num=imgArray.length-1;}
  num = num % imgArray.length;
  slideshow(3);
}
