var Icons = {
	location: '/img/maps/icons/categories/',
	icons: new Hash(),		
	
	build: function(category) {
		category = (category === undefined) ? 'default' : category;		
		var icon = this.icons[category];
		
		if (icon === undefined) {
	    icon = new GIcon();
	    icon.image = this.location + category + '.img.png';
	    icon.shadow = this.location + category + '.shd.png';
	    icon.iconSize = new GSize(32, 32);
	    icon.shadowSize = new GSize(32, 32);
	    icon.iconAnchor = new GPoint(16, 32);
	    icon.infoWindowAnchor = new GPoint(5, 1);						
			this.icons[category] = icon;
		}
		
		return icon;
	},
	
	add: function(id, icon) {
		this.icons[id] = icon;
	},
	
	get: function(id) {
		return this.icons[id];
	}	
}
