

<div class="detailCon" id="detailCon">
	<div id="videoPluginCon"></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="linedraw">
			<span class="selCon">
				<span id="drawSel" class="select">
					<span class="value hsValueE"></span>
					<i class="arrow"></i>
				</span>
			</span>
		</li>
		<li class="line linedel">
			<input id="del" type="button" class="subBtnB btnA delIcon" value="{%btn.del%}" />
		</li>
		<li class="line linedel">
			<input id="clean" type="button" class="subBtnB btnA clearIcon" value="{%btn.clean%}" />
		</li>
		<li class="snapPicLi snapPicBtn" title="{%label.snapPic%}"></li>
	</ul>
	<ul class="line">
		<label class="des explain" id="drawrequire">{%label.drawlinerequire%}</label>
	</ul>
	<div class="actionBarDiv">
		<div class="actionTitleDiv">
			<label class="actionTitle" id="lineName">{%label.lineOne%}</label>
			<div class="actionTitleArrowDiv">
				<label class="actionArrowTitle" id="lineNameArrowText">{%label.slideUp%}</label>
				<i class="arrowUp" title= {%label.slideUp%} id="lineNameArrow"></i>
			</div>
		</div>
		<div class="configDiv" id="configDiv">
			<ul class="line lineL1">
				<li class="dragLine">
					<div id="sensitivityDragLine" class="ipcDragLineDiv"></div>
				</li>
			</ul>
			<!-- 方向 -->
			<ul class="line lineR">
				<li class="direction">
					<label class="des desA">{%label.direction%}</label>
					<span class="selCon">
						<span id="directionSel" class="select">
							<span class="value hsValueA"></span>
							<i class="arrow"></i>
						</span>
					</span>
				</li>
			</ul>
			<div class="height"></div>
		</div>
	</div>
	<div id="displayInfoDiv" class="actionBarDiv">
		<div class="actionTitleDiv">
			<label class="actionTitle">{%label.displayInfo%}</label>
			<div class="actionTitleArrowDiv">
				<label class="actionArrowTitle" id="displayInfoArrowText">{%label.slideUp%}</label>
				<i class="arrowUp" title= {%label.slideUp%} id="displayInfoArrow"></i>
			</div>
		</div>
		<div id="displayInfo" class="handleWay">
			<ul class="Line">
				<li class="Line lineE">
					<i name="falingObjectTrail" id="triggerFodTrail" class="chObj" value="fod"></i>
					<label class="des desA">{%label.falingObjectTrail%}</label>
					<label class="des desM">{%label.falingObjectTrailTip%}</label>
				</li>
			</ul>
		</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.lineFallingobjectTips%}</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="alarmOutLine">
					<i name="showInfo" id="triggerAlarmOut" class="chObj" value="0"></i>
					<label class="des desA">{%label.triggerAlarmDevice%}</label>
					<label class="des desM">{%label.triggerAlarmDeviceTips%}</label>
				</li>
				<li class="Line lineE" id="recordLine">
					<i name="showInfo" id="triggerRecord" class="chObj" value="1"></i>
					<label class="des desA">{%label.triggerRecordF%}</label>
					<label class="des desM">{%label.triggerRecordTips%}</label>
				</li>
				<li class="Line lineE" id="msgPushLine">
					<i name="showInfo" id="triggerMsgPush" class="chObj" value="2"></i>
					<label class="des desA">{%label.msgPush%}</label>
					<label class="des desM">{%label.msgPushTips%}</label>
				</li>
				<li class="Line lineE" id="lightAlarmLine">
					<i name="showInfo" id="triggerLightAlarm" class="chObj" value="3"></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="4"></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" class="subBtn btnA" value="{%btn.save%}" />
	</div>
</div>
<div id="soundInfoEditCon" class="tableEditLyCon">
	<div class="tableEditCon tableEditConT">
		<div class="innerCon">
			<h4 class="title soundInfoInnerCon">{%label.soundAlarmSet%}</h4>
			<i id="infoCloseTip"></i>
			<ul class="line">
				<li class="Line lineSoundInfoHead">
					<div class="ipcDragLineDiv">
						<label id="soundList" class="des desC desList">{%label.soundList%}</label>
						<div class="fileDiv">
							<input type="button" value="{%btn.uploadFile%}" style="display:none" class="subBtn btnUpload" />
							<input type="file" class="file" name="filename" style="display:none" id="fileName" />
						</div>
					</div>
				</li>
			</ul>
			<div class="tableSoundInfo" id="SoundInfoShowCon">
				<ul class="line">
					<li class="Line lineSoundInfoSubHead" id="devsound_0">
						<div class="ipcDragLineDiv">
							<label class="des desSoundName">{%label.alarmSound%}</label>
							<input id="testListen_0" type="button" value="{%btn.testListen%}" class="subBtnB btnDevSoundTest testIcon" style="display:none"/>
						</div>
					</li>
					<li class="Line lineSoundInfoSub" id="devsound_1">
						<div class="ipcDragLineDiv">
							<label class="des desSoundName">{%label.warningSound%}</label>
							<input id="testListen_1" type="button" value="{%btn.testListen%}" class="subBtnB btnDevSoundTest testIcon" style="display:none"/>
						</div>
					</li>
					<li class="Line lineSoundInfoSub" id="devsound_2">
						<div class="ipcDragLineDiv">
							<label class="des desSoundName">{%label.waringZone%}</label>
							<input id="testListen_2" type="button" value="{%btn.testListen%}" class="subBtnB btnDevSoundTest testIcon" style="display:none"/>
						</div>
					</li>
					<li class="Line lineSoundInfoSub" id="devsound_3">
						<div class="ipcDragLineDiv">
							<label class="des desSoundName">{%label.dangerZone%}</label>
							<input id="testListen_3" type="button" value="{%btn.testListen%}" class="subBtnB btnDevSoundTest testIcon" style="display:none"/>
						</div>
					</li>
					<li class="Line lineSoundInfoSub" id="devsound_4">
						<div class="ipcDragLineDiv">
							<label class="des desSoundName">{%label.noParking%}</label>
							<input id="testListen_4" type="button" value="{%btn.testListen%}" class="subBtnB btnDevSoundTest testIcon" style="display:none"/>
						</div>
					</li>
					<li class="Line lineSoundInfoSub" id="devsound_5">
						<div class="ipcDragLineDiv">
							<label class="des desSoundName">{%label.monitorArea%}</label>
							<input id="testListen_5" type="button" value="{%btn.testListen%}" class="subBtnB btnDevSoundTest testIcon" style="display:none"/>
						</div>
					</li>
					<li class="Line lineSoundInfoSub" id="devsound_6">
						<div class="ipcDragLineDiv">
							<label class="des desSoundName">{%label.helloWelcome%}</label>
							<input id="testListen_6" type="button" value="{%btn.testListen%}" class="subBtnB btnDevSoundTest testIcon" style="display:none"/>
						</div>
					</li>
					<li class="Line lineSoundInfoSub" id="devsound_7">
						<div class="ipcDragLineDiv">
							<label class="des desSoundName">{%label.noTouching%}</label>
							<input id="testListen_7" type="button" value="{%btn.testListen%}" class="subBtnB btnDevSoundTest testIcon" style="display:none"/>
						</div>
					</li>
					<li class="Line lineSoundInfoSub" id="devsound_8">
						<div class="ipcDragLineDiv">
							<label class="des desSoundName">{%label.privateZone%}</label>
							<input id="testListen_8" type="button" value="{%btn.testListen%}" class="subBtnB btnDevSoundTest testIcon" style="display:none"/>
						</div>
					</li>
					<li class="Line lineSoundInfoSub" id="devsound_9">
						<div class="ipcDragLineDiv">
							<label class="des desSoundName">{%label.dangerWater%}</label>
							<input id="testListen_9" type="button" value="{%btn.testListen%}" class="subBtnB btnDevSoundTest testIcon" style="display:none"/>
						</div>
					</li>
					<li class="Line lineSoundInfoSub" id="devsound_10">
						<div class="ipcDragLineDiv">
							<label class="des desSoundName">{%label.dangerHeight%}</label>
							<input id="testListen_10" type="button" value="{%btn.testListen%}" class="subBtnB btnDevSoundTest testIcon" style="display:none"/>
						</div>
					</li>
					<li class="Line lineSoundInfoSub" id="devsound_11">
						<div class="ipcDragLineDiv">
							<label class="des desSoundName">{%label.gabbageClassify%}</label>
							<input id="testListen_11" type="button" value="{%btn.testListen%}" class="subBtnB btnDevSoundTest testIcon" style="display:none"/>
						</div>
					</li>
					<li class="Line lineSoundInfoSub" id="usrdef_0" style="display:none">
						<div class="ipcDragLineDiv">
							<input id="usrdef_edit0" type="text" class="text textSoundName" value="" maxlength="32" style="display:none"/>
							<label id="usrdef_text0" for="usrdef_edit0" class="des desSoundName">{%label.usrdefSound%}</label>
							<input id="usrdef_rename0" type="button" value="{%btn.rename%}" class="subBtnB btnRename renameIcon" style="display:none"/>
							<input id="usrdef_delete0" type="button" value="{%btn.del%}" class="subBtnB btnDel clearIcon" style="display:none"/>
							<input id="usrdef_test0" type="button" value="{%btn.testListen%}" class="subBtnB btnUsrdefSoundTest testIcon" style="display:none"/>
							<input id="usrdef_cancel0" type="button" value="{%btn.cancel%}" class="subBtnB btnCancel" style="display:none"/>
							<input id="usrdef_save0" type="button" value="{%btn.ok%}" class="subBtn btnSave" style="display:none"/>
						</div>
					</li>
					<li class="Line lineSoundInfoSub" id="usrdef_1" style="display:none">
						<div class="ipcDragLineDiv">
							<input id="usrdef_edit1" type="text" class="text textSoundName" value="" maxlength="32" style="display:none"/>
							<label id="usrdef_text1" for="usrdef_edit1" class="des desSoundName">{%label.usrdefSound%}</label>
							<input id="usrdef_rename1" type="button" value="{%btn.rename%}" class="subBtnB btnRename renameIcon" style="display:none"/>
							<input id="usrdef_delete1" type="button" value="{%btn.del%}" class="subBtnB btnDel clearIcon" style="display:none"/>
							<input id="usrdef_test1" type="button" value="{%btn.testListen%}" class="subBtnB btnUsrdefSoundTest testIcon" style="display:none"/>
							<input id="usrdef_cancel1" type="button" value="{%btn.cancel%}" class="subBtnB btnCancel" style="display:none"/>
							<input id="usrdef_save1" type="button" value="{%btn.ok%}" class="subBtn btnSave" style="display:none"/>
						</div>
					</li>
					<li class="Line lineSoundInfoSub" id="usrdef_2" style="display:none">
						<div class="ipcDragLineDiv">
							<input id="usrdef_edit2" type="text" class="text textSoundName" value="" maxlength="32" style="display:none"/>
							<label id="usrdef_text2" for="usrdef_edit2" class="des desSoundName">{%label.usrdefSound%}</label>
							<input id="usrdef_rename2" type="button" value="{%btn.rename%}" class="subBtnB btnRename renameIcon" style="display:none"/>
							<input id="usrdef_delete2" type="button" value="{%btn.del%}" class="subBtnB btnDel clearIcon" style="display:none"/>
							<input id="usrdef_test2" type="button" value="{%btn.testListen%}" class="subBtnB btnUsrdefSoundTest testIcon" style="display:none"/>
							<input id="usrdef_cancel2" type="button" value="{%btn.cancel%}" class="subBtnB btnCancel" style="display:none"/>
							<input id="usrdef_save2" type="button" value="{%btn.ok%}" class="subBtn btnSave" style="display:none"/>
						</div>
					</li>
				</ul>
			</div>
		</div>
		<iframe frameborder="0" class="innerIframe"></iframe>
	</div>
</div>
<script type="text/javascript">function init(){function t(a,b){var c="";switch(parseInt(a)){case ENONE:return!0;case IPCSMDENABLEERR:c=errStr.IPCParamInvalid;break;case EINVARG:c=errStr.IPCParamInvalid;break;case IPCSMDSENSITIVITYERR:c=errStr.sensitivityErr;break;case IPCUMGUESTNAUTH:c=errStr.invPermissionDenied;break;case IPCNOTIFYEMAILENERR:case IPCNOTIFYALARMENERR:case IPCNOTIFYRECORDENERR:case IPCNOTIFYFTPENERR:case IPCNOTIFMSGPUSHENERR:case IPCNOTIFCAPTUREENERR:case IPCNOTIFSOUNDALARMENERR:c=errStr.IPCHandleInalid;break;case IPCLINECROSSINGDIRERR:c=
errStr.lineCrossingDirectionErr;break;case IPCSMDREGIONEILLEGAL:c=errStr.regionIllegal;break;case IPCSMDREGIONNUMERR:c=errStr.regionNumErr;break;case IPCARMINGSCHEDULEEOVERFLOW:c=errStr.armingScheduleOverflow;break;case IPCARMINGSCHEDULEMIX:c=errStr.armingScheduleMix;break;case IPCARMINGSCHEDULEILLEGAL:c=errStr.armingScheduleIllegal;break;default:c=errStr.invRequestFail}closeToast();showAlert(c,b);return!1}function Ga(){clearTimeout(ea);ea=$.setTimeout(function(){$("#popNote").animate({bottom:"-150px"},
void 0,void 0,function(){id("popNote").style.display="none"})},5E3)}function zb(){d.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(ea),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 c=d.getPicFileStoragePath(),b=c.lastIndexOf("\\"),b=c.substr(b+1);popContentCorrect.style.display="inline-block";popContentError.style.display="none";titleText.innerHTML=label.snapPicSuccess;Ab.innerHTML=b;check.onclick=function(){d.openFileStorageFolder(c)};Ga()}$("#popNote").animate({bottom:"0px"});id("popNote").style.display="inline-block";log(a);7==parseInt(a)&&Ga()})}function Bb(){var a=
[],b=0,c,k,f=0;for(d.setFodLineState(PLUGIN_STATE_ON);4>b;b++){c=d.getFodLineInfo(b);if(null==c.pt1_x||0==c.pt1_x&&0==c.pt1_y&&0==c.pt2_x&&0==c.pt2_y)return null;0<=c.pt1_x&&(k={},k[fa]=b+1+"",k[Ha]=c.pt1_x,k[Ia]=c.pt1_y,k[Ja]=c.pt2_x,k[Ka]=c.pt2_y,k[ga]=n[b],k[ha]=h[b],a[f++]=k)}!0==m?d.setFodLineState(PLUGIN_STATE_ON):d.setFodRegionState(PLUGIN_STATE_ON);return a}function Cb(){var a=[],b=0,c,k,f=0;for(d.setFodRegionState(PLUGIN_STATE_ON);4>b;b++){c=d.getFodRegionInfo(b);if(null==c.pt1_x||0==c.pt1_x&&
0==c.pt1_y&&0==c.pt2_x&&0==c.pt2_y)return null;0<=c.pt1_x&&(k={},k[ia]=b+1+"",k[ja]=c.pt1_x,k[La]=c.pt1_y,k[Ma]=c.pt2_x,k[Na]=c.pt2_y,k[Oa]=c.pt3_x,k[Pa]=c.pt3_y,k[Qa]=c.pt4_x,k[Ra]=c.pt4_y,a[f++]=k)}!0==m?d.setFodLineState(PLUGIN_STATE_ON):d.setFodRegionState(PLUGIN_STATE_ON);return a}function Sa(a){var b=id("videoPluginCon").offsetHeight;void 0==a?d.setSize({height:"396px",width:"720px"}):d.setSize({height:b+"px",width:b*a+"px"})}function Db(){d.lineCallback(function(a){ka=!0;!0==I?(h=[null,null,
null,null],n=[null,null,null,null]):!0==D&&(h[g]=null,n[g]=null);if(z){if(!1==D){d.showHighlight(g,1);return}closeNoteAll();z=!1}else d.showHighlight(parseInt(a),0);switch(parseInt(a)){case 0:g=0;id("lineName").innerHTML=label.lineOne;break;case 1:g=1;id("lineName").innerHTML=label.lineTwo;break;case 2:g=2;id("lineName").innerHTML=label.lineThree;break;case 3:g=3;id("lineName").innerHTML=label.lineFour;break;default:return}!1==I&&!1==D&&(h[g]=null==h[g]?id("sensitivityDragLineDragLineInput").value:
h[g],n[g]=null==n[g]?$("#directionSel span.value")[0].value:n[g]);(null!=h[0]||null!=h[1]||null!=h[2]||null!=h[3]&&!la)&&l==p&&ma();J.setValue(null==h[g]?K:h[g]);$("#directionSel")[0].resetSel(n[g]);I=D=!1})}function Eb(){d.regionCallback(function(a){ka=!0;!0==na?h=[null,null,null,null]:!0==L&&(h[g]=null);if(z){if(!1==L){d.showHighlight(g,1);return}closeNoteAll();z=!1}else d.showHighlight(parseInt(a),0);l==p&&ma();na=L=!1})}function Fb(a){var b,c=[];if(void 0==a)return c.push('"0000-0000:0"'),c;a instanceof
Array||(a=a.match(/\d{4}-\d{4}/g));for(var k=0;k<a.length;k++){b=a[k];var f=b.split(/[-]/,2);b=parseInt(f[0],10);f=parseInt(f[1],10);0==b&&0==f?c.push(w._getString(b,f,0)):c.push(w._getString(b,f,1))}return c}function Gb(){var a,b=w.getTimeVal(),c={};for(a=0;a<M.length;a++){var k=c,f=Ta[a],d;d=b[M[a]];var e=void 0,u=void 0,g=void 0,h=void 0,l=void 0,l=h=void 0;if(void 0==d)d="";else{void 0==e&&(e=6);u="[";if(1>d.length)u+='"0000-0000"';else for(g=0;g<d.length&&g<e;g++)h=d[g].toString(),l=h.split(/[-,:]/,
3),h=parseInt(l[0],10),l=parseInt(l[1],10),h=w._getStringWithoutType(h,l),0<g&&(u+=","),u+='"'+h+'"';d=u+="]"}k[f]=d}return c}function Hb(){if(z)return!1;if(!1==Ib())showAlert(label.fodAddOneRegionFirst);else if(!1==Jb())showAlert(label.fodAddOneLineFirst);else if(!1==Kb())showAlert(label.fodLineRegionCross);else{var a=Bb(),b=Cb();if(l==p&&!0==x&&null==b)showAlert(label.addOneRegionFirst);else{var c={};c[e]={};c[e][N]={};c[e][N][O]=p;oa&&(c[e][P]={},c[e][P][O]="true"==Ua.getAttribute("checked")?l:
q);if(Q&&(c[e][r]={},E&&(c[e][r][Va]="true"==Wa.getAttribute("checked")?l:q),A&&!pa&&(c[e][r][Xa]="true"==Ya.getAttribute("checked")?l:q),F&&(c[e][r][Za]="true"==R.getAttribute("checked")?l:q),B&&(c[e][r][$a]="true"==S.getAttribute("checked")?l:q),G)){c[e][r][ab]="true"==bb.getAttribute("checked")?l:q;for(var d=2;d<=qa;d++)c[e][r]["AO"+d.toString()+"_enabled"]="true"==id("triggerAlarmOut"+d.toString()).getAttribute("checked")?l:q}c[e][ra]=Gb();!0==H&&(c[e][C]={},c[e][C][cb]=T,c[e][C][db]=U);var f=
eb&&!sa&&"true"==S.getAttribute("checked"),g=fb&&!ta&&"true"==R.getAttribute("checked");f||g?showConfirmIpc(label.confirmAlarmDeviceOnTip,function(d){!0==d?(c[y]={},c[y][uciMsgAlarm.secName.chn1MsgAlarmInfo]={},f&&(c[y][uciMsgAlarm.secName.chn1MsgAlarmInfo][uciMsgAlarm.optName.soundEnabled]=uciMsgAlarm.optValue.enableVal.on),g&&(c[y][uciMsgAlarm.secName.chn1MsgAlarmInfo][uciMsgAlarm.optName.lightEnabled]=uciMsgAlarm.optValue.enableVal.on),showToast(),$.modify(c,function(c){!0==t(c[ERR_CODE])&&(f&&
(sa=1),g&&(ta=1),null!=a||null!=b?(c={},c[e]={},null!=a&&(c[e][V]={},c[e][V][W]=a),null!=b&&(c[e][X]={},c[e][X][Y]=b),$.action(c,function(a){!0==t(a[ERR_CODE])&&(showToast("success"),s&&0<=$.inArray(uciImageCapability.optValue.infraredLamp,s)&&0<=$.inArray(uciImageCapability.optValue.whiteLamp,s)&&l==p&&q==v&&(closeToast(),showAlert(label.openFodDetTips)),v=p)}),g=f=0):(showToast("success"),s&&0<=$.inArray(uciImageCapability.optValue.infraredLamp,s)&&0<=$.inArray(uciImageCapability.optValue.whiteLamp,
s)&&l==p&&q==v&&(closeToast(),showAlert(label.openFodDetTips)),v=p))})):(f&&changeCheckInput(S,!1),g&&changeCheckInput(R,!1))}):(showToast(),$.modify(c,function(c){!0==t(c[ERR_CODE])&&(null!=a||null!=b?(c={},c[e]={},null!=a&&(c[e][V]={},c[e][V][W]=a),null!=b&&(c[e][X]={},c[e][X][Y]=b),$.action(c,function(a){!0==t(a[ERR_CODE])&&(showToast("success"),s&&0<=$.inArray(uciImageCapability.optValue.infraredLamp,s)&&0<=$.inArray(uciImageCapability.optValue.whiteLamp,s)&&l==p&&q==v&&(closeToast(),showAlert(label.openFodDetTips)),
v=p)})):(showToast("success"),s&&0<=$.inArray(uciImageCapability.optValue.infraredLamp,s)&&0<=$.inArray(uciImageCapability.optValue.whiteLamp,s)&&l==p&&q==v&&(closeToast(),showAlert(label.openFodDetTips)),v=p))}))}}}function Lb(){closeNoteAll();!0==checkNum(id("sensitivityDragLineDragLineInput").value)&&!0==checkNumRange(parseInt(id("sensitivityDragLineDragLineInput").value),100,1)?(h[g]=id("sensitivityDragLineDragLineInput").value,J.setValue(id("sensitivityDragLineDragLineInput").value),z=!1):(showNote("sensitivityDragLineDragLineInput",
errStr.sensitivityErr),z=!0);n[g]=id("directionSel").value}function Mb(a){closeNote("sensitivityDragLineDragLineInput");h[g]=a}function Nb(a){switch(a){case "AtoB":n[g]="AtoB";break;case "BtoA":n[g]="BtoA";break;case "both":n[g]="both"}d.changeDetectDirect(g,n[g])}function gb(a){switch(a){case "drawline":d.setFodLineState(PLUGIN_STATE_ON);m=!0;x=!1;id("drawrequire").innerHTML=label.drawlinerequire;$("#lineName").parents(".actionBarDiv").show();break;case "drawregion":d.setFodRegionState(PLUGIN_STATE_ON),
x=!0,m=!1,id("drawrequire").innerHTML=label.drawregionrequire,$("#lineName").parents(".actionBarDiv").hide()}}function Ob(){!0==m?(D=!0,h[g]=null,n[g]=null,null==h[0]&&null==h[1]&&null==h[2]&&null==h[3]&&(id("sensitivityDragLineDragLineInput").value=K,$("#directionSel")[0].resetSel(ua),d.changeDetectDirect(0,"both")),d.delFodLineInfo(PLUGIN_STATE_ON)):!0==x&&(L=!0,d.delFodRegionInfo(PLUGIN_STATE_ON));va()}function Pb(){!0==m?(I=!0,h=[null,null,null,null],n=[null,null,null,null],id("sensitivityDragLineDragLineInput").value=
K,$("#directionSel")[0].resetSel(ua),d.changeDetectDirect(0,"both"),d.delFodLineInfo(PLUGIN_STATE_MINUS)):!0==x&&(na=!0,d.delFodRegionInfo(PLUGIN_STATE_MINUS));va()}function Z(){var a=document.getElementById("hidebg");a.style.display="block";var b=getoffset(id("save")).top-getoffset(id("del")).top;if(0==$("#peCon").length||"none"==$("#peCon").css("display"))a.style.height=b+"px";else{var c=getoffset(id("peCon")).top-getoffset(id("del")).top+id("peCon").offsetHeight;a.style.height=(b>c?b:c)+"px"}}
function hb(a,b,c,d,f,e,g,h,l,m){var n=(f-c)*(b-d)-(e-d)*(a-c);f=(g-f)*(b-e)-(h-e)*(a-f);g=(l-g)*(b-h)-(m-h)*(a-g);a=(c-l)*(b-m)-(d-m)*(a-l);return 0<=n&&0<=f&&0<=g&&0<=a||0>=n&&0>=f&&0>=g&&0>=a?!0:!1}function aa(a,b,c,d,f,e,g,h){return(a>c?a:c)<(f<g?f:g)||(b>d?b:d)<(e<h?e:h)||(f>g?f:g)<(a<c?a:c)||(e>h?e:h)<(b<d?b:d)||0<((a-f)*(h-e)-(b-e)*(g-f))*((c-f)*(h-e)-(d-e)*(g-f))||0<((f-a)*(d-b)-(e-b)*(c-a))*((g-a)*(d-b)-(h-b)*(c-a))?!1:!0}function Kb(){for(var a=null,b=null,c=[],e=0;4>e;e++)if(d.setFodLineState(PLUGIN_STATE_ON),
a=d.getFodLineInfo(e),d.setFodRegionState(PLUGIN_STATE_ON),-1!=a.pt1_x){for(var f=0;4>f;f++)b=d.getFodRegionInfo(f),-1!=b.pt1_x&&(aa(a.pt1_x,a.pt1_y,a.pt2_x,a.pt2_y,b.pt1_x,b.pt1_y,b.pt2_x,b.pt2_y)||aa(a.pt1_x,a.pt1_y,a.pt2_x,a.pt2_y,b.pt2_x,b.pt2_y,b.pt3_x,b.pt3_y)||aa(a.pt1_x,a.pt1_y,a.pt2_x,a.pt2_y,b.pt3_x,b.pt3_y,b.pt4_x,b.pt4_y)||aa(a.pt1_x,a.pt1_y,a.pt2_x,a.pt2_y,b.pt4_x,b.pt4_y,b.pt1_x,b.pt1_y)||hb(a.pt1_x,a.pt1_y,b.pt1_x,b.pt1_y,b.pt2_x,b.pt2_y,b.pt3_x,b.pt3_y,b.pt4_x,b.pt4_y)||hb(a.pt2_x,
a.pt2_y,b.pt1_x,b.pt1_y,b.pt2_x,b.pt2_y,b.pt3_x,b.pt3_y,b.pt4_x,b.pt4_y))&&(c[e]=!0);void 0==c[e]&&(c[e]=!1)}for(e=0;e<c.length;e++)if(!1==c[e])return!0==m?d.setFodLineState(PLUGIN_STATE_ON):d.setFodRegionState(PLUGIN_STATE_ON),!1;!0==m?d.setFodLineState(PLUGIN_STATE_ON):d.setFodRegionState(PLUGIN_STATE_ON);return!0}function Jb(){var a=null;d.setFodLineState(PLUGIN_STATE_ON);for(var b=0;4>b;b++)if(a=d.getFodLineInfo(b),!(0>=a.pt1_x&&0>=a.pt1_y&&0>=a.pt2_x&&0>=a.pt2_y))return!0==m?d.setFodLineState(PLUGIN_STATE_ON):
d.setFodRegionState(PLUGIN_STATE_ON),!0;!0==m?d.setFodLineState(PLUGIN_STATE_ON):d.setFodRegionState(PLUGIN_STATE_ON);return!1}function Ib(){var a=null;d.setFodRegionState(PLUGIN_STATE_ON);for(var b=0;4>b;b++)if(a=d.getFodRegionInfo(b),!(0>=a.pt1_x&&0>=a.pt1_y&&0>=a.pt2_x&&0>=a.pt2_y))return!0==m?d.setFodLineState(PLUGIN_STATE_ON):d.setFodRegionState(PLUGIN_STATE_ON),!0;!0==m?d.setFodLineState(PLUGIN_STATE_ON):d.setFodRegionState(PLUGIN_STATE_ON);return!1}function va(){var a=null,a=null;d.setFodLineState(PLUGIN_STATE_ON);
for(var b=0;4>b;b++)if(a=d.getFodLineInfo(b),!(0>=a.pt1_x&&0>=a.pt1_y&&0>=a.pt2_x&&0>=a.pt2_y))return!0==m?d.setFodLineState(PLUGIN_STATE_ON):d.setFodRegionState(PLUGIN_STATE_ON),!0;d.setFodRegionState(PLUGIN_STATE_ON);for(b=0;4>b;b++)if(a=d.getFodRegionInfo(b),!(0>=a.pt1_x&&0>=a.pt1_y&&0>=a.pt2_x&&0>=a.pt2_y))return!0==m?d.setFodLineState(PLUGIN_STATE_ON):d.setFodRegionState(PLUGIN_STATE_ON),!0;!0==m?d.setFodLineState(PLUGIN_STATE_ON):d.setFodRegionState(PLUGIN_STATE_ON);Z();return!1}function ma(){document.getElementById("hidebg").style.display=
"none"}function Qb(a){Rb.innerHTML=1==a?btn.enableN:btn.close;p=1==a?l:q;!1==d.checkInstalled()?Z():0==a?(d.setOSDStatus(0),Z()):(d.setOSDStatus(1),!1==ka?Z():!1!=va()&&ma())}function ib(a){wa?(id("displayInfoArrow").className="arrowDown",id("displayInfoArrow").title=label.slideDown,id("displayInfoArrowText").innerHTML=label.slideDown,jb.style.display="none",wa=!1):(id("displayInfoArrow").className="arrowUp",id("displayInfoArrow").title=label.slideUp,id("displayInfoArrowText").innerHTML=label.slideUp,
jb.style.display="",wa=!0)}function Sb(){var a,b={};b[e]={};b[e][NAME]=ra;$.query(b,function(c){if(!0==t(c[ERR_CODE]))for(w.reset(),a=0;a<M.length;a++)w.setTimeVal(M[a],Fb(c[e][ra][Ta[a]]))})}function kb(a){xa?(id("armingScheduleArrow").className="arrowDown",id("armingScheduleArrow").title=label.slideDown,id("armingScheduleArrowText").innerHTML=label.slideDown,lb.style.display="none",xa=!1):(id("armingScheduleArrow").className="arrowUp",id("armingScheduleArrow").title=label.slideUp,id("armingScheduleArrowText").innerHTML=
label.slideUp,lb.style.display="",xa=!0)}function mb(a){ya?(id("handleArrow").className="arrowDown",id("handleArrow").title=label.slideDown,id("handleArrowText").innerHTML=label.slideDown,nb.style.display="none",ya=!1):(id("handleArrow").className="arrowUp",id("handleArrow").title=label.slideUp,id("handleArrowText").innerHTML=label.slideUp,nb.style.display="",ya=!0)}function ob(a){za?(id("lineNameArrow").className="arrowDown",id("lineNameArrow").title=label.slideDown,id("lineNameArrowText").innerHTML=
label.slideDown,pb.style.display="none",za=!1):(id("lineNameArrow").className="arrowUp",id("lineNameArrow").title=label.slideUp,id("lineNameArrowText").innerHTML=label.slideUp,pb.style.display="",za=!0)}function qb(a){T=a}function Tb(a){U=a}function Ub(a,b){selectInit("soundTypeSelect",a,0,qb,"18");id("soundTypeSelect").resetSel(b)}function Vb(){var a=uciLinkageCapability.optName.sound_alarm_capability,b=uciLinkageCapability.optName.msg_push_capability,c=uciLinkageCapability.optName.alarm_out_capability,
d=uciLinkageCapability.optName.record_capability,e=function(a){return 1==parseInt($.linkageCapability[a].split("").reverse().join("").charAt(37))?!0:!1};F=e(uciLinkageCapability.optName.light_alarm_capability);B=e(a);E=e(b);G=e(c);A=e(d);(Q=F||B||E||G||A)?(F||$("#triggerLightAlarm").parent().hide(),B||$("#triggerSoundAlarm").parent().hide(),E||$("#triggerMsgPush").parent().hide(),(!A||A&&pa)&&$("#triggerRecord").parent().hide(),G?InsertTriggerAlarmOut("triggerAlarmOut"):$("#triggerAlarmOut").parent().hide()):
id("handleWayDiv").style.display="none"}function Wb(){B&&$.audioAlarmCapability&&(H=1==parseInt($.audioAlarmCapability[Xb])?!0:!1,ba=1==parseInt($.audioAlarmCapability[Yb])?!0:!1,ca=parseInt($.audioAlarmCapability[Zb]),da=$.audioAlarmCapability[Aa].length);if(!1==H)id("soundInfo").style.display="none";else{id("soundTypeSelect");id("soundTimesSelect");for(var a=[{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 c=parseInt($.audioAlarmCapability[Aa][b]);Ba.push(a[c])}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,Tb)}if(!1==ba)id("setSoundAlarm").style.display="none";else{openSoundInfo("setSoundAlarm",da,ca,label.usrdefSound);closeSoundInfo("infoCloseTip",e,a,Ub);for(b=0;b<da;b++)devSoundListen("testListen_"+b,b),devSoundFocus("devsound_"+
b,b);for(a=0;a<ca;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)}}function $b(){var a=[{str:btn.drawline,value:"drawline"},{str:btn.drawregion,value:"drawregion"}];!0==m?(Db(),selectInit("drawSel",a,"drawline",gb)):!0==x&&(Eb(),selectInit("drawSel",a,"drawregion",gb))}var e=uciFallingobjectDetection.fileName,
N=uciFallingobjectDetection.secName.detection,ra=uciFallingobjectDetection.secName.armingSchedule,r=uciFallingobjectDetection.secName.notifyList,W=uciFallingobjectDetection.secType.lineInfo,Y=uciFallingobjectDetection.secType.regionInfo,C=uciFallingobjectDetection.secName.soundAlarmInfo,P=uciFallingobjectDetection.secName.fodBoxDisplay,O=uciFallingobjectDetection.optName.enabled,ha=uciFallingobjectDetection.optName.sensitivity,ga=uciFallingobjectDetection.optName.direction,Xb=uciAlarmAudioTypeCapability.optName.eventSeparateAudioAlarmSupport,
Yb=uciAlarmAudioTypeCapability.optName.usrDefAudioAlarmSupport,Zb=uciAlarmAudioTypeCapability.optName.usrDefAudioAlarmMaxNum,Aa=uciAlarmAudioTypeCapability.optName.alarmType,ja=uciFallingobjectDetection.optName.RegionPt1x,La=uciFallingobjectDetection.optName.RegionPt1y,Ma=uciFallingobjectDetection.optName.RegionPt2x,Na=uciFallingobjectDetection.optName.RegionPt2y,Oa=uciFallingobjectDetection.optName.RegionPt3x,Pa=uciFallingobjectDetection.optName.RegionPt3y,Qa=uciFallingobjectDetection.optName.RegionPt4x,
Ra=uciFallingobjectDetection.optName.RegionPt4y,Ha=uciFallingobjectDetection.optName.LinePt1x,Ia=uciFallingobjectDetection.optName.LinePt1y,Ja=uciFallingobjectDetection.optName.LinePt2x,Ka=uciFallingobjectDetection.optName.LinePt2y,ia=uciFallingobjectDetection.optName.region_id,fa=uciFallingobjectDetection.optName.line_id,l=uciFallingobjectDetection.optValue.enableVal.on,q=uciFallingobjectDetection.optValue.enableVal.off,rb=uciImage.fileName,V=uciFallingobjectDetection.actionName.addLines,X=uciFallingobjectDetection.actionName.addRegions,
Za=uciFallingobjectDetection.optName.lightAlarmEnabled,$a=uciFallingobjectDetection.optName.soundAlarmEnabled,Va=uciFallingobjectDetection.optName.msgPushEnabled,Xa=uciFallingobjectDetection.optName.recordEnabled,ab=uciFallingobjectDetection.optName.alarmEnabled,Ab=id("name"),ea,cb=uciFallingobjectDetection.optName.soundAlarmType,db=uciFallingobjectDetection.optName.soundAlarmTimes,Ca=uciUsrDefAlarm.fileName,sb=uciUsrDefAlarm.secName.usrDefAudio,ac=uciUsrDefAlarm.optName.id,Da=uciUsrDefAlarm.optName.name,
y=uciMsgAlarm.fileName,eb=0,sa=0,fb=0,ta=0,la=!0,ka=!1,Ea,Fa,tb,p,v,Rb=id("intelligentDetectionSwitchDes"),d,g=0,h=[],n=[],K=50,ua="both",wa=!0,xa=!0,ya=!0,za=!0,Ua=id("triggerFodTrail"),bb=id("triggerAlarmOut"),Ya=id("triggerRecord"),Wa=id("triggerMsgPush"),R=id("triggerLightAlarm"),S=id("triggerSoundAlarm"),jb=id("displayInfo"),lb=id("timeSchedule"),nb=id("handleWay"),pb=id("configDiv");id("drawSel");var M=[label.Mon,label.Tue,label.Wen,label.Thu,label.Fri,label.Sta,label.Sun],Ta=[uciFallingobjectDetection.optName.mon,
uciFallingobjectDetection.optName.tue,uciFallingobjectDetection.optName.wed,uciFallingobjectDetection.optName.thu,uciFallingobjectDetection.optName.fri,uciFallingobjectDetection.optName.sat,uciFallingobjectDetection.optName.sun],w,z=!1,D=!1,L=!1,I=!1,na=!1,J;id("sensitivityDragLineDragLineInput");var m=!0,x=!0,ub=1==parseInt($.moduleSpec[uciFunction.optName.corridorMode])?!0:!1,Q,F,B,E,G,A,pa=null==$.cloudStorage?!1:!0,qa=isNaN(parseInt($.moduleSpec.alarm_out_num))?1:parseInt($.moduleSpec.alarm_out_num),
ba=!1,H=!1,T,U,ca,Ba=[],da=0,vb=$.moduleSpec[uciFunction.optName.new_version_capability_list],wb=vb&&0<=$.inArray(uciImage.fileName,vb),xb=!1,yb=!1,oa=$.detectionCapability&&1==parseInt($.detectionCapability[uciDetectionCapability.optName.boxDisplayCapability])&&1==(parseInt($.box_display_list,2)>>0)%2,s=$.imageCapability[uciImageCapability.secName.supplementLamp][uciImageCapability.optName.supplementLampType];(function(){var a={},b=0;Vb();Wb();a[e]={};a[e][NAME]=[N];Q&&a[e][NAME].push(r);H&&a[e][NAME].push(C);
a[e][KEY_TABLE]=[Y];a[e][KEY_TABLE].push(W);ub&&(a[rb]={},a[rb][NAME]=uciImage.secName.para_switch);!0==ba&&(a[Ca]={},a[Ca][KEY_TABLE]=[sb]);$.moduleSpec[uciFunction.optName.msgAlarmSeparateList]&&(a[y]={},a[y][NAME]=uciMsgAlarm.secName.chn1MsgAlarmInfo);wb&&(a[uciImageCapability.fileName]={},a[uciImageCapability.fileName][NAME]=[],a[uciImageCapability.fileName][NAME].push(uciImageCapability.secType.capability));oa?a[e][NAME].push(P):id("displayInfoDiv").style.display="none";d=new Plugin({id:"videoPluginCon",
className:"vedioActiveX",readyHd:function(a){if(PLUGIN_STATE_ON==a&&!0==la){la=!1;!0==m?(d.setFodLineState(PLUGIN_STATE_ON),x=!1):!0==x&&(d.setFodRegionState(PLUGIN_STATE_ON),m=!1);d.setOSDSpecialStatus(PLUGIN_STATE_ON);a=formatTableData(Ea);for(var b in a){var e=a[b];void 0!=e[ja]&&d.showFodRegionInfo(parseInt(e[ia])-1,{pt1_x:e[ja],pt1_y:e[La],pt2_x:e[Ma],pt2_y:e[Na],pt3_x:e[Oa],pt3_y:e[Pa],pt4_x:e[Qa],pt4_y:e[Ra]})}b=formatTableData(Fa);for(var g in b)a=b[g],d.showFodLineInfo(parseInt(a[fa])-1,
{pt1_x:a[Ha],pt1_y:a[Ia],pt2_x:a[Ja],pt2_y:a[Ka],direction:a[ga],sensitivity:a[ha]});d.setOSDStatus(tb.state);yb&&setDomSize($(".vedioActiveX")[0],null)}}});$("ul.lineConfMenu").css("width","718px");d.setSize({height:"396px",width:"720px"});$b();J=new DragLine({id:"sensitivityDragLine",name:label.sensitivity,cb:Mb,lowerBound:1});w=new PlanSet("recPlanGrid",{curType:1});Sb();$("ul.lineConfMenu li.snapPicBtn").hide();$("ul.lineConfMenu li.snapPicBtn").click(function(a){zb()});id("closeTip").onclick=
function(){$("#popNote").animate({bottom:"-150px"},void 0,void 0,function(){id("popNote").style.display="none"})};$.query(a,function(a){if(!0==t(a[ERR_CODE])){Fa=a[e][W];var k=formatTableData(Fa),f=0,m;for(m in k){var q=k[m],f=q[fa]-1;h[f]=q[ha];n[f]=q[ga]}J.setValue(null==h[f]?K:h[f]);g=f;selectInit("directionSel",[{str:label.toRight,value:"AtoB"},{str:label.toLeft,value:"BtoA"},{str:label.bothWay,value:"both"}],null==n[f]?ua:n[f],Nb);Ea=a[e][Y];k=formatTableData(Ea);f=0;for(m in k)f=k[m][ia]-1;
g=f;oa&&(b=a[e][P][O]==l,changeCheckInput(Ua,b));if(Q&&(E&&(b=a[e][r][Va]==l,changeCheckInput(Wa,b)),A&&!pa&&(b=a[e][r][Xa]==l,changeCheckInput(Ya,b)),F&&(b=a[e][r][Za]==l,changeCheckInput(R,b),fb=1,ta=a[y][uciMsgAlarm.secName.chn1MsgAlarmInfo][uciMsgAlarm.optName.lightEnabled]==l?1:0),B&&(b=a[e][r][$a]==l,changeCheckInput(S,b),eb=1,sa=a[y][uciMsgAlarm.secName.chn1MsgAlarmInfo][uciMsgAlarm.optName.soundEnabled]==l?1:0),G&&(b=a[e][r][ab]==l,changeCheckInput(bb,b),1<qa))){f=b;for(k=2;k<=qa;k++)aoEnableOpt=
"AO"+k.toString()+"_enabled",b=a[e][r][aoEnableOpt]==l,changeCheckInput(id("triggerAlarmOut"+k.toString()),b),f=f&&b;f&&changeCheckInput("triggerAOAll",!0)}p=a[e][N][O];b=p==l?1:0;v=p;tb=new Switch("intelligentDetectionSwitch",b,Qb);if(!0==H){if(!0==ba){f={};f=a[Ca][sb];f=formatTableData(f);for(m in f)k=f[m],k[Da]||(k[Da]=label.usrdefSound),Ba.push({str:k[Da],value:k[ac]});uploadSoundFile("fileName",d,da,ca)}selectInit("soundTypeSelect",Ba,0,qb,"18");T=a[e][C][cb];U=a[e][C][db];soundTypeSelect.changeSel(T);
soundTimesSelect.changeSel(U)}if(ub){var s=a[uciImage.fileName][uciImage.secName.para_switch][uciImage.optName.rotate_type];m={};m[uciVideo.fileName]={};m[uciVideo.fileName][NAME]=uciVideo.secName.main;$.query(m,function(a){!0==t(a[ERR_CODE])&&(a=a[uciVideo.fileName][uciVideo.secName.main],a=a.resolution.split("*")[1]/a.resolution.split("*")[0],s==uciImage.optValue.rotOff?Sa():Sa(a),$("object.vedioActiveX").addClass("vedioActiveX_corridor"),id("videoPluginCon").style.background="black")})}$("ul.lineConfMenu li.snapPicBtn").show();
wb?1==parseInt(a[uciImageCapability.fileName][uciImageCapability.secType.capability][uciImageCapability.optName.stitch])&&(xb=!0,a={},a[uciImageCapability.fileName]={},a[uciImageCapability.fileName][NAME]=[],a[uciImageCapability.fileName][NAME].push(uciImageCapability.optName.stitch),$.query(a,function(a){!0==t(a[ERR_CODE])&&xb&&(yb=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==t(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});d.playVideo();showDetailCon()}}))})):(d.playVideo(),showDetailCon())}});initCheckInput("showInfo");
initCheckInput("falingObjectTrail");id("save").onclick=Hb;id("clean").onclick=Pb;id("del").onclick=Ob;id("clearAll").onclick=function(a){w.reset()};id("displayInfoArrow").onclick=ib;id("displayInfoArrowText").onclick=ib;id("armingScheduleArrow").onclick=kb;id("armingScheduleArrowText").onclick=kb;id("handleArrow").onclick=mb;id("handleArrowText").onclick=mb;id("lineNameArrow").onclick=ob;id("lineNameArrowText").onclick=ob;id("sensitivityDragLineDragLineInput").onblur=Lb;$("fieldset")[0].onscroll=
function(){id("selOptsUleventSel")&&"visible"==id("selOptsUleventSel").style.visibility&&document.body.click()}})()}init();
</script><style type="text/css">div.configDiv li.direction{display:inline-block;font-size:0;vertical-align:middle;height:30px;margin-left:60px;padding:5px 0}div.peCol span.select{font-size:0!important}span.peSelect{width:124px!important;_width:116px!important;font-size:14px!important}#orgDC{width:662px}.displayNone{display:none!important}i.peTypeRd{width:25px!important;height:25px!important}i.timeSeled{background:url(../web-static/images/timeSeled.png) 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.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.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;margin-top:-20px}div.handleWay ul.Line label.des{display:inline;vertical-align:middle;margin-left:8px}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:240px;margin-left:16px;text-align:left}ul.line li.linedraw{margin-left:12px;margin-top:5px;padding-bottom:0;display:inline-block;height:26px}ul.line label.explain{font-size:13px;color:#666;height:20px;margin-top:12px;margin-bottom:20px;display:inline-block}ul.lineConfMenu li.linedel{height:26px;margin-left:8px}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:250px;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}span.select span.hsValueE{color:#333;width:110px;line-height:28px;height:28px}</style>