// ---------------------------------------------
// --- Name:    Easy DHTML Treeview           --
// --- Author:  D.D. de Kerf                  --
// --- Version: 0.2          Date: 13-6-2001  --
// ---------------------------------------------
function Toggle(node)
{
	// Unfold the branch if it isn't visible
	if (node.nextSibling.style.display == 'none')
	{
		// Change the image (if there is an image)
		if (node.childNodes.length > 0)
		{
			if (node.childNodes.item(0).nodeName == "IMG")
			{
				node.childNodes.item(0).src = "minus.gif";
			}
		}

		node.nextSibling.style.display = 'block';
	}
	// Collapse the branch if it IS visible
	else
	{
		// Change the image (if there is an image)
		if (node.childNodes.length > 0)
		{
			if (node.childNodes.item(0).nodeName == "IMG")
			{
				node.childNodes.item(0).src = "plus.gif";
			}
		}

		node.nextSibling.style.display = 'none';
	}

}

function sUp(){
	var oContent = document.getElementById("navcontent");
	var topNow = oContent.style.top;
	var topNow = topNow.split("px");
	var topNow = parseInt(topNow[0]);
	if(isNaN(topNow)){topNow = 0;}
	if(topNow != 0){
		oContent.style.top = topNow+=50;
	}
}

function sDown(){
	var oContent = document.getElementById("navcontent");
	var topNow = oContent.style.top;
	var topNow = topNow.split("px");
	var topNow = parseInt(topNow[0]);
	if(isNaN(topNow)){topNow = 0;}
//	if(topNow <= 0){
		oContent.style.top = topNow-=50;
//	}
}