$(document).ready(function() {
	$("li > a[href^=#]").click(function() {
		$(".dup").remove();
		$("li:not([id])").show();
		$(this).parent().hide();
		$("#" + this.href.replace(/^.*#/, "")).clone().addClass("dup").show().insertAfter($(this).parent());
		return false;
	})
	$("li[id]").hide();
	if(location.hash != "" && location.hash != "#") {
		$("a[href^=" + location.hash + "]").parent().hide();
		$(location.hash).clone().addClass("dup").show().insertAfter($("a[href^=" + location.hash + "]").parent());
	}
})