window.onload = function() {
    runCommonJS();
}

function runCommonJS() {
    // check to see if LeftNavigation Exists
    // if True then run NavHeightAddition() 
    if (document.getElementById("MarketingCareers_Navigation") == null) {
        null;
    } else {
        NavHeightAddition();
    }
}

//-- START NavHeightAddition --//
// Add Height to LeftNavigation_Bottom to match height of MainContent
function NavHeightAddition() {
    var MC_LeftNav = document.getElementById("MarketingCareers_Navigation");
    var MC_LeftNavHeight = MC_LeftNav.offsetHeight;
    var MC_Content = document.getElementById("MarketingCareers_Content");
    var MC_ContentHeight = MC_Content.offsetHeight;
    var MC_LeftNavAddition = document.getElementById("LeftNavigation_Bottom");
    var MC_LeftNavAdditionHeight = MC_LeftNavAddition.offsetHeight;

    if (MC_ContentHeight <= 344) {
        null;
    } else if (MC_ContentHeight >= 345) {
        MC_LeftNavAddition.style.height = MC_ContentHeight - MC_LeftNavHeight + MC_LeftNavAdditionHeight + "px";
    }
}