
	function showRight(el) {
		if ($('right')) {
			$$("#right > div").each(function(div) {
				if (div != $("sub-" + el)) {
					div.setStyle("display", "none");
				} else {
					div.setStyle("display", "block");
				}
			});
		}
		window.location.hash = "#" + el;
	}
	
	window.addEvent("domready", function() {
		var show = "";
		if (window.location.hash != "") {
			show = window.location.hash.replace(/#/g, "");
		}
		$$("a").each(function(a) {
			if ((a.get("href")) && (a.get("href").indexOf("#") == 0)) {
				if (a.get("href") == "#") {
					a.dispose();
				} else {
					if (show == "") {
						show = a.get("href").replace(/#/g, "");
					}
					if ($(a.get("href").replace(/#/g, "")))
						$(a.get("href").replace(/#/g, "")).set("id", "sub-" + a.get("href").replace(/#/g, ""))
					a.addEvent("click", function(e) {
						e.stop();
						showRight(a.get("href").replace("sub-", "").replace(/#/g, ""));
					});
				}
			}
		});
		if (show != "") {
			showRight(show);
		}
	});
