var collEnlargedImages = new Array();

function getRefs(){
	if (collEnlargedImages.length==0){
		for (i=0; i<50; i++){
			ob = getById('photo' + i);
			if (ob==null){
				break;	
			}
			else{
				collEnlargedImages[i] = ob;
			}
		}
	}
}

function swapEnlargedImage(imageNum){
	getRefs();
	
	for (i=0; i<collEnlargedImages.length; i++){
		if (i==imageNum){
			collEnlargedImages[i].style.display = 'block';
		}
		else{
			collEnlargedImages[i].style.display = 'none';
		}
	}
}
