/* 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 = [
	['gallery/postcard_02.jpg','message','Oxford'],
  ['gallery/postcard_03.jpg','information', 'Olaszorsz&#225;gb&#243;l k&#252;ldt&#233;k'],
  ['gallery/postcard_04.jpg','interference','Kanad&#225;b&#243;l k&#252;ldt&#233;k'],
  ['gallery/postcard_05.jpg','message','Magyarorsz&#225;gr&#243;l k&#252;ldt&#233;k'],
	['gallery/postcard_06.jpg','message','Angli&#225;b&#243;l k&#252;ldt&#233;k'],
	['gallery/postcard_07.jpg','message','Amerik&#225;b&#243;l k&#252;ldt&#233;k']
]

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);
}

