﻿function changeDivHeights() 
{
    pgContent = document.getElementById('pageContent');
    cntrHeight = pgContent.clientHeight;
    leftColumn = document.getElementById('leftContent');
    rightColumnBottom = document.getElementById('rightContentBottom');
    footerBr = document.getElementById('footerBar');
    rightTopHeight = document.getElementById('rightContentTop').clientHeight;

    if (cntrHeight > 840) 
    {
        leftColumn.style.height = cntrHeight + "px";
        rightColumnBottom.style.height = (cntrHeight - rightTopHeight) + "px";
    }
    else 
    {
        leftColumn.style.height = "840px";
        rightColumnBottom.style.height = (840 - rightTopHeight) + "px";
        pgContent.style.height = "840px";
    }

    var sPath = window.location.pathname;
    var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
    if (sPage != "links.aspx") 
    {
        footerBr.style.visibility = "visible";
    }
}

