<!--
//Hartelijk dank aan Vincent Velthuizen voor het schrijven van dit script!
//Aantal foto waaruit kan worden gekozen
usedimages = new Array(5);
var same = true;
images = new Array(15); //het aantal, je begint bij 0 dus de hoogste +1
									
images[0] = "<img src='scripts/CIMG0822-90.JPG' alt='Examen cursus stoelmassage Assen, groep 2009-1.' title='Examen cursus stoelmassage Assen, groep 2009-1.'>";
images[1] = "<img src='scripts/CIMG0832-90.jpg' alt='Cursus stoelmassage Assen, groep 2009-1.' title='Cursus stoelmassage Assen, groep 2009-1.'>";
images[2] = "<img src='scripts/CIMG0998-90.JPG' alt='Cursus stoelmassage Assen, groep 2009-2.' title='Cursus stoelmassage Assen, groep 2009-2.'>";
images[3] = "<img src='scripts/stoelmassage 015-90.jpg' alt='Stoelmassage tijdens de nascholing in Assen.' title='Martin geeft een behandeling stoelmassage tijdens een nascholing.'>";
images[4] = "<img src='scripts/CCCday 007-90.jpg' alt='Stoelmassage tijdens CallCenter Agent Day bij Nashuatec in Den Bosch.' title='Martin geeft stoelmassage tijdens CallCenter Agent Day bij Nashuatec in Den Bosch.'>";
images[5] = "<img src='scripts/HPIM5341-90.JPG' alt='Stoelmassage tijdens de nascholing in Assen.' title='Martin en Shirley aan het werk tijdens een nascholing stoelmassage.'>";
images[6] = "<img src='scripts/IMG_2078-90.JPG' alt='Cursus stoelmassage Assen, groep 2008-2.' title='Cursus stoelmassage Assen, groep 2008-2.'>";
images[7] = "<img src='scripts/SDC12840-90.JPG' alt='Stoelmassage tijdens Callcenter Match Market, Martiniplaza Groningen.' title='Martin geeft stoelmassage tijdens de Callcenter Match Market, Martiniplaza Groningen.'>";
images[8] = "<img src='scripts/IMG_1663-90.JPG' alt='Stoelmassage boven de A7 bij Drachten.' title='Martin geeft stoelmassage boven de A7 bij Drachten.'>";
images[9] = "<img src='scripts/IMG_1716-90.JPG' alt='Stoelmassage langs de A7 bij Drachten.' title='Doede geeft Martin stoelmassage langs de A7 bij Drachten.'>";
images[10] = "<img src='scripts/IMG_1718-90.JPG' alt='Stoelmassage langs de A7 bij Drachten.' title='Doede geeft Martin stoelmassage langs de A7 bij Drachten.'>";
images[11] = "<img src='scripts/HPIM4629-90.JPG' alt='Cursus stoelmassage Assen, groep 2008-1.' title='Cursus stoelmassage Assen, groep 2008-1.'>";
images[12] = "<img src='scripts/secretaressedag 2007-90.jpg' alt='Stoelmassage tijdens Secretaressedag in Beilen (gemeente Midden-Drenthe).' title='Martin geeft stoelmassage tijdens Secretaressedag in Beilen.'>";
images[13] = "<img src='scripts/HPIM2946-90.JPG' alt='Stoelmassage tijdens een cursusmarkt in Villa Maria in Smilde (gemeente Midden-Drenthe).' title='Alien geeft stoelmassage tijdens een cursusmarkt in Villa Maria in Smilde.'>";
images[14] = "<img src='scripts/HPIM2948-90.JPG' alt='Stoelmassage tijdens een cursusmarkt in Villa Maria in Smilde (gemeente Midden-Drenthe).' title='Alien geeft stoelmassage tijdens een cursusmarkt in Villa Maria in Smilde.'>";

//Generate random number print that image write its number in the array used

//Images this is the first images (0)
	index = Math.floor(Math.random() * images.length);
	document.write(images[index]);
	usedimages[0] = index;
	
//For images 1 through 4
	for (var i = 1; i < 5; i++){
	same = true;
	//While image is the same is one already printed try another one 
	while(same){
	index = Math.floor(Math.random() * images.length);
	//Test current number against numbers already chosen
		same = false
			for (j = 0; j < i; j++){
				if (index == usedimages[j]){
				same = true;
				}
			}
		}
	//Write the checked image
	document.write(images[index]);
	usedimages[i] = index;
	}
//done		
-->