function toggleOpen ( divId ) {

    // open up the hierarchy at this point
    var div = document.getElementById(divId);
    if (div != null && div.className=="closedStaticNav") {
        div.className="openStaticNav";
        } else {
        //div.className="closedStaticNav";
        }
}

function hitUrl( idNum ) {

    // go to this link
    var link = document.getElementById(idNum);
    window.location = link.href;
}

function openChild( idNum ) {

    // find the first link inside this one's div and go to it directly
    var longstring=idNum;
    var brokenstring=longstring.split("_");
    var size = brokenstring.length - 1;
    var toGo = size;
    var urlName = "";

    urlName = "link";
    // find the correct parent
    for (i = 1; i < size; i++) {
        urlName = urlName+"_"+brokenstring[i];
        if (brokenstring[i+1]=="0") { // we found this parent, set to hit first child
            urlName = urlName+"_1";
            break; // get out of this loop
        }
    }

    // fill the rest of the id with _0's
    for (j = 0; j < (size-i-1); j++) {
        urlName = urlName+"_0";
        }

    // hit this id
    hitUrl (urlName);
}

function openAncestors( idNum ) {

    // fopen ancestors
    var longstring=idNum;
    var brokenstring=longstring.split("_");
    var size = brokenstring.length - 1;
    var toGo = size;
    var urlName = "";
    urlName = "nav";

    // look through each of the possible parents
    for (i = 1; i < size; i++) {
        urlName = urlName+"_"+brokenstring[i];
        if (brokenstring[i+1]!="0") { // we found this one's parent, set to hit it
            urlNameGo = urlName;
            // fill the rest of the id with _0's
            for (j = 0; j < (size-i); j++) {
                urlNameGo = urlNameGo+"_0";
                }
            // then hit it
            toggleOpen (urlNameGo);
        }
    }

    // and me
    toggleOpen ( idNum );
}

function domCollapse(which){ // make this safe to call, even though it does nothing
    // do nothing
}

function domCollapseAll(which){ // make this safe to call, even though it does nothing
    // do nothing
}