public void setModeMouse(int modeMouse) {
		// call before setting viewer=null
		mouseManager.setModeMouse(modeMouse);
		if (modeMouse == JmolConstants.MOUSE_NONE) {
			// applet is being destroyed
			clearScriptQueue();
			haltScriptExecution();
			// g3d.destroy();
		}
	}