/*
function xGetElementById(e) {
    if(typeof(e) != 'string') return e;
    if(document.getElementById) e = document.getElementById(e);
    else if(document.all) e = document.all[e];
    else e = null;
    return e;
}


var visible = false;

function DoMenuAction()
{
    visible = !visible;
    if(visible)
        Hide();
    else
        ShowId();
        
}

function _getBgElements()
{
    var bgElements = new Array();
    var j = 0;
    for(var i = 1; i <= 4; i++)
    {
        if(xGetElementById('menu' + i + '_bg') != null) 
        {
            bgElements[j] = 'menu' + i + '_bg';
            j++;
        }
    }
    return bgElements;
}
function _getTextElements()
{
    var textElements = new Array();
    var j = 0;
    for(var i = 1; i <= 4; i++)
    {
        if(xGetElementById('menu' + i + '_text') != null) 
        {
            textElements[j] = 'menu' + i + '_text';
            j++;
        }
    }
    return textElements;
}

function Hide()
{
    var bgElements = _getBgElements();
    var textElements = _getTextElements();
    
    Effect.multiple(bgElements, Effect.BlindUp);
    Effect.multiple(textElements, Effect.BlindUp);
}

function ShowId()
{
    var bgElements = _getBgElements();
    var textElements = _getTextElements();

    Effect.multiple(bgElements, Effect.BlindDown);
    Effect.multiple(textElements, Effect.BlindDown);
}
*/