window.onload = function () {
   profilesList = document.getElementById("profiles");
	 maxHeight = 0;
	 numHeightAdjustments = 0;
	 currentBox = 0;
	 boxRowHeightsArray = new Array();
	 for (var i = 0; i < profilesList.childNodes.length; ++i) {
	    if (profilesList.childNodes[i].offsetHeight > maxHeight) {
			   maxHeight = profilesList.childNodes[i].offsetHeight;
				 ++numHeightAdjustments;
			}
			if (currentBox == 2) {
				 if (numHeightAdjustments > 1) {
				    boxRowHeightsArray[boxRowHeightsArray.length] = maxHeight;
				 } else {
				    boxRowHeightsArray[boxRowHeightsArray.length] = 0;
				 }
				 numHeightAdjustments = 0;
				 maxHeight = 0;
				 currentBox = 0;
			} else {
			   ++currentBox;
			}
	 }
	 if (currentBox < 2) {
	    boxRowHeightsArray[boxRowHeightsArray.length] = maxHeight;
	 }
	 for (var i = 0; i < boxRowHeightsArray.length; ++i) {
	    if (boxRowHeightsArray[i] > 0) {
			   for (var n = i * 3; n < (i + 1) * 3; ++n) {
			      if (profilesList.childNodes[n]) {
				       if (profilesList.childNodes[n].offsetHeight < boxRowHeightsArray[i]) {
							    profilesList.childNodes[n].style.height = boxRowHeightsArray[i] + "px";
							 }
			      }
			   }
			}
	 }
	 
}