

<div class="detailCon">
	<div style="position:relative;*z-index:1;">
		<div id="hidebg"></div>
	</div>
	<div class="actionBarDiv">
		<div class="configDiv">
			<ul class="line">
				<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.defocusDetTips%}</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>
					</li>
				</ul>
				<li class="Line lineE">
					<i name="showInfo" id="triggerEmail" class="chObj" value="3"></i>
					<label class="des desA">{%label.sendEmail%}</label>
					<label class="des desM">{%label.emailTips%}</label>
				</li>
				<li class="Line lineE" id="msgPushLine">
					<i name="showInfo" id="triggerMsgPush" class="chObj" value="4"></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="5"></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="6"></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="7"></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" style="width:592px">{%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="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="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>
<script type="text/javascript">function init(){function u(a,f){var b="";switch(parseInt(a)){case ENONE:return!0;case IPCSMDENABLEERR:b=errStr.IPCParamInvalid;break;case EINVARG:b=errStr.IPCParamInvalid;break;case IPCUMGUESTNAUTH:b=errStr.invPermissionDenied;break;case IPCNOTIFYEMAILENERR:case IPCNOTIFYALARMENERR:case IPCNOTIFMSGPUSHENERR:case IPCNOTIFSOUNDALARMENERR:b=errStr.IPCHandleInalid;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,f);return!1}function Da(a){var f,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 c=0;c<a.length;c++){f=a[c];var d=f.split(/[-]/,2);f=parseInt(d[0],10);d=parseInt(d[1],10);0==f&&0==d?b.push(l._getString(f,d,0)):b.push(l._getString(f,d,1))}return b}function Ea(){var a,f=l.getTimeVal(),b={};for(a=0;a<D.length;a++){var c=b,d=ea[a],g;g=f[D[a]];var h=void 0,
m=void 0,p=void 0,e=void 0,k=void 0,k=e=void 0;if(void 0==g)g="";else{void 0==h&&(h=6);m="[";if(1>g.length)m+='"0000-0000"';else for(p=0;p<g.length&&p<h;p++)e=g[p].toString(),k=e.split(/[-,:]/,3),e=parseInt(k[0],10),k=parseInt(k[1],10),e=l._getStringWithoutType(e,k),0<p&&(m+=","),m+='"'+e+'"';g=m+="]"}c[d]=g}return b}function Fa(){if(!R){var a={};a[c]={};a[c][q]={};a[c][h]={};a[c][E]={};a[c][q][fa]=F;a[c][q][ga]=G;if(H){a[c][h]={};w&&(a[c][h][ha]="true"==ia.getAttribute("checked")?g:e);x&&(a[c][h][ja]=
"true"==ka.getAttribute("checked")?g:e);y&&(a[c][h][la]="true"==I.getAttribute("checked")?g:e);r&&(a[c][h][ma]="true"==J.getAttribute("checked")?g:e);if(z){a[c][h][na]="true"==oa.getAttribute("checked")?g:e;for(var f=2;f<=S;f++)a[c][h]["AO"+f.toString()+"_enabled"]="true"==id("triggerAlarmOut"+f.toString()).getAttribute("checked")?g:e}A&&(a[c][h][pa]="true"==qa.getAttribute("checked")?g:e);s&&(a[c][h][ra]="true"==K.getAttribute("checked")?g:e);n&&(a[c][h][T]=B?L:"true"==sa.getAttribute("checked")?
g:e)}a[c][E]=Ea();!0==C&&(a[c][t]={},a[c][t][ta]=M,a[c][t][ua]=N);var b=va&&!U&&"true"==J.getAttribute("checked"),d=wa&&!V&&"true"==I.getAttribute("checked"),v=xa&&!W&&"true"==K.getAttribute("checked");b||d||v?((b||d)&&showConfirmIpc(label.confirmAlarmDeviceOnTip,function(f){!0==f?(a[k]={},a[k][uciMsgAlarm.secName.chn1MsgAlarmInfo]={},b&&(a[k][uciMsgAlarm.secName.chn1MsgAlarmInfo][uciMsgAlarm.optName.soundEnabled]=uciMsgAlarm.optValue.enableVal.on),d&&(a[k][uciMsgAlarm.secName.chn1MsgAlarmInfo][uciMsgAlarm.optName.lightEnabled]=
uciMsgAlarm.optValue.enableVal.on),showToast(),$.modify(a,function(a){!0==u(a[ERR_CODE])&&(b&&(U=1),d&&(V=1),showToast("success"))})):(b&&changeCheckInput(J,!1),d&&changeCheckInput(I,!1))}),v&&showConfirmIpc(label.confirmCaptureOnTip,function(f){!0==f?(a[O]={},a[O][uciPicturePlan.secName.eventConfig]={},v&&(a[O][uciPicturePlan.secName.eventConfig][uciPicturePlan.optName.enabled]=uciPicturePlan.optValue.on),showToast(),$.modify(a,function(a){!0==u(a[ERR_CODE])&&(v&&(W=1),showToast("success"))})):v&&
changeCheckInput(K,!1)})):(showToast(),$.modify(a,function(a){!0==u(a[ERR_CODE])&&showToast("success")}))}}function Ga(a){Ha.innerHTML=1==a?btn.enableN:btn.close;G=1==a?g:e;if(0==a){a=document.getElementById("hidebg");a.style.display="block";var f=getoffset(id("save")).top-getoffset($("div.actionBarDiv")[0]).top;if(0==$("#peCon").length||"none"==$("#peCon").css("display"))a.style.height=f+"px";else{var b=getoffset(id("peCon")).top-getoffset($("div.actionBarDiv")[0]).top+id("peCon").offsetHeight;a.style.height=
(f>b?f:b)+"px"}}else document.getElementById("hidebg").style.display="none"}function Ia(a){Ja.innerHTML=1==a?btn.enableN:btn.close;L=1==a?g:e}function Ka(a){F=a;X.setValue(a);!0==checkNum(a)&&!0==checkNumRange(parseInt(a),100,1)?R=!1:(showNote("sensitivityDragLineDragLineInput",errStr.sensitivityErr),R=!0)}function La(){var a,f={};f[c]={};f[c][NAME]=E;$.query(f,function(f){if(!0==u(f[ERR_CODE]))for(l.reset(),a=0;a<D.length;a++)l.setTimeVal(D[a],Da(f[c][E][ea[a]]))})}function ya(a){Y?(id("armingScheduleArrow").className=
"arrowDown",id("armingScheduleArrow").title=label.slideDown,id("armingScheduleArrowText").innerHTML=label.slideDown,timeSchedule.style.display="none",Y=!1):(id("armingScheduleArrow").className="arrowUp",id("armingScheduleArrow").title=label.slideUp,id("armingScheduleArrowText").innerHTML=label.slideUp,timeSchedule.style.display="",Y=!0)}function za(a){Z?(id("handleArrow").className="arrowDown",id("handleArrow").title=label.slideDown,id("handleArrowText").innerHTML=label.slideDown,handleWay.style.display=
"none",Z=!1):(id("handleArrow").className="arrowUp",id("handleArrow").title=label.slideUp,id("handleArrowText").innerHTML=label.slideUp,handleWay.style.display="",Z=!0)}function Aa(a){M=a}function Ma(a){N=a}function Na(a,f){selectInit("soundTypeSelect",a,0,Aa,"18");id("soundTypeSelect").resetSel(f)}function Oa(){var a=uciLinkageCapability.optName.sound_alarm_capability,f=uciLinkageCapability.optName.msg_push_capability,b=uciLinkageCapability.optName.alarm_out_capability,c=uciLinkageCapability.optName.record_capability,
d=uciLinkageCapability.optName.email_capability,g=uciLinkageCapability.optName.ftp_capability,h=uciLinkageCapability.optName.capture_capability,e=function(a){a=$.linkageCapability[a];return 14>a.length?!1:"1"==a[a.length-14]?!0:!1};y=e(uciLinkageCapability.optName.light_alarm_capability);r=e(a);w=e(f);z=e(b);x=e(c);A=e(d);n=e(g);s=e(h);(H=y||r||w||z||x||A||n||s)?(y||$("#triggerLightAlarm").parent().hide(),r||$("#triggerSoundAlarm").parent().hide(),w||$("#triggerMsgPush").parent().hide(),x||$("#triggerRecord").parent().hide(),
z?InsertTriggerAlarmOut("triggerAlarmOut"):$("#triggerAlarmOut").parent().hide(),A||$("#triggerEmail").parent().hide(),n||$("#sendToFtp").hide(),s||$("#triggerCapture").parent().hide()):id("handleWayDiv").style.display="none"}function Pa(){r&&$.audioAlarmCapability&&(C=1==parseInt($.audioAlarmCapability[Qa])?!0:!1,P=1==parseInt($.audioAlarmCapability[Ra])?!0:!1,aa=parseInt($.audioAlarmCapability[Sa]),Ba=$.audioAlarmCapability[ba].length);if(!1==C)id("soundInfo").style.display="none";else{id("soundTypeSelect");
id("soundTimesSelect");for(var a=[],f=[{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[ba].length;b++){var d=parseInt($.audioAlarmCapability[ba][b]);a.push(d);Q.push(f[d])}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,Ma)}if(!1==P)id("setSoundAlarm").style.display=
"none";else{openSoundInfo("setSoundAlarm",Ba,aa,label.usrdefSound);closeSoundInfo("infoCloseTip",c,Q,Na);for(b=0;b<f.length;b++)0<=$.inArray(b,a)?(devSoundListen("testListen_"+b,b),devSoundFocus("devsound_"+b,b)):id("devsound_"+b).style.display="none";for(a=0;a<aa;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 c=uciDefocusDetection.fileName,q=uciDefocusDetection.secName.detection,E=uciDefocusDetection.secName.armingSchedule,h=uciDefocusDetection.secName.notifyList,ga=uciDefocusDetection.optName.enabled,fa=uciDefocusDetection.optName.sensitivity,pa=uciDefocusDetection.optName.emailEnabled,na=uciDefocusDetection.optName.alarmEnabled,ha=uciDefocusDetection.optName.msgPushEnabled,ma=uciDefocusDetection.optName.soundAlarmEnabled,la=uciDefocusDetection.optName.lightAlarmEnabled,T=uciDefocusDetection.optName.ftpEnabled,
ja=uciDefocusDetection.optName.recordEnabled,ra=uciDefocusDetection.optName.captureEnabled,g=uciDefocusDetection.optValue.enableVal.on,e=uciDefocusDetection.optValue.enableVal.off,t=uciDefocusDetection.secName.soundAlarmInfo,ta=uciDefocusDetection.optName.soundAlarmType,ua=uciDefocusDetection.optName.soundAlarmTimes,Qa=uciAlarmAudioTypeCapability.optName.eventSeparateAudioAlarmSupport,Ra=uciAlarmAudioTypeCapability.optName.usrDefAudioAlarmSupport,Sa=uciAlarmAudioTypeCapability.optName.usrDefAudioAlarmMaxNum,
ba=uciAlarmAudioTypeCapability.optName.alarmType,ca=uciUsrDefAlarm.fileName,Ca=uciUsrDefAlarm.secName.usrDefAudio,Ta=uciUsrDefAlarm.optName.id,da=uciUsrDefAlarm.optName.name,d,G,Ha=id("intelligentDetectionSwitchDes"),X,F,qa=id("triggerEmail"),ia=id("triggerMsgPush"),J=id("triggerSoundAlarm"),oa=id("triggerAlarmOut"),I=id("triggerLightAlarm");id("triggerFtpAlarm");var sa=id("sendFtp"),L,Ja=id("sendToFtpSwitchDes"),K=id("triggerCapture"),ka=id("triggerRecord"),D=[label.Mon,label.Tue,label.Wen,label.Thu,
label.Fri,label.Sta,label.Sun],ea=[uciDefocusDetection.optName.mon,uciDefocusDetection.optName.tue,uciDefocusDetection.optName.wed,uciDefocusDetection.optName.thu,uciDefocusDetection.optName.fri,uciDefocusDetection.optName.sat,uciDefocusDetection.optName.sun],Y=!0,Z=!0,R=!1,H,y,r,w,z,x,n,A,s,S=isNaN(parseInt($.moduleSpec.alarm_out_num))?1:parseInt($.moduleSpec.alarm_out_num),P=!1,C=!1,M,N,aa,Q=[],Ba=0,k=uciMsgAlarm.fileName,va=0,U=0,wa=0,V=0,O=uciPicturePlan.fileName,xa=0,W=0,l,B=!1;(function(){var a=
{};d=0;Oa();Pa();a[c]={};a[c][NAME]=[q,h];H&&a[c][NAME].push(h);C&&a[c][NAME].push(t);$.moduleSpec[uciFunction.optName.msgAlarmSeparateList]&&(a[k]={},a[k][NAME]=uciMsgAlarm.secName.chn1MsgAlarmInfo);!0==P&&(a[ca]={},a[ca][KEY_TABLE]=[Ca]);$.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);X=new DragLine({id:"sensitivityDragLine",name:label.sensitivity,cb:Ka,lowerBound:1});l=new PlanSet("recPlanGrid",{curType:1});La();$.query(a,function(a){if(!0==u(a[ERR_CODE])){G=a[c][q][ga];d=G==g?1:0;new Switch("intelligentDetectionSwitch",d,Ga);F=a[c][q][fa];X.setValue(F);$.moduleSpec[uciFunction.optName.picturePlanCapability]&&1==parseInt(a[uciPicturePlanCapability.fileName][uciPicturePlanCapability.secName.capability][uciPicturePlanCapability.optName.ftpDependOnCapture])&&
(B=!0);if(H){w&&(d=a[c][h][ha]==g,changeCheckInput(ia,d));x&&(d=a[c][h][ja]==g,changeCheckInput(ka,d));y&&(d=a[c][h][la]==g,changeCheckInput(I,d),wa=1,V=a[k][uciMsgAlarm.secName.chn1MsgAlarmInfo][uciMsgAlarm.optName.lightEnabled]==g?1:0);r&&(d=a[c][h][ma]==g,changeCheckInput(J,d),va=1,U=a[k][uciMsgAlarm.secName.chn1MsgAlarmInfo][uciMsgAlarm.optName.soundEnabled]==g?1:0);if(z&&(d=a[c][h][na]==g,changeCheckInput(oa,d),1<S)){for(var b=d,e=2;e<=S;e++)aoEnableOpt="AO"+e.toString()+"_enabled",d=a[c][h][aoEnableOpt]==
g,changeCheckInput(id("triggerAlarmOut"+e.toString()),d),b=b&&d;b&&changeCheckInput("triggerAOAll",!0)}A&&(d=a[c][h][pa]==g,changeCheckInput(qa,d));n&&(B&&s?($("#sendToFtpLine").hide(),L=a[c][h][T],d=L==g?1:0,new Switch("sendToFtpSwitch",d,Ia)):($("#sendToFtpSwitchCon").hide(),$("#sendToFtpLine").show(),d=a[c][h][T]==g,changeCheckInput(sa,d)));s&&(d=a[c][h][ra]==g,B&&n&&(d?$("#sendToFtpSwitchCon").show():$("#sendToFtpSwitchCon").hide()),changeCheckInput(K,d),$.moduleSpec[uciFunction.optName.captureEnable]&&
(xa=1,W=a[O][uciPicturePlan.secName.eventConfig][uciPicturePlan.optName.enabled]==g?1:0))}if(!0==C){if(!0==P){var b={},b=a[ca][Ca],b=formatTableData(b),l;for(l in b)e=b[l],e[da]||(e[da]=label.usrdefSound),Q.push({str:e[da],value:e[Ta]})}selectInit("soundTypeSelect",Q,0,Aa,"18");M=a[c][t][ta];N=a[c][t][ua];soundTypeSelect.changeSel(M);soundTimesSelect.changeSel(N)}showDetailCon()}});id("save").onclick=Fa;id("clearAll").onclick=function(a){l.reset()};id("armingScheduleArrow").onclick=ya;id("armingScheduleArrowText").onclick=
ya;id("handleArrow").onclick=za;id("handleArrowText").onclick=za})();initCheckInput("showInfo",function(a,c){a||0!=c||showAlert(label.confirmRecordOff)});initCheckInput("capture",function(a){B&&n&&(a?$("#sendToFtpSwitchCon").show():$("#sendToFtpSwitchCon").hide())})}init();
</script><style type="text/css">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}i.peTypeRd{width:25px!important;height:25px!important}i.timeSeled{background:url(../web-static/images/timeSeled.png?random=20190610162457) center no-repeat!important}i.timeUnSeled{background:url(../web-static/images/timeUnSeled.png?random=20190610162457) center no-repeat!important}i.mdtUnSeled{background:url(../web-static/images/mdtUnSeled.png?random=20190610162457) center no-repeat!important}i.mdtSeled{background:url(../web-static/images/mdtSeled.png?random=20190610162457) 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.peCon{left:136px;top:190px;_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.desA{color:#333;margin-right:16px}ul.Line label.desM{font-size:12px;color:#666;line-height:12px}ul.line label.des{display:inline;vertical-align:middle}ul.line label.desG{font-size:12px;color:#666;line-height:12px;margin-top:-20px}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}div.handleWay ul.Line label.desA{font-size:13px;color:#333;line-height:30px;width:500px}div.fileDiv{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}</style>