// JavaScript Document
jQuery(document).ready(function() {
    adjustHeight();
});

function adjustHeight(group) {
	mainwidth = 665;
	mainwidth2= 100;
    primHeight = jQuery('#left').height();
    contentHeight = jQuery('#mainBody').height();
    if ( contentHeight > primHeight ) {
        jQuery('#left').css({'height': + contentHeight });
    }
	if ( $("#left").length || $("#right").length ) {
		//If we have sidebar(s) force width size else do same 
		jQuery('#mainBody').css({'width': + mainwidth });
	}else{
		jQuery('#mainBody').css({'width': + mainwidth2 + '%' });
	}
}
