	// changes the table
	function changeTable(directory){	
		switch(directory){
			case "amour-propre" :
				changeImages(amour-propreArray);
				break;
			case "places" :
				changeImages(placesArray);
				break;
			case "stilllife" :
				changeImages(stillLifeArray);
				break;
			case "photograms" :
				changeImages(photogramsArray);
				break;
			default:
				break;
		}// end switch	
	}// end changeTable

	// changes the images in the table
	function changeImages(photos){
		for (var i=0; i<21; i++){
			img_src = "thumb" + (i+1);
			document[img_src].src = photos[i];
			document[img_src].style.display = "block";
		}// end for loop
	}// end changeImages

	// changes the main photo
	function changeMain(i){
		
		img_src = "thumb" + (i);
		document.mainPhoto.src = document[img_src].src;	
	}// end changeMain function
