
/* 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 = [
  ['one.jpg','arjuna neuman', 'installation view'],
  ['two.jpg','arjuna neuman','detail'],
  ['two-point-five.jpg','arjuna neuman','installation view'],
  ['three.jpg','arjuna neuman','license - one percent of studio sod removed - 70 cm x 70 cm'],
  ['four.jpg','arjuna neuman','verifiable products of science - 2 channel colour video, 30 seconds looped'],
  ['seven.jpg','arjuna neuman','screen shot'],
  ['nine.jpg','arjuna neuman','feeding frenzy']
]

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);
}

