// JavaScript Document
<!--
var img = new Array();
var caption = new Array();
var description = new Array();
var path = "http://www.oranjegarde.nl/"


img[0] = path + "Images/home/image1.jpg"
caption[0] = "Oranje Garde";
description[0] = "Drumfanfare";
img[1] = path + "Images/home/image2.jpg"
caption[1] = "Oranje Garde";
description[1] = "Intocht Sinterklaas 2010 Heinenoord";
img[2] = path + "Images/home/image3.jpg"
caption[2] = "Oranje Garde";
description[2] = "Monumentendag 2009 Heinenoord";
img[3] = path + "Images/home/image4.jpg"
caption[3] = "Oranje Garde";
description[3] = "Intocht Sinterklaas 2010 Heinenoord";
img[4] = path + "Images/home/image5.jpg"
caption[4] = "Oranje Garde";
description[4] = "Binnenhalen avondvierdaagse wandelaars 2008";
img[5] = path + "Images/home/image6.jpg"
caption[5] = "Oranje Garde";
description[5] = "Koninginnedag 2010 Westmaas";
img[6] = path + "Images/home/image7.jpg"
caption[6] = "Oranje Garde";
description[6] = "Monumentendag 2009 Heinenoord";
img[7] = path + "Images/home/image8.jpg"
caption[7] = "Oranje Garde";
description[7] = "Intocht Sinterklaas 2010 Heinenoord";
img[8] = path + "Images/home/image9.jpg"
caption[8] = "Oranje Garde";
description[8] = "Airborne wandelmars 2010 Oosterbeek";
img[9] = path + "Images/home/image10.jpg"
caption[9] = "Oranje Garde";
description[9] = "Koninginnedag 2007 Heinenoord";
img[10] = path + "Images/home/image11.jpg"
caption[10] = "Oranje Garde";
description[10] = "Jaarfeest OG 2006";
img[11] = path + "Images/home/image12.jpg"
caption[11] = "Oranje Garde";
description[11] = "Onze volledige team";
img[12] = path + "Images/home/image13.jpg"
caption[12] = "Oranje Garde";
description[12] = "Koninginnedag 2007 Heinenoord";



// Add more images here

function changeIMG(direction) {

  var current=document.images.nextpic.src;

  for (var i = 0;i<img.length;i++) {
    if(img[i]==current) {
      if(direction=="forward") {
        if(i==img.length-1) {
          swap(0);
        }
        else {
          swap(i+1);
        }
      }
      if(direction=="back") {
        if(i==0) {
          swap(img.length-1);
	}
        else {
          swap(i-1);
        }
      }
      break;
    }
  }
}

function swap(nr) {
  document.images.nextpic.src=img[nr];
  document.getElementById("imgcaption").innerHTML=caption[nr];
  document.getElementById("imgdescription").innerHTML=description[nr];
}

//-->
