Added state invert for MAX! window contacts.