function show_login()
{
	document.getElementById("login_bottom").style.display = "block";
    document.getElementById("login").focus();
}
function hide_login()
{
	document.getElementById("login_bottom").style.display = "none";
}
function activateInnerLink(o)
{
	document.location.href = o.getElementsByTagName("a")[0].href;
}

var minPageHeight = 0;

function pageResize()
{
    try
    {
        var pos = document.getElementById("footer").offsetTop + (isIE7 ? 62 : 75);
        var bottom = document.getElementById("page_bottom").offsetTop;

        var newPageHeight = bottom - 221;

        if (isIE7)
            newPageHeight += 0;
        

        if ( pos < bottom || minPageHeight > 0 )
        {
            if (minPageHeight == 0)
                minPageHeight = document.getElementById("page_content").clientHeight;

            if (minPageHeight > newPageHeight)
                 newPageHeight = minPageHeight;

             if (isIE6)
                 {
                     document.getElementById("page_content").style.height = (newPageHeight + 10) + "px";
                 }
             else
                document.getElementById("page_content").style.minHeight = (newPageHeight) + "px";
        }
        
    }
    catch (E)
    {        
    }
}

