var bV=parseInt(navigator.appVersion);
NS6 = (document.getElementById && !document.all) ? true : false;
NS4=(document.layers) ? true : false;
IE4=((document.all)&&(bV>=4))?true:false;
ver4 = (NS4 || IE4 || NS6) ? true : false;
function expandIt(){return}

isExpanded = false;

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() {
    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 if (NS6) {
	    var allElements = document.getElementsByTagName("DIV");
        for (i=1; i<allElements.length; i++) {
			if (allElements[i].className == "child") {
				allElements[i].style.display = "none";
			}
        }
    }
    else {
        tempColl = document.all.tags("DIV");
        for (i=0; i<tempColl.length; i++) {
            if (tempColl(i).className == "child") { 
             tempColl(i).style.display = "none"; 
          }
        }
    }
}
function showAll() {
	for (i=firstInd; i<document.layers.length; i++) {
		whichEl = document.layers[i];
		whichEl.visibility = "show";
	}
}
function expandIt(el) {
    if (!ver4) return;
    if (IE4) {
		expandIE(el)
	}
	else if (NS6) {
		expandNS6(el)
	}
	else {
		expandNS(el)
	}
}

function expandNS6(el) {
	whichEl = eval("document.getElementById('" + el + "Child')")
    if (whichEl.style.display == "none") {
        whichEl.style.display = "block";
    }
    else {
	whichEl.style.display = "none";
    }
}

function expandIE(el) { 
    whichEl = eval(el + "Child");
    if (whichEl.style.display == "none") {
        whichEl.style.display = "block";
    }
    else {
        whichEl.style.display = "none";
    }
}

function expandNS(el) {
    whichEl = eval("document." + el + "Child");
    whichIm = eval("document." + el + "Parent.document.images['" + el + "']");
    if (whichEl.visibility == "hide") {
        whichEl.visibility = "show";
    }
    else {
        whichEl.visibility = "hide";
    }
    arrange();
}

