﻿

/* Resize divs on the right so that the arrow image is at the bottom of the cell
 */
$(document).ready(function() {
    var divName = '';
    if ($('#expandaDiv3').length > 0) {
        divName = '#expandaDiv3';
    }
    else if ($('#expandaDiv2').length > 0) {
        divName = '#expandaDiv2';
    }
    else if ($('#expandaDiv1').length > 0) {
        divName = '#expandaDiv1';
    }

    var diff = $('#rightcolumn').height() - $(divName).offset().top - 10;
    if ($(divName).height() < diff) {
        $(divName).height(diff);
    }
});
