var moduleWrapper, contentArea, centerOffset;
function doCenter(boolCenter) {
	moduleWrapper = new elcLayer('ModuleWrapper');
	contentArea = new elcLayer('ContentArea');
	if (moduleWrapper.w != 0) {
		if (boolCenter) {
			centerOffset = Math.floor((moduleWrapper.w - contentArea.w)/2);
			contentArea.moveTo(0,contentArea.y);
			if (centerOffset > 0) {
				contentArea.moveBy(centerOffset,0);
			}
		}
		moduleWrapper.show();
	}
}