

var maxHeight = 0;
function setHeight(column1, column2) {
    //Get heights of the cols
    column1 = jQuery(column1);
    column2 = jQuery(column2);

    //Store the highest value
    if (column1.height() > maxHeight) {
            maxHeight = column1.height();
    }
    if (column2.height() > maxHeight) {
            maxHeight = column2.height();
    }
    //Set the height
    if (column1.height() < maxHeight) {
	    column1.height(maxHeight);
	}
    if (column2.height() < maxHeight) {
    	column2.height(maxHeight);
    }
}


jQuery(document).ready(function() {
	setHeight("#main-content",".region-sidebar-second");
});;

