// // Import constants // var STATE_IDLE = ; var STATE_PREALARM = ; var STATE_ALARM = ; var STATE_ALERT = ; var STATE_TAPE = ; var stateStrings = new Array(); stateStrings[STATE_IDLE] = ""; stateStrings[STATE_PREALARM] = ""; stateStrings[STATE_ALARM] = ""; stateStrings[STATE_ALERT] = ""; stateStrings[STATE_TAPE] = ""; var deleteString = ""; var CMD_NONE = ; var CMD_PAUSE = ; var CMD_PLAY = ; var CMD_STOP = ; var CMD_FASTFWD = ; var CMD_SLOWFWD = ; var CMD_SLOWREV = ; var CMD_FASTREV = ; var CMD_ZOOMIN = ; var CMD_ZOOMOUT = ; var CMD_PAN = ; var CMD_SCALE = ; var CMD_PREV = ; var CMD_NEXT = ; var CMD_SEEK = ; var CMD_QUERY = ; var SCALE_BASE = ; var SOUND_ON_ALARM = ; var POPUP_ON_ALARM = ; var streamMode = ""; var showMode = ""; var connKey = ''; var maxDisplayEvents = ; var monitorId = ; var monitorWidth = ; var monitorHeight = ; var scale = ; var streamSrc = ""; var statusRefreshTimeout = ; var eventsRefreshTimeout = ; var imageRefreshTimeout = ; var canEditMonitors = ; var canStreamNative = ; var imageControlMode = "moveMap"; var imageControlMode = "movePseudoMap"; var imageControlMode = "moveConMap"; var imageControlMode = null;