﻿function EqualizeH()
{
    if($(".EQH").length>0)
    {
        $(".EQH").each(function(index){
            // If there is an editor div with text higher than it make it higher
            if(this.scrollHeight >= $(this).height())
            {
                // Make the div as high as the scroll area , use one extra pixel because at equal heights the scrollbars still show up
                $(this).height(this.scrollHeight + 1);
            }
        });
        $(".EQH").equalHeights();
    }
}

$(document).ready(function(hide) {
    setTimeout("EqualizeH();", 1);
});