int getRenderBondOrder(int order) {
		if ((order & JmolConstants.BOND_SULFUR_MASK) != 0)
			order &= ~JmolConstants.BOND_SULFUR_MASK;
		if ((order & JmolConstants.BOND_PARTIAL_MASK) != 0)
			return order;
		if ((order & JmolConstants.BOND_COVALENT_MASK) != 0) {
			if (order == 1
					|| !showMultipleBonds
					|| modeMultipleBond == JmolConstants.MULTIBOND_NEVER
					|| (modeMultipleBond == JmolConstants.MULTIBOND_NOTSMALL && madBond > JmolConstants.madMultipleBondSmallMaximum)) {
				return 1;
			}
		}
		return order;
	}