//
// function open/dicht....
// (Remy Blom) 02 april 2007
//

function toggleItem(thisItem)
{
	myParentNode = thisItem.parentNode;
	if (myParentNode.className == "toggle_closed")
	{
		myParentNode.className = "toggle_open";
		showSubs(myParentNode.id);
	}
	else
	{
		myParentNode.className = "toggle_closed";
		hideSubs(myParentNode.id);
	}
}

function showSubs(thisItem)
{
	max = 15;
	for (i=1;i<max;i++)
	{
		myNode = window.document.getElementById(thisItem + "_" + i);
		myNode.className = "all_opened";
	}
}

function hideSubs(thisItem)
{
	max = 15;
	for (i=1;i<max;i++)
	{
		myNode = window.document.getElementById(thisItem + "_" + i);
		if (myNode != null)
		{
			myNode.className = "all_closed";
		}
	}
}
	
