

<div class="detailCon">
	<div id="ptzToggleCon" class="ptzToggle ptzToggleShowIcon"></div>
	<div class="ptzBorderConfCon  IESIXFMLM3" id="ptzControlCon"></div>
	<div style="position:relative;*z-index:1;">
		<div id="hidebg"></div>
	</div>
	<div id="videoPluginCon">
		<ul class="line">
			<div id="popNote" class="popNote">
				<div class="popTitle" id="popTitle">
					<i id="closeTip" style="float:right;"></i>
					<span id="titleText"></span>
				</div>
				<div class="popContent" id ="popContent">
					<div class="popContentError disNone" id="popContentError"></div>
					<div class="popContentCorrect" id="popContentCorrect">
						<span class="check" id="check">{%label.check%}</span>
						<i class="completeIcon"></i>
						<span class="name" id="name"></span>
					</div>
				</div>
				<iframe frameborder="0" class="kinescopeNoteIframe"></iframe>
			</div>
		</ul>
	</div>
	<ul class="line lineConfMenu lineBottom">
		<li class="line lineConf1">
			<input id="del" type="button" class="subBtnB btnA delIcon" value="{%btn.del%}" />
		</li>
		<li class="line lineConf2">
			<input id="clear" type="button" class="subBtnB btnA clearIcon" value="{%btn.clean%}" />
		</li>
		<li class="snapPicLi snapPicBtn" title="{%label.snapPic%}"></li>
	</ul>
	<div class="actionBarDiv" id="regionSetting">
		<div class="actionTitleDiv">
			<label class="actionTitle" id="regionName">{%label.regionSetting%}</label>
			<div class="actionTitleArrowDiv">
				<label class="actionArrowTitle" id="regionSettingArrowText">{%label.slideUp%}</label>
				<i class="arrowUp" title= {%label.slideUp%} id="regionSettingArrow"></i>
			</div>
		</div>
		<div class="configDiv" id="configDiv">
			<ul class="line" id="aiEnhanceBoxWrap">
				<li class="Line linesup">
					<label class="des desA">{%label.osdBoxShow%}</label>
					<div id="boxSwitch" class="switchCon">
						<i class="switchBg"></i>
						<i class="switchBall"></i>
					</div>
					<label id="boxSwitchDes" class="des desH">{%btn.close%}</label>
				</li>
				<li class="linesub" id="boxColor">
					<label class="des desA" id="boxColorTips">{%label.boxColor%}</label>
					<span class="selCon">
						<span id="boxColorSel" class="select">
							<span class="value hsValueA"></span>
							<i class="arrow"></i>
						</span>
					</span>
				</li>
			</ul>
			<ul class="line" id="dragLineWrap">
				<li id="licensePlateWhiteListLine" class="line lineE1">
					<input id="licensePlateWhiteList" type="button" value="{%btn.licensePlateWhiteList%}" class="subBtnB btnWhiteList" />
					<label class="desG">{%label.licensePlateWLTips%}</label>
				</li>
				<li class="dragLine">
					<div id="sensitivityDragLine" class="ipcDragLineDiv"></div>
				</li>
			</ul>
			<div class="height"></div>
		</div>
	</div>
	<div class="actionBarDiv">
		<div class="actionTitleDiv">
			<label class="actionTitle">{%label.defenceTime%}</label>
			<div class="actionTitleArrowDiv">
				<label class="actionArrowTitle" id="armingScheduleArrowText">{%label.slideUp%}</label>
				<i class="arrowUp" title= {%label.slideUp%} id="armingScheduleArrow"></i>
			</div>
		</div>
		<div id="timeSchedule">
			<ul class="line">
				<li class="line linePlan">
					<span class="clearAll" id="clearAll">{%label.clear%}</span>
					<label class="tips">{%label.vehicleDetTips%}</label>
				</li>
			</ul>
			<div class="armingSchedule" id="armingSchedule">
				<div id="recPlanGrid" class="test"></div>
			</div>
			<div class="height"></div>
		</div>
	</div>
	<div class="actionBarDiv" id="handleWayDiv">
		<div class="actionTitleDiv">
			<label class="actionTitle">{%label.handleWay%}</label>
			<div class="actionTitleArrowDiv">
				<label class="actionArrowTitle" id="handleArrowText">{%label.slideUp%}</label>
				<i class="arrowUp" title= {%label.slideUp%} id="handleArrow"></i>
			</div>
		</div>
		<div class="handleWay" id="handleWay">
			<ul class="Line">
				<li class="Line lineE" id="recordLine">
					<i name="showInfo" id="triggerRecord" class="chObj" value="0"></i>
					<label class="des desA">{%label.triggerRecordF%}</label>
					<label class="des desM">{%label.triggerRecordTips%}</label>
				</li>
				<li class="Line lineE" id="captureLine">
					<i name="capture" id="triggerCapture" class="chObj" value="1"></i>
					<label class="des desA">{%label.triggerCapture%}</label>
					<label class="des desM">{%label.captureTips%}</label>
				</li>
				<ul class="line" id="sendToFtp">
					<li class="Line" id="sendToFtpLine">
						<i name="showInfo" id="sendFtp" class="chObj" value="2"></i>
						<label class="des desA">{%label.sendFtp%}</label>
						<label class="des desM">{%label.ftpTips%}</label>
					</li>
					<li class="Line lineTypeSel" id="sendToFtpSwitchCon">
						<label class="des desTypeSel sendFtpDes">{%label.sendFtp%}</label>
						<div id="sendToFtpSwitch" class="switchCon">
							<i class="switchBg"></i>
							<i class="switchBall"></i>
						</div>
						<label id="sendToFtpSwitchDes" class="des desH">{%btn.close%}</label>
						<input id="goToFtpConf" type="button" class="subBtnB btnA goToFtpConf" value="{%btn.goToFtpConf%}" />
					</li>
				</ul>
				<li class="Line lineE" id="msgPushLine">
					<i name="showInfo" id="triggerMsgPush" class="chObj" value="3"></i>
					<label class="des desA">{%label.msgPush%}</label>
					<label class="des desM">{%label.msgPushTips%}</label>
				</li>
				<li class="Line lineE" id="alarmOutLine">
					<i name="showInfo" id="triggerAlarmOut" class="chObj" value="4"></i>
					<label class="des desA">{%label.triggerAlarmDevice%}</label>
					<label class="des desM">{%label.triggerAlarmDeviceTips%}</label>
				</li>
				<li class="Line lineE" id="lightAlarmLine">
					<i name="showInfo" id="triggerLightAlarm" class="chObj" value="5"></i>
					<label class="des desA">{%label.lightAlarm%}</label>
					<label class="des desM">{%label.lightAlarmTips%}</label>
				</li>
				<li class="Line lineE" id="soundAlarmLine">
					<i name="showInfo" id="triggerSoundAlarm" class="chObj" value="6"></i>
					<label class="des desA">{%label.soundAlarm%}</label>
					<label class="des desM">{%label.soundAlarmTips%}</label>
				</li>
			</ul>
			<ul class="line" id="soundInfo">
				<li class="Line lineTypeSel soundTypeCon" id="soundType">
					<label class="des desTypeSel">{%label.soundAlarmType%}</label>
					<span class="selCon">
						<span id="soundTypeSelect" class="select">
							<span class="value hsValueA"></span>
							<i class="arrow"></i>
						</span>
					</span>
					<input id="setSoundAlarm" type="button" value="{%btn.configSet%}" class="subBtnB btnConfSet" />
				</li>
				<li class="Line lineTypeSel soundTypeCon" id="soundTimes">
					<label class="des desTypeSel">{%label.soundAlarmTimes%}</label>
					<span class="selCon">
						<span id="soundTimesSelect" class="select">
							<span class="value hsValueA"></span>
							<i class="arrow"></i>
						</span>
					</span>
				</li>
			</ul>
		</div>
	</div>
	<!-- 功能按钮 -->
	<div class="funcBtnCon">
		<input id="save" type="button" value="{%btn.save%}" class="subBtn btnA"/>
	</div>
</div>
<div id="soundInfoEditCon" class="tableEditLyCon">
	<div class="tableEditCon tableEditConT">
		<div class="innerCon">
			<h4 class="title soundInfoInnerCon">{%label.soundAlarmSet%}</h4>
			<i id="infoCloseTip"></i>
			<ul class="line">
				<li class="Line lineSoundInfoHead">
					<div class="ipcDragLineDiv">
						<label id="soundList" class="des desC desList">{%label.soundList%}</label>
						<div class="fileDiv">
							<input type="button" value="{%btn.uploadFile%}" style="display:none" class="subBtn btnUpload" />
							<input type="file" class="file" name="filename" style="display:none" id="fileName" />
						</div>
					</div>
				</li>
			</ul>
			<div class="tableSoundInfo" id="SoundInfoShowCon">
				<ul class="line">
					<li class="Line lineSoundInfoSubHead" id="devsound_0">
						<div class="ipcDragLineDiv">
							<label class="des desSoundName">{%label.alarmSound%}</label>
							<input id="testListen_0" type="button" value="{%btn.testListen%}" class="subBtnB btnDevSoundTest testIcon" style="display:none"/>
						</div>
					</li>
					<li class="Line lineSoundInfoSub" id="devsound_1">
						<div class="ipcDragLineDiv">
							<label class="des desSoundName">{%label.warningSound%}</label>
							<input id="testListen_1" type="button" value="{%btn.testListen%}" class="subBtnB btnDevSoundTest testIcon" style="display:none"/>
						</div>
					</li>
					<li class="Line lineSoundInfoSub" id="devsound_2">
						<div class="ipcDragLineDiv">
							<label class="des desSoundName">{%label.waringZone%}</label>
							<input id="testListen_2" type="button" value="{%btn.testListen%}" class="subBtnB btnDevSoundTest testIcon" style="display:none"/>
						</div>
					</li>
					<li class="Line lineSoundInfoSub" id="devsound_3">
						<div class="ipcDragLineDiv">
							<label class="des desSoundName">{%label.dangerZone%}</label>
							<input id="testListen_3" type="button" value="{%btn.testListen%}" class="subBtnB btnDevSoundTest testIcon" style="display:none"/>
						</div>
					</li>
					<li class="Line lineSoundInfoSub" id="devsound_4">
						<div class="ipcDragLineDiv">
							<label class="des desSoundName">{%label.noParking%}</label>
							<input id="testListen_4" type="button" value="{%btn.testListen%}" class="subBtnB btnDevSoundTest testIcon" style="display:none"/>
						</div>
					</li>
					<li class="Line lineSoundInfoSub" id="devsound_5">
						<div class="ipcDragLineDiv">
							<label class="des desSoundName">{%label.monitorArea%}</label>
							<input id="testListen_5" type="button" value="{%btn.testListen%}" class="subBtnB btnDevSoundTest testIcon" style="display:none"/>
						</div>
					</li>
					<li class="Line lineSoundInfoSub" id="devsound_6">
						<div class="ipcDragLineDiv">
							<label class="des desSoundName">{%label.helloWelcome%}</label>
							<input id="testListen_6" type="button" value="{%btn.testListen%}" class="subBtnB btnDevSoundTest testIcon" style="display:none"/>
						</div>
					</li>
					<li class="Line lineSoundInfoSub" id="devsound_7">
						<div class="ipcDragLineDiv">
							<label class="des desSoundName">{%label.noTouching%}</label>
							<input id="testListen_7" type="button" value="{%btn.testListen%}" class="subBtnB btnDevSoundTest testIcon" style="display:none"/>
						</div>
					</li>
					<li class="Line lineSoundInfoSub" id="devsound_8">
						<div class="ipcDragLineDiv">
							<label class="des desSoundName">{%label.privateZone%}</label>
							<input id="testListen_8" type="button" value="{%btn.testListen%}" class="subBtnB btnDevSoundTest testIcon" style="display:none"/>
						</div>
					</li>
					<li class="Line lineSoundInfoSub" id="devsound_9">
						<div class="ipcDragLineDiv">
							<label class="des desSoundName">{%label.dangerWater%}</label>
							<input id="testListen_9" type="button" value="{%btn.testListen%}" class="subBtnB btnDevSoundTest testIcon" style="display:none"/>
						</div>
					</li>
					<li class="Line lineSoundInfoSub" id="devsound_10">
						<div class="ipcDragLineDiv">
							<label class="des desSoundName">{%label.dangerHeight%}</label>
							<input id="testListen_10" type="button" value="{%btn.testListen%}" class="subBtnB btnDevSoundTest testIcon" style="display:none"/>
						</div>
					</li>
					<li class="Line lineSoundInfoSub" id="devsound_11">
						<div class="ipcDragLineDiv">
							<label class="des desSoundName">{%label.gabbageClassify%}</label>
							<input id="testListen_11" type="button" value="{%btn.testListen%}" class="subBtnB btnDevSoundTest testIcon" style="display:none"/>
						</div>
					</li>
					<li class="Line lineSoundInfoSub" id="devsound_12">
						<div class="ipcDragLineDiv">
							<label class="des desSoundName">{%label.intoWorkshop%}</label>
							<input id="testListen_12" type="button" value="{%btn.testListen%}" class="subBtnB btnDevSoundTest testIcon" style="display:none"/>
						</div>
					</li>
					<li class="Line lineSoundInfoSub" id="devsound_13">
						<div class="ipcDragLineDiv">
							<label class="des desSoundName">{%label.ebikeForbid%}</label>
							<input id="testListen_13" type="button" value="{%btn.testListen%}" class="subBtnB btnDevSoundTest testIcon" style="display:none"/>
						</div>
					</li>
					<li class="Line lineSoundInfoSub" id="devsound_14">
						<div class="ipcDragLineDiv">
							<label class="des desSoundName">{%label.tempWarning%}</label>
							<input id="testListen_14" type="button" value="{%btn.testListen%}" class="subBtnB btnDevSoundTest testIcon" style="display:none"/>
						</div>
					</li>
					<li class="Line lineSoundInfoSub" id="devsound_15">
						<div class="ipcDragLineDiv">
							<label class="des desSoundName">{%label.maskWorn%}</label>
							<input id="testListen_15" type="button" value="{%btn.testListen%}" class="subBtnB btnDevSoundTest testIcon" style="display:none"/>
						</div>
					</li>
					<li class="Line lineSoundInfoSub" id="devsound_16">
						<div class="ipcDragLineDiv">
							<label class="des desSoundName">{%label.maskRequest%}</label>
							<input id="testListen_16" type="button" value="{%btn.testListen%}" class="subBtnB btnDevSoundTest testIcon" style="display:none"/>
						</div>
					</li>
					<li class="Line lineSoundInfoSub" id="devsound_17">
						<div class="ipcDragLineDiv">
							<label class="des desSoundName">{%label.ebikeForbid1%}</label>
							<input id="testListen_17" type="button" value="{%btn.testListen%}" class="subBtnB btnDevSoundTest testIcon" style="display:none"/>
						</div>
					</li>
					<li class="Line lineSoundInfoSub" id="devsound_18">
						<div class="ipcDragLineDiv">
							<label class="des desSoundName">{%label.ebikeForbid2%}</label>
							<input id="testListen_18" type="button" value="{%btn.testListen%}" class="subBtnB btnDevSoundTest testIcon" style="display:none"/>
						</div>
					</li>
					<li class="Line lineSoundInfoSub" id="devsound_19">
						<div class="ipcDragLineDiv">
							<label class="des desSoundName">{%label.ebikeForbid3%}</label>
							<input id="testListen_19" type="button" value="{%btn.testListen%}" class="subBtnB btnDevSoundTest testIcon" style="display:none"/>
						</div>
					</li>
					<li class="Line lineSoundInfoSub" id="usrdef_0" style="display:none">
						<div class="ipcDragLineDiv">
							<input id="usrdef_edit0" type="text" class="text textSoundName" value="" maxlength="32" style="display:none"/>
							<label id="usrdef_text0" for="usrdef_edit0" class="des desSoundName">{%label.usrdefSound%}</label>
							<input id="usrdef_rename0" type="button" value="{%btn.rename%}" class="subBtnB btnRename renameIcon" style="display:none"/>
							<input id="usrdef_delete0" type="button" value="{%btn.del%}" class="subBtnB btnDel clearIcon" style="display:none"/>
							<input id="usrdef_test0" type="button" value="{%btn.testListen%}" class="subBtnB btnUsrdefSoundTest testIcon" style="display:none"/>
							<input id="usrdef_cancel0" type="button" value="{%btn.cancel%}" class="subBtnB btnCancel" style="display:none"/>
							<input id="usrdef_save0" type="button" value="{%btn.ok%}" class="subBtn btnSave" style="display:none"/>
						</div>
					</li>
					<li class="Line lineSoundInfoSub" id="usrdef_1" style="display:none">
						<div class="ipcDragLineDiv">
							<input id="usrdef_edit1" type="text" class="text textSoundName" value="" maxlength="32" style="display:none"/>
							<label id="usrdef_text1" for="usrdef_edit1" class="des desSoundName">{%label.usrdefSound%}</label>
							<input id="usrdef_rename1" type="button" value="{%btn.rename%}" class="subBtnB btnRename renameIcon" style="display:none"/>
							<input id="usrdef_delete1" type="button" value="{%btn.del%}" class="subBtnB btnDel clearIcon" style="display:none"/>
							<input id="usrdef_test1" type="button" value="{%btn.testListen%}" class="subBtnB btnUsrdefSoundTest testIcon" style="display:none"/>
							<input id="usrdef_cancel1" type="button" value="{%btn.cancel%}" class="subBtnB btnCancel" style="display:none"/>
							<input id="usrdef_save1" type="button" value="{%btn.ok%}" class="subBtn btnSave" style="display:none"/>
						</div>
					</li>
					<li class="Line lineSoundInfoSub" id="usrdef_2" style="display:none">
						<div class="ipcDragLineDiv">
							<input id="usrdef_edit2" type="text" class="text textSoundName" value="" maxlength="32" style="display:none"/>
							<label id="usrdef_text2" for="usrdef_edit2" class="des desSoundName">{%label.usrdefSound%}</label>
							<input id="usrdef_rename2" type="button" value="{%btn.rename%}" class="subBtnB btnRename renameIcon" style="display:none"/>
							<input id="usrdef_delete2" type="button" value="{%btn.del%}" class="subBtnB btnDel clearIcon" style="display:none"/>
							<input id="usrdef_test2" type="button" value="{%btn.testListen%}" class="subBtnB btnUsrdefSoundTest testIcon" style="display:none"/>
							<input id="usrdef_cancel2" type="button" value="{%btn.cancel%}" class="subBtnB btnCancel" style="display:none"/>
							<input id="usrdef_save2" type="button" value="{%btn.ok%}" class="subBtn btnSave" style="display:none"/>
						</div>
					</li>
				</ul>
			</div>
		</div>
		<iframe frameborder="0" class="innerIframe"></iframe>
	</div>
</div>
<div id="licensePlateWLCon" class="tableEditLyCon">
	<div class="tableEditCon licensePlateWLCon">
		<div id="innerCon" class="innerCon">
			<h4 class="title licensePlateInnerCon">{%label.licensePlateWhiteList%}</h4>
			<i id="listCloseTip"></i>
			<ul class="line">
				<label id="licensePlateList" class="des desC desWhiteList">{%label.licensePlateWLTips%}</label>
				<li class="line lineLicensePlateWLHead">
					<label class="des desB">{%label.licensePlateWhiteList%}</label>
					<div id="licensePlateWLSwitch" class="switchCon">
						<i class="switchBg"></i>
						<i class="switchBall"></i>
					</div>
					<label id="licensePlateWLSwitchDes" class="des desH">{%btn.close%}</label>
					<div class="fileDiv">
						<input id="delLicensePlate" type="button" value="{%btn.del%}" class="subBtnB subBtnDel" />
						<input id="addLicensePlate" type="button" value="{%btn.add%}" class="subBtn subBtnAdd" />
					</div>
				</li>
			</ul>
			<div id="tableCon" class="tableCon">
				<div class="tableBorderCon"><table id="listTbl" class="dataGrid"></table></div>
			</div>
			<div id="noContent" class="noContent">{%label.noContent%}</div>
		</div>
		<iframe frameborder="0" class="innerIframe"></iframe>
	</div>
</div>
<div id="addLicensePlateCon" class="tableEditLyCon licensePlateCon">
	<div class="tableEditCon licensePlateCon">
		<div class="innerCon centerInnerCon">
			<h4 class="title addLicensePlateInnerCon">{%label.addLicensePlate%}</h4>
			<i id="addListCloseTip"></i>
			<ul class="line">
				<li class="line1" id="addProvinceAbbr">
					<label class="des desTypeSel">{%label.licensePlateNumber%}</label>
					<span class="selCon">
						<span id="addProvinceAbbrSelect" class="select provinceAbbrSelect">
							<span class="value hsValueB"></span>
							<i class="arrow"></i>
						</span>
					</span>
					<input id="addLicensePlateText" class="text licensePlateText" maxLength="7" />
				</li>
			</ul>
			<input id="addLicensePlateCancel" type="button" value="{%btn.gridCancel%}" class="subBtnB subBtnCancel" />
			<input id="addLicensePlateSave" type="button" value="{%btn.save%}" class="subBtn subBtnSave" />
		</div>
		<iframe frameborder="0" class="innerIframe"></iframe>
	</div>
</div>
<div id="editLicensePlateCon" class="tableEditLyCon licensePlateCon">
	<div class="tableEditCon licensePlateCon">
		<div class="innerCon centerInnerCon">
			<h4 class="title addLicensePlateInnerCon">{%label.editLicensePlate%}</h4>
			<i id="editListCloseTip"></i>
			<ul class="line">
				<li class="line1" id="editProvinceAbbr">
					<label class="des desTypeSel">{%label.licensePlateNumber%}</label>
					<span class="selCon">
						<span id="editProvinceAbbrSelect" class="select provinceAbbrSelect">
							<span class="value hsValueB"></span>
							<i class="arrow"></i>
						</span>
					</span>
					<input id="editLicensePlateText" class="text licensePlateText" maxLength="7" />
				</li>
			</ul>
			<input id="editLicensePlateCancel" type="button" value="{%btn.gridCancel%}" class="subBtnB subBtnCancel" />
			<input id="editLicensePlateSave" type="button" value="{%btn.save%}" class="subBtn subBtnSave" />
		</div>
		<iframe frameborder="0" class="innerIframe"></iframe>
	</div>
</div>
<script type="text/javascript">function init(){function n(a,c){var b="";switch(parseInt(a)){case ENONE:return!0;case IPCSMDENABLEERR:b=errStr.IPCParamInvalid;break;case EINVARG:b=errStr.IPCParamInvalid;break;case IPCSMDSENSITIVITYERR:b=errStr.sensitivityErr;break;case IPCUMGUESTNAUTH:b=errStr.invPermissionDenied;break;case IPC_VD_LICENSE_PLATE_INVALID_ERR:b=errStr.vdLicensePlateInvalidErr;break;case IPC_VD_LICENSE_PLATE_WHITELIST_MAX_ERR:b=errStr.vdLicensePlateWhitelistMaxErr;break;case IPCNOTIFYEMAILENERR:case IPCNOTIFYALARMENERR:case IPCNOTIFYRECORDENERR:case IPCNOTIFYFTPENERR:case IPCNOTIFMSGPUSHENERR:case IPCNOTIFCAPTUREENERR:case IPCNOTIFSOUNDALARMENERR:b=
errStr.IPCHandleInalid;break;case IPCSMDREGIONEILLEGAL:b=errStr.regionIllegal;break;case IPCSMDREGIONNUMERR:b=errStr.regionNumErr;break;case IPCARMINGSCHEDULEEOVERFLOW:b=errStr.armingScheduleOverflow;break;case IPCARMINGSCHEDULEMIX:b=errStr.armingScheduleMix;break;case IPCARMINGSCHEDULEILLEGAL:b=errStr.armingScheduleIllegal;break;default:b=errStr.invRequestFail}closeToast();showAlert(b,c);return!1}function Oa(){clearTimeout(la);la=$.setTimeout(function(){$("#popNote").animate({bottom:"-150px"},void 0,
void 0,function(){id("popNote").style.display="none"})},5E3)}function Sb(){g.catchPic(function(a){var c="";switch(parseInt(a)){case 0:c=label.snapPicEnd;$("#StorageFolder").css("background-image","url(../web-static/images/save_reddot.png)");break;case 1:c=label.snapPicSaveFail;break;case 2:return;case 3:c=label.diskLess;break;case 7:c=label.pathChange;break;case 8:c=label.pathNoExist}if(0<parseInt(a))clearTimeout(la),popContentCorrect.style.display="none",popContentError.style.display="inline-block",
7==parseInt(a)?titleText.innerHTML=label.cue:titleText.innerHTML=label.snapPicFail,popContentError.innerHTML=c;else{var b=g.getPicFileStoragePath(),c=b.lastIndexOf("\\"),c=b.substr(c+1);popContentCorrect.style.display="inline-block";popContentError.style.display="none";titleText.innerHTML=label.snapPicSuccess;Tb.innerHTML=c;check.onclick=function(){g.openFileStorageFolder(b)};Oa()}$("#popNote").animate({bottom:"0px"});id("popNote").style.display="inline-block";log(a);7==parseInt(a)&&Oa()})}function Ub(){for(var a=
[],c=0,b,e,d=0;4>c;c++){b=g.getIntelligentRegion(c);if(null==b.pt1_x||0==b.pt1_x&&0==b.pt1_y&&0==b.pt2_x&&0==b.pt2_y)return null;0<=b.pt1_x&&(e={},e[Pa]=c+1+"",e[ma]=b.pt1_x,e[Qa]=b.pt1_y,e[Ra]=b.pt2_x,e[Sa]=b.pt2_y,e[Ta]=b.pt3_x,e[Ua]=b.pt3_y,e[Va]=b.pt4_x,e[Wa]=b.pt4_y,a[d++]=e)}return a}function Xa(a){var c=id("videoPluginCon").offsetHeight;void 0==a?$.BSHOWPTZCTRL?g.setSize({height:"372px",width:"496px"}):g.setSize({height:"396px",width:"720px"}):g.setSize({height:c+"px",width:c*a+"px"})}function Ya(a){Vb.innerHTML=
1==a?btn.enableN:btn.close;na=1==a?f:m;0==a?(oa.disable(!0),$("#boxColorTips").addClass("disable")):(oa.disable(!1),$("#boxColorTips").removeClass("disable"))}function Wb(a){var c,b=[];if(void 0==a)return b.push('"0000-0000:0"'),b;a instanceof Array||(a=a.match(/\d{4}-\d{4}/g));for(var e=0;e<a.length;e++){c=a[e];var d=c.split(/[-]/,2);c=parseInt(d[0],10);d=parseInt(d[1],10);0==c&&0==d?b.push(r._getString(c,d,0)):b.push(r._getString(c,d,1))}return b}function Xb(){var a,c=r.getTimeVal(),b={};for(a=
0;a<S.length;a++){var e=b,d=Za[a],h;h=c[S[a]];var pa=void 0,l=void 0,w=void 0,f=void 0,g=void 0,g=f=void 0;if(void 0==h)h="";else{void 0==pa&&(pa=6);l="[";if(1>h.length)l+='"0000-0000"';else for(w=0;w<h.length&&w<pa;w++)f=h[w].toString(),g=f.split(/[-,:]/,3),f=parseInt(g[0],10),g=parseInt(g[1],10),f=r._getStringWithoutType(f,g),0<w&&(l+=","),l+='"'+f+'"';h=l+="]"}e[d]=h}return b}function $a(a){if(qa)return!1;var c=Ub();if(f!=x||null!=c&&0!=c.length){var b={},e={};b[d]={};b[d][y]={};b[d][y][ab]=x;
b[d][y][bb]=G;if(T){b[d][p]={};H&&(b[d][p][cb]="true"==db.getAttribute("checked")?f:m);I&&(b[d][p][eb]="true"==fb.getAttribute("checked")?f:m);J&&(b[d][p][gb]="true"==U.getAttribute("checked")?f:m);z&&(b[d][p][hb]="true"==V.getAttribute("checked")?f:m);if(K){b[d][p][ib]="true"==jb.getAttribute("checked")?f:m;for(var k=2;k<=ra;k++)b[d][p]["AO"+k.toString()+"_enabled"]="true"==id("triggerAlarmOut"+k.toString()).getAttribute("checked")?f:m}W&&(b[d][p][Yb]="true"==triggerEmail.getAttribute("checked")?
f:m);A&&(b[d][p][kb]="true"==X.getAttribute("checked")?f:m);t&&(b[d][p][sa]=L?Y:"true"==lb.getAttribute("checked")?f:m)}b[d][ta]=Xb();!0==M&&(b[d][B]={},b[d][B][mb]=Z,b[d][B][nb]=aa);N&&(b[d][C]={},b[d][C][uciVehicleDetection.optName.enabled]=1==ob.state?f:m,b[d][C][uciVehicleDetection.optName.color]=oa.value);var h=pb&&!ua&&"true"==V.getAttribute("checked"),g=qb&&!va&&"true"==U.getAttribute("checked"),l=rb&&!wa&&"true"==X.getAttribute("checked");h||g||l?((h||g)&&showConfirmIpc(label.confirmAlarmDeviceOnTip,
function(k){!0==k?(b[s]={},b[s][uciMsgAlarm.secName.chn1MsgAlarmInfo]={},h&&(b[s][uciMsgAlarm.secName.chn1MsgAlarmInfo][uciMsgAlarm.optName.soundEnabled]=uciMsgAlarm.optValue.enableVal.on),g&&(b[s][uciMsgAlarm.secName.chn1MsgAlarmInfo][uciMsgAlarm.optName.lightEnabled]=uciMsgAlarm.optValue.enableVal.on),showToast(),$.modify(b,function(b){!0==n(b[ERR_CODE])&&(h&&(ua=1),g&&(va=1),null!=c?(e[d]={},e[d][D]={},e[d][D][O]=c,$.action(e,function(a){!0==n(a[ERR_CODE])&&showToast("success")})):showToast("success"),
"function"==typeof a&&void 0!=a&&a())})):(h&&changeCheckInput(V,!1),g&&changeCheckInput(U,!1))}),l&&showConfirmIpc(label.confirmCaptureOnTip,function(h){b[ba]={};b[ba][uciPicturePlan.secName.eventConfig]={};!0==h?(l&&(b[ba][uciPicturePlan.secName.eventConfig][uciPicturePlan.optName.enabled]=uciPicturePlan.optValue.on),showToast(),$.modify(b,function(b){!0==n(b[ERR_CODE])&&(l&&(wa=1),null!=c?(e[d]={},e[d][D]={},e[d][D][O]=c,$.action(e,function(a){!0==n(a[ERR_CODE])&&showToast("success")})):showToast("success"),
"function"==typeof a&&void 0!=a&&a())})):l&&changeCheckInput(X,!1)})):(showToast(),$.modify(b,function(b){!0==n(b[ERR_CODE])&&(null!=c?(e[d]={},e[d][D]={},e[d][D][O]=c,$.action(e,function(a){!0==n(a[ERR_CODE])&&showToast("success")})):showToast("success"),"function"==typeof a&&void 0!=a&&a())}))}else showAlert(label.addOneRegionFirst)}function sb(){closeNoteAll();!0==checkNum(id("sensitivityDragLineDragLineInput").value)&&!0==checkNumRange(parseInt(id("sensitivityDragLineDragLineInput").value),100,
1)?(G=id("sensitivityDragLineDragLineInput").value,xa.setValue(id("sensitivityDragLineDragLineInput").value),qa=!1):(showNote("sensitivityDragLineDragLineInput",errStr.sensitivityErr),qa=!0)}function Zb(a){closeNote("sensitivityDragLineDragLineInput");G=a}function $b(){g.delIntelligentRegion(PLUGIN_STATE_ON)}function ac(){g.delIntelligentRegion(PLUGIN_STATE_MINUS)}function tb(){var a=document.getElementById("hidebg");a.style.display="block";var c=getoffset(id("save")).top-getoffset(id("videoPluginCon")).top;
if(0==$("#peCon").length||"none"==$("#peCon").css("display"))a.style.height=c+"px";else{var b=getoffset(id("peCon")).top-getoffset(id("videoPluginCon")).top+id("peCon").offsetHeight;a.style.height=(c>b?c:b)+"px"}}function ub(){document.getElementById("hidebg").style.display="none"}function bc(a){cc.innerHTML=1==a?btn.enableN:btn.close;x=1==a?f:m;!1==g.checkInstalled()?tb():0==a?(g.setOSDStatus(0),tb()):(g.setOSDStatus(1),ub())}function dc(a){ec.innerHTML=1==a?btn.enableN:btn.close;Y=1==a?f:m}function fc(){var a,
c={};c[d]={};c[d][NAME]=ta;$.query(c,function(c){if(!0==n(c[ERR_CODE]))for(r.reset(),a=0;a<S.length;a++)r.setTimeVal(S[a],Wb(c[d][ta][Za[a]]))})}function vb(a){ya?(id("regionSettingArrow").className="arrowDown",id("regionSettingArrow").title=label.slideDown,id("regionSettingArrowText").innerHTML=label.slideDown,wb.style.display="none",ya=!1):(id("regionSettingArrow").className="arrowUp",id("regionSettingArrow").title=label.slideUp,id("regionSettingArrowText").innerHTML=label.slideUp,wb.style.display=
"",ya=!0)}function xb(a){za?(id("armingScheduleArrow").className="arrowDown",id("armingScheduleArrow").title=label.slideDown,id("armingScheduleArrowText").innerHTML=label.slideDown,yb.style.display="none",za=!1):(id("armingScheduleArrow").className="arrowUp",id("armingScheduleArrow").title=label.slideUp,id("armingScheduleArrowText").innerHTML=label.slideUp,yb.style.display="",za=!0)}function zb(a){Aa?(id("handleArrow").className="arrowDown",id("handleArrow").title=label.slideDown,id("handleArrowText").innerHTML=
label.slideDown,Ab.style.display="none",Aa=!1):(id("handleArrow").className="arrowUp",id("handleArrow").title=label.slideUp,id("handleArrowText").innerHTML=label.slideUp,Ab.style.display="",Aa=!0)}function Bb(a){Z=a}function gc(a){aa=a}function hc(a,c){selectInit("soundTypeSelect",a,0,Bb,"18");id("soundTypeSelect").resetSel(c)}function Ba(){g.playVideo();$("ul.lineConfMenu li.snapPicBtn").show();showDetailCon()}function ic(a){id(a).onclick=function(){jc();id("confCon").onmousewheel=function(){return!1};
id("confCon").onkeydown=function(a){a=a||window.event;if(38==a.keyCode||40==a.keyCode)return!1}}}function jc(){var a={},c={},a=(document.body.offsetHeight-id("licensePlateWLCon").scrollHeight)/2;0>a&&(a=0);c=(document.body.offsetWidth-id("licensePlateWLCon").scrollWidth)/2;0>c&&(c=0);showCover(function(b){id("licensePlateWLCon").style.top=a+"px";id("licensePlateWLCon").style.left=c+"px";id("licensePlateWLCon").style.position="fixed";id("licensePlateWLCon").style.zIndex=1019;$("#"+b.id).css("opacity",
"0")});setHideFlag(!0)}function kc(a){id(a).onclick=function(){setHideFlag(!1);hideCover(function(){closeNoteAll();id("licensePlateWLCon").style.top="-9999px"});id("confCon").onmousewheel=function(){return!0};id("confCon").onkeydown=function(a){a=a||window.event;if(38==a.keyCode||40==a.keyCode)return!0}}}function lc(a){id(a).onclick=function(){mc();id("confCon").onmousewheel=function(){return!1};id("confCon").onkeydown=function(a){a=a||window.event;if(38==a.keyCode||40==a.keyCode)return!1}}}function mc(){var a=
{},c={},a=(document.body.offsetHeight-id("addLicensePlateCon").clientHeight)/2;0>a&&(a=0);c=(document.body.offsetWidth-id("addLicensePlateCon").clientWidth)/2;0>c&&(c=0);showCover(function(b){id("addLicensePlateCon").style.top=a+"px";id("addLicensePlateCon").style.left=c+"px";id("addLicensePlateCon").style.position="fixed";id("addLicensePlateCon").style.zIndex=1019;$("#"+b.id).css("opacity","0")});setHideFlag(!0)}function Cb(a){id(a).onclick=function(){setHideFlag(!1);hideCover(function(){closeNoteAll();
id("addLicensePlateCon").style.top="-9999px";id("addLicensePlateText").value="";id("addProvinceAbbrSelect").resetSel(u)});id("confCon").onmousewheel=function(){return!0};id("confCon").onkeydown=function(a){a=a||window.event;if(38==a.keyCode||40==a.keyCode)return!0}}}function nc(){var a={},c={},a=(document.body.offsetHeight-id("editLicensePlateCon").clientHeight)/2;0>a&&(a=0);c=(document.body.offsetWidth-id("editLicensePlateCon").clientWidth)/2;0>c&&(c=0);showCover(function(b){id("editLicensePlateCon").style.top=
a+"px";id("editLicensePlateCon").style.left=c+"px";id("editLicensePlateCon").style.position="fixed";id("editLicensePlateCon").style.zIndex=1019;$("#"+b.id).css("opacity","0")});setHideFlag(!0);id("confCon").onmousewheel=function(){return!1};id("confCon").onkeydown=function(a){a=a||window.event;if(38==a.keyCode||40==a.keyCode)return!1}}function Db(a){id(a).onclick=function(){setHideFlag(!1);hideCover(function(){closeNoteAll();id("editLicensePlateCon").style.top="-9999px"});id("confCon").onmousewheel=
function(){return!0};id("confCon").onkeydown=function(a){a=a||window.event;if(38==a.keyCode||40==a.keyCode)return!0}}}function Eb(a,c){return a==u?(showNote(c,errStr.vdLicensePlateProvinceErr),!1):!0}function Fb(a,c){return 0!=a.length&&(/^[A-HJ-NP-Z]{1}[A-HJ-NP-Z0-9]{5,6}$/.test(a)||/^[A-HJ-NP-Z]{1}[A-HJ-NP-Z0-9]{4}["港", "学", "使", "警", "澳", "挂", "军", "北", "南", "广", "沈", "兰", "成", "济", "海", "民", "空"]{1}$/.test(a)||/^[A-HJ-NP-Z0-9]{5}["领"]{1}$/.test(a))?!0:(showNote(c,errStr.vdLicensePlateWrongErr),
!1)}function Gb(a,c,b){return a==c?(showNote(b,errStr.vdLicensePlateDuplicateErr),!1):!0}function oc(a){var c,b={};b[d]={};b[d][ca]={};pc.innerHTML=1==a?btn.enableN:btn.close;c=1==a?f:m;c!=da&&(b[d][ca][uciVehicleDetection.optName.enabled]=c,showToast(),$.modify(b,function(a){!0==n(a[ERR_CODE])&&(da=c,showToast("success"))}))}function E(a){var c={};c[d]={};c[d][KEY_TABLE]=q;$.query(c,function(c){if(n(c[ERR_CODE])){var e=c[d][q],k,h=v._ops.paging.num,g=(a-1)*h;v.blankTable();F=[];for(var l=0;l<h;l++)if(l+
g<e.length){var f=l+g+1;k={};k.licensePlateNumber=e[l+g][q+"_"+f.toString()][ea];F[l]=k}0<a?v.refreshPage(F,e.length,a):(v.setDataSource(F),v.refresh(a));e=document.getElementsByTagName("td");for(l=0;l<e.length;l++)e[l].style.textAlign="center";0==c[d][q].length?($(id("noContent")).removeClass("hideNoContent").addClass("displayNoContent"),$(id("tableCon")).removeClass("tableConWithContent").addClass("tableConNoContent"),$(id("innerCon")).removeClass("innerConWithContent").addClass("innerConNoContent")):
($(id("noContent")).removeClass("displayNoContent").addClass("hideNoContent"),$(id("tableCon")).removeClass("tableConNoContent").addClass("tableConWithContent"),$(id("innerCon")).removeClass("innerConNoContent").addClass("innerConWithContent"));qc();showToast("success")}})}function rc(){if(Eb(id("addProvinceAbbrSelect").value,"addProvinceAbbrSelect")&&Fb(id("addLicensePlateText").value,"addLicensePlateText")){var a={};a[d]={};a[d][KEY_TABLE]=q;$.query(a,function(a){if(n(a[ERR_CODE])){var b=[];a=a[d][q];
var e=P[id("addProvinceAbbrSelect").value]+id("addLicensePlateText").value,k={};k[d]={};k[d][Hb]={};if(0<a.length)for(var h=0;h<a.length;h++)if(!Gb(a[h][q+"_"+(h+1).toString()][ea],e,"addLicensePlateText"))return;b.push(e);k[d][Hb][Ca]=b;$.action(k,function(a){!0==n(a[ERR_CODE])&&(E(Q),id("addLicensePlateCon").style.top="-9999px",id("addLicensePlateText").value="",id("addProvinceAbbrSelect").resetSel(u))})}})}}function sc(){if(Eb(id("editProvinceAbbrSelect").value,"editProvinceAbbrSelect")&&Fb(id("editLicensePlateText").value,
"editLicensePlateText")){var a={};a[d]={};a[d][KEY_TABLE]=q;$.query(a,function(a){if(n(a[ERR_CODE])){a=a[d][q];var b=P[id("editProvinceAbbrSelect").value]+id("editLicensePlateText").value,e={};e[d]={};if(0<a.length)for(var k=0;k<a.length;k++){var h=k+1,g=a[k][q+"_"+h.toString()][ea];if(!Gb(g,b,"editLicensePlateText"))return;fa==g&&(e[d][q+"_"+h.toString()]={},e[d][q+"_"+h.toString()][ea]=b)}$.modify(e,function(a){!0==n(a[ERR_CODE])&&(E(Q),id("editLicensePlateCon").style.top="-9999px")})}})}}function tc(){var a,
c=!1,b=[];a=$("table").find("tr");for(var e=1;e<a.length;e++){var k=a.eq(e).find("td:first").get(0);"true"==k.childNodes[0].getAttribute("checked")&&(c=!0,b.push(k.nextSibling.nextSibling.innerHTML))}c&&showConfirm(label.delLicensePlateConfirm,function(a){!0==a&&(a={},a[d]={},a[d][ga]={},a[d][ga][Ca]=b,$.action(a,function(a){!0==n(a[ERR_CODE])&&E(Q)}))})}function qc(){for(var a=$("table").find("tr"),c=1;c<a.length;c++){var b=a.eq(c).find("td:last").get(0),e=document.createElement("span"),k=document.createElement("span");
e.className="editBtn";e.innerHTML=btn.edit;b.appendChild(e);k.className="delBtn";k.innerHTML=btn.del;b.appendChild(k);k.onclick=function(a){a=a||window.event;var c=[],b={};b[d]={};b[d][ga]={};a.target?c.push(a.target.parentNode.previousSibling.innerHTML):c.push(a.srcElement.parentNode.previousSibling.innerHTML);b[d][ga][Ca]=c;$.action(b,function(a){!0==n(a[ERR_CODE])&&E(Q)})};e.onclick=function(a){nc();a=a||window.event;fa=a.target?a.target.parentNode.previousSibling.innerHTML:a.srcElement.parentNode.previousSibling.innerHTML;
id("editLicensePlateText").value=fa.substr(1,7);id("editProvinceAbbrSelect").resetSel($.inArray(fa.substr(0,1),P))}}}function uc(a){F=[];v.init({id:"listTbl",data:F,hasID:!0,edit:!1,IDWidth:60,selWidth:48,max:Ib,paging:{num:10,page:1},head:[{field:label.licensePlateNumber,width:320},{field:label.operate,width:164}],list:[{name:"licensePlateNumber"},{name:"operate"}],pageTurnFunc:function(a){E(a)}});a=document.getElementsByClassName("tableHeadConSp");for(var c=0;c<a.length;c++)a[c].style.textAlign=
"center";showDetailCon()}function vc(){if($.detectionCapability&&1==parseInt($.detectionCapability[uciDetectionCapability.optName.boxDisplayCapability])){if(N=1==(parseInt($.box_display_capa[uciDetectionCapability.optName.boxDisplayList],2)>>2)%2?!0:!1,!0==N){for(var a=$.box_display_capa[uciDetectionCapability.optName.boxColor],c=0;c<a.length;c++)Da.push({str:label[a[c]],value:a[c]});$("#aiEnhanceBoxWrap").addClass("lineL1");$("#dragLineWrap").addClass("lineR3")}}else $("#aiEnhanceBoxWrap").hide()}
function wc(){var a=uciLinkageCapability.optName.sound_alarm_capability,c=uciLinkageCapability.optName.msg_push_capability,b=uciLinkageCapability.optName.alarm_out_capability,d=uciLinkageCapability.optName.record_capability,k=uciLinkageCapability.optName.email_capability,h=uciLinkageCapability.optName.ftp_capability,g=uciLinkageCapability.optName.capture_capability,f=function(a){a=$.linkageCapability[a];return 19>a.length?!1:"1"==a[a.length-19]?!0:!1};J=f(uciLinkageCapability.optName.light_alarm_capability);
z=f(a);H=f(c);K=f(b);I=f(d);W=f(k);t=f(h);A=f(g);(T=J||z||H||K||I||W||t||A)?(J||$("#triggerLightAlarm").parent().hide(),z||$("#triggerSoundAlarm").parent().hide(),H||$("#triggerMsgPush").parent().hide(),I||$("#triggerRecord").parent().hide(),K?InsertTriggerAlarmOut("triggerAlarmOut"):$("#triggerAlarmOut").parent().hide(),W||$("#triggerEmail").parent().hide(),t||$("#sendToFtp").hide(),A||$("#triggerCapture").parent().hide()):id("handleWayDiv").style.display="none"}function xc(){z&&$.audioAlarmCapability&&
(M=1==parseInt($.audioAlarmCapability[yc])?!0:!1,ha=1==parseInt($.audioAlarmCapability[zc])?!0:!1,ia=parseInt($.audioAlarmCapability[Ac]),Ea=$.audioAlarmCapability[Fa].length);if(!1==M)id("soundInfo").style.display="none";else{id("soundTypeSelect");id("soundTimesSelect");for(var a=[],c=[{str:label.alarmSound,value:0},{str:label.warningSound,value:1},{str:label.waringZone,value:2},{str:label.dangerZone,value:3},{str:label.noParking,value:4},{str:label.monitorArea,value:5},{str:label.helloWelcome,value:6},
{str:label.noTouching,value:7},{str:label.privateZone,value:8},{str:label.dangerWater,value:9},{str:label.dangerHeight,value:10},{str:label.gabbageClassify,value:11},{str:label.intoWorkshop,value:12},{str:label.ebikeForbid,value:13},{str:label.tempWarning,value:14},{str:label.maskWorn,value:15},{str:label.maskRequest,value:16},{str:label.ebikeForbid1,value:17},{str:label.ebikeForbid2,value:18},{str:label.ebikeForbid3,value:19}],b=0;b<$.audioAlarmCapability[Fa].length;b++){var e=parseInt($.audioAlarmCapability[Fa][b]);
a.push(e);ja.push(c[e])}selectInit("soundTimesSelect",[{str:label.once,value:1},{str:label.twice,value:2},{str:label.threetimes,value:3},{str:label.fourtimes,value:4},{str:label.fivetimes,value:5}],1,gc)}if(!1==ha)id("setSoundAlarm").style.display="none";else{openSoundInfo("setSoundAlarm",Ea,ia,label.usrdefSound);closeSoundInfo("infoCloseTip",d,ja,hc);for(b=0;b<c.length;b++)0<=$.inArray(b,a)?(devSoundListen("testListen_"+b,b),devSoundFocus("devsound_"+b,b)):id("devsound_"+b).style.display="none";
for(a=0;a<ia;a++)usrDefSoundListen("usrdef_test"+a,a),usrDefSoundDel("usrdef_delete"+a,a),usrDefSoundRename("usrdef_rename"+a,a),usrDefSoundSave("usrdef_save"+a,a),usrDefSoundCancel("usrdef_cancel"+a,a),usrDefSoundNameCheck("usrdef_edit"+a,a),usrDefSoundFocus("usrdef_"+a,a)}}var d=uciVehicleDetection.fileName,y=uciVehicleDetection.secName.detection,ta=uciVehicleDetection.secName.armingSchedule,p=uciVehicleDetection.secName.notifyList,O=uciVehicleDetection.secType.regionInfo,B=uciVehicleDetection.secName.soundAlarmInfo,
ab=uciVehicleDetection.optName.enabled,bb=uciVehicleDetection.optName.sensitivity,Pa=uciVehicleDetection.optName.id,ma=uciVehicleDetection.optName.pt1x,Qa=uciVehicleDetection.optName.pt1y,Ra=uciVehicleDetection.optName.pt2x,Sa=uciVehicleDetection.optName.pt2y,Ta=uciVehicleDetection.optName.pt3x,Ua=uciVehicleDetection.optName.pt3y,Va=uciVehicleDetection.optName.pt4x,Wa=uciVehicleDetection.optName.pt4y,cb=uciVehicleDetection.optName.msgPushEnabled,eb=uciVehicleDetection.optName.recordEnabled,Yb=uciVehicleDetection.optName.emailEnabled,
ib=uciVehicleDetection.optName.alarmEnabled,sa=uciVehicleDetection.optName.ftpEnabled,kb=uciVehicleDetection.optName.captureEnabled,hb=uciVehicleDetection.optName.soundAlarmEnabled,gb=uciVehicleDetection.optName.lightAlarmEnabled,f=uciVehicleDetection.optValue.enableVal.on,yc=uciAlarmAudioTypeCapability.optName.eventSeparateAudioAlarmSupport,zc=uciAlarmAudioTypeCapability.optName.usrDefAudioAlarmSupport,Ac=uciAlarmAudioTypeCapability.optName.usrDefAudioAlarmMaxNum,Fa=uciAlarmAudioTypeCapability.optName.alarmType,
m=uciVehicleDetection.optValue.enableVal.off,D=uciVehicleDetection.actionName.addRegions,mb=uciVehicleDetection.optName.soundAlarmType,nb=uciVehicleDetection.optName.soundAlarmTimes,Ga=uciUsrDefAlarm.fileName,Jb=uciUsrDefAlarm.secName.usrDefAudio,Bc=uciUsrDefAlarm.optName.id,Ha=uciUsrDefAlarm.optName.name,ca=uciVehicleDetection.secName.licensePlateWhitelistDetection,q=uciVehicleDetection.secType.licensePlateWhitelist,Hb=uciVehicleDetection.actionName.addLicensePlates,ga=uciVehicleDetection.actionName.deleteLicensePlates,
ea=uciVehicleDetection.optName.whitelist,Ca=uciVehicleDetection.optName.licensePlates,Kb=!0,Ia,Lb,x,cc=id("intelligentDetectionSwitchDes"),g,s=uciMsgAlarm.fileName,pb=0,ua=0,qb=0,va=0,ba=uciPicturePlan.fileName,rb=0,wa=0,G=50,xa;id("sensitivityDragLineDragLineInput");var S=[label.Mon,label.Tue,label.Wen,label.Thu,label.Fri,label.Sta,label.Sun],Za=[uciVehicleDetection.optName.mon,uciVehicleDetection.optName.tue,uciVehicleDetection.optName.wed,uciVehicleDetection.optName.thu,uciVehicleDetection.optName.fri,
uciVehicleDetection.optName.sat,uciVehicleDetection.optName.sun],ya=!1,za=!0,Aa=!0,yb=id("timeSchedule"),wb=id("configDiv"),Ab=id("handleWay"),jb=id("triggerAlarmOut"),fb=id("triggerRecord"),db=id("triggerMsgPush"),V=id("triggerSoundAlarm"),U=id("triggerLightAlarm"),lb=id("sendFtp"),Y,ec=id("sendToFtpSwitchDes"),X=id("triggerCapture"),Tb=id("name"),la,qa=!1,r,Ja=1==parseInt($.moduleSpec[uciFunction.optName.corridorMode])?!0:!1,T,J,z,H,K,I,t,W,A,ra=isNaN(parseInt($.moduleSpec.alarm_out_num))?1:parseInt($.moduleSpec.alarm_out_num),
ha=!1,M=!1,Z,aa,ia,ja=[],Ea=0,Mb=$.moduleSpec[uciFunction.optName.new_version_capability_list],Nb=Mb&&0<=$.inArray(uciImage.fileName,Mb),Ob=!1,Pb=!1,Qb=null,L=!1,R=id("ptzToggleCon"),ka=$(".ptzBorderConfCon"),Ka=!0,Rb=!1,Ib,da,pc=id("licensePlateWLSwitchDes"),F=[],v=new DataGrid,Q=1,u=31,La=[],P=[label.beijing,label.tianjin,label.shanghai,label.chongqing,label.hebei,label.henan,label.yunnan,label.liaoning,label.heilongjiang,label.hunan,label.anhui,label.shandong,label.xinjiang,label.jiangsu,label.zhejiang,
label.jiangxi,label.hubei,label.guangxi,label.gansu,label.shanxi,label.neimeng,label.shanxi2,label.jilin,label.fujian,label.guizhou,label.guangdong,label.qinghai,label.xizang,label.sichuan,label.ningxia,label.hainan,label.province],fa,Ma=null,na=!1,Na=0,ob=null,Vb=id("boxSwitchDes"),oa=id("boxColorSel"),N=!1,C=uciVehicleDetection.secName.boxDisplay,Da=[];(function(){var a={},c=0;wc();xc();vc();a[d]={};a[d][NAME]=[y];N&&a[d][NAME].push(C);T&&a[d][NAME].push(p);M&&a[d][NAME].push(B);$.moduleSpec[uciFunction.optName.msgAlarmSeparateList]&&
(a[s]={},a[s][NAME]=uciMsgAlarm.secName.chn1MsgAlarmInfo);a[d][KEY_TABLE]=[O];!0==ha&&(a[Ga]={},a[Ga][KEY_TABLE]=[Jb]);Ja&&(a[uciImage.fileName]={},a[uciImage.fileName][NAME]=uciImage.secName.para_switch);Nb&&(a[uciImageCapability.fileName]={},a[uciImageCapability.fileName][NAME]=[],a[uciImageCapability.fileName][NAME].push(uciImageCapability.secType.capability));$.moduleSpec[uciFunction.optName.captureEnable]&&(a[uciPicturePlan.fileName]={},a[uciPicturePlan.fileName][NAME]=uciPicturePlan.secName.eventConfig);
$.moduleSpec[uciFunction.optName.picturePlanCapability]&&(a[uciPicturePlanCapability.fileName]={},a[uciPicturePlanCapability.fileName][NAME]=uciPicturePlanCapability.secName.capability);$.detectionCapability&&1==parseInt($.detectionCapability[uciDetectionCapability.optName.vehicleDetectionCapability])&&(a[uciDetectionCapability.fileName]={},a[uciDetectionCapability.fileName][NAME]=uciDetectionCapability.secName.vehicleDetectionCapability);var b="vedioActiveX";$.BSHOWPTZCTRL?(new PtzControl("ptzControlCon",
1),b="ptzVideoActiveX vedioActiveX",$("ul.lineConfMenu").addClass("havePtz"),Ja&&(id("videoPluginCon").style.width="496px")):($("#ptzToggleCon").hide(),$("#ptzControlCon").hide());g=new Plugin({id:"videoPluginCon",className:b,readyHd:function(a){if(PLUGIN_STATE_ON==a&&!0==Kb){Kb=!1;g.setIntelligentState(1);g.setOSDSpecialStatus(1);a=formatTableData(Ia);for(var c in a){var b=a[c];void 0!=b[ma]&&g.showIntelligentRegion(parseInt(b[Pa])-1,{pt1_x:b[ma],pt1_y:b[Qa],pt2_x:b[Ra],pt2_y:b[Sa],pt3_x:b[Ta],pt3_y:b[Ua],
pt4_x:b[Va],pt4_y:b[Wa]})}g.setOSDStatus(Lb.state);Pb&&setDomSize($(".vedioActiveX")[0],Qb)}}});xa=new DragLine({id:"sensitivityDragLine",name:label.sensitivity,cb:Zb,lowerBound:1});r=new PlanSet("recPlanGrid",{curType:1});fc();$("ul.lineConfMenu li.snapPicBtn").hide();$("ul.lineConfMenu li.snapPicBtn").click(function(a){Sb()});id("closeTip").onclick=function(){$("#popNote").animate({bottom:"-150px"},void 0,void 0,function(){id("popNote").style.display="none"})};R.onclick=function(){Ka?(ka.hide(),
Ka=!1,$(R).removeClass("ptzToggleShowIcon").addClass("ptzToggleHideIcon"),R.style.left="757px",$("ul.lineConfMenu").css("width","702px"),g.setSize({height:"396px",width:"704px"}),g.checkInstalled()||(ka.css("width","0px"),g.showInstalledTip())):(ka.show(),Ka=!0,R.style.left="549px",$(R).removeClass("ptzToggleHideIcon").addClass("ptzToggleShowIcon"),$("ul.lineConfMenu").css("width","494px"),g.setSize({height:"372px",width:"496px"}),g.checkInstalled()||(ka.css("width","204px"),g.showInstalledTip()))};
$.query(a,function(a){if(!0==n(a[ERR_CODE])){Ia=a[d][O];formatTableData(Ia);G=a[d][y][bb];xa.setValue(G);$.moduleSpec[uciFunction.optName.picturePlanCapability]&&1==parseInt(a[uciPicturePlanCapability.fileName][uciPicturePlanCapability.secName.capability][uciPicturePlanCapability.optName.ftpDependOnCapture])&&(L=!0);if(T){H&&(c=a[d][p][cb]==f,changeCheckInput(db,c));I&&(c=a[d][p][eb]==f,changeCheckInput(fb,c));J&&(c=a[d][p][gb]==f,changeCheckInput(U,c),qb=1,va=a[s][uciMsgAlarm.secName.chn1MsgAlarmInfo][uciMsgAlarm.optName.lightEnabled]==
f?1:0);z&&(c=a[d][p][hb]==f,changeCheckInput(V,c),pb=1,ua=a[s][uciMsgAlarm.secName.chn1MsgAlarmInfo][uciMsgAlarm.optName.soundEnabled]==f?1:0);if(K&&(c=a[d][p][ib]==f,changeCheckInput(jb,c),1<ra)){for(var b=c,h=2;h<=ra;h++)aoEnableOpt="AO"+h.toString()+"_enabled",c=a[d][p][aoEnableOpt]==f,changeCheckInput(id("triggerAlarmOut"+h.toString()),c),b=b&&c;b&&changeCheckInput("triggerAOAll",!0)}t&&(L&&A?($("#sendToFtpLine").hide(),Y=a[d][p][sa],c=Y==f?1:0,new Switch("sendToFtpSwitch",c,dc)):($("#sendToFtpSwitchCon").hide(),
$("#sendToFtpLine").show(),$("#goToFtpConf").hide(),c=a[d][p][sa]==f,changeCheckInput(lb,c)));A&&(c=a[d][p][kb]==f,L&&t&&(c?$("#sendToFtpSwitchCon").show():$("#sendToFtpSwitchCon").hide()),changeCheckInput(X,c),$.moduleSpec[uciFunction.optName.captureEnable]&&(rb=1,wa=a[ba][uciPicturePlan.secName.eventConfig][uciPicturePlan.optName.enabled]==f?1:0))}N&&(na=a[d][C][uciVehicleDetection.optName.enabled],Ma=a[d][C][uciVehicleDetection.optName.color],Na=na==f?1:0,selectInit("boxColorSel",Da,null==Ma?Da[0]:
Ma),ob=new Switch("boxSwitch",Na,Ya),Ya(Na));x=a[d][y][ab];c=x==f?1:0;Lb=new Switch("intelligentDetectionSwitch",c,bc);$.detectionCapability&&1==parseInt($.detectionCapability[uciDetectionCapability.optName.vehicleDetectionCapability])&&(Rb=a[uciDetectionCapability.fileName][uciDetectionCapability.secName.vehicleDetectionCapability][uciDetectionCapability.optName.licensePlateWhitelistSupported],Ib=a[uciDetectionCapability.fileName][uciDetectionCapability.secName.vehicleDetectionCapability][uciDetectionCapability.optName.licensePlateWhitelistMaxNum]);
if(Rb){b={};b[d]={};b[d][NAME]=ca;uc();E(Q);ic("licensePlateWhiteList",v);kc("listCloseTip");lc("addLicensePlate");Cb("addListCloseTip");Cb("addLicensePlateCancel");Db("editListCloseTip");Db("editLicensePlateCancel");id("delLicensePlate").onclick=tc;id("addLicensePlateSave").onclick=rc;id("editLicensePlateSave").onclick=sc;for(h=0;h<P.length;h++)La.push({str:P[h],value:h});selectInit("addProvinceAbbrSelect",La,0,removeNoteAll,u);id("addProvinceAbbrSelect").resetSel(u);selectInit("editProvinceAbbrSelect",
La,0,removeNoteAll,u);id("editProvinceAbbrSelect").resetSel(u);id("addLicensePlateText").onblur=closeNoteAll;id("addLicensePlateText").onfocus=closeNoteAll;id("editLicensePlateText").onblur=closeNoteAll;id("editLicensePlateText").onfocus=closeNoteAll;$.query(b,function(a){!0==n(a[ERR_CODE])&&(da=a[d][ca][uciVehicleDetection.optName.enabled],c=da==f?1:0,new Switch("licensePlateWLSwitch",c,oc))})}else id("licensePlateWhiteListLine").style.display="none";if(!0==M){if(!0==ha){var b={},b=a[Ga][Jb],b=formatTableData(b),
m;for(m in b)h=b[m],h[Ha]||(h[Ha]=label.usrdefSound),ja.push({str:h[Ha],value:h[Bc]});uploadSoundFile("fileName",g,Ea,ia)}selectInit("soundTypeSelect",ja,0,Bb,"18");Z=a[d][B][mb];aa=a[d][B][nb];soundTypeSelect.changeSel(Z);soundTimesSelect.changeSel(aa)}if(Ja){var l=a[uciImage.fileName][uciImage.secName.para_switch][uciImage.optName.rotate_type];m={};m[uciVideo.fileName]={};m[uciVideo.fileName][NAME]=uciVideo.secName.main;$.query(m,function(a){!0==n(a[ERR_CODE])&&(a=a[uciVideo.fileName][uciVideo.secName.main],
a=a.resolution.split("*")[1]/a.resolution.split("*")[0],l==uciImage.optValue.rotOff?Xa():Xa(a),$("object.vedioActiveX").addClass("vedioActiveX_corridor"),id("videoPluginCon").style.background="black")})}$("ul.lineConfMenu li.snapPicBtn").show();Nb?1==parseInt(a[uciImageCapability.fileName][uciImageCapability.secType.capability][uciImageCapability.optName.stitch])?(Ob=!0,b={},b[uciImageCapability.fileName]={},b[uciImageCapability.fileName][NAME]=[],b[uciImageCapability.fileName][NAME].push(uciImageCapability.optName.stitch),
$.query(b,function(a){!0==n(a[ERR_CODE])&&Ob&&(Pb=1==parseInt(a[uciImageCapability.fileName][uciImageCapability.optName.stitch][uciImageCapability.optName.dual_stitching])?!0:!1,a={},a[uciVideo.fileName]={},a[uciVideo.fileName][NAME]=uciVideo.secName.main,$.query(a,function(a){if(!0==n(a[ERR_CODE])){var b=a[uciVideo.fileName][uciVideo.secName.main][uciVideo.optName.resolution].split("*")[0];a=a[uciVideo.fileName][uciVideo.secName.main][uciVideo.optName.resolution].split("*")[1];b=parseInt(720/(b/
a));a=parseInt((396-b)/2);$(".vedioActiveX").addClass("vedioActiveXStitch");Qb={height:b,paddingTop:a,paddingBottom:a};Ba()}}))})):Ba():Ba()}});id("save").onclick=$a;id("clear").onclick=ac;id("del").onclick=$b;id("clearAll").onclick=function(a){r.reset()};id("armingScheduleArrow").onclick=xb;id("armingScheduleArrowText").onclick=xb;id("regionSettingArrow").onclick=vb;id("regionSettingArrowText").onclick=vb;id("handleArrow").onclick=zb;id("handleArrowText").onclick=zb;id("sensitivityDragLineDragLineInput").onblur=
sb;id("goToFtpConf").onclick=function(){showConfirmC(label.cue,label.saveTips,function(a){!0==a?$a(function(){gFtpSwitchPageSign=1;unloadLogin()}):(gFtpSwitchPageSign=1,unloadLogin())},btn.unsave,btn.save,!1)}})();initCheckInput("showInfo",function(a,c){a||0!=c||showAlert(label.confirmRecordOff)});initCheckInput("capture",function(a){L&&t&&(a?$("#sendToFtpSwitchCon").show():$("#sendToFtpSwitchCon").hide())});(function(){g.intelligentCallback(function(a){sb();g.showHighlight(parseInt(a),0);f==x&&ub()})})()}
init();
</script><style type="text/css">div.ptzToggle{height:64px;width:12px;position:absolute;cursor:pointer;top:268px;left:549px;z-index:1}div.peCol span.select{font-size:0!important}span.peSelect{width:124px!important;_width:116px!important;font-size:14px!important}#orgDC{width:662px}.displayNone{display:none!important}#regionSetting{margin-top:20px}i.peTypeRd{width:25px!important;height:25px!important}i.timeSeled{background:url(../web-static/images/timeSeled.png) center no-repeat!important}i.timeUnSeled{background:url(../web-static/images/timeUnSeled.png) center no-repeat!important}i.mdtUnSeled{background:url(../web-static/images/mdtUnSeled.png) center no-repeat!important}i.mdtSeled{background:url(../web-static/images/mdtSeled.png) center no-repeat!important}#timingLabel{margin-right:35px;display:inline-block;*display:inline;*zoom:1}#mdtLabel{margin-right:347px;*margin-right:340px;display:inline-block;*display:inline;*zoom:1}label.typeSeled{color:#fff!important}div.handleWay ul.Line label.des{display:inline;vertical-align:middle;margin-left:8px}div.handleWay ul.Line label.sendFtpDes{display:inline-block;margin-left:4px;margin-right:4px;width:140px}ul.Line label.desM{font-size:12px;color:#666;line-height:12px}input.goToFtpConf{margin-left:24px;padding:0 12px}div.peCon{left:136px;top:560px;_left:-30px;_top:-10px}div.peCon div.peConDetail div.peCol4{display:none}ul.line li.lineR{display:inline-block;*display:inline;*zoom:1;height:100%;font-size:0;vertical-align:middle;float:right}ul.line li.lineE1{width:100%;padding-top:5px}ul.line li.lineE2{width:100%;margin-bottom:24px}ul.line label.des{display:inline;vertical-align:middle}ul.line label.desA{color:#333;margin-right:16px}li.Line i.checkDisabled{background:url(../../web-static/images/check_disable.png) center no-repeat}li.Line i.checkedDisabled{background:url(../../web-static/images/checked_disable.png) center no-repeat}div.fileDiv{display:inline-block;height:30px;overflow:hidden;position:relative;vertical-align:middle}div.fileDiv input.file{font-size:16px;top:0;right:0;opacity:0;filter:alpha(opacity:0);cursor:pointer;position:absolute;vertical-align:top;z-index:1}div.tableEditLyCon{height:0;z-index:300;width:770px}div.tableEditConT{width:640px;height:640px}div.tableSoundInfo{width:616px;height:505px}ul.line li.lineTypeSel{padding:5px 0;_height:32px;width:100%;margin-left:24px}ul.line li.lineSoundInfoHead{width:100%;margin-bottom:16px;height:30px}ul.line li.lineSoundInfoSubHead{border:1px solid #e1e3e6;width:592px;height:40px}ul.line li.lineSoundInfoSub{border:1px solid #e1e3e6;border-top:0;width:592px;height:40px}ul.line label.desTypeSel{font-size:12px;color:#7a8999;width:53px;margin-left:4px;margin-right:17px;letter-spacing:1.1px;line-height:16px}ul.line label.desSoundName{font-size:13px;color:#333;line-height:40px;width:300px;margin-left:16px;text-align:left}ul.line label.desList{margin-right:352px}input.btnConfSet{border-radius:2px;font-size:13px;width:82px;height:30px;margin-left:16px}input.textSoundName{width:238px;margin-left:16px;margin-top:5px}input.btnUpload{border-radius:2px;font-size:13px;width:120px;height:30px;margin-right:24px}input.btnDevSoundTest{border-radius:2px;font-size:13px;width:70px;height:26px;margin-top:7px;margin-left:190px;margin-right:16px}input.btnRename{border-radius:2px;font-size:13px;width:83px;height:26px;margin-top:7px;margin-left:81px;margin-right:4px}input.btnDel{border-radius:2px;font-size:13px;width:70px;height:26px;margin-top:7px;margin-left:4px;margin-right:4px}input.btnUsrdefSoundTest{border-radius:2px;font-size:13px;width:70px;height:26px;margin-top:7px;margin-left:4px;margin-right:16px}input.btnCancel{border-radius:2px;font-size:13px;width:70px;height:26px;margin-top:7px;margin-left:172px;margin-right:4px}input.btnSave{border-radius:2px;font-size:13px;width:70px;height:26px;margin-top:7px;margin-left:4px;margin-right:16px}input.testIcon{background-image:url(../../web-static/images/play_normal.png);background-repeat:no-repeat;background-position:8px 4px;*background-position:4px 2px;padding:0 16px 0 28px;*padding:2px 2px 0 18px;height:26px}input.testIcon:hover{background-image:url(../../web-static/images/play_pressed.png)}input.renameIcon{background-image:url(../../web-static/images/edit_normal.png);background-repeat:no-repeat;background-position:8px 4px;*background-position:4px 2px;padding:0 16px 0 28px;*padding:2px 2px 0 18px;height:26px}input.renameIcon:hover{background-image:url(../../web-static/images/edit_pressed.png)}iframe.innerIframe{border:0;height:640px;width:640px;position:absolute;opacity:0;filter:alpha(opacity=0);top:0;left:0;z-index:-1}#infoCloseTip{background:transparent url("../../web-static/images/closeTip.png") no-repeat scroll 0 12px;width:24px;height:26px;display:inline-block;cursor:pointer}div.noteDiv{z-index:1019}div.licensePlateWLCon{width:640px;height:612px}div.licensePlateCon{width:480px;height:244px}input.subBtnDel{width:80px;height:30px;border-radius:2px;margin-right:12px;margin-left:260px}input.subBtnAdd{width:80px;height:30px;border-radius:2px}input.subBtnCancel{width:82px;height:30px;border-radius:2px;margin-right:16px;margin-bottom:5px}input.subBtnSave{width:82px;height:30px;border-radius:2px;margin-bottom:5px}ul.line li.lineE1{display:inline-block;width:264px;margin-right:190px}ul.line label.desB{font-size:13px;color:#666;line-height:30px;width:72px;margin-right:16px;text-align:left}ul.line label.desC{color:#333}ul.line label.desG{display:inline-block;height:18px;line-height:18px;font-size:12px;color:#666;margin-top:4px}ul.line label.desWhiteList{display:block;width:100%;margin-bottom:8px}ul.line li.lineLicensePlateWLHead{margin-bottom:14px;height:30px}ul.line li.line1{display:inline-block;height:30px;width:100%;padding:5px 0;margin-bottom:53px}div.configDiv li.dragLine{width:266px}input.btnWhiteList{border-radius:2px;font-size:13px;width:82px;height:26px}span.provinceAbbrSelect{width:52px}span.select span.hsValueB{color:#333;width:32px;line-height:28px;height:28px}input.licensePlateText{width:128px;margin-left:12px;box-shadow:none}input.btnPicIdentification{border-radius:2px;font-size:13px;width:220px;height:30px}#listCloseTip{background:transparent url("../../web-static/images/closeTip.png") no-repeat scroll 0 12px;width:24px;height:26px;display:inline-block;cursor:pointer}#addListCloseTip{background:transparent url("../../web-static/images/closeTip.png") no-repeat scroll 0 12px;width:24px;height:26px;display:inline-block;cursor:pointer}#editListCloseTip{background:transparent url("../../web-static/images/closeTip.png") no-repeat scroll 0 12px;width:24px;height:26px;display:inline-block;cursor:pointer}div.tableBorderCon{margin-top:0!important;width:592px}table.dataGrid{width:593px}div.centerInnerCon{text-align:center}div.tableCon{height:441px}div.pageListPo{float:left}div.pageListPo span.pageTotalNum{width:58px;margin-right:214px}span.editBtn{font-size:13px;color:#325fe0;line-height:20px;margin-right:8px;cursor:pointer}span.delBtn{font-size:13px;color:#325fe0;line-height:20px;cursor:pointer}div.noContent{width:592px;height:36px;line-height:36px;font-size:13px;border:1px solid #e1e4e6;color:#999;text-align:center}div.displayNoContent{display:block}div.hideNoContent{display:none}div.tableConNoContent{height:39px}div.tableConWithContent{height:441px}div.tableEditCon div.innerConNoContent{padding-bottom:392px}div.tableEditCon div.innerConWithContent{padding-bottom:28px}div.tableEditCon h4.licensePlateInnerCon{width:590px}:root div.tableEditCon h4.licensePlateInnerCon{width:592px}div.tableEditCon h4.addLicensePlateInnerCon{width:430px;margin-bottom:48px}:root div.tableEditCon h4.addLicensePlateInnerCon{width:432px}ul.line label.disable{color:#999}ul.line li.linesup{height:30px;line-height:30px;vertical-align:middle;margin-top:6px;font-size:12px;color:#7a8999;padding-bottom:13px}ul.line li.linesub{height:30px;line-height:30px;margin-top:8px;vertical-align:middle;font-size:12px;color:#7a8999}</style>