////////////////////////////////////////////////////////////////////////
//
// Filename:    js/highlight.js
// Purpose:     dynamically replace TR style for highlighting
// Method:      DHTML
// Author:      Steve Stchur, J.van.der.Steen@gobase.org
// Date:        2006-03-17
//
////////////////////////////////////////////////////////////////////////
startHighlight = function()
{
    if (document.all && document.getElementById) {
        navRoot = document.getElementById("list");
        if (navRoot == null) return;

        // Find the TBODY element
        tbody = null;
        for (i = 0; i < navRoot.childNodes.length; i++) {
            node = navRoot.childNodes[i];
            if (node.nodeName == "TBODY") {
                tbody = node;
                break;
            }
        }
        if (!tbody) {
            // alert("No TBODY found");
            return;
        }

        for (i = 0; i < tbody.childNodes.length; i++) {
            node = tbody.childNodes[i];
            if (node.nodeName == "TR") {
                if (node.className == "hlt") {
                    node.onmouseover=function()
                    {
                        this.className = "over";
                    }

                    node.onmouseout=function()
                    {
                        this.className = this.className.replace("over", "def");
                    }
                }
            }
        }
    }
}

window.onload = startHighlight;
