﻿var NumberOfImages = 12

var img = new Array(NumberOfImages)

img[0] = "images/reeks1/foto_22_groot.jpg"
img[1] = "images/reeks1/foto_23_groot.jpg"
img[2] = "images/reeks1/foto_24_groot.jpg"
img[3] = "images/reeks1/foto_25_groot.jpg"
img[4] = "images/reeks1/foto_26_groot.jpg"
img[5] = "images/reeks1/foto_27_groot.jpg"
img[6] = "images/reeks1/foto_28_groot.jpg"
img[7] = "images/reeks1/foto_29_groot.jpg"
img[8] = "images/reeks1/foto_30_groot.jpg"
img[9] = "images/reeks1/foto_31_groot.jpg"
img[10] = "images/reeks1/foto_32_groot.jpg"
img[11] = "images/reeks1/foto_33_groot.jpg"


var imgNumber = 0

function NextImage() {
    imgNumber++
    if (imgNumber == NumberOfImages)
        imgNumber = 0
    document.images["VCRImage"].src = img[imgNumber]
}

function PreviousImage() {
    imgNumber--
    if (imgNumber < 0)
        imgNumber = NumberOfImages - 1
    document.images["VCRImage"].src = img[imgNumber]
}
