/* 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 = [
  ['http://www.hogermma.com/images/Grappling_Mat.jpg','information', 'Hoger MMA Grappling Mat'],
  ['http://www.hogermma.com/images/Grappling_Mat2.jpg','information', 'Hoger MMA Grappling Mat'],
  ['http://www.hogermma.com/images/Boxing_ Ring.jpg','information', 'Hoger MMA Boxing Ring'],
  ['http://www.hogermma.com/images/Grappling_Mat_Boxing_Ring.jpg','information', 'Hoger MMA Grappling Mat and Boxing Ring'],
  ['http://www.hogermma.com/images/Tractor_Tire.jpg','information', 'Hoger MMA Tractor Tire'],
  ['http://www.hogermma.com/images/Tractor_Tire1.jpg','information', 'Hoger MMA Tractor Tire'],
  ['http://www.hogermma.com/images/Wall_Mount_Speacialty_Bags.jpg','information', 'Hoger MMA Wall Mounted Specialty Bags'],
  ['http://www.hogermma.com/images/Wall_Mount_Speacialty_Bags2.jpg','information', 'Hoger MMA Wall Mounted Specialty Bags'],
  ['http://www.hogermma.com/images/IMG_0999.jpg','information', 'Hoger MMA weight area'],
  ['http://www.hogermma.com/images/IMG_0998.jpg','interference','Hoger MMA weight area'],
  ['http://www.hogermma.com/images/IMG_0997.jpg','message','Hoger MMA weight area'],
  ['http://www.hogermma.com/images/IMG_0966.jpg','information', 'Showers'],
]

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);
}
