/* 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 = [
  ['images/laptop/acer_4730z_small.jpg','information', '<b>Acer Aspire 4730z</b>,<br>Intel Pentium Dual Core 2.16GHz,<br>1Gb Mem, 160GB SATA HDD, Dual layer DVD Writer,<br>Network & WLAN with free Carrying Case'],
  ['images/laptop/lenovo_ideapad_small.jpg','information', '<b>Lenovo Ideapad S10-2</b>,<br>Intel Pentium N280 1.66GHZ,<br>1Gb Mem, 160GB HDD, Lan 10M/100M, 10.” W Led Display<br>6 Cell Battery, Inbuild Camera & Windows Xp SP3']

]

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);
}
