
function FolderInitV2(){
	if (NS4) {
	firstEl = "mParent";
	firstInd = getIndexV2(firstEl);
	showAllV2();
		for (i=0; i<document.layers.length; i++) {
			whichEl = document.layers[i];
			if (whichEl.id.indexOf("Children") != -1) whichEl.visibility = "hide";
		}
		arrangeV2();
	}
	else {
		tempColl = document.all.tags("DIV");
		for (i=0; i<tempColl.length; i++) {
			if (tempColl(i).className == "children") tempColl(i).style.display = "none";
		}
	}
}

function FolderExpandV2($1,$2,$3) {
	if (!ver4) return;
	if (IE4) { ExpandIEV2($1,$2,$3) } 
	else { ExpandNSV2($1,$2,$3) }
}

function ExpandIEV2($1,$2,$3) {
	//Expanda = eval($1 + "a");
	//Expanda.blur()
	ExpandChild = eval($1 + "Children");
        if ($2 != "top") { 
		//ExpandTree = eval($1 + "Tree");
		//ExpandFolder = eval($1 + "Folder");
	}

	if (ExpandChild.style.display == "none") {
		FolderInitV2();
		ExpandChild.style.display = "block";
	}
	else {
		ExpandChild.style.display = "none";
	}
	
}
function ExpandNSV2($1,$2,$3) {
	ExpandChild = eval("document." + $1 + "Children")
        if ($2 != "top") { 
		//ExpandTree = eval("document." + $1 + "Parent.document." + $1 + "Tree")
		//ExpandFolder = eval("document." + $1 + "Parent.document." + $1 + "Folder")
	}	
	if (ExpandChild.visibility == "hide") {
		ExpandChild.visibility = "show";
              	}
	else {
		ExpandChild.visibility = "hide";
              }
	arrangeV2();
	
}

function showAllV2() {
	for (i=firstInd; i<document.layers.length; i++) {
		whichEl = document.layers[i];
		whichEl.visibility = "show";
	}
}



//onload = FolderInitV2;