var Rooms = {
	list: {},
	add: function(id, roomType, imageList) {
		var room = {
			id: id,
			obj: document.getElementById("description_"+id),
			imageList: imageList,
			roomType: roomType,
			hidden: false,
			hide: function() {
				var oldClass = this.obj.className;
				this.obj.className = oldClass + " hidden";
				this.hidden = true;
			},
			show: function() {
				var oldClass = this.obj.className;
				this.obj.className = oldClass.split('hidden')[0];
				this.hidden = false;
				if (imageList) Photos.setImageList(this.imageList);
			}
		};
		room.hide();
		this.list[id] = room;
	},
	hideBesides: function(id) {
		this.list[id].show();
		for (i in this.list) {
			if (i != id && !this.list[i].hidden) this.list[i].hide();
		}
	}
}

function show(id) {
	Rooms.hideBesides(id);
}