// Copyright (c) 2003 IRIS Media Systems.  All Rights Reserved.

function clickie()
{
	rootNode = window.event.srcElement;
	while ((rootNode) && (rootNode.className != "src-box")) {
		rootNode = rootNode.parentElement;
	}
	if (!rootNode) {
		return;
	}

	if (rootNode.firstChild.innerText == "+") {
		rootNode.firstChild.innerText = "-";
		for (var i = 1; i < rootNode.parentElement.children.length; i++)
			rootNode.parentElement.children(i).style.display = "block";
	} else if (rootNode.firstChild.innerText == "-") {
		rootNode.firstChild.innerText = "+";
		for (var i = 1; i < rootNode.parentElement.children.length; i++)
			rootNode.parentElement.children(i).style.display = "none";
	}
}

function clickmozilla(e)
{
	rootNode = e.target.parentNode;
	while ((rootNode) && (rootNode.className != "src-box")) {
		rootNode = rootNode.parentNode;
	}
	if (!rootNode) {
		return;
	}

	childNode = rootNode;
	do {
		childNode = childNode.nextSibling;
	} while (childNode.className != "src-children");

	if (childNode.className=="src-children") {
		if (rootNode.firstChild.firstChild.nodeValue=="+") {
			rootNode.firstChild.firstChild.nodeValue="-";
			childNode.style.display="block";
		} else if (rootNode.firstChild.firstChild.nodeValue=="-") {
			rootNode.firstChild.firstChild.nodeValue="+";
			childNode.style.display="none";
		}
	}
}

// Set the onclick handler
if ((navigator.appName == "Netscape") || (navigator.appName == "Konqueror")) {
	document.onclick = clickmozilla;
} else {
	document.onclick = clickie;
}

