function Toggle(node, toggle)
{
	var itm = node.parentNode.children.item(2);//nextSibling.nextSibling.nextSibling;
	var shown = false;
   	// Unfold the branch if it isn't visible
	if (itm.style.display == 'none' || toggle == 1)
	{
		// Change the image (if there is an image)
		if (node.children.length > 0)
		{
			if (node.children.item(0).tagName == "IMG")
			{
				node.children.item(0).src = "/brain/t_minus.gif";
			}
		}
		itm.style.display = '';
		shown = true;
	}
	// Collapse the branch if it is visible
	if(!shown || toggle == 2)
	{
		// Change the image (if there is an image)
		if (node.children.length > 0)
		{
			if (node.children.item(0).tagName == "IMG")
			{
				node.children.item(0).src = "/brain/t_plus.gif";
			}
		}
		itm.style.display = 'none';
	}

}

function Expand(t)
{
	var subdirs = document.all.item("subdir");//getElementsByTagName("table");//getElementsByName("subdir");
	for(i = 0; i < subdirs.length; i++)
		Toggle(subdirs(i).parentNode.children.item(0), t);
}