// duplicate the array of available images
var flashImg_array = imagePool_array.slice(0);

// set the number of boxes spliting the image pool
var numPhotoboxes = 3;
var numImgs = Math.floor(flashImg_array.length / numPhotoboxes);

// return a unique array of images to display
function getPhotoboxImages() {
	var return_array = new Array();
	
	for (var i = 0; i < numImgs; i++) {
		var randomNumber = Math.floor(Math.random() * (flashImg_array.length - 1));
		return_array.push(flashImg_array.splice(randomNumber, 1)[0]);
	}
	
	return return_array;
}

