$(window).bind('load', function() {

	checkHeight();
	
});

function checkHeight($addOn){
	
	if($addOn) {
	}
	
	else {
		$addOn = parseInt(0);
	}
	
	var $contentBox = $('#contentBox');
	var $rightContentBox = $('#rightContentBox');
	var $leftContentBox = $('#leftContentBox');
	var $wideContentBox = $('#wideContentBox');
	var $subOptionsContainer = $('#subOptionsContainer');
	
	var $rightContentHeight = $rightContentBox.height();
	var $leftContentHeight = $leftContentBox.height();
	var $wideContentBoxHeight = $wideContentBox.height();
	var $subOptionsContainerHeight = $subOptionsContainer.height();
	
	if($rightContentHeight > $leftContentHeight) {
		var $contentHeight = $rightContentHeight;
	}
	
	else if($rightContentHeight < $leftContentHeight) {
		var $contentHeight = $leftContentHeight;
	}
	
	else {
		
		if($rightContentHeight == $leftContentHeight) {
			var $contentHeight = $rightContentHeight;
		}
		
		else {
			var $contentHeight = parseInt(0);
		}
		
	}
	
	var $contentHeightCombined = $subOptionsContainerHeight + $contentHeight + $wideContentBoxHeight + $addOn;
	
	$contentBox.css('height', $contentHeightCombined + 'px');
	
	//alert($contentHeightCombined);
};
