
/* Title:		toggle.js
** Description:	Toggling of comments & long postings at http://woodrow.de.vu/
** Author:		Woodrow Shigeru
** contact:		Woodrow.Shigeru@gmx.net
** created:		2oo6-1o-o7
*/

 // toggles the visibility of the current psoting's comments
function togglecomments(postid)
{
	var whichpost = document.getElementById(postid);

	whichpost.className = ( whichpost.className == "commentshown" ) ? "commenthidden" : "commentshown";
}

 // (old) toggles the visibility of psoting sections
function toggleread(selfmadepostid)
{
	var whichpost = document.getElementById(selfmadepostid);
	whichpost.className = ( whichpost.className == "readshown" ) ? "readhidden" : "readshown";
}

 // toggles the visibility of psoting sections
function toggleread_new(selfmadepostid)
{
	 // toggle "selected" element
	document.getElementById(selfmadepostid).style.display = ( document.getElementById(selfmadepostid).style.display == "" ) ? "none" : "";

}
