	function showblock(blockname) {
			show(blockname);
			hide("more" + blockname);
			show("less" + blockname, "inline");
			getpage("showprojects.php?status=" + blockname);
			doc.getElementById("url" + blockname).href = "javascript:hideblock('" + blockname + "')";
	}
	function hideblock(blockname) {
			hide(blockname);
			hide("less" + blockname);
			show("more" + blockname, "inline");
			doc.getElementById("url" + blockname).href = "javascript:showblock('" + blockname + "')";
	}

	function readmore(id, img) {
		hide("s" + id);
		show("div" + id);
		show("info" + id);
		doc.getElementById("img" + id).src = "thumbnail.php?img=" + img + "&x=100";
		doc.getElementById("url" + id).oldhref = doc.getElementById("url" + id).href;
		doc.getElementById("url" + id).href = "javascript:showless(" + id + ")";
		getpage("getsummary.php?id=" + id);
	}
	

	function showless(id) {
		hide("div" + id);
		show("s" + id);
		doc.getElementById("url" + id).href = doc.getElementById("url" + id).oldhref;
		//getpage("showreleases.php?id=" + id);
	}
	
	function showreleases(id) {
		hide("relp" + id);
		show("rel" + id);
		doc.getElementById("rurl" + id).href = "javascript:hidereleases(" + id + ")";
		sethtml("rurl" + id, "[hide releases]");
		getpage("showreleases.php?id=" + id);
	}
	function hidereleases(id) {
		hide("rel" + id);
		show("relp" + id);
		doc.getElementById("rurl" + id).href = "javascript:showreleases(" + id + ")";
		sethtml("rurl" + id, "[view releases]");
	}
	function showvol(id) {
		show("vol" + id);
		hide("vm" + id);
		show("vl" + id, "inline");
		getpage("showreleases.php?vid=" + id);
		doc.getElementById("vurl" + id).href = "javascript:hidevol(" + id + ")";
	}
	function hidevol(id) {
		hide("vol" + id);
		hide("vl" + id);
		show("vm" + id, "inline");
		doc.getElementById("vurl" + id).href = "javascript:showvol(" + id + ")";
	}
	
