


/**
 * Class for the DAP editor controls
 */
DAP = new Object();


/**
 * Utility class
 * Modified to use jQuery on the front end
 */
DAP.Utils = new Object();

DAP.Utils.makeRowsEqualHeight = function() {
	$('.row').each(function() {
		var ids = [];
		$(this).children('.column').each(function() {
			ids.push($(this).children('.column-contents:first').attr('id'));
		});
		DAP.Utils.makeEqualHeight(ids);
		var ids = [];
		$(this).children('.column').each(function() {
			ids.push($(this).attr('id'));
		});
		$(this).children('.column-handle').each(function() {
			ids.push($(this).attr('id'));
		});
		DAP.Utils.makeEqualHeight(ids);
	});
};

DAP.Utils.makeEqualHeight = function(ids) {
	return;
	var max = 0;
	
	for (var i=0;i<ids.length;i++) {
		id = ids[i];
		var ht = $('#'+id).height();
		if (ht > max) max = ht;		
	}

	for (var i=0;i<ids.length;i++) {
		id = ids[i];
		$('#'+id).height(max);
	}
};


