/* do not remove this comment */

var site_width = 1058;
var min_width = 1000;

function body_resize_fix() {
	var w = $(window).width();
	if (w <= this.site_width) {
		$('#top-body-container').css('margin-left', (w < this.min_width ? ((this.min_width-this.site_width)/2) : (w - this.site_width)/2) + 'px');
		$('#bottom-body-container').css('margin-left', $('#top-body-container').css('margin-left'));
	}
	else {
		$('#top-body-container').css('margin-left', 'auto');
		$('#bottom-body-container').css('margin-left', $('#top-body-container').css('margin-left'));
	}

	if (w < this.min_width) { $('body').css('overflow-x', 'scroll'); $('body').css('overflow', '-moz-scrollbars-horizontial'); }
	else { $('body').css('overflow-x', 'hidden');  $('body').css('overflow', '-moz-scrollbars-vertical'); }
}


jQuery(window).resize(function() {
	body_resize_fix();
});
