jQuery().ready(function(){  
	ColumnAlign();
});
function ColumnAlign() {
	// Check / set flag for IE 6
	
	var IE6;
	((jQuery.browser.msie) && (jQuery.browser.version < 7)) ? IE6=true : IE6=false;

	var difference = 0; // Variable to hold differences in column heights
	// Get the two columns to compare / Check that the columns exist
	var oLeft = $('#maincol1');
	var oRight = $('#maincol2');
	var oLefta = $('#maincol1a');
	var oRightmore = $('#maincol2 .fright .more');
	if ( oLeft && oRight ) {
			// Get the current heights and the difference between them
			var oLeftHeight = parseInt(oLeft.outerHeight());
			var oRightHeight = parseInt(oRight.outerHeight());

			difference = (oLeftHeight - oRightHeight);
			// Compare the difference and adjust the columns accordingly
			if (difference > 0 ) {
			  IE6 ? oRight.height(oLeftHeight) : oRight.css("min-height",(oLeftHeight-18)+'px');
			} else if (difference < 0) {
			  IE6 ? oLeft.height(oRightHeight) : oLeft.css("min-height",(oRightHeight)+'px');
			  IE6 ? oLefta.height(oRightHeight-50) : oLefta.css("min-height",(oRightHeight-50)+'px');
			}
	}
}