function expand(obj, id) {
    var ctl = document.getElementById("expand" + id);
    if (ctl.style.display == "block") {
        ctl.style.display = "none";
        obj.className = "plusItem";
    }
    else {
        ctl.style.display = "block";
        obj.className = "minItem";
    }
    return;
}
function setMenuHeight() {

    var wpLeftMainHeight = document.getElementById('wpLeftMain').offsetHeight;
    var articleMainHeight = document.getElementById('articleMain').offsetHeight;
    
    var videoHeight = document.getElementById('video').offsetHeight;
    var wpRightMain1Height = document.getElementById('wpRightMain1').offsetHeight;
    var wpRightMain2Height = document.getElementById('wpRightMain2').offsetHeight;
    
    var mainNavHeight = document.getElementById('mainNav').offsetHeight;


    var totalLeftMainHeight = articleMainHeight + wpLeftMainHeight + 'px';
    var totalRightMainHeight = videoHeight + wpRightMain1Height + wpRightMain2Height - 12 + 'px';

    if (mainNav != undefined) {

        if (totalLeftMainHeight > totalRightMainHeight) {
            document.getElementById('mainNav').style.height = articleMainHeight + wpLeftMainHeight + 'px';
        }else {
            document.getElementById('mainNav').style.height = videoHeight + wpRightMain1Height + wpRightMain2Height - 12 + 'px';
        }
        
    } 
}
