function externalLink(param)
{
    document.location = param;
}

startList = function() {
    if (document.all && document.getElementById) {
        var navRoot = document.getElementById("nav-wrap");
        if (navRoot && navRoot.firstChild && navRoot.firstChild.nodeName == "UL") {
            navRoot = navRoot.firstChild;
            var len = navRoot.childNodes.length;
            for (i = 0; i < len; i++) {
                node = navRoot.childNodes[i];
                if (node.nodeName == "LI") {
                    node.onmouseover=function() {
                        this.className += " over";
                    }
                    node.onmouseout=function() {
                        this.className=this.className.replace(" over", "");
                    }
                    
                    // get first child
                    if (node.lastChild && node.lastChild.nodeName == 'UL') {
                        // loop through children
                        var childIndex = 0;
                        var length = node.lastChild.childNodes.length;
                        var childNodes = node.lastChild.childNodes;
                        for (; childIndex < length; ++childIndex) {
                            childNodes[ childIndex ].onmouseover=function() {
                                this.className += " over";
                            }
                            childNodes[ childIndex ].onmouseout=function() {
                                this.className=this.className.replace(" over", "");
                            }
                        }
                    }
                }
            }
        }
    }
}

Event.observe(window, 'load', startList);