var bV=parseInt(navigator.appVersion);
NS4=(document.layers) ? true : false;
IE4=((document.all || document.getElementById)&&(bV>=4))?true:false;
ver4 = (NS4 || IE4) ? true : false;
function expandIt(){return}
function arrange() {
	nextY = document.layers[firstInd].pageY + document.layers[firstInd].document.height;
	for (i=firstInd+1; i<document.layers.length; i++) {
		whichEl = document.layers[i];
		if (whichEl.visibility != "hide") {
			whichEl.pageY = nextY;
			nextY += whichEl.document.height;
		}
	}
}

function initIt(){
	if (NS4) {
		for (i=0; i<document.layers.length; i++) {
			whichEl = document.layers[i];
			if (whichEl.id.indexOf("Child") != -1) whichEl.visibility = "hide";
		}
		arrange();
	}
	else {
		tempColl = document.all ? document.all.tags("DIV") : document.getElementsByTagName("div");
		for (i=0; i<tempColl.length; i++) {
			if (tempColl[i].className == "child") tempColl[i].style.display = "none";
		}
	}
	try{
		expandfolders();
		doonload();
	}catch(e){};
}

function expandIt(el) {
	if (!ver4) return;
	if (IE4) {expandIE(el)} else {expandNS(el)}
}

function expandIE(el) {
	whichEl = document.getElementById(el + "Child");
	whichIm = document.getElementById(el + "IMG");
	whichIm2 = document.getElementById(el + "IMG2");
	if ((whichEl.style.display == "none") || (whichEl.style.display == "")){
		whichEl.style.display = "block";
		whichIm.src = "secure/tree-1-open.gif";
		whichIm.alt = "Collapse";
		//whichIm2.src = "secure/tree-folder-open.gif";
	}
	else {
		whichEl.style.display = "none";
		whichIm.src = "secure/tree-1-closed.gif";
		whichIm.alt = "Expand";
		//whichIm2.src = "secure/tree-folder-closed.gif";
	}
}

function expandNS(el) {
	whichEl = eval("document." + el + "Child");
	whichIm = eval("document." + el + "IMG");
	if (whichEl.visibility == "hide") {
		whichEl.visibility = "show";
		whichIm.src = "secure/tree-1-open.gif";
	}
	else {
		whichEl.visibility = "hide";
		whichIm.src = "secure/tree-1-closed.gif";
	}
	arrange();
}
with (document) {
	write("<style type='text/css'>");
	if (NS4) {
		write(".parent {position:absolute; visibility:hidden}");
		write(".child {position:absolute; visibility:hidden}");
		write(".regular {position:absolute; visibility:hidden}")
	}
	else {
		write(".child {display:none}")
	}
	write("</style>");
}

window.onload = initIt;

