

<div class="detailCon" id="detailCon">
	<div id="ebikeSwitchDiv">
		<ul class="line">
			<li class="line lineA">
				<label class="des desA">{%menuStr.ebikeDetection%}</label>
				<div id="ebikeSwitch" class="switchCon">
					<i class="switchBg"></i>
					<i class="switchBall"></i>
				</div>
				<label id="ebikeSwitchDes" class="des desH">{%btn.close%}</label>
			</li>
		</ul>
	</div>
	<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="lineSet">
			<span class="selCon IEPZD">
				<span id="regionNumber" class="select">
					<span class="value hsValueB"></span>
					<i class="arrow"></i>
				</span>
			</span>
		</li>
		<li class="lineSet lineConf1">
			<input id="del" type="button" class="subBtnB btnA delIcon" value="{%btn.del%}" />
		</li>
		<li class="snapPicLi snapPicBtn" title="{%label.snapPic%}"></li>
	</ul>
	<div class="actionBarDiv">
		<div class="actionTitleDiv actionTitleDivTop13">
			<label class="actionTitle" id="regionName">{%label.regionOne%}</label>
			<div class="actionTitleArrowDiv">
				<label class="actionArrowTitle" id="regionOneArrowText">{%label.slideUp%}</label>
				<i class="arrowUp" title= {%label.slideUp%} id="regionOneArrow"></i>
			</div>
		</div>
		<div class="configDiv" id="configDiv">
			<ul class="line lineL1">
				<li class="ebikeCheck liWidth">
					<i name="showInfo" id="bikeCheck" class="chObj" value="20"></i>
					<label class="des desA" id="bikeCheck">{%label.bikeFilter%}</label>
				</li>
				<li class="Line ebikeTip liWidth">
					<label class="desG">{%label.ebikeDetectionTips%}</label>
				</li>
				<li class="dragLine marginTop liWidth">
					<div id="percentageDragLine" class="ipcDragLineDiv"></div>
				</li>
				<li class="dragLine marginTop liWidth">
					<div id="confidenceDragLine" class="ipcDragLineDiv"></div>
				</li>
				<li class="frameRateSet marginTop liWidth" id="filterLevelOpt">
					<div class="lineSub lineSubL">
						<label class="title">{%label.filterLevel%}</label>
						<div id="frameRateDL" class="ipcDragLineDiv DragLineSimple"></div>
					</div>
				</li>
			</ul>
			<ul class="line lineR">
				<li class="boxInput liWidth">
					<label class="des desA">{%label.timeThreshold%}</label>
					<input id="thresholdDelay" class="text textA4" maxLength="2" type="text" /><span class="tip">{%label.second%}</span><span class="tip">(0 - 10)</span>
				</li>
				<li id="constantAlarmSwitch" class="boxInput marginTop liWidth">
					<label class="des desA">{%label.constantAlarm%}</label>
					<div id="constantAlarm" class="switchCon">
						<i class="switchBg"></i>
						<i class="switchBall"></i>
					</div>
					<label class="des desH"></label>
				</li>
				<li class="boxInput marginTop endDelayOpt liWidth" id="endDelayOpt">
					<label class="des desA">{%label.endDelay%}</label>
					<input id="endDelay" class="text textA4" maxLength="2" type="text" /><span class="tip">{%label.second%}</span><span class="tip">(2 - 60)</span>
				</li>
			</ul>
		</div>
	</div>
	<div class="actionBarDiv">
		<div class="actionTitleDiv actionTitleDivTop33">
			<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.intrusionDetTips%}</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 actionTitleDivTop33">
			<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>
				<li class="Line lineE" id="smartTargetTrackLine">
					<i name="showInfo" id="smartTargetTrack" class="chObj" value="7"></i>
					<label class="des desA">{%label.smartTargetTrack%}</label>
					<label class="des desM">{%label.smartTargetTrackTips%}</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>
<script type="text/javascript">function init(){function s(a,b){var e="";switch(parseInt(a)){case ENONE:return!0;case IPCSMDENABLEERR:e=errStr.IPCParamInvalid;break;case EINVARG:e=errStr.IPCParamInvalid;break;case IPCSMDTHRESHOLDERR:e=errStr.thresholdDelayErr;break;case IPCSMDPERCENTAGEERR:e=errStr.percentageRatioErr;break;case IPCUMGUESTNAUTH:e=errStr.invPermissionDenied;break;case IPCNOTIFYEMAILENERR:case IPCNOTIFYALARMENERR:case IPCNOTIFYRECORDENERR:case IPCNOTIFYFTPENERR:case IPCNOTIFMSGPUSHENERR:case IPCNOTIFCAPTUREENERR:case IPCNOTIFSOUNDALARMENERR:e=
errStr.IPCHandleInalid;break;case IPCSMDREGIONEILLEGAL:e=errStr.regionIllegal;break;case IPCSMDREGIONNUMERR:e=errStr.regionNumErr;break;case IPCARMINGSCHEDULEEOVERFLOW:e=errStr.armingScheduleOverflow;break;case IPCARMINGSCHEDULEMIX:e=errStr.armingScheduleMix;break;case IPCARMINGSCHEDULEILLEGAL:e=errStr.armingScheduleIllegal;break;default:e=errStr.invRequestFail}closeToast();showAlert(e,b);return!1}function Oa(){clearTimeout(oa);oa=$.setTimeout(function(){$("#popNote").animate({bottom:"-150px"},void 0,
void 0,function(){id("popNote").style.display="none"})},5E3)}function Wb(){g.catchPic(function(a){var b="";switch(parseInt(a)){case 0:b=label.snapPicEnd;$("#StorageFolder").css("background-image","url(../web-static/images/save_reddot.png)");break;case 1:b=label.snapPicSaveFail;break;case 2:return;case 3:b=label.diskLess;break;case 7:b=label.pathChange;break;case 8:b=label.pathNoExist}if(0<parseInt(a))clearTimeout(oa),popContentCorrect.style.display="none",popContentError.style.display="inline-block",
7==parseInt(a)?titleText.innerHTML=label.cue:titleText.innerHTML=label.snapPicFail,popContentError.innerHTML=b;else{var e=g.getPicFileStoragePath(),b=e.lastIndexOf("\\"),b=e.substr(b+1);popContentCorrect.style.display="inline-block";popContentError.style.display="none";titleText.innerHTML=label.snapPicSuccess;Xb.innerHTML=b;check.onclick=function(){g.openFileStorageFolder(e)};Oa()}$("#popNote").animate({bottom:"0px"});id("popNote").style.display="inline-block";log(a);7==parseInt(a)&&Oa()})}function Pa(a){a=
w[a];null!=a&&void 0!=a[Q]&&g.showIntelligentRegion(0,{pt1_x:a[Q],pt1_y:a[pa],pt2_x:a[qa],pt2_y:a[ra],pt3_x:a[sa],pt3_y:a[ta],pt4_x:a[ua],pt4_y:a[va]})}function Qa(a){var b,e,k=0<arguments.length?a:z.value;b=g.getIntelligentRegion(0);if(null==b.pt1_x||0==b.pt1_x&&0==b.pt1_y&&0==b.pt2_x&&0==b.pt2_y)return-1;if(0<=b.pt1_x){var d,c,l,h,f,p,q;e=b.pt1_x;h=b.pt1_y;d=b.pt2_x;f=b.pt2_y;c=b.pt3_x;p=b.pt3_y;l=b.pt4_x;q=b.pt4_y;(e-d)*(h-p)==(e-c)*(h-f)||(e-l)*(h-f)==(h-q)*(e-d)||(e-c)*(h-q)==(e-l)*(h-p)||(d-
c)*(f-q)==(d-l)*(f-p)?(showAlert(label.threePointConllineation),e=-1):e=0;if(-1==e)return-1;e={};e[Yb]=k+1+"";e[Q]=b.pt1_x.toString();e[pa]=b.pt1_y.toString();e[qa]=b.pt2_x.toString();e[ra]=b.pt2_y.toString();e[sa]=b.pt3_x.toString();e[ta]=b.pt3_y.toString();e[ua]=b.pt4_x.toString();e[va]=b.pt4_y.toString();$.BSHOWPTZCTRL&&(e.position_pan=R[k],e.position_tilt=S[k],e.position_zoom=T[k],U[k]=!0);w[k]=e}return 0}function Ra(a){Sa={height:id("videoPluginCon").offsetHeight,paddingTop:padding_top,paddingBottom:padding_top}}
function Zb(a){var b,e=[];if(void 0==a)return e.push('"0000-0000:0"'),e;a instanceof Array||(a=a.match(/\d{4}-\d{4}/g));for(var k=0;k<a.length;k++){b=a[k];var d=b.split(/[-]/,2);b=parseInt(d[0],10);d=parseInt(d[1],10);0==b&&0==d?e.push(u._getString(b,d,0)):e.push(u._getString(b,d,1))}return e}function $b(){var a,b=u.getTimeVal(),e={};for(a=0;a<V.length;a++){var k=e,d=Ta[a],c;c=b[V[a]];var f=void 0,h=void 0,g=void 0,p=void 0,q=void 0,q=p=void 0;if(void 0==c)c="";else{void 0==f&&(f=6);h="[";if(1>c.length)h+=
'"0000-0000"';else for(g=0;g<c.length&&g<f;g++)p=c[g].toString(),q=p.split(/[-,:]/,3),p=parseInt(q[0],10),q=parseInt(q[1],10),p=u._getStringWithoutType(p,q),0<g&&(h+=","),h+='"'+p+'"';c=h+="]"}k[d]=c}return e}function ac(a){var b={},e="0",k="0",d="0";b.ptz={};b.ptz[uciPTZ.actionName.getPTZStatus]=null;$.action(b,function(b){!0==s(b[ERR_CODE])&&(b=b.ptz.status,e=b.position_pan,k=b.position_tilt,d=b.position_zoom);R[z.value]=e;S[z.value]=k;T[z.value]=d;"function"==typeof a&&a()})}function Ua(a){for(var b=
0;b<a.length;b++)if(null!=a[b])return!1;return!0}function Va(a){if(W||bc)return!1;if(!0==wa&&x==f)showAlert(label.resCloseOnTip);else{var b=function(){if(-1!=Qa()){var b=0,k=w;if(f==x&&!0==Ua(k))showAlert(label.addOneRegionFirst);else{var g=[],b=0,c={},l={};c[d]={};c[d][n]={};c[d][n][Wa]=X;c[d][n][Xa]=Y;c[d][n][Ya]=x;c[d][n][Za]="true"==id("bikeCheck").getAttribute("checked")?r:f;c[d][n][$a]=parseInt(xa.getValue());c[d][n][ab]=E;c[d][n][bb]=F;c[d][n][cb]=Z;if(aa){c[d][m]={};G&&(c[d][m][db]="true"==
eb.getAttribute("checked")?f:r);H&&(c[d][m][fb]="true"==gb.getAttribute("checked")?f:r);I&&(c[d][m][hb]="true"==ba.getAttribute("checked")?f:r);A&&(c[d][m][ib]="true"==ca.getAttribute("checked")?f:r);if(J){c[d][m][jb]="true"==kb.getAttribute("checked")?f:r;for(var h=2;h<=ya;h++)c[d][m]["AO"+h.toString()+"_enabled"]="true"==id("triggerAlarmOut"+h.toString()).getAttribute("checked")?f:r}B&&(c[d][m][lb]="true"==da.getAttribute("checked")?f:r);y&&(c[d][m][za]=K?ea:"true"==mb.getAttribute("checked")?f:
r);L&&(h=nb.getAttribute("checked"),c[d][m][ob]="true"==h?f:r,"true"==h&&(c[uciTargetTrack.fileName]={},c[uciTargetTrack.fileName][uciTargetTrack.secName.target_track_info]={},c[uciTargetTrack.fileName][uciTargetTrack.secName.target_track_info][uciTargetTrack.optName.enabled]=f))}c[d][Aa]=$b();!0==M&&(c[d][C]={},c[d][C][pb]=fa,c[d][C][qb]=ga);var t=rb&&!sb&&"true"==ca.getAttribute("checked"),p=tb&&!ub&&"true"==ba.getAttribute("checked"),q=vb&&!Ba&&"true"==da.getAttribute("checked");t||p||q?((t||p)&&
showConfirmIpc(label.confirmAlarmDeviceOnTip,function(f){!0==f?(c[v]={},c[v][uciMsgAlarm.secName.chn1MsgAlarmInfo]={},t&&(c[v][uciMsgAlarm.secName.chn1MsgAlarmInfo][uciMsgAlarm.optName.soundEnabled]=uciMsgAlarm.optValue.enableVal.on),p&&(c[v][uciMsgAlarm.secName.chn1MsgAlarmInfo][uciMsgAlarm.optName.lightEnabled]=uciMsgAlarm.optValue.enableVal.on),showToast(),$.modify(c,function(c){if(!0==s(c[ERR_CODE])){if(null!=k){l[d]={};l[d][D]={};b=0;for(var f in k)null!=k[f]&&(g[b]=k[f],b++);l[d][D][N]=g;$.action(l,
function(a){!0==s(a[ERR_CODE])&&showToast("success")})}else showToast("success");"function"==typeof a&&void 0!=a&&a()}})):(t&&changeCheckInput(ca,!1),p&&changeCheckInput(ba,!1))}),q&&showConfirmIpc(label.confirmCaptureOnTip,function(f){!0==f?(c[ha]={},c[ha][uciPicturePlan.secName.eventConfig]={},q&&(c[ha][uciPicturePlan.secName.eventConfig][uciPicturePlan.optName.enabled]=uciPicturePlan.optValue.on),showToast(),$.modify(c,function(c){if(!0==s(c[ERR_CODE])){q&&(Ba=1);if(null!=k){l[d]={};l[d][D]={};
b=0;for(var f in k)null!=k[f]&&(g[b]=k[f],b++);l[d][D][N]=g;$.action(l,function(a){!0==s(a[ERR_CODE])&&showToast("success")})}else showToast("success");"function"==typeof a&&void 0!=a&&a()}})):q&&changeCheckInput(da,!1)})):(showToast(),$.modify(c,function(c){if(!0==s(c[ERR_CODE])){if(null!=k){l[d]={};l[d][D]={};b=0;for(var f in k)null!=k[f]&&(g[b]=k[f],b++);l[d][D][N]=g;$.action(l,function(a){!0==s(a[ERR_CODE])&&showToast("success")})}else showToast("success");"function"==typeof a&&void 0!=a&&a()}}))}}};
$.BSHOWPTZCTRL?ac(b):b()}}function wb(){closeNoteAll();!0==checkNum(O.value)&&!0==checkNumRange(parseInt(O.value),10,0)?(E=parseInt(O.value),W=!1):(showNote("thresholdDelay",errStr.thresholdDelayErr),W=!0);!0==checkNum(id("endDelay").value)&&!0==checkNumRange(parseInt(id("endDelay").value),60,2)?Z=id("endDelay").value:showNote("endDelay",errStr.endDelayErr)}function cc(a){x=1==a?f:r;!0!=wa&&(!1==g.checkInstalled()?ia():(0==a?($.BSHOWPTZCTRL&&(ja=!1),g.setOSDStatus(0),ia()):($.BSHOWPTZCTRL&&(ja=!0),
g.setOSDStatus(1),xb()),$.BSHOWPTZCTRL&&Ca(z.value)))}function dc(a){closeNote("percentageDragLineDragLineInput");X=a}function ec(a){Y=a;Da.setValue(a);!0==checkNum(a)&&!0==checkNumRange(parseInt(a),100,1)||showNote("confidenceDragLineDragLineInput",errStr.confidenceErr)}function fc(){var a=z.value;g.delIntelligentRegion(PLUGIN_STATE_ON);w[a]=null;$.BSHOWPTZCTRL&&(U[a]=!1);!0==Ua(w)&&ia()}function ia(){var a=document.getElementById("hidebg");a.style.display="block";var b=getoffset(id("save")).top-
getoffset(id("videoPluginCon")).top;if(0==$("#peCon").length||"none"==$("#peCon").css("display"))a.style.height=b+"px";else{var e=getoffset(id("peCon")).top-getoffset(id("videoPluginCon")).top+id("peCon").offsetHeight;a.style.height=(b>e?b:e)+"px"}}function xb(){document.getElementById("hidebg").style.display="none"}function gc(a){hc.innerHTML=1==a?btn.enableN:btn.close;ea=1==a?f:r}function ic(){var a,b={};b[d]={};b[d][NAME]=Aa;$.query(b,function(b){if(!0==s(b[ERR_CODE]))for(u.reset(),a=0;a<V.length;a++)u.setTimeVal(V[a],
Zb(b[d][Aa][Ta[a]]))})}function yb(a){Ea?(id("armingScheduleArrow").className="arrowDown",id("armingScheduleArrow").title=label.slideDown,id("armingScheduleArrowText").innerHTML=label.slideDown,zb.style.display="none",Ea=!1):(id("armingScheduleArrow").className="arrowUp",id("armingScheduleArrow").title=label.slideUp,id("armingScheduleArrowText").innerHTML=label.slideUp,zb.style.display="",Ea=!0)}function Ab(a){Fa?(id("regionOneArrow").className="arrowDown",id("regionOneArrow").title=label.slideDown,
id("regionOneArrowText").innerHTML=label.slideDown,configDiv.style.display="none",Fa=!1):(id("regionOneArrow").className="arrowUp",id("regionOneArrow").title=label.slideUp,id("regionOneArrowText").innerHTML=label.slideUp,configDiv.style.display="",Fa=!0)}function Bb(a){Ga?(id("handleArrow").className="arrowDown",id("handleArrow").title=label.slideDown,id("handleArrowText").innerHTML=label.slideDown,Cb.style.display="none",Ga=!1):(id("handleArrow").className="arrowUp",id("handleArrow").title=label.slideUp,
id("handleArrowText").innerHTML=label.slideUp,Cb.style.display="",Ga=!0)}function Db(a){fa=a}function jc(a){ga=a}function kc(a,b){selectInit("soundTypeSelect",a,0,Db,"18");id("soundTypeSelect").resetSel(b)}function Eb(a){F=0==a?r:f;1==a?(Fb.style.visibility="visible",Gb.style.visibility="visible"):(Fb.style.visibility="hidden",Gb.style.visibility="hidden")}function Ca(a){if(U[a]&&ja){var b={ptz:{}},d=b.ptz.absolute_move={};d.position_pan=R[a];d.position_tilt=S[a];d.position_zoom=T[a];$.action(b,function(a){s(a[ERR_CODE])})}}
function lc(a){$.BSHOWPTZCTRL&&Ca(a);switch(parseInt(a)){case 0:id("regionName").innerHTML=label.regionOne;break;case 1:id("regionName").innerHTML=label.regionTwo;break;case 2:id("regionName").innerHTML=label.regionThree;break;case 3:id("regionName").innerHTML=label.regionFour}Qa(Hb);Hb=a;g.delIntelligentRegion(PLUGIN_STATE_ON);null!=w[a]&&Pa(a)}function Ha(){g.playVideo();$("ul.lineConfMenu li.snapPicBtn").show();showDetailCon()}function mc(){var a=uciLinkageCapability.optName.sound_alarm_capability,
b=uciLinkageCapability.optName.msg_push_capability,d=uciLinkageCapability.optName.alarm_out_capability,k=uciLinkageCapability.optName.record_capability,f=uciLinkageCapability.optName.ftp_capability,c=uciLinkageCapability.optName.capture_capability,g=uciLinkageCapability.optName.target_track_capability,h=function(a){a=$.linkageCapability[a];return 4>a.length?!1:"1"==a[a.length-4]?!0:!1};I=h(uciLinkageCapability.optName.light_alarm_capability);A=h(a);G=h(b);J=h(d);H=h(k);y=h(f);B=h(c);L=h(g);(aa=I||
A||G||J||H||y||B||L)?(I||$("#triggerLightAlarm").parent().hide(),A||$("#triggerSoundAlarm").parent().hide(),G||$("#triggerMsgPush").parent().hide(),H||$("#triggerRecord").parent().hide(),J?InsertTriggerAlarmOut("triggerAlarmOut"):$("#triggerAlarmOut").parent().hide(),y||$("#sendToFtp").hide(),B||$("#triggerCapture").parent().hide(),L||$("#smartTargetTrack").parent().hide()):id("handleWayDiv").style.display="none"}function nc(){A&&$.audioAlarmCapability&&(M=1==parseInt($.audioAlarmCapability[oc])?
!0:!1,ka=1==parseInt($.audioAlarmCapability[pc])?!0:!1,la=parseInt($.audioAlarmCapability[qc]),Ia=$.audioAlarmCapability[Ja].length);if(!1==M)id("soundInfo").style.display="none";else{id("soundTypeSelect");id("soundTimesSelect");for(var a=[],b=[{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}],e=0;e<$.audioAlarmCapability[Ja].length;e++){var k=parseInt($.audioAlarmCapability[Ja][e]);a.push(k);ma.push(b[k])}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,jc)}if(!1==ka)id("setSoundAlarm").style.display="none";else{openSoundInfo("setSoundAlarm",Ia,la,label.usrdefSound);closeSoundInfo("infoCloseTip",d,ma,kc);for(e=0;e<b.length;e++)0<=$.inArray(e,a)?(devSoundListen("testListen_"+e,e),devSoundFocus("devsound_"+e,e)):id("devsound_"+e).style.display="none";for(a=0;a<la;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=uciEbikeDetection.fileName,n=uciEbikeDetection.secName.detection,Aa=uciEbikeDetection.secName.armingSchedule,m=uciEbikeDetection.secName.notifyList,N=uciEbikeDetection.secType.regionInfo,Xa=uciEbikeDetection.optName.confidence,C=uciEbikeDetection.secName.soundAlarmInfo,bb=
uciEbikeDetection.optName.constantAlarmEnabled,$a=uciEbikeDetection.optName.filterLevel,Za=uciEbikeDetection.optName.bikeEnabled,cb=uciEbikeDetection.optName.endDelay,Ya=uciEbikeDetection.optName.enabled,ab=uciEbikeDetection.optName.threshold,Wa=uciEbikeDetection.optName.percentage,Fa=!0,oc=uciAlarmAudioTypeCapability.optName.eventSeparateAudioAlarmSupport,pc=uciAlarmAudioTypeCapability.optName.usrDefAudioAlarmSupport,qc=uciAlarmAudioTypeCapability.optName.usrDefAudioAlarmMaxNum,Ja=uciAlarmAudioTypeCapability.optName.alarmType,
rc=uciEbikeDetection.optName.id,Q=uciEbikeDetection.optName.pt1x,pa=uciEbikeDetection.optName.pt1y,qa=uciEbikeDetection.optName.pt2x,ra=uciEbikeDetection.optName.pt2y,sa=uciEbikeDetection.optName.pt3x,ta=uciEbikeDetection.optName.pt3y,ua=uciEbikeDetection.optName.pt4x,va=uciEbikeDetection.optName.pt4y,Yb=uciEbikeDetection.optName.id,f=uciEbikeDetection.optValue.enableVal.on,r=uciEbikeDetection.optValue.enableVal.off,Ka=uciImage.fileName,sc=uciImage.optName,D=uciEbikeDetection.actionName.addRegions,
ob=uciEbikeDetection.optName.target_track_enabled,hb=uciEbikeDetection.optName.lightAlarmEnabled,ib=uciEbikeDetection.optName.soundAlarmEnabled,db=uciEbikeDetection.optName.msgPushEnabled,fb=uciEbikeDetection.optName.recordEnabled,Ib;id("ebikeSwitchDes");var Jb,Gb=id("filterLevelOpt"),Kb,xa,Da,Y,W=!1,O=id("thresholdDelay"),E,tc=id("endDelay"),Z,jb=uciEbikeDetection.optName.alarmEnabled,lb=uciEbikeDetection.optName.captureEnabled,za=uciEbikeDetection.optName.ftpEnabled,pb=uciEbikeDetection.optName.soundAlarmType,
qb=uciEbikeDetection.optName.soundAlarmTimes,La=uciUsrDefAlarm.fileName,Lb=uciUsrDefAlarm.secName.usrDefAudio,uc=uciUsrDefAlarm.optName.id,Ma=uciUsrDefAlarm.optName.name,Fb=id("endDelayOpt"),Mb=21,v=uciMsgAlarm.fileName,rb=0,sb=0,tb=0,ub=0,ha=uciPicturePlan.fileName,vb=0,Ba=0,Nb=!0,Ob,x;id("intelligentDetectionSwitchDes");var g,Hb=0;E=50;var W=!1,X=void 0,Pb,bc=!1,Qb,F,V=[label.Mon,label.Tue,label.Wen,label.Thu,label.Fri,label.Sta,label.Sun],Ta=[uciEbikeDetection.optName.mon,uciEbikeDetection.optName.tue,
uciEbikeDetection.optName.wed,uciEbikeDetection.optName.thu,uciEbikeDetection.optName.fri,uciEbikeDetection.optName.sat,uciEbikeDetection.optName.sun],Ea=!0,Ga=!0,nb=id("smartTargetTrack"),kb=id("triggerAlarmOut"),gb=id("triggerRecord"),eb=id("triggerMsgPush"),ba=id("triggerLightAlarm"),ca=id("triggerSoundAlarm"),mb=id("sendFtp"),ea,hc=id("sendToFtpSwitchDes"),da=id("triggerCapture");id("ebikeDetectionEnhanceCheck");var zb=id("timeSchedule"),Cb=id("handleWay"),Xb=id("name"),oa,z=id("regionNumber"),
w=[null,null,null,null],R=["0","0","0","0"],S=["0","0","0","0"],T=["0","0","0","0"],U=[!1,!1,!1,!1],ja=!1,u,P=id("ptzToggleCon"),na=$(".ptzBorderConfCon"),Na=!0,Mb=21,Rb=1==parseInt($.moduleSpec[uciFunction.optName.corridorMode])?!0:!1,aa,I,A,G,J,H,y,B,L,ya=isNaN(parseInt($.moduleSpec.alarm_out_num))?1:parseInt($.moduleSpec.alarm_out_num),ka=!1,M=!1,fa,ga,la,ma=[],Ia=0,Sb=$.moduleSpec[uciFunction.optName.new_version_capability_list],Tb=Sb&&0<=$.inArray(uciImage.fileName,Sb),Ub=!1,Vb=!1,Sa=null,K=
!1,wa=!1;(function(){var a={},b=0;mc();nc();a[d]={};a[d][NAME]=[n];aa&&a[d][NAME].push(m);M&&a[d][NAME].push(C);$.moduleSpec[uciFunction.optName.msgAlarmSeparateList]&&(a[v]={},a[v][NAME]=uciMsgAlarm.secName.chn1MsgAlarmInfo);a[d][KEY_TABLE]=[N];!0==ka&&(a[La]={},a[La][KEY_TABLE]=[Lb]);Rb&&(a[Ka]={},a[Ka][NAME]=uciImage.secName.para_switch);Tb&&(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.detectionMutexCapability])&&(a[uciDetectionCapability.fileName]={},a[uciDetection.fileName]=
{},a[uciDetectionCapability.fileName][KEY_TABLE]=[uciDetectionCapability.secType.detectionMutexList],a[uciDetection.fileName][KEY_NAME]=[uciDetection.secName.detectionMutexConfig]);var e="vedioActiveX";$.BSHOWPTZCTRL?(new PtzControl("ptzControlCon",1),e="ptzVideoActiveX vedioActiveX",$("ul.lineConfMenu").addClass("havePtz")):($("#ptzToggleCon").hide(),$("#ptzControlCon").hide());g=new Plugin({id:"videoPluginCon",className:e,readyHd:function(a){PLUGIN_STATE_ON==a&&!0==Nb&&(Nb=!1,g.setIntelligentState(1),
g.setRectArrLen(1),g.setOSDSpecialStatus(1),Pa(0),g.setOSDStatus(Ib.state),Vb&&setDomSize($(".vedioActiveX")[0],Sa))}});selectInit("regionNumber",[{str:label.regionOne,value:0},{str:label.regionTwo,value:1},{str:label.regionThree,value:2},{str:label.regionFour,value:3}],0,lc);Pb=new DragLine({id:"percentageDragLine",name:label.ratio,cb:dc,lowerBound:1});Da=new DragLine({id:"confidenceDragLine",name:label.confidence,cb:ec,lowerBound:1});xa=new DragLine({id:"frameRateDL",lowerBound:0,upperBound:2,needLabel:"n",
needInput:"n",needScale:"y"});Qb=new Switch("constantAlarm",0,Eb);u=new PlanSet("recPlanGrid",{curType:1});ic();$("ul.lineConfMenu li.snapPicBtn").hide();$("ul.lineConfMenu li.snapPicBtn").click(function(a){Wb()});id("closeTip").onclick=function(){$("#popNote").animate({bottom:"-150px"},void 0,void 0,function(){id("popNote").style.display="none"})};P.onclick=function(){Na?(na.hide(),Na=!1,$(P).removeClass("ptzToggleShowIcon").addClass("ptzToggleHideIcon"),P.style.left="757px",$("ul.lineConfMenu").css("width",
"702px"),g.setSize({height:"396px",width:"704px"}),g.checkInstalled()||(na.css("width","0px"),g.showInstalledTip())):(na.show(),Na=!0,P.style.left="549px",$(P).removeClass("ptzToggleHideIcon").addClass("ptzToggleShowIcon"),$("ul.lineConfMenu").css("width","494px"),g.setSize({height:"372px",width:"496px"}),g.checkInstalled()||(na.css("width","204px"),g.showInstalledTip()))};$.query(a,function(a){if(!0==s(a[ERR_CODE])){Ob=a[d][N];var e=formatTableData(Ob),c,l,h=0,t;for(t in e)c=e[t],h=c[rc]-1,l={},
l.id=c.id,l[Q]=c.pt1_x,l[pa]=c.pt1_y,l[qa]=c.pt2_x,l[ra]=c.pt2_y,l[sa]=c.pt3_x,l[ta]=c.pt3_y,l[ua]=c.pt4_x,l[va]=c.pt4_y,$.BSHOWPTZCTRL&&(l.position_pan=c.position_pan,l.position_tilt=c.position_tilt,l.position_zoom=c.position_zoom,R[h]=c.position_pan,S[h]=c.position_tilt,T[h]=c.position_zoom,U[h]=!0),w[h]=l;X=a[d][n][Wa];Pb.setValue(X);Y=a[d][n][Xa];Da.setValue(Y);Jb=a[d][n][$a];xa.setValue(Jb);F=a[d][n][bb];Qb.setState(F==f?1:0);Eb(F==r?0:1);Kb=a[d][n][Za]==f?r:f;changeCheckInput("bikeCheck",Kb==
f);E=a[d][n][ab];O.value=E;Z=a[d][n][cb];tc.value=Z;$.BSHOWPTZCTRL&&Ca(0);$.moduleSpec[uciFunction.optName.picturePlanCapability]&&1==parseInt(a[uciPicturePlanCapability.fileName][uciPicturePlanCapability.secName.capability][uciPicturePlanCapability.optName.ftpDependOnCapture])&&(K=!0);if(aa){G&&(b=a[d][m][db]==f,changeCheckInput(eb,b));H&&(b=a[d][m][fb]==f,changeCheckInput(gb,b));I&&(b=a[d][m][hb]==f,changeCheckInput(ba,b),tb=1,ub=a[v][uciMsgAlarm.secName.chn1MsgAlarmInfo][uciMsgAlarm.optName.lightEnabled]==
f?1:0);A&&(b=a[d][m][ib]==f,changeCheckInput(ca,b),rb=1,sb=a[v][uciMsgAlarm.secName.chn1MsgAlarmInfo][uciMsgAlarm.optName.soundEnabled]==f?1:0);if(J&&(b=a[d][m][jb]==f,changeCheckInput(kb,b),1<ya)){c=b;for(e=2;e<=ya;e++)aoEnableOpt="AO"+e.toString()+"_enabled",b=a[d][m][aoEnableOpt]==f,changeCheckInput(id("triggerAlarmOut"+e.toString()),b),c=c&&b;c&&changeCheckInput("triggerAOAll",!0)}y&&(K&&B?($("#sendToFtpLine").hide(),ea=a[d][m][za],b=ea==f?1:0,new Switch("sendToFtpSwitch",b,gc)):($("#sendToFtpSwitchCon").hide(),
$("#sendToFtpLine").show(),$("#goToFtpConf").hide(),b=a[d][m][za]==f,changeCheckInput(mb,b)));B&&(b=a[d][m][lb]==f,K&&y&&(b?$("#sendToFtpSwitchCon").show():$("#sendToFtpSwitchCon").hide()),changeCheckInput(da,b),$.moduleSpec[uciFunction.optName.captureEnable]&&(vb=1,Ba=a[ha][uciPicturePlan.secName.eventConfig][uciPicturePlan.optName.enabled]==f?1:0));$.detectionCapability&&1==parseInt($.detectionCapability[uciDetectionCapability.optName.detectionMutexCapability])&&($.det_mutex_list=formatTableData(a[uciDetectionCapability.fileName][uciDetectionCapability.secType.detectionMutexList]),
curIntelligentMode=a[uciDetection.fileName][uciDetection.secName.detectionMutexConfig][uciDetection.optName.currentMutexMode]);L&&(b=a[d][m][ob]==f,changeCheckInput(nb,b))}x=a[d][n][Ya];b=x==f?1:0;1==b&&$.BSHOWPTZCTRL&&(ja=!0);Ib=new Switch("ebikeSwitch",b,cc);if(!0==M){if(!0==ka){c={};c=a[La][Lb];e=formatTableData(c);for(t in e)c=e[t],c[Ma]||(c[Ma]=label.usrdefSound),ma.push({str:c[Ma],value:c[uc]});uploadSoundFile("fileName",g,Ia,la)}selectInit("soundTypeSelect",ma,0,Db,"18");fa=a[d][C][pb];ga=
a[d][C][qb];soundTypeSelect.changeSel(fa);soundTimesSelect.changeSel(ga)}Rb&&(a[Ka][uciImage.secName.para_switch][sc.rotate_type]==uciImage.optValue.rotOff?Ra():Ra(0.5625),$("object.vedioActiveX").addClass("vedioActiveX_corridor"),id("videoPluginCon").style.background="black");Tb?1==parseInt(a[uciImageCapability.fileName][uciImageCapability.secType.capability][uciImageCapability.optName.stitch])?(Ub=!0,a={},a[uciImageCapability.fileName]={},a[uciImageCapability.fileName][NAME]=[],a[uciImageCapability.fileName][NAME].push(uciImageCapability.optName.stitch),
$.query(a,function(a){!0==s(a[ERR_CODE])&&Ub&&(Vb=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==s(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");setDomSize($(".vedioActiveX")[0],{height:b,paddingTop:a,paddingBottom:a});Ha()}}))})):Ha():Ha()}});initCheckInput("showInfo",function(a,b){a||0!=b||showAlert(label.confirmRecordOff)});initCheckInput("capture",function(a){K&&y&&(a?$("#sendToFtpSwitchCon").show():$("#sendToFtpSwitchCon").hide())});id("save").onclick=Va;id("del").onclick=fc;id("clearAll").onclick=function(a){u.reset()};id("armingScheduleArrow").onclick=yb;id("armingScheduleArrowText").onclick=
yb;id("regionOneArrow").onclick=Ab;id("regionOneArrowText").onclick=Ab;id("handleArrow").onclick=Bb;id("handleArrowText").onclick=Bb;O.onblur=wb;id("endDelay").onblur=wb;id("goToFtpConf").onclick=function(){showConfirmC(label.cue,label.saveTips,function(a){!0==a?Va(function(){gFtpSwitchPageSign=1;unloadLogin()}):(gFtpSwitchPageSign=1,unloadLogin())},btn.unsave,btn.save,!1)}})();(function(){g.intelligentCallback(function(a){g.showHighlight(parseInt(a),0);f==x&&xb();0<=$.inArray(Mb,$.det_mutex_list[curIntelligentMode-
1][uciDetectionCapability.optName.unsupportedList])&&(showAlert(label.resCloseOnTip),ia(),wa=!0)})})()}init();
</script><style type="text/css">ul.lineL1 li.liWidth{width:266px}ul.lineR li.liWidth{width:264px;margin-left:96px}div.configDiv li.boxInput{font-size:0;vertical-align:middle;height:30px;padding:5px 0;margin-bottom:8px}div.configDiv li.ebikeCheck{display:inline-block;font-size:0;vertical-align:middle;height:25px;margin-left:0}li.ebikeCheck label{margin-left:7px}div.configDiv li.dragLine{margin-top:8px}ul.line li.frameRateSet{margin-top:8px}li.frameRateSet label{display:inline-block;height:30px!important;font-size:13px;color:#666;width:70px;margin-right:4px}div.actionBarDiv{margin-bottom:0}div.actionBarDiv div.actionTitleDivTop13{margin-top:20px}div.actionBarDiv div.actionTitleDivTop33{margin-top:40px}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}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 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:15px}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}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.ptzToggle{height:64px;width:12px;position:absolute;cursor:pointer;top:224px;left:549px;z-index:1}ul.line li.lineSet{display:inline-block;*display:inline;*zoom:1;height:30px;font-size:0;margin:5px 8px}span.select span.hsValueB{width:52px}input.goToFtpConf{margin-left:24px;padding:0 12px}</style>