if (sNS4) {
	firstEl = "elThirtythreeParent";
	firstInd = getIndex(firstEl);
	showAll();
	hideChild();
	arrange();
}




isExpanded = false;
//sNS6 = true ;
function getIndex(el) {
	ind = null;
	for (i=0; i<document.layers.length; i++) {
		whichEl = document.layers[i];
		if (whichEl.id == el) {
			ind = i;
			break;
		}
	}
	return ind;
}

function arrange() {
	if (sNS4) {
		document.layers[firstInd].pageY = 150;
		document.layers[firstInd].pageX = 170;
	}
	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;
			whichEl.pageX = 170;
			nextY += whichEl.document.height;
		}
	}
//	if (sNS4) {
//		sind = null;
//		sind = getIndex("topdiv");
//		document.layers[sind].height = nextY + 100;
//	}
}

	function initIt(){
	if (sNS4) {
		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.tags("DIV");
		for (i=0; i<tempColl.length; i++) {
			if (tempColl(i).className == "child") tempColl(i).style.display = "none";
		}
	}
}

function expandIt(el) {
	if(sNS6) {
	   expandNS6(el);	
	}
	if (!sver4) return;
	
	if (sIE4) {
		expandIE(el)
	} else {expandNS(el)}
}
function expandNS6(el) {
   i = el+"Child";
   x = document.getElementById(i);
   if(x.style.display == "none" || x.style.display == "") {
	x.style.display = "block";		
   } else {
	x.style.display = "none";		
//	arrangeNS6(i);
   }
}

/*function arrangeNS6() {
   x = document.getElementById(i);
}*/


function expandIE(el) { 
	whichEl = eval(el + "Child");
//	whichIm = event.srcElement;
	if (whichEl.style.display == "none" || whichEl.style.display == "") {
		whichEl.style.display = "block";
//		whichIm.src = "triUp.gif";		
	}
	else {
		whichEl.style.display = "none";
//		whichIm.src = "triDown.gif";
	}
}

function expandNS(el) {
	whichEl = eval("document." + el + "Child");
	if (whichEl.visibility == "hide") {
		whichEl.visibility = "show";
	}
	else {
		whichEl.visibility = "hide";
	}
	arrange();
}

function showAll() {
	for (i= firstInd; i<document.layers.length; i++) {
		whichEl = document.layers[i];
		whichEl.visibility = "show";
	}
}

function hideChild() {
	for (i=0; i<document.layers.length; i++) {
		whichEl = document.layers[i];
		if (whichEl.id.indexOf("Child") != -1) whichEl.visibility = "hide";
	}
}
function expandAll(isBot) {
//	newSrc = (isExpanded) ? "triDown.gif" : "triUp.gif";
      
	if (sNS4) {
        //document.images["imEx"].src = newSrc;
		for (i=firstInd; i<document.layers.length; i++) {
			whichEl = document.layers[i];
			if (whichEl.id.indexOf("Parent") != -1) {
//				whichEl.document.images["imEx"].src = newSrc;
			}
			if (whichEl.id.indexOf("Child") != -1) {
				whichEl.visibility = (isExpanded) ? "hide" : "show";
			}
		}

		arrange();
		if (isBot && isExpanded) scrollTo(0,document.layers[firstInd].pageY);
	}
	else {
		divColl = document.all.tags("DIV");
		for (i=0; i<divColl.length; i++) {
			if (divColl(i).className == "child") {
				divColl(i).style.display = (isExpanded) ? "none" : "block";
			}
		}
//		imColl = document.images.item("imEx");
//		for (i=0; i<imColl.length; i++) {
//			imColl(i).src = newSrc;
//		}
	}

	isExpanded = !isExpanded;
}
