Mechanisms for opening or closing