//------------------------------------------------------------------------------
// Class:  Forum
//------------------------------------------------------------------------------
// Author:  CL
// Date:  2007/02/21
// Description:  This class defines the functions used by the Forum (common forum functions).
//------------------------------------------------------------------------------
function Forum()
{
	//--------------------------------------------------------------------------

	// Methods:
	this.showTags = showTags;
	
	//--------------------------------------------------------------------------
	
	function showTags(idString,intForumSection)
	{
		theTags = document.getElementById(idString);
			
		if (theTags.style.display == "none")
		{
			theTags.style.display = "block";
			switch(intForumSection)
			{
				case 1:
					document.getElementById('TagsTitle').innerHTML = "Hide tags for these Forum(s)"
					break
				case 2:
				document.getElementById('TagsTitle').innerHTML = "Hide tags for this Forum"
					break
				case 3:
					document.getElementById('TagsTitle').innerHTML = "Hide tags for this Topic"
					break
				default:
					document.getElementById('TagsTitle').innerHTML = "Hide tags for these Forum(s)"
			}
			document.frmShowTagsImg.src = '/Forum/img/minus.gif';
		}
		else
		{
			theTags.style.display = "none";
			switch(intForumSection)
			{
				case 1:
					document.getElementById('TagsTitle').innerHTML = "Show tags for these Forum(s)"
					break
				case 2:
				document.getElementById('TagsTitle').innerHTML = "Show tags for this Forum"
					break
				case 3:
					document.getElementById('TagsTitle').innerHTML = "Show tags for this Topic"
					break
				default:
					document.getElementById('TagsTitle').innerHTML = "Show tags for these Forum(s)"
			}
			document.frmShowTagsImg.src = '/Forum/img/plus.gif';
		}
	}
}

// Create Object
oForum = new Forum();
