

<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 lineL1" id="dragLineWrap">
				<li class="dragLine liWidth">
					<div id="sensitivityDragLine" 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="dragLine marginTop liWidth" id="percentageOpt">
					<div id="percentageDragLine" class="ipcDragLineDiv"></div>
				</li>
				<li class="frameRateSet marginTop liWidth" id="filterEnhanceLevelOpt">
					<div class="lineSub lineSubL">
						<label class="title">{%label.peopleFilterEnhance%}</label>
						<div id="filterEnhanceDL" class="ipcDragLineDiv DragLineSimple"></div>
					</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.peopleDetTips%}</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>
<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 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 Ia(){clearTimeout(ca);ca=$.setTimeout(function(){$("#popNote").animate({bottom:"-150px"},void 0,void 0,function(){id("popNote").style.display="none"})},
5E3)}function Kb(){e.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(ca),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=e.getPicFileStoragePath(),c=b.lastIndexOf("\\"),c=b.substr(c+1);popContentCorrect.style.display="inline-block";popContentError.style.display="none";titleText.innerHTML=label.snapPicSuccess;Lb.innerHTML=c;check.onclick=function(){e.openFileStorageFolder(b)};Ia()}$("#popNote").animate({bottom:"0px"});id("popNote").style.display="inline-block";log(a);7==parseInt(a)&&Ia()})}function Mb(){for(var a=[],c=0,b,g,d=0;4>c;c++){b=e.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&&(g={},g[Ja]=c+1+"",g[da]=b.pt1_x,g[Ka]=b.pt1_y,g[La]=b.pt2_x,g[Ma]=b.pt2_y,g[Na]=b.pt3_x,g[Oa]=b.pt3_y,g[Pa]=b.pt4_x,g[Qa]=b.pt4_y,a[d++]=g)}return a}function Ra(a){var c=id("videoPluginCon").offsetHeight;void 0==a?$.BSHOWPTZCTRL?e.setSize({height:"372px",width:"496px"}):e.setSize({height:"396px",width:"720px"}):e.setSize({height:c+"px",width:c*a+"px"})}function Sa(a){Nb.innerHTML=1==a?btn.enableN:btn.close;ea=
1==a?h:l;0==a?(fa.disable(!0),$("#boxColorTips").addClass("disable")):(fa.disable(!1),$("#boxColorTips").removeClass("disable"))}function Ob(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 g=0;g<a.length;g++){c=a[g];var d=c.split(/[-]/,2);c=parseInt(d[0],10);d=parseInt(d[1],10);0==c&&0==d?b.push(p._getString(c,d,0)):b.push(p._getString(c,d,1))}return b}function Pb(){var a,c=p.getTimeVal(),b={};for(a=0;a<M.length;a++){var g=b,d=Ta[a],
k;k=c[M[a]];var h=void 0,e=void 0,t=void 0,r=void 0,f=void 0,f=r=void 0;if(void 0==k)k="";else{void 0==h&&(h=6);e="[";if(1>k.length)e+='"0000-0000"';else for(t=0;t<k.length&&t<h;t++)r=k[t].toString(),f=r.split(/[-,:]/,3),r=parseInt(f[0],10),f=parseInt(f[1],10),r=p._getStringWithoutType(r,f),0<t&&(e+=","),e+='"'+r+'"';k=e+="]"}g[d]=k}return b}function Ua(a){if(ga||ha)return!1;var c=Mb();if(h!=u||null!=c&&0!=c.length){var b={},g={};b[d]={};b[d][m]={};b[d][m][Va]=u;b[d][m][Wa]=C;ia&&(b[d][m][Xa]=N);
ja&&(b[d][m][Ya]=parseInt(ka.getValue()));la&&(b[d][m][Za]=parseInt(ma.getValue()));if(O){b[d][f]={};D&&(b[d][f][$a]="true"==ab.getAttribute("checked")?h:l);E&&(b[d][f][bb]="true"==cb.getAttribute("checked")?h:l);F&&(b[d][f][db]="true"==P.getAttribute("checked")?h:l);v&&(b[d][f][eb]="true"==Q.getAttribute("checked")?h:l);if(G){b[d][f][fb]="true"==gb.getAttribute("checked")?h:l;for(var e=2;e<=na;e++)b[d][f]["AO"+e.toString()+"_enabled"]="true"==id("triggerAlarmOut"+e.toString()).getAttribute("checked")?
h:l}R&&(b[d][f][Qb]="true"==triggerEmail.getAttribute("checked")?h:l);w&&(b[d][f][hb]="true"==S.getAttribute("checked")?h:l);s&&(b[d][f][oa]=H?T:"true"==ib.getAttribute("checked")?h:l)}b[d][pa]=Pb();!0==I&&(b[d][x]={},b[d][x][jb]=U,b[d][x][kb]=V);J&&(b[d][y]={},b[d][y][uciPeopleDetection.optName.enabled]=1==lb.state?h:l,b[d][y][uciPeopleDetection.optName.color]=fa.value);var k=mb&&!qa&&"true"==Q.getAttribute("checked"),A=nb&&!ra&&"true"==P.getAttribute("checked"),B=ob&&!sa&&"true"==S.getAttribute("checked");
k||A||B?((k||A)&&showConfirmIpc(label.confirmAlarmDeviceOnTip,function(e){!0==e?(b[q]={},b[q][uciMsgAlarm.secName.chn1MsgAlarmInfo]={},k&&(b[q][uciMsgAlarm.secName.chn1MsgAlarmInfo][uciMsgAlarm.optName.soundEnabled]=uciMsgAlarm.optValue.enableVal.on),A&&(b[q][uciMsgAlarm.secName.chn1MsgAlarmInfo][uciMsgAlarm.optName.lightEnabled]=uciMsgAlarm.optValue.enableVal.on),showToast(),$.modify(b,function(b){!0==n(b[ERR_CODE])&&(k&&(qa=1),A&&(ra=1),null!=c?(g[d]={},g[d][z]={},g[d][z][K]=c,$.action(g,function(a){!0==
n(a[ERR_CODE])&&showToast("success")})):showToast("success"),"function"==typeof a&&void 0!=a&&a())})):(k&&changeCheckInput(Q,!1),A&&changeCheckInput(P,!1))}),B&&showConfirmIpc(label.confirmCaptureOnTip,function(e){b[W]={};b[W][uciPicturePlan.secName.eventConfig]={};!0==e?(B&&(b[W][uciPicturePlan.secName.eventConfig][uciPicturePlan.optName.enabled]=uciPicturePlan.optValue.on),showToast(),$.modify(b,function(b){!0==n(b[ERR_CODE])&&(B&&(sa=1),null!=c?(g[d]={},g[d][z]={},g[d][z][K]=c,$.action(g,function(a){!0==
n(a[ERR_CODE])&&showToast("success")})):showToast("success"),"function"==typeof a&&void 0!=a&&a())})):B&&changeCheckInput(S,!1)})):(showToast(),$.modify(b,function(b){!0==n(b[ERR_CODE])&&(null!=c?(g[d]={},g[d][z]={},g[d][z][K]=c,$.action(g,function(a){!0==n(a[ERR_CODE])&&showToast("success")})):showToast("success"),"function"==typeof a&&void 0!=a&&a())}))}else showAlert(label.addOneRegionFirst)}function pb(){closeNoteAll();!0==checkNum(id("sensitivityDragLineDragLineInput").value)&&!0==checkNumRange(parseInt(id("sensitivityDragLineDragLineInput").value),
100,1)?(C=id("sensitivityDragLineDragLineInput").value,ta.setValue(id("sensitivityDragLineDragLineInput").value),ga=!1):(showNote("sensitivityDragLineDragLineInput",errStr.sensitivityErr),ga=!0)}function Rb(a){closeNote("sensitivityDragLineDragLineInput");C=a}function Sb(a){closeNote("percentageDragLineDragLineInput");!0==checkNum(id("percentageDragLineDragLineInput").value)&&!0==checkNumRange(parseInt(id("percentageDragLineDragLineInput").value),100,0)?(N=a,ha=!1):(showNote("percentageDragLineDragLineInput",
errStr.percentageRatioErr),ha=!0)}function Tb(){e.delIntelligentRegion(PLUGIN_STATE_ON)}function Ub(){e.delIntelligentRegion(PLUGIN_STATE_MINUS)}function qb(){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 rb(){document.getElementById("hidebg").style.display="none"}function Vb(a){Wb.innerHTML=1==a?btn.enableN:btn.close;u=1==a?h:l;!1==e.checkInstalled()?qb():0==a?(e.setOSDStatus(0),qb()):(e.setOSDStatus(1),rb())}function Xb(a){Yb.innerHTML=1==a?btn.enableN:btn.close;T=1==a?h:l}function Zb(){var a,c={};c[d]={};c[d][NAME]=pa;$.query(c,function(b){if(!0==n(b[ERR_CODE]))for(p.reset(),a=0;a<M.length;a++)p.setTimeVal(M[a],Ob(b[d][pa][Ta[a]]))})}function sb(a){ua?(id("regionSettingArrow").className=
"arrowDown",id("regionSettingArrow").title=label.slideDown,id("regionSettingArrowText").innerHTML=label.slideDown,tb.style.display="none",ua=!1):(id("regionSettingArrow").className="arrowUp",id("regionSettingArrow").title=label.slideUp,id("regionSettingArrowText").innerHTML=label.slideUp,tb.style.display="",ua=!0)}function ub(a){va?(id("armingScheduleArrow").className="arrowDown",id("armingScheduleArrow").title=label.slideDown,id("armingScheduleArrowText").innerHTML=label.slideDown,vb.style.display=
"none",va=!1):(id("armingScheduleArrow").className="arrowUp",id("armingScheduleArrow").title=label.slideUp,id("armingScheduleArrowText").innerHTML=label.slideUp,vb.style.display="",va=!0)}function wb(a){wa?(id("handleArrow").className="arrowDown",id("handleArrow").title=label.slideDown,id("handleArrowText").innerHTML=label.slideDown,xb.style.display="none",wa=!1):(id("handleArrow").className="arrowUp",id("handleArrow").title=label.slideUp,id("handleArrowText").innerHTML=label.slideUp,xb.style.display=
"",wa=!0)}function yb(a){U=a}function $b(a){V=a}function ac(a,c){selectInit("soundTypeSelect",a,0,yb,"18");id("soundTypeSelect").resetSel(c)}function xa(){e.playVideo();$("ul.lineConfMenu li.snapPicBtn").show();showDetailCon()}function bc(){if($.detectionCapability&&1==parseInt($.detectionCapability[uciDetectionCapability.optName.boxDisplayCapability])){if(J=1==(parseInt($.box_display_capa[uciDetectionCapability.optName.boxDisplayList],2)>>1)%2?!0:!1,!0==J){for(var a=$.box_display_capa[uciDetectionCapability.optName.boxColor],
c=0;c<a.length;c++)ya.push({str:label[a[c]],value:a[c]});$("#aiEnhanceBoxWrap").addClass("lineL1");$("#dragLineWrap").addClass("lineR3")}}else $("#aiEnhanceBoxWrap").hide()}function cc(){var a=uciLinkageCapability.optName.sound_alarm_capability,c=uciLinkageCapability.optName.msg_push_capability,b=uciLinkageCapability.optName.alarm_out_capability,g=uciLinkageCapability.optName.record_capability,d=uciLinkageCapability.optName.email_capability,e=uciLinkageCapability.optName.ftp_capability,h=uciLinkageCapability.optName.capture_capability,
f=function(a){a=$.linkageCapability[a];return 18>a.length?!1:"1"==a[a.length-18]?!0:!1};F=f(uciLinkageCapability.optName.light_alarm_capability);v=f(a);D=f(c);G=f(b);E=f(g);R=f(d);s=f(e);w=f(h);(O=F||v||D||G||E||R||s||w)?(F||$("#triggerLightAlarm").parent().hide(),v||$("#triggerSoundAlarm").parent().hide(),D||$("#triggerMsgPush").parent().hide(),E||$("#triggerRecord").parent().hide(),G?InsertTriggerAlarmOut("triggerAlarmOut"):$("#triggerAlarmOut").parent().hide(),R||$("#triggerEmail").parent().hide(),
s||$("#sendToFtp").hide(),w||$("#triggerCapture").parent().hide()):id("handleWayDiv").style.display="none"}function dc(){v&&$.audioAlarmCapability&&(I=1==parseInt($.audioAlarmCapability[ec])?!0:!1,X=1==parseInt($.audioAlarmCapability[fc])?!0:!1,Y=parseInt($.audioAlarmCapability[gc]),za=$.audioAlarmCapability[Aa].length);if(!1==I)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[Aa].length;b++){var g=parseInt($.audioAlarmCapability[Aa][b]);a.push(g);Z.push(c[g])}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,$b)}if(!1==X)id("setSoundAlarm").style.display="none";else{openSoundInfo("setSoundAlarm",za,Y,label.usrdefSound);closeSoundInfo("infoCloseTip",d,Z,ac);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<Y;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=uciPeopleDetection.fileName,m=uciPeopleDetection.secName.detection,aa=uciPeopleDetection.secName.capability,
pa=uciPeopleDetection.secName.armingSchedule,f=uciPeopleDetection.secName.notifyList,K=uciPeopleDetection.secType.regionInfo,x=uciPeopleDetection.secName.soundAlarmInfo,Va=uciPeopleDetection.optName.enabled,Wa=uciPeopleDetection.optName.sensitivity,Ja=uciPeopleDetection.optName.id,da=uciPeopleDetection.optName.pt1x,Ka=uciPeopleDetection.optName.pt1y,La=uciPeopleDetection.optName.pt2x,Ma=uciPeopleDetection.optName.pt2y,Na=uciPeopleDetection.optName.pt3x,Oa=uciPeopleDetection.optName.pt3y,Pa=uciPeopleDetection.optName.pt4x,
Qa=uciPeopleDetection.optName.pt4y,$a=uciPeopleDetection.optName.msgPushEnabled,bb=uciPeopleDetection.optName.recordEnabled,Qb=uciPeopleDetection.optName.emailEnabled,fb=uciPeopleDetection.optName.alarmEnabled,oa=uciPeopleDetection.optName.ftpEnabled,hb=uciPeopleDetection.optName.captureEnabled,eb=uciPeopleDetection.optName.soundAlarmEnabled,db=uciPeopleDetection.optName.lightAlarmEnabled,h=uciPeopleDetection.optValue.enableVal.on,ec=uciAlarmAudioTypeCapability.optName.eventSeparateAudioAlarmSupport,
fc=uciAlarmAudioTypeCapability.optName.usrDefAudioAlarmSupport,gc=uciAlarmAudioTypeCapability.optName.usrDefAudioAlarmMaxNum,Aa=uciAlarmAudioTypeCapability.optName.alarmType,l=uciPeopleDetection.optValue.enableVal.off,z=uciPeopleDetection.actionName.addRegions,jb=uciPeopleDetection.optName.soundAlarmType,kb=uciPeopleDetection.optName.soundAlarmTimes,Ba=uciUsrDefAlarm.fileName,zb=uciUsrDefAlarm.secName.usrDefAudio,hc=uciUsrDefAlarm.optName.id,Ca=uciUsrDefAlarm.optName.name,Ab=!0,Da,Bb,u,Wb=id("intelligentDetectionSwitchDes"),
e,q=uciMsgAlarm.fileName,mb=0,qa=0,nb=0,ra=0,W=uciPicturePlan.fileName,ob=0,sa=0,C=50,ta;id("sensitivityDragLineDragLineInput");var M=[label.Mon,label.Tue,label.Wen,label.Thu,label.Fri,label.Sta,label.Sun],Ta=[uciPeopleDetection.optName.mon,uciPeopleDetection.optName.tue,uciPeopleDetection.optName.wed,uciPeopleDetection.optName.thu,uciPeopleDetection.optName.fri,uciPeopleDetection.optName.sat,uciPeopleDetection.optName.sun],ua=!1,va=!0,wa=!0,vb=id("timeSchedule"),tb=id("configDiv"),xb=id("handleWay"),
gb=id("triggerAlarmOut"),cb=id("triggerRecord"),ab=id("triggerMsgPush"),Q=id("triggerSoundAlarm"),P=id("triggerLightAlarm"),ib=id("sendFtp"),T,Yb=id("sendToFtpSwitchDes"),S=id("triggerCapture"),Lb=id("name"),ca,ga=!1,ha=!1,p,Ea=1==parseInt($.moduleSpec[uciFunction.optName.corridorMode])?!0:!1,O,F,v,D,G,E,s,R,w,na=isNaN(parseInt($.moduleSpec.alarm_out_num))?1:parseInt($.moduleSpec.alarm_out_num),X=!1,I=!1,U,V,Y,Z=[],za=0,Cb=$.moduleSpec[uciFunction.optName.new_version_capability_list],Db=Cb&&0<=$.inArray(uciImage.fileName,
Cb),Eb=!1,Fb=!1,Gb=null,H=!1,L=id("ptzToggleCon"),ba=$(".ptzBorderConfCon"),Fa=!0,Ga=null,ea=!1,Ha=0,lb=null,Nb=id("boxSwitchDes"),fa=id("boxColorSel"),J=!1,y=uciPeopleDetection.secName.boxDisplay,ya=[],N=3,Hb,Ib=1,ka,Jb=1,ma,Xa=uciPeopleDetection.optName.percentage,Ya=uciPeopleDetection.optName.filterLevel,Za=uciPeopleDetection.optName.filterEnhanceLevel,ic=uciPeopleDetection.optName.percentageSupported,jc=uciPeopleDetection.optName.filterLevelSupported,kc=uciPeopleDetection.optName.filterEnhanceSupported,
ia=!1,ja=!1,la=!1;(function(){var a={},c=0;cc();dc();bc();a[d]={};a[d][NAME]=[m];1==parseInt($.smartDetection.people_detection_capability)&&a[d][NAME].push(aa);J&&a[d][NAME].push(y);O&&a[d][NAME].push(f);I&&a[d][NAME].push(x);$.moduleSpec[uciFunction.optName.msgAlarmSeparateList]&&(a[q]={},a[q][NAME]=uciMsgAlarm.secName.chn1MsgAlarmInfo);a[d][KEY_TABLE]=[K];!0==X&&(a[Ba]={},a[Ba][KEY_TABLE]=[zb]);Ea&&(a[uciImage.fileName]={},a[uciImage.fileName][NAME]=uciImage.secName.para_switch);Db&&(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);var b="vedioActiveX";$.BSHOWPTZCTRL?(new PtzControl("ptzControlCon",
1),b="ptzVideoActiveX vedioActiveX",$("ul.lineConfMenu").addClass("havePtz"),Ea&&(id("videoPluginCon").style.width="496px")):($("#ptzToggleCon").hide(),$("#ptzControlCon").hide());e=new Plugin({id:"videoPluginCon",className:b,readyHd:function(a){if(PLUGIN_STATE_ON==a&&!0==Ab){Ab=!1;e.setIntelligentState(1);e.setOSDSpecialStatus(1);a=formatTableData(Da);for(var b in a){var c=a[b];void 0!=c[da]&&e.showIntelligentRegion(parseInt(c[Ja])-1,{pt1_x:c[da],pt1_y:c[Ka],pt2_x:c[La],pt2_y:c[Ma],pt3_x:c[Na],pt3_y:c[Oa],
pt4_x:c[Pa],pt4_y:c[Qa]})}e.setOSDStatus(Bb.state);Fb&&setDomSize($(".vedioActiveX")[0],Gb)}}});ta=new DragLine({id:"sensitivityDragLine",name:label.sensitivity,cb:Rb,lowerBound:1});p=new PlanSet("recPlanGrid",{curType:1});Zb();$("ul.lineConfMenu li.snapPicBtn").hide();$("ul.lineConfMenu li.snapPicBtn").click(function(a){Kb()});id("closeTip").onclick=function(){$("#popNote").animate({bottom:"-150px"},void 0,void 0,function(){id("popNote").style.display="none"})};L.onclick=function(){Fa?(ba.hide(),
Fa=!1,$(L).removeClass("ptzToggleShowIcon").addClass("ptzToggleHideIcon"),L.style.left="757px",$("ul.lineConfMenu").css("width","702px"),e.setSize({height:"396px",width:"704px"}),e.checkInstalled()||(ba.css("width","0px"),e.showInstalledTip())):(ba.show(),Fa=!0,L.style.left="549px",$(L).removeClass("ptzToggleHideIcon").addClass("ptzToggleShowIcon"),$("ul.lineConfMenu").css("width","494px"),e.setSize({height:"372px",width:"496px"}),e.checkInstalled()||(ba.css("width","204px"),e.showInstalledTip()))};
$.query(a,function(a){if(!0==n(a[ERR_CODE])){Da=a[d][K];formatTableData(Da);C=a[d][m][Wa];ta.setValue(C);1==parseInt($.smartDetection.people_detection_capability)&&(ia=1==parseInt(a[d][aa][ic])?!0:!1);ia?(Hb=new DragLine({id:"percentageDragLine",name:label.targetSize,cb:Sb,lowerBound:0,upperBound:100}),N=a[d][m][Xa],Hb.setValue(N)):id("percentageOpt").style.display="none";1==parseInt($.smartDetection.people_detection_capability)&&(ja=1==parseInt(a[d][aa][jc])?!0:!1);ja?(ka=new DragLine({id:"frameRateDL",
lowerBound:0,upperBound:2,needLabel:"n",needInput:"n",needScale:"y"}),Ib=a[d][m][Ya],ka.setValue(Ib)):id("filterLevelOpt").style.display="none";1==parseInt($.smartDetection.people_detection_capability)&&(la=1==parseInt(a[d][aa][kc])?!0:!1);la?(ma=new DragLine({id:"filterEnhanceDL",lowerBound:0,upperBound:2,needLabel:"n",needInput:"n",needScale:"y"}),Jb=a[d][m][Za],ma.setValue(Jb)):id("filterEnhanceLevelOpt").style.display="none";$.moduleSpec[uciFunction.optName.picturePlanCapability]&&1==parseInt(a[uciPicturePlanCapability.fileName][uciPicturePlanCapability.secName.capability][uciPicturePlanCapability.optName.ftpDependOnCapture])&&
(H=!0);if(O){D&&(c=a[d][f][$a]==h,changeCheckInput(ab,c));E&&(c=a[d][f][bb]==h,changeCheckInput(cb,c));F&&(c=a[d][f][db]==h,changeCheckInput(P,c),nb=1,ra=a[q][uciMsgAlarm.secName.chn1MsgAlarmInfo][uciMsgAlarm.optName.lightEnabled]==h?1:0);v&&(c=a[d][f][eb]==h,changeCheckInput(Q,c),mb=1,qa=a[q][uciMsgAlarm.secName.chn1MsgAlarmInfo][uciMsgAlarm.optName.soundEnabled]==h?1:0);if(G&&(c=a[d][f][fb]==h,changeCheckInput(gb,c),1<na)){for(var b=c,k=2;k<=na;k++)aoEnableOpt="AO"+k.toString()+"_enabled",c=a[d][f][aoEnableOpt]==
h,changeCheckInput(id("triggerAlarmOut"+k.toString()),c),b=b&&c;b&&changeCheckInput("triggerAOAll",!0)}s&&(H&&w?($("#sendToFtpLine").hide(),T=a[d][f][oa],c=T==h?1:0,new Switch("sendToFtpSwitch",c,Xb)):($("#sendToFtpSwitchCon").hide(),$("#sendToFtpLine").show(),$("#goToFtpConf").hide(),c=a[d][f][oa]==h,changeCheckInput(ib,c)));w&&(c=a[d][f][hb]==h,H&&s&&(c?$("#sendToFtpSwitchCon").show():$("#sendToFtpSwitchCon").hide()),changeCheckInput(S,c),$.moduleSpec[uciFunction.optName.captureEnable]&&(ob=1,sa=
a[W][uciPicturePlan.secName.eventConfig][uciPicturePlan.optName.enabled]==h?1:0))}J&&(Ga=a[d][y][uciPeopleDetection.optName.color],ea=a[d][y][uciPeopleDetection.optName.enabled],Ha=ea==h?1:0,selectInit("boxColorSel",ya,null==Ga?ya[0]:Ga),lb=new Switch("boxSwitch",Ha,Sa),Sa(Ha));u=a[d][m][Va];c=u==h?1:0;Bb=new Switch("intelligentDetectionSwitch",c,Vb);if(!0==I){if(!0==X){var b={},b=a[Ba][zb],b=formatTableData(b),l;for(l in b)k=b[l],k[Ca]||(k[Ca]=label.usrdefSound),Z.push({str:k[Ca],value:k[hc]});uploadSoundFile("fileName",
e,za,Y)}selectInit("soundTypeSelect",Z,0,yb,"18");U=a[d][x][jb];V=a[d][x][kb];soundTypeSelect.changeSel(U);soundTimesSelect.changeSel(V)}if(Ea){var p=a[uciImage.fileName][uciImage.secName.para_switch][uciImage.optName.rotate_type];l={};l[uciVideo.fileName]={};l[uciVideo.fileName][NAME]=uciVideo.secName.main;$.query(l,function(a){!0==n(a[ERR_CODE])&&(a=a[uciVideo.fileName][uciVideo.secName.main],a=a.resolution.split("*")[1]/a.resolution.split("*")[0],p==uciImage.optValue.rotOff?Ra():Ra(a),$("object.vedioActiveX").addClass("vedioActiveX_corridor"),
id("videoPluginCon").style.background="black")})}$("ul.lineConfMenu li.snapPicBtn").show();Db?1==parseInt(a[uciImageCapability.fileName][uciImageCapability.secType.capability][uciImageCapability.optName.stitch])?(Eb=!0,a={},a[uciImageCapability.fileName]={},a[uciImageCapability.fileName][NAME]=[],a[uciImageCapability.fileName][NAME].push(uciImageCapability.optName.stitch),$.query(a,function(a){!0==n(a[ERR_CODE])&&Eb&&(Fb=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");Gb={height:b,paddingTop:a,paddingBottom:a};xa()}}))})):xa():xa()}});id("save").onclick=Ua;id("clear").onclick=
Ub;id("del").onclick=Tb;id("clearAll").onclick=function(a){p.reset()};id("armingScheduleArrow").onclick=ub;id("armingScheduleArrowText").onclick=ub;id("regionSettingArrow").onclick=sb;id("regionSettingArrowText").onclick=sb;id("handleArrow").onclick=wb;id("handleArrowText").onclick=wb;id("sensitivityDragLineDragLineInput").onblur=pb;id("goToFtpConf").onclick=function(){showConfirmC(label.cue,label.saveTips,function(a){!0==a?Ua(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){H&&s&&(a?$("#sendToFtpSwitchCon").show():$("#sendToFtpSwitchCon").hide())});(function(){e.intelligentCallback(function(a){pb();e.showHighlight(parseInt(a),0);h==u&&rb()})})()}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{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}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;padding:5px 0}ul.lineL1 li.liWidth{width:266px}ul.lineR li.liWidth{width:266px;margin-left:94px}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.DragLineSimple i.dragLineStrip{font-size:0;width:178px!important;margin-top:10px!important;margin-bottom:10px!important;margin-left:4px!important}</style>