Contact = {
	container : null,
	content : null,
	owner : null,
	playBackgroundSound : true,
	init : function(params) {
		Contact.owner = params.owner;
	},
	show : function(root) {
		if (!Contact.container) {
			Contact.createContainer(root);
		}
		$.post("templates/8/servlet.php", {action : "getContact", owner : this.owner}, Contact.set);
	},
	hide : function() {
		if (Contact.container) {
			Contact.container.parentNode.removeChild(Contact.container);
			Contact.container = null;
			Contact.content = null;
		}
	},
	canPlayBackgroundSound : function() {
		return Contact.playBackgroundSound;
	},
	createContainer : function(root) {
		var div = document.createElement("div");
		div.id = "contact";
		div.className = "contactHidden";
		Contact.container = div;
		root.appendChild(div);
		return div;
	},
	set : function(content) {
		Contact.content = content;
		Contact.change();
	},
	change : function() {
		Contact.draw();
		/* więcej akcji */
	},
	draw : function() {
		Contact.container.innerHTML = Contact.content;
		Contact.container.className = "contactVisible";
	}
}
