<!--
var CurrentlyActiveSubNavMenuButton = null;
var CurrentlyVisibleSubNavMenu = null;

window.onload = function()
{
    freeFloatingMenu();
}

function bustOutOfFrames()
{
    if (self.location != top.location) {
        top.location = self.location;
    }
}
 
function makeDefaultTextBox(txt)
{
    document.getElementById(txt).focus();
}

function freeFloatingMenu()
{
    var freeFloatingArr = document.getElementById("top_menu") ? document.getElementById("top_menu").getElementsByTagName("td") : [];

    for (i = 0; i < freeFloatingArr.length; i++) {
        if (freeFloatingArr[i].className == "top_menu_button") {
            
            // attach mouseover events
            freeFloatingArr[i].onmouseover = function() {
                if (this.getElementsByTagName("ul")[0] != null) {
                    if (typeof hideMenuTimeout != "undefined") {
                        window.clearTimeout(hideMenuTimeout);
                        hideObject.objRef = prevMenu;
                        
                        if (prevMenu != this.getElementsByTagName("ul")[0]) {
                            hideObject();
                        }
                    }
                    showObject.objRef = this.getElementsByTagName("ul")[0];
                    showMenuTimeout = window.setTimeout("showObject()",250);
                }
            }
            freeFloatingArr[i].onmouseout = function() {
                if (this.getElementsByTagName("ul")[0] != null) {
                    if (typeof showMenuTimeout != "undefined") {
                        window.clearTimeout(showMenuTimeout);
                    }
                    hideObject.objRef = this.getElementsByTagName("ul")[0];
                    hideMenuTimeout = window.setTimeout("hideObject()",750);
                    prevMenu = this.getElementsByTagName("ul")[0];
                }
            }
        }
    }
}

function ShowSubNavMenu(calling_object, menu)
{
    HideOtherSubNavMenu();
    
    menu.style.visibility = "visible";
    CurrentlyVisibleSubNavMenu = menu;
    
    calling_object.style.color = "#AAAAAA";
    CurrentlyActiveSubNavMenuButton = calling_object;
}

function HideOtherSubNavMenu()
{
    if (CurrentlyVisibleSubNavMenu != null)
    {
        CurrentlyVisibleSubNavMenu.style.visibility = "hidden";
        CurrentlyVisibleSubNavMenu = null;
    }
    
    if (CurrentlyActiveSubNavMenuButton != null)
    {
        CurrentlyActiveSubNavMenuButton.style.color = "#FFFFFF";
        CurrentlyActiveSubNavMenuButton = null;
    }
}

var showObject = function()
{
    showObject.objRef.style.visibility = "visible";
}

var hideObject = function()
{
    hideObject.objRef.style.visibility = "hidden";
}
// -->