function showSubMenu(id)
{
    try
    {
        for(var i = 0; true; i++)
        {
            document.getElementById("subMenu" + i).style.visibility = "hidden";
        }
    }
    catch(e)
    {
        try
        {
            document.getElementById("subMenu" + id).style.visibility = "visible";
        }
        catch(e)
        {
        }
    }
}

function activate(target)
{
    target.style.filter = "Alpha(opacity=70)";
}

function deactivate(target)
{
    target.style.removeAttribute("filter", "false");
}

function setLinkImage(img, href, bez)
{
    document.getElementById("linkImg").src = img;
    document.getElementById("linkHref").href = href;
    document.getElementById("linkHref").title = bez;
}

function showImage(url, width, height)
{
    var win = window.open(url, "photo", "width=" + width + ",height=" + height);
    win.moveTo((screen.width - width) / 2, (screen.height - height) / 2);
}

function crypt(a, b, c, d, e)
{
    var f = c + "@" + b + "." + a;
    f = "o:" + f;
    f = "ilt" + f;
    f = "ma" + f;
    var g = "</a>";
    g = d + g;
    g = "\">" + g;
    g = f + g;
    g = "href=\"" + g;
    g = "class=\"" + e + "\" " + g;
    g = "<a " + g;
    return g;
}