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