/*
----------------------------------------------------------------------
  JavaScript: ColumnSizer class.
  Aligns the height of multiple DOM objects.

  Usage: ColumnSizer( 'Object_Id_1', 'Object_Id_2', ... );

----------------------------------------------------------------------
*/
function ColumnSizer() {

	var itemsIds = ColumnSizer.arguments;
	var itemIdCount = itemsIds.length;

	var itemObjs = new Array();

	var maxHeight = 0;

	// For each item ID...
	for ( var i = 0; i < itemIdCount; i++ ) {

		// Get the object with the ID.
		var obj = document.getElementById( itemsIds[ i ] );
		if ( obj != null ) {

			// Save the object to an array.
			itemObjs[ itemObjs.length ] = obj;

			// Get the maxmimum object height.
			var objHeight = obj.offsetHeight;
			if ( maxHeight < objHeight ) maxHeight = objHeight;

		} // End if.

	} // End for.

	var itemObjCount = itemObjs.length;

	// For each saved object...
	for ( var i = 0; i < itemObjCount; i++ ) {

		// Size the object to the maximum height.
		itemObjs[ i ].style.height = maxHeight + 'px';

	} // End for.

} // End ColumnSizer().