/* Lightweight dimension functions
 * - returns computed values in pixels
 */
function paddingTopAndBottom(jQueryObj) {
	return parseInt(jQueryObj.css('padding-top')) + parseInt(jQueryObj.css('padding-bottom'));
	}
function paddingHeight (jQueryObj) { 
	return jQueryObj.height() + paddingTopAndBottom(jQueryObj);
	}

jQuery('document').ready( function() {
	/* - equalise column height (left and right)
 	 */
	var newheight = Math.max(paddingHeight(jQuery('#leftcontent')), paddingHeight(jQuery('#rightcontent')));
	newheight = Math.max(newheight, jQuery('#maincontent').height());

	jQuery('#rightcontent').css('height', (newheight - paddingTopAndBottom(jQuery('#rightcontent'))).toString().concat('px'));
	jQuery('#leftcontent').css('height', (newheight - paddingTopAndBottom(jQuery('#leftcontent'))).toString().concat('px'));
	});


