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 = ViewWidth()-1 ?>; var maxY = ViewHeight()-1 ?>; var monitorArea = ViewWidth() * $monitor->ViewHeight() ?>; var monitorData = new Array(); monitorData[monitorData.length] = { 'id': Id() ?>, 'connKey': connKey() ?>, 'width': ViewWidth() ?>, 'height':ViewHeight() ?>, 'url': 'UrlToIndex( ZM_MIN_STREAMING_PORT ? ($monitor->Id() + ZM_MIN_STREAMING_PORT) : '') ?>', 'url_to_zms': 'UrlToZMS( ZM_MIN_STREAMING_PORT ? ($monitor->Id() + ZM_MIN_STREAMING_PORT) : '') ?>', 'type': 'Type() ?>', 'refresh': 'Refresh() ?>' }; 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 = ''; var deleteString = ""; // // Imported from watch.js.php and modified for new zone edit view // var CMD_PAUSE = ; var CMD_PLAY = ; var CMD_STOP = ; var CMD_ANALYZE_ON = ; var CMD_ANALYZE_OFF = ; var CMD_QUERY = ; var SCALE_BASE = ; var SOUND_ON_ALARM = ; var streamMode = ""; var connKey = ''; var monitorId = Id() ?>; var monitorUrl = 'UrlToIndex() ) ?>'; var streamSrc = ""; var statusRefreshTimeout = ; var imageRefreshTimeout = ; var canStreamNative = ; var refreshApplet = ; var appletRefreshTime = ; var translate = { "Showing Analysis": '', "Not Showing Analysis": '' };