<!-- Begin

/** toggleManager
  *
  * construction 
  */
function toggleManager()
{
	this.toggleManagerGroups=[];
	this.hide='hide';
}

toggleManager.prototype.on=function(group,strElement,strVisible)
{
	var objElement=document.getElementById(strElement);
	
	/* restore the item to it's hidden state */
	
	if (this.toggleManagerGroups[group]!=null)
	{
		this.toggleManagerGroups[group].className=this.hide;
	}
	
	this.toggleManagerGroups[group]=objElement;
	
//	alert(	this.toggleManagerGroups[group] + "\n--\t" + this.toggleManagerGroups[group].className);
	
	objElement.className=strVisible;
}

toggleManager.prototype.toggle=function(group,strElement,strVisible)
{
	var objElement=document.getElementById(strElement);
	
	/* if the item being toggled is the current item, untoggle */

	if (this.toggleManagerGroups[group]==objElement)
	{
		if (objElement.className==strVisible)
	 	{
			objElement.className=this.hide;
		}
		else
		{
			objElement.className=strVisible;
		}
		
		return;	
	}

	
	if (this.toggleManagerGroups[group]!=null)
	{
		this.toggleManagerGroups[group].className=this.hide;
	}
	
	objElement.className=strVisible;
	this.toggleManagerGroups[group]=objElement;
	
	
	
}
-->