

//This is a custom column regularizing script.
// These WellRounded rects have different sized corner pieces (14px, 30px, 35px) so
// we have to take that into account when regularizing them.
// Call this function like so: regularizeWRColumns('colTwo', 30, 'colOne', 14, 'colThree', 35)
// where the arguments are in pairs. The first is the id of the column, the second is the WellRounded corner-piece height.
// The first pair passed in should be the tallest columns.  The script will make the others as tall as it.
function regularizeWRColumns() 
{
	var height = 0;
	var cornerPc = 0;
	if(arguments.length > 2)
	{
		cornerPc = arguments[1]; 
		var tallest = document.getElementById(arguments[0]);
		if(tallest){ height = tallest.offsetHeight + cornerPc + cornerPc; }
		
		if(height > 0)
		{
			for(x = 2; x < arguments.length; x += 2)
			{
				var column = document.getElementById(arguments[x]);
				var columnCorner = arguments[x+1];
				var newHeight = height - (columnCorner + columnCorner);
				
				column.style.height = newHeight + 'px';
			}
		}
	}
}
	

