var Panel = Class.create();
Panel.prototype = {
	initialize : function(id) {
		this.id = id;
		this.createElement();
		this.setVisible(false);
	},
	createElement : function() {
		this.element = document.createElement("div");
		this.element.setAttribute("id", this.id);
		Element.observe(this.element, "click", function(event) {
			Event.stop(event);
		});
	},
	setVisible : function(visible) {
		this.visible = visible ? "block" : "none";
		this.element.style.display = this.visible;
	},
	setPosition : function(pos) {
		var style = this.element.style;
		style.position = "absolute";
		style.left = pos.x + "px";
		style.top = pos.y + "px";
	}
};