/**
 * Display large entry-images.
 */
function EntryImageViewer() {
	this.showLargeImage = function(image) {
		img = $(image);
		img.setStyle('display', 'block');
		this.hideAllOther(image);
	}
	this.hideLargeImage = function(image) {
		img = $(image);
		img.setStyle('display', 'none');
	}
	this.hideAllOther = function(image) {
		var counter = 0;
		imgText = 'largeIMG'+counter;
		while ($(imgText)) {			
			if (imgText != image) {
				this.hideLargeImage(imgText);
			}
			counter++;
			imgText = 'largeIMG'+counter;
		}
	}
}
var EIV = new EntryImageViewer();
