// even up the box sizes for a table of exhibitions
function sortSizes(prefix, countperrow) {
	// start from the start!
	var i = 1;
	var i2;
	var height = 0;
	
	// keep going if we have more stuff
	while (document.getElementById(prefix + i)) {
		// nip through the elements on this row
		for (i2 = i; i2 < i + countperrow; i2++) {
			// check the heights of the elements
			if (document.getElementById(prefix + i2)) {
				if (document.getElementById(prefix + i2).offsetHeight > height) {
				 	height = document.getElementById(prefix + i2).offsetHeight;
				}
			}
		}
		
		// and then set the heights too - IE only
		for (i2 = i; i2 < i + countperrow; i2++) {
			if (document.getElementById(prefix + i2)) {
			 	document.getElementById(prefix + i2).style.height = height;
			}
		}
		
		// and move onto the next row
		i = i + countperrow;
		
		// reset 
		height = 0;
	}
}