



<div class="detailCon">
    <div style="position:relative;*z-index:1;">
        <div id="hidebg"></div>
    </div>
    <div id="hideVoiceUp"></div>
    <div id="hideVoiceDown"></div>
    <ul class="line lineH">
        <li class="line lineD">
            <i name="Enabled" id="aaInputEnabled" value="0"></i>
            <label class="des desA subTitle">{%label.audioAbnormal%}</label>
            <label class="des desLogType">{%label.audioAbnormalInputTip%}</label>
        </li>
        <li class="line lineD">
            <i name="Enabled" id="voiceupEnabled" value="1"></i>
            <label class="des desA subTitle">{%label.voiceRise%}</label>
        </li>
        <li class="dragLine lineD">
            <div id="sensitivityDragLine1" class="ipcDragLineDiv"></div>
        </li>
        <ul>
            <li class="line lineD ">
                <div id="threshDragLine" class="ipcDragLineDiv ipcDragLineLogDiv"></div>
                <label class="des desLogType">{%label.threshTip%}</label>
            </li>
        </ul>
        <li class="line lineD">
            <i name="Enabled" id="voicedownEnabled" value="2"></i>
            <label class="des desA subTitle">{%label.voiceDown%}</label>
        </li>
        <li class="dragLine lineD">
            <div id="sensitivityDragLine2" class="ipcDragLineDiv"></div>
        </li>
    </ul>
    <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.audioAbnormalTips%}</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="msgPushLine">
                    <i name="showInfo" id="triggerMsgPush" class="chObj" value="1"></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="2"></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="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="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 z(a,e){var c="";switch(parseInt(a)){case ENONE:return!0;case IPCSMDENABLEERR:c=errStr.IPCParamInvalid;break;case IPCUMGUESTNAUTH:c=errStr.invPermissionDenied;break;case IPCNOTIFYEMAILENERR:case IPCNOTIFYALARMENERR:case IPCNOTIFYRECORDENERR:c=errStr.IPCHandleInalid;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,e);return!1}function s(a){return null!=id(a).getAttribute("checked")&&"true"==id(a).getAttribute("checked").toString()?!0:!1}function R(){if(0!=t){var a=document.getElementById("hideVoiceUp"),e=document.getElementById("hideVoiceDown");s("voiceupEnabled")?a.style.display="none":(a.style.display="block",a.style.height=getoffset(id("voicedownEnabled")).top-getoffset(id("sensitivityDragLine1")).top+"px",a.style.top=getoffset(id("sensitivityDragLine1")).top-
getoffset(id("confCon")).top+"px");s("voicedownEnabled")?e.style.display="none":(e.style.display="block",e.style.height=getoffset(id("armingScheduleArrow")).top-getoffset(id("sensitivityDragLine2")).top+"px",e.style.top=getoffset(id("sensitivityDragLine2")).top-getoffset(id("confCon")).top+"px")}}function Ha(a){var e,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 b=0;b<a.length;b++){e=a[b];var f=e.split(/[-]/,2);e=parseInt(f[0],10);f=parseInt(f[1],
10);0==e&&0==f?c.push(n._getString(e,f,0)):c.push(n._getString(e,f,1))}return c}function Ia(){var a,e=n.getTimeVal(),b={};for(a=0;a<A.length;a++){var f=b,g=ha[a],p;p=e[A[a]];var h=void 0,d=void 0,k=void 0,l=void 0,m=void 0,m=l=void 0;if(void 0==p)p="";else{void 0==h&&(h=6);d="[";if(1>p.length)d+='"0000-0000:0"';else for(k=0;k<p.length&&k<h;k++)l=p[k].toString(),m=l.split(/[-,:]/,3),l=parseInt(m[0],10),m=parseInt(m[1],10),l=n._getStringWithoutType(l,m),0<k&&(d+=","),d+='"'+l+'"';p=d+="]"}f[g]=p}return b}
function Ja(a){B=a;S.setValue(a);!0==checkNum(a)&&!0==checkNumRange(parseInt(a),100,1)||showNote("sensitivityDragLine1DragLineInput",errStr.sensitivityErr)}function Ka(a){C=a;T.setValue(a);!0==checkNum(a)&&!0==checkNumRange(parseInt(a),100,1)||showNote("sensitivityDragLine2DragLineInput",errStr.sensitivityErr)}function La(){if(U)return!1;var a={};n.getTimeVal();a[b]={};a[b][D]={};a[b][E]={};a[b][k]={};a[b][m]={};a[b][F]={};a[b][h]={};a[b][q]={};a[b][D][ia]=t;G=s("aaInputEnabled")?f:d;a[b][E][ja]=
G;H=s("voiceupEnabled")?f:d;a[b][k][ka]=H;I=s("voicedownEnabled")?f:d;a[b][m][la]=I;a[b][k][ma]=J;a[b][k][V]=B;a[b][m][W]=C;if(K&&(a[b][h]={},u&&(a[b][h][na]="true"==oa.getAttribute("checked")?f:d),v&&(a[b][h][pa]="true"==qa.getAttribute("checked")?f:d),w&&(a[b][h][ra]="true"==L.getAttribute("checked")?f:d),r&&(a[b][h][sa]="true"==M.getAttribute("checked")?f:d),x)){a[b][h][ta]="true"==ua.getAttribute("checked")?f:d;for(var e=2;e<=X;e++)a[b][h]["AO"+e.toString()+"_enabled"]="true"==id("triggerAlarmOut"+
e.toString()).getAttribute("checked")?f:d}a[b][F]=Ia();!0==y&&(a[b][q]={},a[b][q][va]=N,a[b][q][wa]=O);var c=xa&&!Y&&"true"==M.getAttribute("checked"),g=ya&&!Z&&"true"==L.getAttribute("checked");c||g?showConfirmIpc(label.confirmAlarmDeviceOnTip,function(e){!0==e?(a[l]={},a[l][uciMsgAlarm.secName.chn1MsgAlarmInfo]={},c&&(a[l][uciMsgAlarm.secName.chn1MsgAlarmInfo][uciMsgAlarm.optName.soundEnabled]=uciMsgAlarm.optValue.enableVal.on),g&&(a[l][uciMsgAlarm.secName.chn1MsgAlarmInfo][uciMsgAlarm.optName.lightEnabled]=
uciMsgAlarm.optValue.enableVal.on),showToast(),$.modify(a,function(a){!0==z(a[ERR_CODE])&&(c&&(Y=1),g&&(Z=1),showToast("success"))})):(c&&changeCheckInput(M,!1),g&&changeCheckInput(L,!1))}):(showToast(),$.modify(a,function(a){!0==z(a[ERR_CODE])&&showToast("success")}))}function Ma(){var a,e={};e[b]={};e[b][NAME]=F;$.query(e,function(e){if(!0==z(e[ERR_CODE]))for(n.reset(),a=0;a<A.length;a++)n.setTimeVal(A[a],Ha(e[b][F][ha[a]]))})}function za(){aa?(id("armingScheduleArrow").className="arrowDown",id("armingScheduleArrow").title=
label.slideDown,id("armingScheduleArrowText").innerHTML=label.slideDown,Aa.style.display="none",aa=!1):(id("armingScheduleArrow").className="arrowUp",id("armingScheduleArrow").title=label.slideUp,id("armingScheduleArrowText").innerHTML=label.slideUp,Aa.style.display="",aa=!0)}function Ba(){ba?(id("handleArrow").className="arrowDown",id("handleArrow").title=label.slideDown,id("handleArrowText").innerHTML=label.slideDown,Ca.style.display="none",ba=!1):(id("handleArrow").className="arrowUp",id("handleArrow").title=
label.slideUp,id("handleArrowText").innerHTML=label.slideUp,Ca.style.display="",ba=!0)}function Da(a){Na.innerHTML=1==a?btn.enableN:btn.close;t=1==a?f:d;var e=document.getElementById("hidebg");if(0==a)if(e.style.display="block",a=getoffset(id("save")).top-getoffset(id("aaInputEnabled")).top,0==$("#peCon").length||"none"==$("#peCon").css("display"))e.style.height=a+"px";else{var b=getoffset(id("peCon")).top-getoffset(id("aaInputEnabled")).top+id("peCon").offsetHeight;e.style.height=(a>b?a:b)+"px"}else e.style.display=
"none"}function Oa(a){ca.setValue(a);J=a;!0==checkNum(a)&&!0==checkNumRange(parseInt(a),100,1)?U=!1:(showNote("threshDragLineDragLineInput",errStr.ipcAbEnErr),U=!0)}function Pa(){g=0;var a={};a[b]={};a[b][NAME]=[D,E,k,m];K&&a[b][NAME].push(h);y&&a[b][NAME].push(q);!0==P&&(a[da]={},a[da][KEY_TABLE]=[Ea]);$.moduleSpec[uciFunction.optName.msgAlarmSeparateList]&&(a[l]={},a[l][NAME]=uciMsgAlarm.secName.chn1MsgAlarmInfo);$.query(a,function(a){if(!0==z(a[ERR_CODE]))if(!0==$.local)new Switch("intelligentDetectionSwitch",
0,Da);else{t=a[b][D][ia];g=t==f?1:0;new Switch("intelligentDetectionSwitch",g,Da);G=a[b][E][ja];changeCheckInput(Qa,f==G?!0:!1);H=a[b][k][ka];changeCheckInput(Ra,f==H?!0:!1);I=a[b][m][la];changeCheckInput(Sa,f==I?!0:!1);J=a[b][k][ma];ca.setValue(J);R();B=null==a[b][k][V]?50:a[b][k][V];C=null==a[b][m][W]?50:a[b][m][W];S.setValue(B);T.setValue(C);if(K&&(u&&(g=a[b][h][na]==f,changeCheckInput(oa,g)),v&&(g=a[b][h][pa]==f,changeCheckInput(qa,g)),w&&(g=a[b][h][ra]==f,changeCheckInput(L,g),ya=1,Z=a[l][uciMsgAlarm.secName.chn1MsgAlarmInfo][uciMsgAlarm.optName.lightEnabled]==
f?1:0),r&&(g=a[b][h][sa]==f,changeCheckInput(M,g),xa=1,Y=a[l][uciMsgAlarm.secName.chn1MsgAlarmInfo][uciMsgAlarm.optName.soundEnabled]==f?1:0),x&&(g=a[b][h][ta]==f,changeCheckInput(ua,g),1<X))){for(var c=g,d=2;d<=X;d++)aoEnableOpt="AO"+d.toString()+"_enabled",g=a[b][h][aoEnableOpt]==f,changeCheckInput(id("triggerAlarmOut"+d.toString()),g),c=c&&g;c&&changeCheckInput("triggerAOAll",!0)}if(!0==y){if(!0==P){var c={},c=a[da][Ea],c=formatTableData(c),n;for(n in c)d=c[n],d[ea]||(d[ea]=label.usrdefSound),
Q.push({str:d[ea],value:d[Ta]})}selectInit("soundTypeSelect",Q,0,Fa,"18");N=a[b][q][va];O=a[b][q][wa];soundTypeSelect.changeSel(N);soundTimesSelect.changeSel(O)}showDetailCon()}})}function Fa(a){N=a}function Ua(a){O=a}function Va(a,b){selectInit("soundTypeSelect",a,0,Fa,"18");id("soundTypeSelect").resetSel(b)}function Wa(){var a=uciLinkageCapability.optName.sound_alarm_capability,b=uciLinkageCapability.optName.msg_push_capability,c=uciLinkageCapability.optName.alarm_out_capability,f=uciLinkageCapability.optName.record_capability,
d=function(a){a=$.linkageCapability[a];return 16>a.length?!1:"1"==a[a.length-16]?!0:!1};w=d(uciLinkageCapability.optName.light_alarm_capability);r=d(a);u=d(b);x=d(c);v=d(f);(K=w||r||u||x||v)?(w||$("#triggerLightAlarm").parent().hide(),r||$("#triggerSoundAlarm").parent().hide(),u||$("#triggerMsgPush").parent().hide(),v||$("#triggerRecord").parent().hide(),x?InsertTriggerAlarmOut("triggerAlarmOut"):$("#triggerAlarmOut").parent().hide()):id("handleWayDiv").style.display="none"}function Xa(){r&&$.audioAlarmCapability&&
(y=1==parseInt($.audioAlarmCapability[Ya])?!0:!1,P=1==parseInt($.audioAlarmCapability[Za])?!0:!1,fa=parseInt($.audioAlarmCapability[$a]),Ga=$.audioAlarmCapability[ga].length);if(!1==y)id("soundInfo").style.display="none";else{id("soundTypeSelect");id("soundTimesSelect");for(var a=[],e=[{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}],c=0;c<$.audioAlarmCapability[ga].length;c++){var d=parseInt($.audioAlarmCapability[ga][c]);
a.push(d);Q.push(e[d])}selectInit("soundTimesSelect",[{str:label.once,value:1},{str:label.twice,value:2},{str:label.threetimes,value:3},{str:label.fourtimes,value:4},{str:label.fivetimes,value:5}],1,Ua)}if(!1==P)id("setSoundAlarm").style.display="none";else{openSoundInfo("setSoundAlarm",Ga,fa,label.usrdefSound);closeSoundInfo("infoCloseTip",b,Q,Va);for(c=0;c<e.length;c++)0<=$.inArray(c,a)?(devSoundListen("testListen_"+c,c),devSoundFocus("devsound_"+c,c)):id("devsound_"+c).style.display="none";for(a=
0;a<fa;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 b=uciAudioException.fileName,D=uciAudioException.secName.detection,E=uciAudioException.secName.inputAbnormal,k=uciAudioException.secName.voiceRise,m=uciAudioException.secName.voiceDown,F=uciAudioException.secName.armingSchedule,
h=uciAudioException.secName.notifyList,q=uciAudioException.secName.soundAlarmInfo,ia=uciAudioException.optName.enabled,ja=uciAudioException.optName.inputAbnormalEnabled,ka=uciAudioException.optName.voiceupEnabled,V=uciAudioException.optName.voiceupSens,ma=uciAudioException.optName.thresh,la=uciAudioException.optName.voicedownEnabled,W=uciAudioException.optName.voicedownSens,ta=uciAudioException.optName.alarmEnabled,pa=uciAudioException.optName.recordEnabled,na=uciAudioException.optName.msgPushEnabled,
ra=uciAudioException.optName.lightAlarmEnabled,sa=uciAudioException.optName.soundAlarmEnabled,va=uciAudioException.optName.soundAlarmType,wa=uciAudioException.optName.soundAlarmTimes,f=uciAudioException.optValue.enableVal.on,d=uciAudioException.optValue.enableVal.off,Ya=uciAlarmAudioTypeCapability.optName.eventSeparateAudioAlarmSupport,Za=uciAlarmAudioTypeCapability.optName.usrDefAudioAlarmSupport,$a=uciAlarmAudioTypeCapability.optName.usrDefAudioAlarmMaxNum,ga=uciAlarmAudioTypeCapability.optName.alarmType,
da=uciUsrDefAlarm.fileName,Ea=uciUsrDefAlarm.secName.usrDefAudio,Ta=uciUsrDefAlarm.optName.id,ea=uciUsrDefAlarm.optName.name,l=uciMsgAlarm.fileName,xa=0,Y=0,ya=0,Z=0,K,w,r,u,x,v,X=isNaN(parseInt($.moduleSpec.alarm_out_num))?1:parseInt($.moduleSpec.alarm_out_num),P=!1,y=!1,N,O,fa,Q=[],Ga=0,t,g,G,H,J,ca,I,S,T,B,C,aa=!0,ba=!0,ua=id("triggerAlarmOut"),qa=id("triggerRecord"),oa=id("triggerMsgPush"),L=id("triggerLightAlarm"),M=id("triggerSoundAlarm"),U=!1,Na=id("intelligentDetectionSwitchDes"),Qa=id("aaInputEnabled"),
Ra=id("voiceupEnabled"),Sa=id("voicedownEnabled"),Aa=id("timeSchedule"),Ca=id("handleWay"),A=[label.Mon,label.Tue,label.Wen,label.Thu,label.Fri,label.Sta,label.Sun],ha=[uciAudioException.optName.mon,uciAudioException.optName.tue,uciAudioException.optName.wed,uciAudioException.optName.thu,uciAudioException.optName.fri,uciAudioException.optName.sat,uciAudioException.optName.sun],n;(function(){Wa();Xa();S=new DragLine({id:"sensitivityDragLine1",name:label.sensitivity,cb:Ja,lowerBound:1});T=new DragLine({id:"sensitivityDragLine2",
name:label.sensitivity,cb:Ka,lowerBound:1});ca=new DragLine({id:"threshDragLine",name:label.thresh,cb:Oa,lowerBound:1});initCheckInput("Enabled",function(a,b){R()});R();n=new PlanSet("recPlanGrid",{curType:1});Ma();Pa();id("save").onclick=La;id("armingScheduleArrow").onclick=za;id("armingScheduleArrowText").onclick=za;id("handleArrow").onclick=Ba;id("handleArrowText").onclick=Ba;id("clearAll").onclick=function(a){n.reset()}})();initCheckInput("showInfo",function(a,b){a||0!=b||showAlert(label.confirmRecordOff)})}
init();
</script><style type="text/css">li.dragLine{display:inline-block;font-size:0;vertical-align:middle;height:40px;margin-left:24px;width:300px}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:490px;_left:-30px;_top:-10px}div.peCon div.peConDetail div.peCol4{display:none}label.desLogType{margin-left:16px;line-height:28px;font-size:12px;color:#7a8599;width:200px;vertical-align:top!important}label.subTitle{margin-left:8px;font-color:#333}div.ipcDragLineLogDiv{margin-left:24px;display:inline-block;*display:inline}#threshDragLineDragLineLabel{width:112px;margin-left:24px;*margin-left:31px}#hideVoiceUp,#hideVoiceDown{position:absolute;background-color:#f5f6fa;left:0;width:100%;filter:alpha(opacity=50);opacity:.5;display:none;z-index:1000;*z-index:1}ul.line li.lineD{width:100%}ul.line label.desA{width:78px;margin-right:0}ul.line label.des{display:inline;vertical-align:middle}div.ipcDragLineDiv{width:auto;margin-left:7px}div.ipcDragLineDiv label{width:112px}ul.lineH{margin-bottom:17px}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}ul.Line label.desM{font-size:12px;color:#666;line-height:12px;float:right;width:620px;height:30px;line-height:30px}ul.line li.lineTypeSel{padding:5px 0;_height:32px;width:100%;margin-left:24px}ul.line label.desTypeSel{font-size:12px;color:#7a8999;width:53px;margin-left:4px;margin-right:17px;letter-spacing:1.1px;line-height:16px}input.btnConfSet{border-radius:2px;font-size:13px;width:82px;height:30px;margin-left: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}</style>