﻿var animateTime = 0;

function resize() {
    var right = $('#assignmentcontent').parent();
    var left = $('#assignmentmenu').parent();

    right.css('height', 'auto');
    left.css('height', 'auto');
    
    if (right.height() > left.height()) {left.animate({ height: right.height() }, animateTime); }
    else {right.animate({ height: left.height() }, animateTime); }

    var right = $('#messagecontent').parent();
    var left = $('#messagemenu').parent();

    right.css('height', 'auto');
    left.css('height', 'auto');

    if (right.height() > left.height()) {left.animate({ height: right.height() }, animateTime); }
    else { right.animate({ height: left.height() }, animateTime); }
}

function resizeIndex() {
    var right = $('#rightmostbox').parent();
    var left = $('#leftmostbox').parent();

    if (right.height() > left.height()) { left.animate({ height: right.height() }, animateTime); }
    else { right.animate({ height: left.height() }, animateTime); }
}