net_lemats_gallery_ImageMap = Class.create();
net_lemats_gallery_ImageMap.prototype = {

    initialize : function() {
		/** Falsches assoziatives Array als Map der Images */
		this._map = new Object();  
    },
    
	add : function(/*Image*/ image) {
		if (!this.exist(image)) {
			this._map[image.id] = image;
		}
	},
	
	exist : function(/*string*/ id) {
		return this._map[id] != null;
	},
	
	get : function(/*string*/ id) {
		if (this.exist(id)) {
			return this._map[id];
		}
		else {
			return null;
		}
	}

}
