

<div class="detailCon">
	<ul class="line">
		<li class="line lineA">
			<label class="des desA">{%menuStr.motionDetection%}</label>
			<div id="motionSwitch" class="switchCon">
				<i class="switchBg"></i>
				<i class="switchBall"></i>
			</div>
			<label id="motionSwitchDes" class="des desH">{%btn.close%}</label>
		</li>
	</ul>
	<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">
		<div class="actionTitleDiv">
			<label class="actionTitle">{%label.regionSetting%}</label>
		</div>
		<div class="configDiv" id="configDiv">
			<ul id="aiEnhance" class="line">
				<li class="Line lineE1">
					<label class="des desA">{%label.smartDetection%}</label>
					<i name="showInfo" id="peopleDetectionEnhanceCheck" class="chObj" value="20"></i>
					<label class="des desA" id="peopleDetectionEnhanceCheckTips">{%label.peopleDetectionEnhance%}</label>
					<i name="showInfo" id="vehicleDetectionEnhanceCheck" class="chObj" value="21"></i>
					<label class="des desA" id="vehicleDetectionEnhanceCheckTips">{%label.vehicleDetectionEnhance%}</label>
					<i name="showInfo" id="nonVehicleDetectionEnhanceCheck" class="chObj" value="22"></i>
					<label class="des desA" id="nonVehicleDetectionEnhanceCheckTips">{%label.nonVehicleDetectionEnhance%}</label>
				</li>
				<li class="Line lineE2">
					<label class="desG">{%label.smartDetectionTips%}</label>
				</li>
			</ul>
			<ul class="line">
				<li class="dragLine">
					<div id="sensitivityDragLine" class="ipcDragLineDiv"></div>
				</li>
			</ul>
			<div class="height"></div>
		</div>
	</div>
	<div class="actionBarDiv" id="armingScheduleDiv">
		<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.motionDetTips%}</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 lineFirst" 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="sendEmailLine">
					<i name="showInfo" id="sendEmail" class="chObj" value="1"></i>
					<label class="des desA">{%label.sendEmail%}</label>
					<label class="des desM">{%label.sendEmailTips%}</label>
				</li>
				<li class="Line lineE" id="captureLine">
					<i name="capture" id="triggerCapture" class="chObj" value="2"></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="3"></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="msgPush" class="chObj" value="4"></i>
					<label class="des desA">{%label.msgPush%}</label>
					<label class="des desM">{%label.msgPushTips%}</label>
				</li>

				<li class="Line lineE" id="alarmOutLine">
					<i name="showInfo" id="triggerAlarmDevice" class="chObj" value="5"></i>
					<label class="des desA">{%label.triggerAlarmDevice%}</label>
					<label class="des desM">{%label.triggerAlarmDeviceTips%}</label>
				</li>
				<li class="Line lineE">
					<i name="showInfo" id="triggerLight" class="chObj" value="6"></i>
					<label class="des desA">{%label.lightAlarm%}</label>
					<label class="des desM">{%label.lightAlarmTips%}</label>
				</li>
				<li class="Line lineLast">
					<i name="showInfo" id="triggerSound" class="chObj" value="7"></i>
					<label class="des desA">{%label.soundAlarm%}</label>
					<label class="des desM">{%label.soundAlarmTips%}</label>
				</li>
			</ul>
			<ul class="line" id="soundInfo">
				<li class="Line lineTypeSel soundTypeCon" id="soundType">
					<label class="des desTypeSel">{%label.soundAlarmType%}</label>
					<span class="selCon">
						<span id="soundTypeSelect" class="select">
							<span class="value hsValueA"></span>
							<i class="arrow"></i>
						</span>
					</span>
					<input id="setSoundAlarm" type="button" value="{%btn.configSet%}" class="subBtnB btnConfSet" />
				</li>
				<li class="Line lineTypeSel soundTypeCon" id="soundTimes">
					<label class="des desTypeSel">{%label.soundAlarmTimes%}</label>
					<span class="selCon">
						<span id="soundTimesSelect" class="select">
							<span class="value hsValueA"></span>
							<i class="arrow"></i>
						</span>
					</span>
				</li>
			</ul>
		</div>
	</div>
	<div class="funcBtnCon">
		<input id="save" type="button" 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="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 q(a,b){var d="";switch(parseInt(a)){case ENONE:return!0;case IPCMDNUMERR:d=errStr.IPCRangeOver;break;case IPCMDENERR:d=errStr.IPCParamInvalid;break;case IPCUMGUESTNAUTH:d=errStr.invPermissionDenied;break;case IPCMDSIZEERR:d=errStr.ipcMDSizeErr;break;case IPCNOTIFYRECORDENERR:case IPCNOTIFYEMAILENERR:case IPCNOTIFYALARMENERR:case IPCNOTIFYFTPENERR:case IPCNOTIFCAPTUREENERR:case IPCNOTIFMSGPUSHENERR:d=errStr.IPCHandleInalid;break;default:d=errStr.invRequestFail}closeToast();
showAlert(d,b);return!1}function xa(){clearTimeout(Z);Z=$.setTimeout(function(){$("#popNote").animate({bottom:"-150px"},void 0,void 0,function(){id("popNote").style.display="none"})},5E3)}function ob(){f.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(Z),ya.style.display="none",aa.style.display="inline-block",7==parseInt(a)?titleText.innerHTML=label.cue:titleText.innerHTML=label.snapPicFail,aa.innerHTML=b;else{var d=f.getPicFileStoragePath(),b=d.lastIndexOf("\\"),b=d.substr(b+1);ya.style.display="inline-block";aa.style.display="none";titleText.innerHTML=label.snapPicSuccess;pb.innerHTML=b;check.onclick=function(){f.openFileStorageFolder(d)};xa()}$("#popNote").animate({bottom:"0px"});id("popNote").style.display="inline-block";
log(a);7==parseInt(a)&&xa()})}function ba(){for(var a=[],b=0,d,c,w=0;b<ca;b++){d=f.getMoveDetInfo(b);if(null==d.width||-2==d.width)return null;0<=d.x&&(c={},c[za]=d.x,c[Aa]=d.y,c[Ba]=d.width,c[Ca]=d.height,a[w++]=c)}return a}function Da(a){if(!da){var b={},d={},p=[];b[c]={};b[c][r]={};for(i=0;i<h.length;i++)h[i].bSupported&&(b[c][r][h[i].uciName]="true"==h[i].domName.getAttribute("checked")?g:k);b[c][r][Ea]=J;b[c][r][Fa]=K;if(L){b[c][l]={};z&&(b[c][l][Ga]="true"==Ha.getAttribute("checked")?g:k);A&&
(b[c][l][Ia]="true"==Ja.getAttribute("checked")?g:k);B&&(b[c][l][Ka]="true"==M.getAttribute("checked")?g:k);x&&(b[c][l][La]="true"==N.getAttribute("checked")?g:k);if(C){b[c][l][Ma]="true"==Na.getAttribute("checked")?g:k;for(var w=2;w<=ea;w++)b[c][l]["AO"+w.toString()+"_enabled"]="true"==id("triggerAlarmDevice"+w.toString()).getAttribute("checked")?g:k}u&&(b[c][l][fa]=D?O:"true"==Oa.getAttribute("checked")?g:k);E&&(b[c][l][Pa]="true"==Qa.getAttribute("checked")?g:k);y&&(b[c][l][Ra]="true"==P.getAttribute("checked")?
g:k)}!0==Q&&(b[c][ga]=qb());!0==F&&(b[c][v]={},b[c][v][Sa]=R,b[c][v][Ta]=S);var e=Ua&&!ha&&"true"==N.getAttribute("checked"),f=Va&&!ia&&"true"==M.getAttribute("checked"),m=Wa&&!ja&&"true"==P.getAttribute("checked");e||f||m?((e||f)&&showConfirmIpc(label.confirmAlarmDeviceOnTip,function(m){b[s]={};b[s][uciMsgAlarm.secName.chn1MsgAlarmInfo]={};!0==m?(e&&(b[s][uciMsgAlarm.secName.chn1MsgAlarmInfo][uciMsgAlarm.optName.soundEnabled]=uciMsgAlarm.optValue.enableVal.on),f&&(b[s][uciMsgAlarm.secName.chn1MsgAlarmInfo][uciMsgAlarm.optName.lightEnabled]=
uciMsgAlarm.optValue.enableVal.on),showToast(),p=ba(),$.modify(b,function(b){if(!0==q(b[ERR_CODE])){e&&(ha=1);f&&(ia=1);if(null!=p&&1==G){d[c]={};d[c][t]={};d[c][t][H]=p;if(0==p.length){closeToast();showAlert(label.addOneRegionFirst);return}$.action(d,function(a){!0==q(a[ERR_CODE])&&showToast("success")})}else showToast("success");"function"==typeof a&&void 0!=a&&a()}})):(e&&changeCheckInput(N,!1),f&&changeCheckInput(M,!1))}),m&&showConfirmIpc(label.confirmCaptureOnTip,function(e){b[T]={};b[T][uciPicturePlan.secName.eventConfig]=
{};!0==e?(m&&(b[T][uciPicturePlan.secName.eventConfig][uciPicturePlan.optName.enabled]=uciPicturePlan.optValue.on),showToast(),p=ba(),$.modify(b,function(b){if(!0==q(b[ERR_CODE])){m&&(ja=1);if(null!=p&&1==G){d[c]={};d[c][t]={};d[c][t][H]=p;if(0==p.length){closeToast();showAlert(label.addOneRegionFirst);return}$.action(d,function(a){!0==q(a[ERR_CODE])&&showToast("success")})}else showToast("success");"function"==typeof a&&void 0!=a&&a()}})):m&&changeCheckInput(P,!1)})):(showToast(),p=ba(),$.modify(b,
function(b){if(!0==q(b[ERR_CODE])){if(null!=p&&1==G){d[c]={};d[c][t]={};d[c][t][H]=p;if(0==p.length){closeToast();showAlert(label.addOneRegionFirst);return}$.action(d,function(a){!0==q(a[ERR_CODE])&&showToast("success")})}else showToast("success");"function"==typeof a&&void 0!=a&&a()}}))}}function rb(){f.delMoveDetInfo(PLUGIN_STATE_ON)}function sb(){f.delMoveDetInfo(PLUGIN_STATE_MINUS)}function Xa(a){var b=id("videoPluginCon").offsetHeight;void 0==a?$.BSHOWPTZCTRL?f.setSize({height:"372px",width:"496px"}):
f.setSize({height:"396px",width:"720px"}):f.setSize({height:b+"px",width:b*a+"px"});$("object.vedioActiveX").addClass("vedioActiveX_corridor");id("videoPluginCon").style.background="black"}function tb(a){ub.innerHTML=1==a?btn.enableN:btn.close;K=1==a?g:k;var b=document.getElementById("hidebg");0==a?(f.setOSDStatus(0),b.style.display="block",b.style.height=getoffset(id("save")).top-getoffset(id("videoPluginCon")).top+"px",$("#sensitivityDragLineDragLineStrip").css({"*z-index":"-1"})):(f.setOSDStatus(1),
b.style.display="none",$("#sensitivityDragLineDragLineStrip").css({"*z-index":"0"}))}function vb(a){wb.innerHTML=1==a?btn.enableN:btn.close;O=1==a?g:k}function xb(a){J=a;ka.setValue(a);!0==checkNum(a)&&!0==checkNumRange(parseInt(a),100,1)?da=!1:(showNote("sensitivityDragLineDragLineInput",errStr.sensitivityErr),da=!0)}function yb(a){var b,d=[];if(void 0==a)return d.push('"0000-0000:0"'),d;a instanceof Array||(a=a.match(/\d{4}-\d{4}/g));for(var c=0;c<a.length;c++){b=a[c];var e=b.split(/[-]/,2);b=parseInt(e[0],
10);e=parseInt(e[1],10);0==b&&0==e?d.push(n._getString(b,e,0)):d.push(n._getString(b,e,1))}return d}function qb(){var a,b=n.getTimeVal(),d={};for(a=0;a<U.length;a++){var c=d,e=Ya[a],f;f=b[U[a]];var h=void 0,m=void 0,g=void 0,l=void 0,k=void 0,k=l=void 0;if(void 0==f)f="";else{void 0==h&&(h=6);m="[";if(1>f.length)m+='"0000-0000"';else for(g=0;g<f.length&&g<h;g++)l=f[g].toString(),k=l.split(/[-,:]/,3),l=parseInt(k[0],10),k=parseInt(k[1],10),l=n._getStringWithoutType(l,k),0<g&&(m+=","),m+='"'+l+'"';
f=m+="]"}c[e]=f}return d}function zb(){var a,b={};b[c]={};b[c][NAME]=ga;$.query(b,function(d){if(!0==q(d[ERR_CODE]))for(n.reset(),a=0;a<U.length;a++)n.setTimeVal(U[a],yb(d[c][ga][Ya[a]]))})}function Za(a){la?(id("armingScheduleArrow").className="arrowDown",id("armingScheduleArrow").title=label.slideDown,id("armingScheduleArrowText").innerHTML=label.slideDown,$a.style.display="none",la=!1):(id("armingScheduleArrow").className="arrowUp",id("armingScheduleArrow").title=label.slideUp,id("armingScheduleArrowText").innerHTML=
label.slideUp,$a.style.display="block",la=!0)}function ab(a){ma?(id("handleArrow").className="arrowDown",id("handleArrow").title=label.slideDown,id("handleArrowText").innerHTML=label.slideDown,bb.style.display="none",ma=!1):(id("handleArrow").className="arrowUp",id("handleArrow").title=label.slideUp,id("handleArrowText").innerHTML=label.slideUp,bb.style.display="",ma=!0)}function cb(a){R=a}function Ab(a){S=a}function Bb(a,b){selectInit("soundTypeSelect",a,0,cb,"18");id("soundTypeSelect").resetSel(b)}
function na(){showConfirmIpc(label.resCloseOnTip,function(a){!0==a&&(gResSwitchPageSign=1,unloadLogin())},btn.cancel,btn.goSwitch)}function oa(){f.playVideo();$("ul.lineConfMenu li.snapPicBtn").show();showDetailCon()}function Cb(){var a=parseInt($.detectionCapability[uciDetectionCapability.optName.motionDetectionCapability]),b=parseInt($.motionDetectionCapability[uciDetectionCapability.optName.armingScheduleSupport]);a&&b&&(Q=!0)}function Db(){var a=uciLinkageCapability.optName.sound_alarm_capability,
b=uciLinkageCapability.optName.msg_push_capability,d=uciLinkageCapability.optName.alarm_out_capability,c=uciLinkageCapability.optName.record_capability,e=uciLinkageCapability.optName.email_capability,f=uciLinkageCapability.optName.ftp_capability,g=uciLinkageCapability.optName.capture_capability,m=function(a){a=$.linkageCapability[a];return 1>a.length?!1:"1"==a[a.length-1]?!0:!1};B=m(uciLinkageCapability.optName.light_alarm_capability);x=m(a);z=m(b);C=m(d);A=m(c);u=m(f);E=m(e);y=m(g);(L=B||x||z||C||
A||u||E||y)?(B||$("#triggerLight").parent().hide(),x||$("#triggerSound").parent().hide(),z||$("#msgPush").parent().hide(),A||$("#triggerRecord").parent().hide(),C?InsertTriggerAlarmOut("triggerAlarmDevice"):$("#triggerAlarmDevice").parent().hide(),u||$("#sendToFtp").hide(),E||$("#sendEmail").parent().hide(),y||$("#triggerCapture").parent().hide()):id("handleWayDiv").style.display="none"}function Eb(){x&&$.audioAlarmCapability&&(F=1==parseInt($.audioAlarmCapability[Fb])?!0:!1,V=1==parseInt($.audioAlarmCapability[Gb])?
!0:!1,W=parseInt($.audioAlarmCapability[Hb]),pa=$.audioAlarmCapability[qa].length);if(!1==F)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}],d=0;d<$.audioAlarmCapability[qa].length;d++){var e=parseInt($.audioAlarmCapability[qa][d]);a.push(e);X.push(b[e])}selectInit("soundTimesSelect",[{str:label.once,
value:1},{str:label.twice,value:2},{str:label.threetimes,value:3},{str:label.fourtimes,value:4},{str:label.fivetimes,value:5}],1,Ab)}if(!1==V)id("setSoundAlarm").style.display="none";else{openSoundInfo("setSoundAlarm",pa,W,label.usrdefSound);closeSoundInfo("infoCloseTip",c,X,Bb);for(d=0;d<b.length;d++)0<=$.inArray(d,a)?(devSoundListen("testListen_"+d,d),devSoundFocus("devsound_"+d,d)):id("devsound_"+d).style.display="none";for(a=0;a<W;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 Ib(){if(null==$.AIEnhanceCapability)id("aiEnhance").style.display="none";else{var a=parseInt($.AIEnhanceCapability[uciAiEnhanceCapability.secName.traditionalEnhance][uciAiEnhanceCapability.optName.peopleEnhanceVer]),b=parseInt($.AIEnhanceCapability[uciAiEnhanceCapability.secName.traditionalEnhance][uciAiEnhanceCapability.optName.vehicleEnhanceVer]),
d=parseInt($.AIEnhanceCapability[uciAiEnhanceCapability.secName.traditionalEnhance][uciAiEnhanceCapability.optName.nonVehicleEnhanceVer]);h[0].bSupported=!isNaN(a)&&0<(a&1)?!0:!1;h[1].bSupported=!isNaN(b)&&0<(b&1)?!0:!1;h[2].bSupported=!isNaN(d)&&0<(d&1)?!0:!1;for(a=0;a<h.length;a++)b=h[a].bSupported,ra+=b?1:0,b||(h[a].domName.style.display="none",id(h[a].domName.id+"Tips").style.display="none",h[a].uciName==sa&&(id(h[0].domName.id+"Tips").innerHTML=label.peopleDetectionEnhance));0==ra&&(id("aiEnhance").style.display=
"none")}}var c=uciMotionDetection.fileName,r=uciMotionDetection.secName.motionDet,l=uciMotionDetection.secName.motionNotifList,v=uciMotionDetection.secName.soundAlarmInfo,H=uciMotionDetection.secType.regionInfo,Fa=uciMotionDetection.optName.enabled,Ea=uciMotionDetection.optName.digital_sensitivity,za=uciMotionDetection.optName.xCoor,Aa=uciMotionDetection.optName.yCoor,Ba=uciMotionDetection.optName.width,Ca=uciMotionDetection.optName.height,Pa=uciMotionDetection.optName.emailEnabled,Ma=uciMotionDetection.optName.AO1Enabled,
Ia=uciMotionDetection.optName.recordEnabled,Ka=uciMotionDetection.optName.light_alarm_enabled,La=uciMotionDetection.optName.sound_alarm_enabled,fa=uciMotionDetection.optName.ftpEnabled,Ra=uciMotionDetection.optName.captureEnabled,Ga=uciMotionDetection.optName.msgPushEnabled,g=uciMotionDetection.optValue.enableVal.on,k=uciMotionDetection.optValue.enableVal.off,t=uciMotionDetection.actionName.addMdRegions,db=uciMotionDetection.optName.peopleEnabled,sa=uciMotionDetection.optName.vehicleEnabled,eb=uciMotionDetection.optName.nonVehicleEnabled,
Fb=uciAlarmAudioTypeCapability.optName.eventSeparateAudioAlarmSupport,Gb=uciAlarmAudioTypeCapability.optName.usrDefAudioAlarmSupport,Hb=uciAlarmAudioTypeCapability.optName.usrDefAudioAlarmMaxNum,qa=uciAlarmAudioTypeCapability.optName.alarmType;parseInt($.moduleSpec[uciFunction.optName.msgAlarm]);var L,B,x,z,C,A,u,E,y,ea=isNaN(parseInt($.moduleSpec.alarm_out_num))?1:parseInt($.moduleSpec.alarm_out_num),V=!1,F=!1,R,S,W,X=[],G=0,fb=!0,e,gb,hb,K,ub=id("motionSwitchDes"),f,ka,J,da=!1,ma=!0,Qa=id("sendEmail"),
Na=id("triggerAlarmDevice"),Ja=id("triggerRecord"),N=id("triggerSound"),M=id("triggerLight"),Oa=id("sendFtp"),O,wb=id("sendToFtpSwitchDes"),P=id("triggerCapture"),Ha=id("msgPush"),bb=id("handleWay"),ta=uciDeviceInfo.fileName,ca=14,I=id("ptzToggleCon"),Y=$(".ptzBorderConfCon"),ua=!0,aa=id("popContentError"),ya=id("popContentCorrect"),pb=id("name"),Z,Jb=id("peopleDetectionEnhanceCheck"),Kb=id("vehicleDetectionEnhanceCheck"),Lb=id("nonVehicleDetectionEnhanceCheck"),Mb=k,Nb=k,Ob=k,v=uciMotionDetection.secName.soundAlarmInfo,
Sa=uciMotionDetection.optName.soundAlarmType,Ta=uciMotionDetection.optName.soundAlarmTimes,va=uciUsrDefAlarm.fileName,ib=uciUsrDefAlarm.secName.usrDefAudio,Pb=uciUsrDefAlarm.optName.id,wa=uciUsrDefAlarm.optName.name,pa=0,s=uciMsgAlarm.fileName,Ua=0,ha=0,Va=0,ia=0,T=uciPicturePlan.fileName,Wa=0,ja=0,ra=0,h=[{bSupported:!1,uciName:db,domName:Jb,aiEnhanceTypeValue:void 0,aiEnhanceTypeValueDefault:Mb},{bSupported:!1,uciName:sa,domName:Kb,aiEnhanceTypeValue:void 0,aiEnhanceTypeValueDefault:Nb},{bSupported:!1,
uciName:eb,domName:Lb,aiEnhanceTypeValue:void 0,aiEnhanceTypeValueDefault:Ob}],jb=$.moduleSpec[uciFunction.optName.new_version_capability_list],kb=jb&&0<=$.inArray(uciImage.fileName,jb),lb=!1,mb=!1,nb=null,D=!1,ga=uciMotionDetection.secName.armingSchedule,U=[label.Mon,label.Tue,label.Wen,label.Thu,label.Fri,label.Sta,label.Sun],Ya=[uciMotionDetection.optName.mon,uciMotionDetection.optName.tue,uciMotionDetection.optName.wed,uciMotionDetection.optName.thu,uciMotionDetection.optName.fri,uciMotionDetection.optName.sat,
uciMotionDetection.optName.sun],n,la=!0,$a=id("timeSchedule"),Q=!1;(function(){Db();Eb();Ib();1==parseInt($.detectionCapability[uciDetectionCapability.secName.motionDetectionCapability])&&Cb();var a={};e=0;a[c]={};a[c][NAME]=[r];L&&a[c][NAME].push(l);!0==F&&a[c][NAME].push(v);a[c][KEY_TABLE]=[H];!0==V&&(a[va]={},a[va][KEY_TABLE]=[ib]);a[ta]={};a[ta][NAME]=uciDeviceInfo.secName.info;$.moduleSpec[uciFunction.optName.msgAlarmSeparateList]&&(a[s]={},a[s][NAME]=uciMsgAlarm.secName.chn1MsgAlarmInfo);kb&&
(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]);$.moduleSpec[uciFunction.optName.corridorMode]&&(a[uciImage.fileName]={},a[uciImage.fileName][NAME]=uciImage.secName.para_switch);var b="vedioActiveX";$.BSHOWPTZCTRL?
(new PtzControl("ptzControlCon",1),b="ptzVideoActiveX vedioActiveX",$("ul.lineConfMenu").addClass("havePtz"),$.moduleSpec[uciFunction.optName.corridorMode]&&(id("videoPluginCon").style.width="496px")):($("#ptzToggleCon").hide(),$("#ptzControlCon").hide());f=new Plugin({id:"videoPluginCon",className:b,readyHd:function(a){if(PLUGIN_STATE_ON==a&&!0==fb){fb=!1;G=1;f.setMoveDetState(2);f.setRectArrLen(ca);a=formatTableData(gb);for(var b in a){var c=a[b];f.showMoveDetInfo({x:c[za],y:c[Aa],width:c[Ba],height:c[Ca]})}f.setOSDStatus(hb.state);
mb&&setDomSize($(".vedioActiveX")[0],nb)}else G=0}});ka=new DragLine({id:"sensitivityDragLine",name:label.sensitivity,cb:xb,lowerBound:1});!0==Q?(n=new PlanSet("recPlanGrid",{curType:1}),zb()):$("#armingScheduleDiv").addClass("hideShowCon");$("ul.lineConfMenu li.snapPicBtn").hide();$("ul.lineConfMenu li.snapPicBtn").click(function(a){ob()});id("closeTip").onclick=function(){$("#popNote").animate({bottom:"-150px"},void 0,void 0,function(){id("popNote").style.display="none"})};I.onclick=function(){ua?
(Y.hide(),ua=!1,$(I).removeClass("ptzToggleShowIcon").addClass("ptzToggleHideIcon"),I.style.left="757px",$("ul.lineConfMenu").css("width","702px"),f.setSize({height:"396px",width:"704px"}),f.checkInstalled()||(Y.css("width","0px"),f.showInstalledTip())):(Y.show(),ua=!0,I.style.left="549px",$(I).removeClass("ptzToggleHideIcon").addClass("ptzToggleShowIcon"),$("ul.lineConfMenu").css("width","494px"),f.setSize({height:"372px",width:"496px"}),f.checkInstalled()||(Y.css("width","204px"),f.showInstalledTip()))};
$.query(a,function(a){if(!0==q(a[ERR_CODE])){K=a[c][r][Fa];e=K==g?1:0;hb=new Switch("motionSwitch",e,tb);gb=a[c][H];J=a[c][r][Ea];ka.setValue(J);$.moduleSpec[uciFunction.optName.picturePlanCapability]&&1==parseInt(a[uciPicturePlanCapability.fileName][uciPicturePlanCapability.secName.capability][uciPicturePlanCapability.optName.ftpDependOnCapture])&&(D=!0);if(L){z&&(e=a[c][l][Ga]==g,changeCheckInput(Ha,e));A&&(e=a[c][l][Ia]==g,changeCheckInput(Ja,e));B&&(e=a[c][l][Ka]==g,changeCheckInput(M,e),Va=1,
ia=a[s][uciMsgAlarm.secName.chn1MsgAlarmInfo][uciMsgAlarm.optName.lightEnabled]==g?1:0);x&&(e=a[c][l][La]==g,changeCheckInput(N,e),Ua=1,ha=a[s][uciMsgAlarm.secName.chn1MsgAlarmInfo][uciMsgAlarm.optName.soundEnabled]==g?1:0);if(C&&(e=a[c][l][Ma]==g,changeCheckInput(Na,e),1<ea)){for(var b=e,k=2;k<=ea;k++)aoEnableOpt="AO"+k.toString()+"_enabled",e=a[c][l][aoEnableOpt]==g,changeCheckInput(id("triggerAlarmDevice"+k.toString()),e),b=b&&e;b&&changeCheckInput("triggerAOAll",!0)}E&&(e=a[c][l][Pa]==g,changeCheckInput(Qa,
e));u&&(D&&y?($("#sendToFtpLine").hide(),O=a[c][l][fa],e=O==g?1:0,new Switch("sendToFtpSwitch",e,vb)):($("#sendToFtpSwitchCon").hide(),$("#sendToFtpLine").show(),$("#goToFtpConf").hide(),e=a[c][l][fa]==g,changeCheckInput(Oa,e)));y&&(e=a[c][l][Ra]==g,D&&u&&(e?$("#sendToFtpSwitchCon").show():$("#sendToFtpSwitchCon").hide()),changeCheckInput(P,e),$.moduleSpec[uciFunction.optName.captureEnable]&&(Wa=1,ja=a[T][uciPicturePlan.secName.eventConfig][uciPicturePlan.optName.enabled]==g?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]);for(i=0;i<h.length;i++)h[i].bSupported&&(e=g==a[c][r][h[i].uciName],changeCheckInput(h[i].domName,e),$.det_mutex_list&&(h[i].uciName==db&&0<=$.inArray(19,$.det_mutex_list[curIntelligentMode-
1][uciDetectionCapability.optName.unsupportedList])&&($(id("peopleDetectionEnhanceCheckTips")).addClass("disable"),e?$(h[i].domName).addClass("checkDisabled").removeClass("checkedDisabled"):$(h[i].domName).addClass("checkedDisabled").removeClass("checkDisabled"),h[i].domName.onclick=na),h[i].uciName==sa&&0<=$.inArray(20,$.det_mutex_list[curIntelligentMode-1][uciDetectionCapability.optName.unsupportedList])&&($(id("vehicleDetectionEnhanceCheckTips")).addClass("disable"),e?$(h[i].domName).addClass("checkDisabled").removeClass("checkedDisabled"):
$(h[i].domName).addClass("checkedDisabled").removeClass("checkDisabled"),h[i].domName.onclick=na),h[i].uciName==eb&&0<=$.inArray(22,$.det_mutex_list[curIntelligentMode-1][uciDetectionCapability.optName.unsupportedList])&&($(id("nonVehicleDetectionEnhanceCheckTips")).addClass("disable"),e?$(h[i].domName).addClass("checkDisabled").removeClass("checkedDisabled"):$(h[i].domName).addClass("checkedDisabled").removeClass("checkDisabled"),h[i].domName.onclick=na)));ca=a[ta][uciDeviceInfo.secName.info].md_reg_num;
if(!0==F){if(!0==V){var b={},b=a[va][ib],b=formatTableData(b),n;for(n in b)k=b[n],k[wa]||(k[wa]=label.usrdefSound),X.push({str:k[wa],value:k[Pb]});uploadSoundFile("fileName",f,pa,W)}selectInit("soundTypeSelect",X,0,cb,"18");R=a[c][v][Sa];S=a[c][v][Ta];soundTypeSelect.changeSel(R);soundTimesSelect.changeSel(S)}if($.moduleSpec[uciFunction.optName.corridorMode]){var t=a[uciImage.fileName][uciImage.secName.para_switch][uciImage.optName.rotate_type];n={};n[uciVideo.fileName]={};n[uciVideo.fileName][NAME]=
uciVideo.secName.main;$.query(n,function(a){!0==q(a[ERR_CODE])&&(a=a[uciVideo.fileName][uciVideo.secName.main],a=a.resolution.split("*")[1]/a.resolution.split("*")[0],t==uciImage.optValue.rotOff?Xa():Xa(a))})}kb?1==parseInt(a[uciImageCapability.fileName][uciImageCapability.secType.capability][uciImageCapability.optName.stitch])?(lb=!0,a={},a[uciImageCapability.fileName]={},a[uciImageCapability.fileName][NAME]=[],a[uciImageCapability.fileName][NAME].push(uciImageCapability.optName.stitch),$.query(a,
function(a){!0==q(a[ERR_CODE])&&lb&&(mb=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==q(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");nb={height:b,paddingTop:a,paddingBottom:a};oa()}}))})):oa():oa()}});initCheckInput("showInfo",function(a,b){a||0!=b||showAlert(label.confirmRecordOff)});initCheckInput("capture",function(a){D&&u&&(a?$("#sendToFtpSwitchCon").show():$("#sendToFtpSwitchCon").hide())});id("save").onclick=Da;id("clear").onclick=sb;id("del").onclick=rb;!0==Q&&(id("clearAll").onclick=function(a){n.reset()},id("armingScheduleArrow").onclick=Za,id("armingScheduleArrowText").onclick=
Za);id("handleArrowText").onclick=ab;id("handleArrow").onclick=ab;id("goToFtpConf").onclick=function(){showConfirmC(label.cue,label.saveTips,function(a){!0==a?Da(function(){gFtpSwitchPageSign=1;unloadLogin()}):(gFtpSwitchPageSign=1,unloadLogin())},btn.unsave,btn.save,!1)}})()}init();
</script><style type="text/css">div.ptzToggle{height:64px;width:12px;position:absolute;cursor:pointer;top:268px;left:549px;z-index:1}ul.Line li.lineE1{width:100%;padding-top:5px}ul.Line li.lineE2{width:100%;margin-bottom:24px}div.handleWay ul.Line label.desA{color:#333;margin-right:16px}ul.line label.des{display:inline;vertical-align:middle;margin-right:16px}ul.Line label.desM{font-size:12px;color:#666;line-height:12px}div.handleWay ul.Line label.des{display:inline;vertical-align:middle}ul.line label.disable{color:#999}div.handleWay ul.Line label.sendFtpDes{display:inline-block;margin-left:4px;margin-right:4px;width:140px}ul.Line label.desG{font-size:12px;color:#666;margin-top:-20px}ul.lineBottom{margin-bottom:20px}input.goToFtpConf{margin-left:24px;padding:0 12px}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}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}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:174px;margin-right:16px}input.btnRename{border-radius:2px;font-size:13px;width:83px;height:26px;margin-top:7px;margin-left:65px;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}.hideShowCon{display:none}</style>