<!--
/******************* MENU PULLDOWN BY WEB-REFERENCE ***********************/

// DHTML & Javascript by www.webreference.com (expandable Outlines) 1999
//
// Added a few additional features, such as mouseovers, mouse-on states.
// Web Effect 2000
//
// Only one menu is displayed at any one time.  To disable this feature,
// remove all associations to oldEl and prevEl in expandIt().


NS4 = (document.layers) ? 1 : 0;
IE4 = (document.all) ? 1 : 0;
ver4 = (NS4 || IE4) ? 1 : 0;

if (ver4) {
    with (document) {
        write("<STYLE TYPE='text/css'>");
        if (NS4) {
            write(".start {position:relative; visibility:show}");
            write(".parent {position:absolute; visibility:show}");
            write(".child {position:absolute; visibility:show}");
            write(".regular {position:absolute; visibility:show}")
        }
        else {
            write(".child {display:none}")
        }
        write("</STYLE>");
    }
}

isExpanded = false;
prevEl = "el1";  // First expandable element (not always the FIRST element).

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;
    nextX = document.layers[firstInd].pageX;
    for (i=firstInd+1; i<document.layers.length; i++) {
        whichEl = document.layers[i];
        if (whichEl.visibility != "hide") {
            whichEl.pageY = nextY;
            whichEl.pageX = nextX;
            nextY += whichEl.document.height;
        }
    }
}

function initIt(){
    if (!ver4) return;
    if (NS4) {
        for (i=0; i<document.layers.length; i++) {
            whichEl = document.layers[i];
            if (whichEl.id.indexOf("Parent") != -1) whichEl.visibility = "show";
            if (whichEl.id.indexOf("Child") != -1) {
				whichEl.visibility = "hide";
				whichEl.bgColor = "ffffff";
				whichEl.clip.width=119;
			}
            if (whichEl.id.indexOf("Rest") != -1) whichEl.visibility = "show";
        }
        arrange();
    }
    else {
        divColl = document.all.tags("DIV");
        for (i=0; i<divColl.length; i++) {
            whichEl = divColl(i);
            if (whichEl.className == "parent") whichEl.style.visibility = "visible";
            if (whichEl.className == "child") whichEl.style.display = "none";
            if (whichEl.className == "regular") whichEl.style.visibility = "visible";
        }
    }
}

function expandIt(el) {     // Original = el, gfx
    if (!ver4) return;
    if (IE4) {
        whichEl = eval(el + "Child");
        whichIm = event.srcElement;
        oldEl = eval(prevEl + "Child");
        if (whichEl.style.display == "none") {
            oldEl.style.display = "none";
            whichEl.style.display = "block";
//            whichIm.src = "graphics/" + gfx + "_close.gif";
        }
        else {
            whichEl.style.display = "none";
//            whichIm.src = "graphics/" + gfx + ".gif";
        }
    }
    else {
        whichEl = eval("document." + el + "Child");
        whichIm = eval("document." + el + "Parent.document.images['imEx']");
        oldEl = eval("document." + prevEl + "Child");
        if (whichEl.visibility == "hide") {
            oldEl.visibility = "hide";
            whichEl.visibility = "show";
//            whichIm.src = "graphics/" + gfx + "_close.gif";
        }
        else {
            whichEl.visibility = "hide";
//            whichIm.src = "graphics/" + gfx + ".gif";
        }
        arrange();
    }
    prevEl = el;
}
