var presets = new Object(); presets[] = { 'UnitsIndex': , 'CheckMethodIndex': , 'MinPixelThreshold': '', 'MaxPixelThreshold': '', 'FilterX': '', 'FilterY': '', 'MinAlarmPixels': '', 'MaxAlarmPixels': '', 'MinFilterPixels': '', 'MaxFilterPixels': '', 'MinBlobPixels': '', 'MaxBlobPixels': '', 'MinBlobs': '', 'MaxBlobs': '', 'OverloadFrames': '', 'ExtendAlarmFrames': '' }; var zone = { 'Name': '', 'Id': , 'MonitorId': , 'CheckMethod': '', 'AlarmRGB': '', 'NumCoords': , 'Coords': '', 'Area': }; zone['Points'] = new Array(); zone['Points'][] = { 'x': , 'y': }; var maxX = Width()-1 ?>; var maxY = Height()-1 ?>; var monitorArea = Width() * $monitor->Height() ?>; var selfIntersecting = ; var selfIntersectingString = ''; var alarmRGBUnsetString = ''; var minPixelThresUnsetString = ''; var minPixelThresLtMaxString = ''; var filterUnsetString = ''; var minAlarmAreaUnsetString = ''; var minAlarmAreaLtMaxString = ''; var minFilterAreaUnsetString = ''; var minFilterAreaLtMaxString = ''; var minFilterLtMinAlarmString = ''; var minBlobAreaUnsetString = ''; var minBlobAreaLtMaxString = ''; var minBlobLtMinFilterString = ''; var minBlobsUnsetString = ''; var minBlobsLtMaxString = ''; // // Imported from watch.js.php and modified for new zone edit view // 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 pauseString = ""; var playString = ""; var deleteString = ""; var CMD_PAUSE = ; var CMD_PLAY = ; var CMD_STOP = ; var CMD_QUERY = ; var SCALE_BASE = ; var SOUND_ON_ALARM = ; var streamMode = ""; var connKey = ''; var monitorId = Id() ?>; var monitorUrl = 'Server()->Url() ) ?>'; var streamSrc = ""; var statusRefreshTimeout = ; var imageRefreshTimeout = ; var canEditMonitors = ; var canStreamNative = ; var canPlayPauseAudio = Browser.ie; var refreshApplet = ; var appletRefreshTime = ;