<!--
var subNavDivTimer;

function HideDiv(subNavDiv)
{
    document.getElementById(subNavDiv).style.display = "none";
    SwitchSelects("visible");
}

function Nav_MouseOver(subNavDiv)
{
    var documentDivs = document.getElementsByTagName("div");
    for (var i = 0; i < documentDivs.length; i++)
    {
		if (document.all)
		{
			//ie
			if (documentDivs[i].subnavdiv != null)
			{
			    HideDiv(documentDivs[i].id);
			}
		}
		else if (document.getElementById)
		{
			//firefox
			if (documentDivs[i].attributes.getNamedItem("subnavdiv") != null)
			{
			    HideDiv(documentDivs[i].id);
			}
		}
    }
    clearTimeout(subNavDivTimer);
    SwitchSelects("hidden");
    document.getElementById(subNavDiv).style.display = "block";
}

function Nav_MouseOut(subNavDiv)
{
    //Set timeout to hide the div
    subNavDivTimer = setTimeout("HideDiv('" + subNavDiv + "')", 1500);
}

function SubNavDiv_MouseOver()
{
    clearTimeout(subNavDivTimer);
}

function SwitchSelects(visibility)
{
    var frm = document.forms[0];
    for (var i = 0; i < frm.elements.length; i++)
    {
        if (frm.elements[i].type == "select-one")
        {
            frm.elements[i].style.visibility = visibility;
        }
    }
}

function switchTheImage(theImage)
{
    if (theImage.src.indexOf("on.jpg") > -1)
    {
        theImage.src = theImage.src.replace("on.jpg", "off.jpg");
    }
    else
    {
        theImage.src = theImage.src.replace("off.jpg", "on.jpg");
    }
}

function switchTheClass()
{
    var theAnchor = event.srcElement;
    theAnchor.className = theAnchor.className == "subNav_On" ? "subNav_Off" : "subNav_On";
}

function ShowHideFilter()
{
    var filterTr = document.getElementById("FilterTr");
    filterTr.className = (filterTr.className == "hidden" ? "visible" : "hidden");
    return false;
}

function MultiLineTextBox_KeyUp()
{
    var theValue = event.srcElement.value;
    if (theValue.length > 255)
    {
        event.srcElement.value = theValue.substr(0, 255);
    }
}
 
function ShowPopUp(url, name)
{
    window.open(url, "win" + name, "height=500, left=50, location=0, menubar=1, resizable=0, screenX=50, screenY=50, scrollbars=1, status=1, toolbar=1, top=50, width=700");
    return false;
}

function JumpToLocationDetails(locationJumpMenu)
{
    if (locationJumpMenu.selectedIndex > 0)
    {
        window.location = "/AboutUs/Locations/LocationDetails.aspx?LocationId="
            + locationJumpMenu.options[locationJumpMenu.selectedIndex].value;
    }
}
-->

