// // 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 = Id() ?>; var monitorWidth = ViewWidth() ?>; var monitorHeight = ViewHeight() ?>; var monitorUrl = 'UrlToIndex() ?>'; var monitorType = 'Type() ?>'; var monitorRefresh = 'Refresh() ?>'; var monitorStreamReplayBuffer = StreamReplayBuffer() ?>; var scale = ''; var statusRefreshTimeout = ; var eventsRefreshTimeout = ; var imageRefreshTimeout = ; var canEditMonitors = ; var canStreamNative = ; var canPlayPauseAudio = Browser.ie; Control(); if ( $control->CanMoveMap() ) { ?> var imageControlMode = "moveMap"; CanMoveRel() ) { ?> var imageControlMode = "movePseudoMap"; CanMoveCon() ) { ?> var imageControlMode = "moveConMap"; var imageControlMode = null; var refreshApplet = ; var appletRefreshTime = ;