NETSurveillance WEB    var ShowTipFlag=2; if(navigator.userAgent.indexOf('IE') < 0) { var userAgent = navigator.userAgent, rMsie = /(msie\s|trident.*rv:)([\w.]+)/, rFirefox = /(firefox)\/([\w.]+)/, rOpera = /(opera).+version\/([\w.]+)/, rChrome = /(chrome)\/([\w.]+)/, rSafari = /version\/([\w.]+).*(safari)/; var browserMatch = uaMatch(userAgent.toLowerCase()); if(browserMatch.browser!="IE") { } } function reminder() { var nSel=$('langlist').selectedIndex; var cLanguage; switch(nSel) { case 0: cLanguage="English"; break; case 1: cLanguage="French"; break; case 2: cLanguage="Hungarian"; break; case 3: cLanguage="Italian"; break; case 4: cLanguage="Japanese"; break; case 5: cLanguage="Portugal"; break; case 6: cLanguage="Russian"; break; case 7: cLanguage="SimpChinese"; break; case 8: cLanguage="Spanish"; break; case 9: cLanguage="TradChinese"; break; case 10: cLanguage="German"; break; case 11: cLanguage="Poland"; break; case 12: cLanguage="Turkey"; break; case 13: cLanguage="Romanian"; break; case 14: cLanguage="Suomi"; break; case 15: cLanguage="Korean"; break; case 16: cLanguage="Farsi"; break; case 17: cLanguage="Thai"; break; case 18: cLanguage="Greek"; break; case 19: cLanguage="Vietnamese"; break; case 20: cLanguage="Brazilian"; break; case 21: cLanguage="Hebrew"; break; case 22: cLanguage="Arabic"; break; case 23: cLanguage="Bulgarian"; break; case 24: cLanguage="Czech"; break; default: cLanguage="English"; break; } if(2==ShowTipFlag) { switch(nSel) { case 0: cLanguage="English"; alert("Please set the encrypted problem!"); break; case 7: cLanguage="SimpChinese"; alert("请先设置密保问题!"); break; default: cLanguage="English"; alert("Please set the encrypted problem!"); break; } } else { location="reminder.html?cLanguage="+cLanguage; } } function uaMatch(ua) { var match = rMsie.exec(ua); if (match != null) { return { browser : "IE", version : match[2] || "0" }; } var match = rFirefox.exec(ua); if (match != null) { return { browser : match[1] || "", version : match[2] || "0" }; } var match = rOpera.exec(ua); if (match != null) { return { browser : match[1] || "", version : match[2] || "0" }; } var match = rChrome.exec(ua); if (match != null) { return { browser : match[1] || "", version : match[2] || "0" }; } var match = rSafari.exec(ua); if (match != null) { return { browser : match[2] || "", version : match[1] || "0" }; } if (match != null) { return { browser : "", version : "0" }; } }  //m.js var ipaddress =document.location.hostname; if (ipaddress == "") { ipaddress = "10.10.32.194"; //ipaddress = "10.10.35.107"; } var hostport=34567; var iLanguage=106; var numLanguage; var DownLoadAddr="";      var gExitChannel=new Array(); var gExitSubType=new Array(); var gexiti; var gcid=-1; var g_channelNum=4; var g_digitalChannel=0; var gsld; var gslda; var gsldb; var gsldc; var gsldd; var gfmu1=0; var gfmu2=0; var gfmu3=0; var g_bRecord=false; var g_bRealPlay=false; var g_bAudio=false; var g_bQS=false; var g_bSubQS1=true; var g_bSubQS2=true; var g_bSubQS3=true; var g_bSubQS4=false; var g_strSubQS4Name = ''; var g_bClose=false; var gHashCookie = new Hash.Cookie('NetSuveillanceWebCookie',{duration: 30}); var settings = { username:'', ocxlanguage:'' } var gca=0; var gcb=0; var gcc=0; var gcd=0; var gAutoPlayAll=false;    function sldtopos(sld,step){ sld.knob.setStyle('left', sld.toPosition(step)); } function setcolorsv(f,v){ switch (f) { case 1: gca=v; $('ska').title=v; break; case 2: gcb=v; $('skb').title=v; break; case 3: gcc=v; $('skc').title=v; break; case 4: gcd=v; $('skd').title=v; break; } } function getcolors(){ var colors=""; colors=ocx.GetColor(); var t= new Array(); if (colors !="") { t=colors.split(','); sldtopos(gslda,parseInt(t[0])); sldtopos(gsldb,parseInt(t[1])); sldtopos(gsldc,parseInt(t[2])); sldtopos(gsldd,parseInt(t[3])); setcolorsv(1,parseInt(t[0])); setcolorsv(2,parseInt(t[1])); setcolorsv(3,parseInt(t[2])); setcolorsv(4,parseInt(t[3])); } else//这里有待选中消息的传递 { sldtopos(gslda,parseInt(0)); sldtopos(gsldb,parseInt(0)); sldtopos(gsldc,parseInt(0)); sldtopos(gsldd,parseInt(0)); setcolorsv(1,parseInt(0)); setcolorsv(2,parseInt(0)); setcolorsv(3,parseInt(0)); setcolorsv(4,parseInt(0)); } } function txreset(step){ setcolorsv(1,step); setcolorsv(2,step); setcolorsv(3,step); setcolorsv(4,step); sldtopos(gslda,step); sldtopos(gsldb,step); sldtopos(gsldc,step); sldtopos(gsldd,step); setcolors(); } function setcolors(){ ocx.SetColor(0,gca,gcb,gcc,gcd); }    function tl(s){ var ret; ret=ocx.Translate(s); return ret; }//moving here for later function function ca(o,ch) { var oc; if ($(o).hasClass('cl1')){ if (ocx.StartRealPlay(ch,0,0)){ oc=$('c'+ch); oc.removeClass(oc.className); oc.addClass('cl2'); } } else{ if (ocx.StopPlayReal(ch)){ oc=$('c'+ch); oc.removeClass(oc.className); oc.addClass('cl1'); } } } function getcl(){ g_digitalChannel=ocx.GetDeviceState(1,0); var t= new Array(); var ts=new Array(); var titles=new Array(); titles[0]=tl('Desktop.LocalRecord'); titles[1]=tl('Desktop.ExtStream'); titles[2]=tl('Desktop.MainStream'); titles[3]=tl('Desktop.StartTalk'); titles[4]=tl('WebTitle.DigitalChannel'); var shtml=""; shtml+="
  • NetSurveillance
  • " var strsplita=String.fromCharCode(16); var strsplitb=String.fromCharCode(9); var sc; sc=ocx.GetChannelName(); if (sc !=""){ sc=sc.substr(0, sc.length-1); t=sc.split(strsplita); g_channelNum=t.length; var htmlReg = /<(\w+)>/; for (var i =0; i=(g_channelNum-g_digitalChannel)) // { // shtml+="
  • " + ts[1] + "
  • " // // // } // else { shtml+="
  • " + ts[1] + "
  • " // } } $("cl").innerHTML=shtml; var ls = $$('#cl li'); } //m_ocx.ChangeShowWndNum(); showExit(); showSelectNumb(); $('logoString').setText(logoString);// } function showSelectNumb() { switch(g_channelNum) { case 1: { $('xp2').style.display="none" ; $('xp3').style.display="none" ; $('xp4').style.display="none" ; $('xp5').style.display="none" ; $('xp6').style.display="none" ; $('xp7').style.display="none" ; break; } case 2: case 3: case 4: { $('xp3').style.display="none" ; $('xp4').style.display="none" ; $('xp5').style.display="none" ; $('xp6').style.display="none" ; $('xp7').style.display="none" ; break; } case 5: case 6: case 7: case 8: case 9: { $('xp4').style.display="none" ; $('xp5').style.display="none" ; $('xp6').style.display="none" ; $('xp7').style.display="none" ; break; } case 10: case 11: case 12: case 13: case 14: case 15: case 16: { $('xp5').style.display="none" ; $('xp6').style.display="none" ; $('xp7').style.display="none" ; break; } case 17: case 18: case 19: case 20: case 21: case 22: case 23: case 24: case 25: { $('xp6').style.display="none" ; $('xp7').style.display="none" ; break; } case 26: case 27: case 28: case 29: case 30: case 31: case 32: { $('xp7').style.display="none" ; break; } default: break; } } function showExit() { for(var j=1;j   function resizeL(){ $('username').setStyle('width',InputName.width); $('username').setStyle('line-height',InputName.height); $('password').setStyle('line-height',InputName.height); $('username').setStyle('height',InputName.height); $('username').setStyle('margin-top',InputName.marginTop); $('username').setStyle('margin-right',InputName.marginRight); $('userNameInput').setStyle('margin-top',SpanLoginName.marginTop); $('password').setStyle('width',InputPassword.width); $('password').setStyle('height',InputPassword.height); $('password').setStyle('margin-top',InputPassword.marginTop); if(0==ShowTipFlag) { $('reminder').style.display="none" ; $('password').setStyle('margin-right',InputPassword.marginRight); } else { $('reminder').style.display="" ; $('password').setStyle('margin-right',10); } $('loginBT').setStyle('width',LoginButton.width); $('loginBT').setStyle('height',LoginButton.height); if(1==LogoNumbers) { $("logo1").setStyle('background','none'); } wwidth =document.documentElement.clientWidth; wheight=document.documentElement.clientHeight; $('login').setStyle('width',wwidth); $('lm').setStyle('width',wwidth); if(wwidth<=417) { $('lmll').style.width=0; $('lmrr').style.width=0; $('lml').style.width=0; $('lmr').style.widht=0; $('lmm').setStyle('width',wwidth); $('ldl').setStyle('width',0) $('ldm').setStyle('width',wwidth); $('ldr').setStyle('width',0) } else if(wwidth<=1127) { $('lmll').style.width=0; $('lmrr').style.width=0; $('lml').setStyle('width',(wwidth-417)/2+(355-(wwidth-417)/2)); $('lml').setStyle('margin-left',-(355-(wwidth-417)/2)); $('lmr').setStyle('width',(wwidth-417)/2); $('lmm').setStyle('width',417); $('ldl').setStyle('width',((wwidth-417)/2)-1) $('ldm').setStyle('width',417); $('ldr').setStyle('width',(wwidth-(417+(wwidth-417)/2-1))); } else { $('lml').setStyle('margin-left',0); $('lml').setStyle('width',355); $('lmr').setStyle('width',355); $('lmm').setStyle('width',417); $('ldm').setStyle('width',417); var w=(wwidth-(417+355+355))/2; $('ldl').setStyle('width',w+355); $('ldr').setStyle('width',(wwidth-(417+355+w))); $('lmll').setStyle('width',w); $('lmrr').setStyle('width',w); } } var g_Radio=1.25;//1.78 function ChangeRadio() { if(g_Radio==1.25) { g_Radio=1.78; } else { g_Radio=1.25; } resizeM(); } function resizeM(){ var mbbw; var mbbh; var wwidth =document.documentElement.clientWidth; var wheight=document.documentElement.clientHeight; if (wheight<600) wheight=600; //ma31,dra24,mc13,pb26 mbbh=wheight-$(ma).getCoordinates().height-$(dra).getCoordinates().height-$(mc).getCoordinates().height-$(pb).getCoordinates().height-5-10; glhight=wheight-$(ma).getCoordinates().height-$(dra).getCoordinates().height-$(mc).getCoordinates().height+5-10; //mcup:349 grhight=wheight-349-$(ma).getCoordinates().height-$(dra).getCoordinates().height-$(mc).getCoordinates().height+5-10; mbbw=mbbh *64/51; mbbw=mbbh *g_Radio; $('mb').setStyle('width', mbbw+(145*2+8)); $('mbb').setStyle('width', mbbw);//yzt 0508 $('mbb').setStyle('height', mbbh); $('mbal').setStyle('height', glhight); $('yt3').setStyle('height', grhight); $('backGround').setStyle('height', wheight); $('dcl').setStyle('height', glhight); $('QS').setStyle('left', screen.width-170); $('ma').setStyle('width', $(mba).getCoordinates().left*2+$(mba).getCoordinates().width+$(mbb).getCoordinates().width+$(mbc).getCoordinates().width+3); $('mc').setStyle('width',$(ma).getCoordinates().width); if(screen.width<$(mbc).getCoordinates().right+170) { $('QS').setStyle('left', $(mbc).getCoordinates().right+10); } if(g_Radio==1.78|| !g_bSubQS1&& !g_bSubQS2 && !g_bSubQS3 && !g_bSubQS4) { $('QS').setStyle('left', screen.width-100); $('QS').style.display='none'; }else { if(g_bQS&&!g_bClose) { $('QS').style.display=''; } } if( g_bSubQS1&& g_bSubQS2 && g_bSubQS3 && g_bSubQS4 ) { $('QS').setStyle('top', screen.height-650); } else { $('QS').setStyle('top', screen.height-550); } if (window.ActiveXObject) { var ua = navigator.userAgent.toLowerCase(); var ie=ua.match(/msie ([\d.]+)/)[1] if(ie==6.0){ position_fixed(document.getElementById("QS"),wwidth-150,wheight-150); if(screen.width-wwidth>60) { $('QS').style.display='none'; }else { if(g_Radio==1.78 || !g_bSubQS1&& !g_bSubQS2 && !g_bSubQS3 && !g_bSubQS4) { $('QS').style.display='none'; }else { if(g_bQS&&!g_bClose ) { $('QS').style.display=''; } } } } } } function resize(){ resizeL(); resizeM(); } window.addEvent('resize',function(){ resize(); });    function ld() { gexiti=0; gExitChannel[0]=0; gExitSubType[0]=true; var username = $("username").value; var password = $("password").value; var ocxlanguage=$("langlist").selectedIndex+1; var r=ocx.Login(ipaddress,hostport,username,password); if(r==-11700) { } if (r>0){ getcl(); timeup(2); $('password').value=""; $('login').style.display="none"; $('m').style.top="0px"; resize(); settings['username'] = username; settings['ocxlanguage'] = ocxlanguage; savesetting(); if(gAutoPlayAll) { ocx.PlayAll(); } g_bClose=false; } } function timeup(sec) { sec--; if (sec == 0) { var shtml=""; shtml+="" shtml+="
    " shtml+="
    " shtml+="
    Android
    " shtml+="
    " shtml+="
    IOS
    " shtml+="
    " shtml+="
    Other
    " $("QQ").innerHTML=shtml; $('QSLogo').title=tl('DeviceManage.SerialID'); $('QSText').setText(tl('DeviceManage.SerialID')); $('QSLogo2').title=tl('DeviceManage.Android'); $('QSLogo3').title=tl('DeviceManage.IOS'); $('QSLogo4').title= g_strSubQS4Name; $('QSText42').setText(g_strSubQS4Name); if(!g_bSubQS1) { $('QSLogo').style.display='none' $('QSText1').style.display='none' } if(!g_bSubQS2) { $('QSLogo2').style.display='none' $('QSText2').style.display='none' } if(!g_bSubQS3) { $('QSLogo3').style.display='none' $('QSText3').style.display='none' } if(!g_bSubQS4) { $('QSLogo4').style.display='none' $('QSText4').style.display='none' } if( g_bSubQS1&& g_bSubQS2 && g_bSubQS3 && g_bSubQS4 ) { $('QS').setStyle('top', screen.height-650); } if(!g_bSubQS1&& !g_bSubQS2 && !g_bSubQS3 && !g_bSubQS4) { $('QS').style.display='none' } //$('QS').style.display=''; } else {setTimeout("timeup("+sec+")", 1000);} } function DownLoadLo() { window.open(DownLoadAddr); } function savesetting() { gHashCookie.extend(settings); } function getsetting(){ if (gHashCookie.get('username')) { settings['username'] = gHashCookie.get('username'); } else { settings['username'] = ''; } if (gHashCookie.get('ocxlanguage')) { settings['ocxlanguage'] = gHashCookie.get('ocxlanguage'); var cLanguage; switch(settings['ocxlanguage']) { case 1: cLanguage="English"; break; case 2: cLanguage="French"; break; case 3: cLanguage="Hungarian"; break; case 4: cLanguage="Italian"; break; case 5: cLanguage="Japanese"; break; case 6: cLanguage="Portugal"; break; case 7: cLanguage="Russian"; break; case 8: cLanguage="SimpChinese"; break; case 9: cLanguage="Spanish"; break; case 10: cLanguage="TradChinese"; break; case 11: cLanguage="German"; break; case 12: cLanguage="Poland"; break; case 13: cLanguage="Turkey"; break; case 14: cLanguage="Romanian"; break; case 15: cLanguage="Suomi"; break; case 16: cLanguage="Korean"; break; case 17: cLanguage="Farsi"; break; case 18: cLanguage="Thai"; break; case 19: cLanguage="Greek"; break; case 20: cLanguage="Vietnamese"; break; case 21: cLanguage="Brazilian"; break; case 22: cLanguage="Hebrew"; break; case 23: cLanguage="Arabic"; break; case 24: cLanguage="Bulgarian"; break; case 25: cLanguage="Czech"; break; default: cLanguage="English"; break; } ocx.SetSpecialParamEx2(2,cLanguage,0,0); inilanguage(); } else { settings['ocxlanguage'] = numLanguage+1; } $('username').setProperty('value', settings['username']); $('langlist').selectedIndex=settings['ocxlanguage']-1; } function inilanguage(){ $('DVRcolor').setText(tl('Title.ImageConfig')); $('mthf').setText(tl('WebTitle.Playback')); $('mtrz').setText(tl('WebTitle.Log')); $('mtkhdpz').setText(tl('WebTitle.LocalConfig')); $('mtsbpz').setText(tl('WebTitle.RemoteCfg')); $('mttc').setText(tl('WebTitle.LogOut')); $('xbc').setText(tl('WebPtz.Step')+'(1-8):'); if(iLanguage==109) { $('xbc').setText(tl('WebPtz.Step')); } $('xbb').setText(tl('WebPtz.Zoom')); $('xbj').setText(tl('WebPtz.Focus')); $('xgq').setText(tl('WebPtz.Iris')); $('mbcyzd').setText(tl('WebPtz.Preset')+':'); $('mbcdjxh').setText(tl('WebPtz.Cruise')+':'); $('taba1').setText(tl('WebTitle.ImageColorConfig')); $('xcz').setText(tl('WebBT.SetDefault')); $('xcqsb').setText(tl('WebBT.Reboot')); $('ratio').setText(tl('WebBT.ChangeRatio')); $('taba2').setText(tl('WebTitle.OtherSet')); $('userNameInput').setText(tl('WebInput.UserName')); $('passWordInput').setText(tl('WebInput.Password')); $('loginBT').setText(tl('WebBT.LogIn')); $('PlayAudio').setText(tl('Desktop.PlayMusic')); $('QSC').setText(tl('PlayBack.Close')); $('xp0').title=tl('Desktop.SplitFull'); $('xp1').title=tl('Desktop.Split1'); $('xp2').title=tl('Desktop.Split4'); $('xp3').title=tl('Desktop.Split9'); $('xp4').title=tl('Desktop.Split16'); $('xp5').title=tl('Desktop.Split25'); $('xp6').title=tl('Desktop.Split36'); $('startPlayAll').title=tl('WebBT.PlayAll'); $('stopPlayAll').title=tl('WebBT.StopPlayAll'); $('snap').title=tl('Desktop.Snapshot'); $('recordAll').title=tl('WebBT.RecordAll'); $('stopRecordAll').title=tl('WebBT.StopRecordAll'); $('Audio').title=tl('Desktop.Audio'); $('goPreset').title=tl('PtzControl.Goto'); $('addPreset').title=tl('PtzControl.AddPreset'); $('delPreset').title=tl('PtzControl.DelPreset'); $('goCruise').title=tl('PtzControl.Start'); $('stopCruise').title=tl('PtzControl.Stop'); $('editCruise').title=tl('PtzControl.Edit'); $('xtld').title=tl('ConfigEncode.Brightness'); $('xtdbd').title=tl('ConfigEncode.Contrast'); $('xtbhd').title=tl('ConfigEncode.Saturation'); $('xtsd').title=tl('ConfigEncode.Hue'); // $('Talk').title=tl('Desktop.StartTalk'); }    function showmu1(){ if (gfmu1==0) { gfmu1=1; $('smu1').style.display=""; } else{ closemu1(); } } function closemu1(){ gfmu1=0; $('smu1').style.display="none"; } function onmu1(v){ $('ps').value=v; closemu1(); }    function startPlayAll() { ocx.PlayAll(); } function StopPlayAll() { ocx.StopRealPlayAll(); } function recordAll() { if(ocx.startRecordAll("C:\\record")) { } } function stopRecordAll() { if(ocx.stopRecordAll()) { } } function openAudio() { if(g_bAudio) { if(ocx.CloseSound(1)) { g_bAudio=false; $('Audio').removeClass($('Audio').className); $('Audio').addClass('p102') } } else { if(ocx.OpenSound(-1)) { $('Audio').removeClass($('Audio').className); $('Audio').addClass('p10') g_bAudio=true; } } } function Ontalk() { if($('talking').hasClass('noT')) { if(ocx.StartTalk()) { $('talking').removeClass($('talking').className); $('talking').addClass('t'); $('talking').title=tl('Desktop.StopTalk'); } } else { if(ocx.StopTalk()) { $('talking').removeClass($('talking').className); $('talking').addClass('noT'); $('talking').title=tl('Desktop.StartTalk'); } } }    function subPlay(ob,channel) { if($(ob).hasClass('noSubPlay')) { if(ocx.StartRealPlay(channel,0,1)) { $(ob).removeClass($(ob).className); $(ob).addClass('subPlay'); getcolors(); } } else { if(ocx.StopPlayReal(channel)) { $(ob).removeClass($(ob).className); $(ob).addClass('noSubPlay'); } } } function record(ob,channel) { if($(ob).hasClass('noRecord')) { if(ocx.StartRecordByChannel(channel)) { $(ob).removeClass($(ob).className); $(ob).addClass('record'); } } else { if(ocx.StopRecordBychannel(channel)) { $(ob).removeClass($(ob).className); $(ob).addClass('noRecord'); } } } function Logout() { if(ocx.Logout()) { $('m').style.top="-10000px"; $('login').style.display=""; $('preSet').value=1; $('cruise').value=1; $('ps').value=5; $('QS').style.display='none'; g_bClose=true; $('langlist').disabled=false; } } function recordCtrl()//点击对应窗口录像(暂时没应用) { if(!g_bRecord) { if(ocx.StartRecord('C:\\record')) { $('record').removeClass($('record').className); $('record').addClass('p92') g_bRecord=true; } } else { if(ocx.StopRecord()) { $('record').removeClass($('record').className); $('record').addClass('p9') g_bRecord=false; } } } function StopRealPlay() //根据当前窗口关闭播放(暂时没应用) { if(ocx.StopRealPlay()) { $('stop').removeClass($('stop').className) $('stop').addClass('p7') } }    if (bIsPlay) { $('PlayAudio').style.display=''; }else { $('PlayAudio').style.display="none"; }   var tmpDate = new Date(); var year= tmpDate.getFullYear();   var ts=new Array(); var t= new Array(); var strsplita=String.fromCharCode(16); var strsplitb=String.fromCharCode(9); var sc; sc=ocx.GetChannelName(); if (sc !=""){ sc=sc.substr(0, sc.length-1); t=sc.split(strsplita); for (var i =0; i  if (bHide==true) { $('QS').style.display='none'; g_bQS=false; }else { $('QS').style.display=''; g_bQS=true; }   if(bShow1) { // $('QSLogo').style.display= ''; g_bSubQS1 = true; }else { //$('QSLogo').style.display='none'; g_bSubQS1 = false; } if(bShow2) { //$('QSLogo2').style.display= ''; g_bSubQS2 = true; }else { //$('QSLogo2').style.display='none'; g_bSubQS2 = false; } if(bShow3) { //$('QSLogo3').style.display= ''; g_bSubQS3 = true; }else { //$('QSLogo3').style.display='none'; g_bSubQS3 = false; } if(bShow4) { //$('QSLogo4').style.display= ''; g_bSubQS4 = true; }else { //$('QSLogo4').style.display='none'; g_bSubQS4 = false; } g_strSubQS4Name = name4;   var tempPlay="c"+(channel).toString(); if($(tempPlay).hasClass('cl2')) { $(tempPlay).removeClass($(tempPlay).className); $(tempPlay).addClass('cl1'); } var tempSubPlay="subPlay"+(channel).toString(); $(tempSubPlay).removeClass($(tempSubPlay).className); $(tempSubPlay).addClass('subPlay'); getcolors();   $('langlist').disabled=true;   numLanguage=0;   $('menu').removeClass($('menu').className); $('menu').addClass('PositionStop');   $('menu').removeClass($('menu').className); $('menu').addClass('PositionStart');   if (1==nStatus) { var tempSubPlay="subPlay"+(channel).toString(); $(tempSubPlay).removeClass($(tempSubPlay).className); $(tempSubPlay).addClass('forbitsubPlay'); var tempRecord="re"+(channel).toString(); $(tempRecord).removeClass($(tempRecord).className); $(tempRecord).addClass("forbitRecord"); var tempPlay="c"+(channel).toString(); $(tempPlay).removeClass($(tempPlay).className); $(tempPlay).addClass("forbitPlay"); } if (0==nStatus) { var tempSubPlay="subPlay"+(channel).toString(); $(tempSubPlay).removeClass($(tempSubPlay).className); $(tempSubPlay).addClass('noSubPlay'); var tempRecord="re"+(channel).toString(); $(tempRecord).removeClass($(tempRecord).className); $(tempRecord).addClass("noRecord"); var tempPlay="c"+(channel).toString(); $(tempPlay).removeClass($(tempPlay).className); $(tempPlay).addClass("cl1"); } if (2==nStatus) { var tempPlay="c"+(channel).toString(); $(tempPlay).removeClass($(tempPlay).className); $(tempPlay).addClass("cl2"); } if (3==nStatus) { var tempPlay="subPlay"+(channel).toString(); $(tempPlay).removeClass($(tempPlay).className); $(tempPlay).addClass("noSubPlay"); } if (4==nStatus) { var tempPlay="subPlay"+(channel).toString(); $(tempPlay).removeClass($(tempPlay).className); $(tempPlay).addClass("subPlay"); } if (5==nStatus) { var tempPlay="re"+(channel).toString(); $(tempPlay).removeClass($(tempPlay).className); $(tempPlay).addClass("record"); } if (6==nStatus) { var tempPlay="re"+(channel).toString(); $(tempPlay).removeClass($(tempPlay).className); $(tempPlay).addClass("noRecord"); } getcolors();  //某个通道打开,比如报警 // if(channel //开始播放上回退出视频 gexiti++; gExitChannel[gexiti]=channel; if (bSub==true){ gExitSubType[gexiti]=true } else { gExitSubType[gexiti]=false; } getcolors();  //右键退出(退出全屏) ocx.Fullscreen(false);  //停止一个通道的播放(图标变色) var tempPlay="c"+(lChannel).toString(); var tempRecord="re"+(lChannel).toString(); $(tempPlay).removeClass($(tempPlay).className); $(tempPlay).addClass('cl1'); $(tempRecord).removeClass($(tempRecord).className); $(tempRecord).addClass('noRecord'); // if(lChannel //选中一个窗口(翻译当前窗口的录像,和播放开关状态) if(bRealPlay==true) { } { } //getcolors(); //获取颜色值  //全通道录像,播放开关,(子码播放用到,record两个变量) if(bPlay) { if(bRecord)//借用于子码流播放 { for(var j=0;j=g_channelNum-g_digitalChannel) // continue; var tempSubPlay="subPlay"+(j).toString(); $(tempSubPlay).removeClass($(tempSubPlay).className); $(tempSubPlay).addClass('noSubPlay'); } } else if(bRecord) { for(var j=0;j //选择窗口是否有播放声音 getcolors(); //获取颜色值 if(bs) { g_bAudio=true; if($('Audio').hasClass('p102')) { $('Audio').removeClass($('Audio').className) $('Audio').addClass('p10') } } else { g_bAudio=false; if($('Audio').hasClass('p10')) { $('Audio').removeClass($('Audio').className) $('Audio').addClass('p102') } }   $('talking').removeClass($('talking').className); $('talking').addClass('noT'); $('talking').title=tl('Desktop.StartTalk');//关闭对讲 for(var j=0;j  if(bPlay) { gAutoPlayAll=true; } else { gAutoPlayAll=false; }   if(nType==1) { g_Radio=1.78; resizeM(); }       window.addEvent('domready',function(){ if(g_whitePage) { return; } //拖动 var container = $('mb'); var drop = $('drb'); var mba=$('mba'); var mbb=$('mbb'); var mbc=$('mbc'); var dropFx = drop.effect('opacity', {wait: false}); // wait is needed so that to toggle the effect, var bedra= $('dra'); var bedrc= $('drc'); bedra.addEvent('mousedown', function(e) { e = new Event(e).stop(); var clone = this.clone() .setStyles(this.getCoordinates()) // this returns an object with left/top/bottom/right, so its perfect .setStyles({'opacity': 0.7, 'position': 'absolute'}) .addEvent('emptydrop', function() {this.remove();drop.removeEvents();}) .inject(document.body); drop.addEvents({ 'drop': function() { drop.removeEvents(); clone.remove(); dropFx.start('1'); if (mbc.getStyle('left') !='0px') { mbc.setStyle('left','0'); mbc.injectBefore(mba); mbb.injectBefore(mba); } else{ mbc.setStyle('left','120'); mba.injectBefore(mbc); mbb.injectBefore(mbc); } }, 'over': function() { dropFx.start('0.7'); }, 'leave': function() { dropFx.start('1'); } }); var drag = clone.makeDraggable({ 'container':container, 'droppables': [drop] }); // this returns the dragged element drag.start(e); // start the event manual }); bedrc.addEvent('mousedown', function(e) { e = new Event(e).stop(); var clone = this.clone() .setStyles(this.getCoordinates()) // this returns an object with left/top/bottom/right, so its perfect .setStyles({'opacity': 0.7, 'position': 'absolute'}) .addEvent('emptydrop', function() {this.remove();drop.removeEvents();}) .inject(document.body); drop.addEvents({ 'drop': function() { drop.removeEvents(); clone.remove(); dropFx.start('1'); if (mbc.getStyle('left') !='0px') { mbc.setStyle('left','0'); mbc.injectBefore(mba); mbb.injectBefore(mba); } else{ mbc.setStyle('left','120'); mba.injectBefore(mbc); mbb.injectBefore(mbc); } }, 'over': function() { dropFx.start('0.7'); }, 'leave': function() { dropFx.start('1'); } }); var drag = clone.makeDraggable({ 'container':container, 'droppables': [drop] }); // this returns the dragged element drag.start(e); // start the event manual }); //颜色滑块 gslda = new Slider($('saa'), $('ska'), { steps:128, onChange:function(step){setcolorsv(1,step);setcolors();} }); gsldb = new Slider($('sab'), $('skb'), { steps:128, onChange:function(step){setcolorsv(2,step);setcolors();} }); gsldc = new Slider($('sac'), $('skc'), { steps:128, onChange:function(step){setcolorsv(3,step);setcolors();} }); gsldd = new Slider($('sad'), $('skd'), { steps:128, onChange:function(step){setcolorsv(4,step);setcolors();} }); //******************************** var taba1=$('taba1'); var taba2=$('taba2'); taba1.addEvent('click', function(e){ new Event(e).stop(); if (this.hasClass('t3')) { this.removeClass(this.className); this.addClass('t1'); taba2.removeClass(taba2.className); taba2.addClass('t2'); $('yt3t1').style.display=""; $('yt3t2').style.display="none"; } }); taba2.addEvent('click', function(e){ new Event(e).stop(); if (this.hasClass('t2')) { taba1.removeClass(taba2.className); taba1.addClass('t3'); this.removeClass(this.className); this.addClass('t4'); $('yt3t1').style.display="none"; $('yt3t2').style.display=""; } }); //主菜单 var kwicks = $$('#kwick .kwick'); var fx = new Fx.Elements(kwicks, {wait: false, duration: 300, transition:Fx.Transitions.Back.easeOut}); kwicks.each(function(kwick, i){ kwick.addEvent('mouseenter', function(e){ var obj = {}; obj[i] = { 'width': [kwick.getStyle('width').toInt(), 155] }; kwicks.each(function(other, j){ if (other != kwick){ var w = other.getStyle('width').toInt(); if (w != 80) obj[j] = {'width': [w,110]}; } }); fx.start(obj); }); }); $('kwick').addEvent('mouseleave', function(e){ var obj = {}; kwicks.each(function(other, j){ obj[j] = {'width': [other.getStyle('width').toInt(), 120]}; }); fx.start(obj); }); inilanguage(); getsetting(); });   function DetectActiveX() { try { var comActiveX = new ActiveXObject("WEB.WebCtrl.1"); comActiveX=null; } catch(e) { return false; } return true; } function Download() { window.open(LoardAddress); } var g_whitePage=false; var g_bDownLoadButton=false; if(false==DetectActiveX()) { if (DownLoadAddr) { g_bDownLoadButton=true; } if(LoardAddress) { g_whitePage=true; } }   function ChangeLang() { var nSel=$('langlist').selectedIndex; var cLanguage; switch(nSel) { case 0: cLanguage="English"; break; case 1: cLanguage="French"; break; case 2: cLanguage="Hungarian"; break; case 3: cLanguage="Italian"; break; case 4: cLanguage="Japanese"; break; case 5: cLanguage="Portugal"; break; case 6: cLanguage="Russian"; break; case 7: cLanguage="SimpChinese"; break; case 8: cLanguage="Spanish"; break; case 9: cLanguage="TradChinese"; break; case 10: cLanguage="German"; break; case 11: cLanguage="Poland"; break; case 12: cLanguage="Turkey"; break; case 13: cLanguage="Romanian"; break; case 14: cLanguage="Suomi"; break; case 15: cLanguage="Korean"; break; case 16: cLanguage="Farsi"; break; case 17: cLanguage="Thai"; break; case 18: cLanguage="Greek"; break; case 19: cLanguage="Vietnamese"; break; case 20: cLanguage="Brazilian"; break; case 21: cLanguage="Hebrew"; break; case 22: cLanguage="Arabic"; break; case 23: cLanguage="Bulgarian"; break; case 24: cLanguage="Czech"; break; default: cLanguage="English"; break; } ocx.SetSpecialParamEx2(2,cLanguage,0,0); inilanguage(); } function Close() { $('QS').style.display='none'; g_bClose=true; } function position_fixed(el, eltop, elleft){ // check is IE6 if( !window.XMLHttpRequest ){ el.style.position = "absolute"; window.attachEvent('onscroll', function(){ //el.style.top = ( document.documentElement.scrollTop + eltop )+"px"; }); }else{ el.style.position = "fixed"; } }              Language:
      English Francais Hugarian Italian 日本語 PORTUGUÊ РУССКИЙ 简体中文 ESPAÑOL 繁體中文 Deutscher Poland TüRKiYE Română SUOMI 한국어 پارسی ไทย ΕΛΛΗΝΙΚΑ Việt Português(BR) עברית العربية Българскиезик čeština                             
                                            if(!g_whitePage) { if(g_bDownLoadButton) { $('DownLoadPlug').style.display=''; $('logo1').setStyle('margin-top',0); var userla=navigator.browserLanguage; if(userla=="zh-cn") { $('DownLoadPlug').setText("下载控件"); } else { $('DownLoadPlug').setText("DownLoad"); } } else { $('DownLoadPlug').style.display="none"; } $('login').style.display=''; resizeL(); } else { var userla=navigator.browserLanguage; if(userla=="zh-cn") { $('dlText').setText("请安装随机光盘中的IE控件或者从网络下载IE控件"); $('dlbutton').setText("下载"); } else { $('dlText').setText("Please install IE ActiveX: IE_Plugins.exe from CD or download from internet"); $('dlbutton').setText("Download"); } $('downLoad').style.display=''; }                  回放 日志 设备配置 客户端配置 退出                                 if(g_whitePage) { } else { var cLanguage; switch(iLanguage) { case 100: cLanguage="English"; numLanguage=0; break; case 101: cLanguage="SimpChinese"; numLanguage=7; break; case 102: cLanguage="TradChinese"; numLanguage=9; break; case 103: cLanguage="Italian"; numLanguage=3; break; case 104: cLanguage="Spanish"; numLanguage=8; break; case 105: cLanguage="Japanese"; numLanguage=4; break; case 106: cLanguage="Russian"; numLanguage=6; break; case 107: cLanguage="French"; numLanguage=1; break; case 108: cLanguage="German"; numLanguage=10; break; case 109: cLanguage="Portugal"; numLanguage=5; break; case 110: cLanguage="Turkey"; numLanguage=12; break; case 111: cLanguage="Poland"; numLanguage=11; break; case 112: cLanguage="Romanian"; numLanguage=13; break; case 113: cLanguage="Hungarian"; numLanguage=2; break; case 114: cLanguage="Finnish"; numLanguage=14; break; case 116: cLanguage="Korean"; numLanguage=15; break; case 117: cLanguage="Farsi"; numLanguage=16; break; case 119: cLanguage="Thai"; numLanguage=17; break; case 120: cLanguage="Greek"; numLanguage=18; break; case 121: cLanguage="Vietnamese"; numLanguage=19; break; case 123: cLanguage="Brazilian"; numLanguage=20; break; case 124: cLanguage="Hebrew"; numLanguage=21; break; case 125: cLanguage="Indonesian"; numLanguage=0; break; case 126: cLanguage="Arabic"; numLanguage=22; break; case 127: cLanguage="Swedish"; numLanguage=0; break; case 128: cLanguage="Czech"; numLanguage=24; break; case 129: cLanguage="Bulgarian"; numLanguage=23; break; case 189: cLanguage="Czech"; numLanguage=24; break; default: cLanguage="English"; numLanguage=0; break; } document.write(" "); document.write(""); }                                                                                                             步长(1-8):        1 2 3 4 5 6 7 8        变倍        变焦        光圈          预置点:                       点间巡航:                       图像设置  其他设置                                                                 重置    重启设备                 CopyRight  document.write(year);,All Rights Reserved