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 isSplashLandingPage = document.getElementById("splash_landing_page") != null;

        var newPageHeight = bottom - ( isSplashLandingPage ? (isIE7 ? 38 : 98) : 221 );

        if (self.page_content_height_diff)
            newPageHeight -= self.page_content_height_diff;
        

        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)
    {        
    }
}

function jsAppend(js_file)
{
  js_script = document.createElement('script');
  js_script.type = "text/javascript";
  js_script.src = js_file;
  document.getElementsByTagName('head')[0].appendChild(js_script);
}

function cssAppend(css_file)
{
  css = document.createElement('link');
  css.type = "text/css";
  css.rel = "stylesheet";
  css.href = css_file;
  document.getElementsByTagName('head')[0].appendChild(css);
}

function htmlDecode(input)
{
  var e = document.createElement('div');
  e.innerHTML = input;
  return e.childNodes[0].nodeValue;
}

