/*
// JavaScript Document

//declare menuArray - this will hold all the elements we need to work with
var menuArray = new Array();	//holds ids
var menuIndex = 0;

function hideMenus(element) {
    alert("hi");
}

function doAll() {
    for (var i = 0; i < document.all.length; i++) {
        thisID = document.all[i].id;
        if (thisID != "") {
            menuArray[menuIndex] = document.all[i].id;
            menuIndex++;
        }
    }
}

function doChildren(parent) {
    var text = "";
    //debugWin.document.writeln("<br /> inside the doChildren function");

    for (var i = 0; i < parent.childNodes.length; i++) {
        //debugWin.document.writeln("<br /><br />looping through for - i: " + i);

        var child = parent.childNodes[i];

        //debugWin.document.writeln("<br />child is: " + child);
        //debugWin.document.writeln("<br />child id: " + child.id);
        //debugWin.document.writeln("<br />child nodeName: " + child.nodeName);
        //debugWin.document.writeln("<br />child nodeType: " + child.nodeType);

        if (child.nodeType == 1) {

            if (child.id != "") {
                menuArray[menuIndex] = child.id;
                menuIndex++;
            }

            //debugWin.document.writeln("<br />child id is not empty");
            //debugWin.document.writeln("<br />child has " + child.childNodes.length + " children");

            if (child.childNodes) {

                //debugWin.document.writeln("<br />child has nodes: " + child.childNodes.length);
                doChildren(child);
            }
        }
    }
}

startList = function() {
    //debugWin = window.open("", "debugWin", "");

    //set our values in the global menuArray
    if (document.all){ doAll(); }
    if (document.childNodes){ doChildren(document.body); }

    if (document.getElementById) {
        k = 0;
        navRoot = new Array();

        //debugWin.document.writeln("<br />line 52: " + menuArray.length);

        for (j = 0; j < menuArray.length; j++) {
            thisID = menuArray[j];
            //debugWin.document.writeln("<br />thisId: " + thisID);
            //debugWin.document.writeln("<br />j value: " + j);


            if (thisID != "" && thisID.indexOf("nav") > -1) {
                //this is a nav item
                //try
                //{	
                navRoot[k] = document.getElementById(thisID);

                //debugWin.document.writeln("navRoot[k].class: " + navRoot[k].className + "<br />");

                for (i = 0; i < navRoot[k].childNodes.length; i++) {
                    node = navRoot[k].childNodes[i];

                    //debugWin.document.writeln("node: " + node + "<br />");

                    if (node.nodeName == "LI") {

                        //debugWin.document.writeln("node.className: " + node.className + "<br />");


                        node.onmouseover =
							function() {
							    //alert(this.name + " " + this.className);

							    //debugWin.document.writeln(this.name + " " + this.className);

							    this.className = this.className.replace(" under", "");
							    this.className += " over";
							}

                        node.onmouseout =
							function() {
							    this.className = this.className.replace(' over', '');
							    this.className += ' under';

							    //debugWin.document.writeln("onmouseout class: " + navRoot[k].style.position + "<br />");
							}
                    }

                } //end i for loop

                k++;

                //}
                //catch(e)
                //{	
                //	alert(e);
                //}		
            } //end thisID if statement
        } //end j loop
    }
}

window.onload=startList;
*/