whois.handle: VIETTEL-VN
whois.name: Viettel Group
whois.cidrs: 27.64.0.0/12
whois.updated: 2017-11-11T00:00:00.000000
services.protocol: HTTP
services.transport_protocol: TCP
services.scan_time: 2025-07-27T09:52:45.339720
services.banner: HTTP/1.0 200 OK
  Content-type: text/html
  Expires: 0
  
services.source: OSI_APPLICATION_LAYER
services.part: a
services.vendor: Xiongmai Technology
services.product: uc-httpd
services.cpe: cpe:2.3:a:xiongmaitech:uc\-httpd:*:*:*:*:*:*:*:*
services.source: OSI_APPLICATION_LAYER
services.part: o
services.vendor: Xiongmai Technology
services.path: /
services.endpoint_type: HTTP
services.scan_time: 2025-07-27T09:52:45.339720
services.uri: http://27.74.73.1:81/
services.protocol: HTTP/1.0
services.status_reason: OK
services.key: Content-type
services.headers: text/html
services.key: Expires
services.headers: 0
services.html_tags: <title>NETSurveillance WEB</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
services.body: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
  <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  	<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
      <link rel="stylesheet" type="text/css" media="screen" href="m.css" />
      
      <title>NETSurveillance WEB</title>
      
      <!-- m.js -->
  
      <script type="text/javascript" language="JavaScript">
       var bCrossBrow=false;
  	 var bnpCheck = false;
  var showemailflag=3;
  var ShowTipFlag=1;
  	 //wzy 20190904
       var g_initWidth = document.documentElement.clientWidth;
  	
  	// var SupportFind=false;
  	    
  	if(navigator.platform != "Win32")//
  	{
  	}
  	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")
  	{
  		 bCrossBrow=true;
  		  var userla=navigator.browserLanguage;
  		  switch (browserMatch.browser)
  		{
  			case "firefox":
  				if (compareBrowser(browserMatch.version,"52.0")){
  					if(userla=="zh-cn"){
  						alert("您的浏览器太新了,某些功能将不能正常使用,请下载51.0或以前的版本。");
  					}else{
  						alert("Your browser is too new,Some features will not work properly.Please download 51.0 or earlier.");
  					}
  				}
  				break;
  			case "opera":
  				if (compareBrowser(browserMatch.version,"34.0")){
  					 if(userla=="zh-cn"){
  						alert("您的浏览器太新了，请下载33.0或以前的版本。");
  					}else{
  						alert("Your browser is too new,Some features will not work properly.Please download 33.0 or earlier.");
  					}
  				}
  				break;
  			case "chrome":
  				if (compareBrowser(browserMatch.version,"45.0")){
  					 if(userla=="zh-cn"){
  						alert("您的浏览器太新了，请下载44.0或以前的版本。");
  					}else{
  						alert("Your browser is too new,Some features will not work properly.Please download 44.0 or earlier.");
  					}
  				}
  				break;
  			case "safari":
  				if (compareBrowser(browserMatch.version,"10.0")){
  					 if(userla=="zh-cn"){
  						alert("您的浏览器太新了，请下载9.0或以前的版本。");
  					}else{
  						alert("Your browser is too new,Some features will not work properly.Please download 9.0 or earlier.");
  					}
  				}
  				break;
  		}
  	}
  	
  	function compareBrowser(ver1,ver2) {  
        var version1pre = parseFloat(ver1);  
        var version2pre = parseFloat(ver2);  
        var version1next =  ver1.replace(version1pre + ".","");  
        var version2next =  ver2.replace(version2pre + ".","");  
        if(version1pre > version2pre){  
            return true;  
        }else if(version1pre < version2pre){  
        return false;  
        }else{  
            if(version1next > version2next){  
              return true;  
            }else{  
              return false;  
             }  
          }  
  	}
  	
  	//对比版本是否有更新
  	function cmpVersion(ver1, ver2) {
  		//将版本号分为一个字符数组
  		var arrVer1 = ver1.split("=")[1].split(",");
  		var arrVer2 = ver2.split("=")[1].split(",");
  		for (var i = 0; i < arrVer1.length; ++i) {
  			var v1 = arrVer1[i];
  			var v2 = arrVer2[i];
  			if (v1 == null || v2 == null) {
  				break;
  			}
  			if (parseInt(v1) < parseInt(v2)) {
  				return true;
  				break;
  			}
  		}
  		 return false;
  	}
  	
  	
  	function reminder()
  	{
  		var isExistOcxFunction = true;
  		if ( 3 == showemailflag)
  		{
  			try {
  				ocx.RetrievePassWord(ipaddress, hostport);
  			} 
  			catch (e)
  			{
  				isExistOcxFunction = false;
  			}
  		}
  		if (!isExistOcxFunction || showemailflag != 3)
  		{
  			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;
  		case 25:
  			cLanguage="Azerbaycan";
  			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" };  
                     }  
                 }  
      </script>
  
      <script type="text/javascript">//m.js
       var ipaddress =document.location.hostname;
  if (ipaddress == "")
  {
  	//ipaddress = "10.10.88.6";
  
  
  }	
  var hostport=34588;
  var iLanguage=100;
  	var numLanguage;
  	var DownLoadAddr="";
  	</script>
  	<script type="text/javascript" src="m.jsp"></script>
  	<script type="text/javascript" src="config.js"></script>
  
      <!-- 全局变量 -->
  
      <script type="text/javascript">
  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 gslde;
  var gfmu1=0;
  var gfmu2=0;
  var gfmu3=0;
  var g_bRecord=false;
  var g_bRealPlay=false;
  var g_bAudio=false;
  var bShowQS=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: '',
              passwordMsg: 0,
              NeedUpgrade : false,		//是否需要升级
              Upgraded : false,			//是否走过升级流程
              cabversion : null			//config.js版本号
          }
  var gca=0;
  var gcb=0;
  var gcc=0;
  var gcd=0;
  var gce=0;
  var gAutoPlayAll=false;
  var SupportActivePSWReset = 0;
     
  
      </script>
  
      <!-- 颜色滑块 -->
  
      <script type="text/javascript">
  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 setaudiov(v){
     gce=v;
     $('ske').title=v;
  }
  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 getAudio(){
      var audio = ocx.SetSpecialParamEx(10001, 0, 0, 0);
  	if(audio >= 100 && audio <= 200){
  	    sldtopos(gslde,audio-100);
  	    setaudiov(audio-100);
  	}else{
  	    $('aslider').style.display="none";
  	    $('alogo').style.display="none";
  	}
  }
  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 audioset(step){
      sldtopos(gslde,step);
  }
  function setcolors(){
  	ocx.SetColor(0,gca,gcb,gcc,gcd);
  }
  function setaudio(){
      ocx.SetSpecialParamEx(10002, 0, gce, 0);
  }
      </script>
  
      <!-- 设备通道  -->
  
      <script type="text/javascript">
      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');
  		}
  	}
  	getcolors();
  }
  
  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');
  		titles[5]=tl('WebTitle.TalkIpcAllOn');
  	var shtml="";
  
  	shtml+="<li id='Talk' ><a title='"+titles[5]+"' id='talkingToIpcAll' class='talkIpcAllON' href='javascript:;'  onclick='OntalkIpc(-1)' style='display:none'></a><a title='"+titles[3]+"' id='talking' class='noT' href='javascript:;'  onclick='Ontalk()' ></a><span id='logoString' style='margin:0 5px 0 3px;'>NetSurveillance</span></li> "
  	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<t.length;i++ ){
  			ts=t[i].split(strsplitb);
  			ts[1].replace(htmlReg, "&lt;$1&gt;");  //替换html字符
  
  			shtml+="<li >" +
  						"<a title='"+titles[3]+"' id='talking"+ts[0]+"' class='noTIPC' href='javascript:;' onclick='OntalkIpc("+ts[0]+")' style='display:none'></a>" +
  						"<a title='"+titles[0]+"' style='width:19px;margin:0,0,0,0px;outline:none;' id='re"+ts[0]+"' class='noRecord' href='javascript:;' onclick='record(this,"+ts[0]+")'></a>" +
  						"<a title='"+titles[1]+"' style='width:19px;margin:0,0,0,0px;outline:none;' id='subPlay"+ts[0]+"' class='noSubPlay' href='javascript:;' onclick='subPlay(this,"+ts[0]+")'></a>" +
  						"<a title='"+titles[2]+"' id='c"+ts[0]+"' class='cl1' onclick='ca(this,"+ts[0]+")'></a>" +
  						"<span id='name"+ts[0]+"' style='position:absolute;white-space :nowrap;margin:3px 0 0 0;'>"+ts[1]+"</span>" +
  					"</li>"
  		}
  		$("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:
                  {
  					$('xp2').style.display="" ;
                      $('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:
                  {
  					$('xp2').style.display="" ;
                      $('xp3').style.display="" ;
                      $('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:
                  {
  					$('xp2').style.display="" ;
                      $('xp3').style.display="" ;
                      $('xp4').style.display="" ;
                      $('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:
                  {
  					$('xp2').style.display="" ;
                      $('xp3').style.display="" ;
                      $('xp4').style.display="" ;
                      $('xp5').style.display="" ;
                      $('xp6').style.display="none" ;   
                      $('xp7').style.display="none" ;   
                      break;                
                  }
                  case 26:
                  case 27:
                  case 28:
                  case 29:
                  case 30:
                  case 31:
                  case 32:
                  {
  					$('xp2').style.display="" ;
                      $('xp3').style.display="" ;
                      $('xp4').style.display="" ;
                      $('xp5').style.display="" ;
                      $('xp6').style.display="" ;
                      $('xp7').style.display="none" ; 
                      break;                
                  }
                  default: break;
              }    
  }
  function showExit() {
  
  
  	  for(var j=1;j<gexiti+1;j++)
          {     
              if(gExitSubType[j]==true)
              {
              
                      var temp="subPlay"+gExitChannel[j].toString();       
                      $(temp).removeClass($(temp).className);
                      $(temp).addClass('subPlay');            
              }
              else
              {
          
                  var temp="c"+gExitChannel[j].toString();       
                  $(temp).removeClass($(temp).className);
                  $(temp).addClass('cl2');
              
              }
             
          }
          gexiti=0;
  }
  
  
      </script>
  
      <!-- 调整页面大小（待处理） -->
  
      <script type="text/javascript">
  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<682) wheight=682;
  	//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+(180*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', $(mbc).getCoordinates().right+10);
  	
  	//wzy20190893
  	//$('ma').setStyle('width', $(mba).getCoordinates().left*2+$(mba).getCoordinates().width+$(mbb).getCoordinates().width+$(mbc).getCoordinates().width+3);
  	$('ma').setStyle('width',Math.max(wwidth,g_initWidth));
  	$('mc').setStyle('width',$(ma).getCoordinates().width);
  	
  	if(g_Radio==1.78|| !g_bSubQS1&& !g_bSubQS2 && !g_bSubQS3 && !g_bSubQS4)
  	{
  	   $('QS').setStyle('left', screen.width-130);
  	   $('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-700);
  	}
  	else
  	{
   		$('QS').setStyle('top', screen.height-600);
   	}
  	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();
  	
  });
      </script>
  
  
  
  
      <!-- 登入和翻译（待整理） -->
  	
      <script type="text/javascript">
  	
      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)
  	{
  	    location="err.htm";
  	}
  	if (r>0){
  		//PswMsg();
  		getcl();
  		timeup(2);
  	
  	
  	
  			
  
  		$('password').value="";
  		$('login').style.display="none";
  		$('m').style.top="0px";
  		resize();
  		settings['username'] = username;
  		settings['ocxlanguage'] = ocxlanguage;
  			
  		savesetting();
  		getAudio();
  		try{
  			ocx.SetPsw();
  		} catch(e){
  		}
  		if(gAutoPlayAll)
  	    {
  	    ocx.PlayAll();
  	    }
  	     g_bClose=false;
  		 
  		 //初始化IPC对讲
  		SetTalkIpcAll();
  	}
  }
  	function SetCookie() 
  	{
  		gHashCookie.extend(settings);
  	}
  
  	
  function timeup(sec) { 
  sec--;      
  if (sec == 0) {
  var shtml="";
  	shtml+="<div id='QSLogo'  style='text-align:center;width:120px;height:120px;background:url(c:/1.bmp) no-repeat bottom left;'></div>"
  	shtml+="<div id='QSText1' style='text-align:center'><span id='QSText' style='color:#000;'></span></div>"
  	shtml+="<div id='QSLogo2' style='text-align:center;width:120px;height:120px;background:url(c:/2.bmp) no-repeat bottom left;'></div>"
  	shtml+="<div id='QSText2' style='text-align:center'><span id='QSText21' style='color:#000;'></span></span></div>"
  	shtml+="<div id='QSLogo3' style='text-align:center;width:120px;height:120px;background:url(c:/3.bmp) no-repeat bottom left;'></div>"
  	shtml+="<div id='QSText3' style='text-align:center'><span style='color:#000;'>IOS</span></div>"
  	shtml+="<div id='QSLogo4' style='text-align:center;width:120px;height:120px;background:url(c:/4.bmp) no-repeat bottom left;'></div>"
  	shtml+="<div id='QSText4' style='text-align:center'><span id='QSText42' style='color:#000;'>Other</span></div>"
  	$("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'
  		$('QSLogo2').title=tl('DeviceManage.APP')
  	    $('QSText21').setText(tl('DeviceManage.APP'))
  	}
  	else
  	    $('QSText21').setText(tl('DeviceManage.Android'))
  	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-700);
  	}
  	if(!g_bSubQS1&& !g_bSubQS2 && !g_bSubQS3 && !g_bSubQS4)
  	{
  		$('QS').style.display='none'
  
  	}
  	//$('QS').style.display='';	
  	
  }
  else {setTimeout("timeup("+sec+")", 1000);}
  }
  function DownLoadLo()
  {
  	if(bCrossBrow)
  	{
  		window.open(DownLoadAddr);
  		return;
  	}else
  	{
  		window.open(DownLoadAddr);
  	}
  }
  	function savesetting() {
      gHashCookie.extend(settings);
  }
  
  function getCookieValue() {
  	if (gHashCookie.get('username')) {
  		settings['username'] = gHashCookie.get('username');
  	} else {
  		settings['username'] = '';
  	}
  	if (gHashCookie.get('ocxlanguage')) {
  		
  	    settings['ocxlanguage'] = gHashCookie.get('ocxlanguage');
  	}
  	else
  	{
  	    settings['ocxlanguage'] = numLanguage+1;
  	}
  	if (gHashCookie.get('NeedUpgrade')) {
  		
  	    settings['NeedUpgrade'] = gHashCookie.get('NeedUpgrade');
  	}
  	else
  	{
  	    settings['NeedUpgrade'] = false;
  	}
  	if (gHashCookie.get('Upgraded')) {
  		
  	    settings['Upgraded'] = gHashCookie.get('Upgraded');
  	}
  	else
  	{
  	    settings['Upgraded'] = false;
  	}
  	if (gHashCookie.get('cabversion')) {
  		
  	    settings['cabversion'] = gHashCookie.get('cabversion');
  	}
  	else
  	{
  	    settings['cabversion'] = null;
  	}
  }
  
  function getsetting(){
      getCookieValue();
  	    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;
  	  case 26:
  			 cLanguage="Azerbaycan";
  			 break;
        default:
               cLanguage="English";
               break;       
      }
      ocx.SetSpecialParamEx2(2,cLanguage,0,0);
      inilanguage();
  	
  	$('username').setProperty('value', settings['username']); 
  	$('langlist').selectedIndex=settings['ocxlanguage']-1;
  	if(bCrossBrow)
  	{	
  		ocx.SetSpecialParamEx(0,0,0,888);	
  	}
  }
  
  
  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 stopPlayOneChannel(lChannel)
  {
  
  	
  	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<g_channelNum-g_digitalChannel)
  //         {
                    var tempSubPlay="subPlay"+(lChannel).toString();
              $(tempSubPlay).removeClass($(tempSubPlay).className);
              $(tempSubPlay).addClass('noSubPlay');  
  /*            }*/
              
              
            
              
              getcolors();
  }
  
  function AllChannelCtrl(bPlay, bStopPlay, bRecord,bStopRecord)
  {
  	
  	 if(bPlay)
      {
          if(bRecord)//借用于子码流播放
          {        
          
               for(var j=0;j<g_channelNum;j++)
               {            
                  var tempSubPlay="subPlay"+(j).toString();        
                  $(tempSubPlay).removeClass($(tempSubPlay).className);
                  $(tempSubPlay).addClass('subPlay');
                  
              }
          }
          else
          {
          
             for(var j=0;j<g_channelNum;j++)
              {
                 var temp="c"+(j).toString();
                  $(temp).removeClass($(temp).className);
                  $(temp).addClass('cl2');
                            
              }
          
          }
          
      }else if(bStopPlay)   
      {
          
            for(var j=0;j<g_channelNum;j++)
          {
          
             var temp="c"+(j).toString();
              $(temp).removeClass($(temp).className);
              $(temp).addClass('cl1');
              
  //             if(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<g_channelNum;j++)
          {
              var tempPlay="c"+(j).toString();
              var tempsub="subPlay"+(j).toString();
              if($(tempPlay).hasClass('cl2') || (/* j<g_channelNum-g_digitalChannel && */$(tempsub).hasClass('subPlay')))
              {
                  var temp="re"+(j).toString();
                  $(temp).removeClass($(temp).className);
                  $(temp).addClass('record');            
              }
             
          }
      }
      else  if(bStopRecord)
      {
          for(var j=0;j<g_channelNum;j++)
          {
             var temp="re"+(j).toString();
              $(temp).removeClass($(temp).className);
              $(temp).addClass('noRecord');
          }
      
      }
      getcolors();
  }
  
  	function bSound(bs)
  	{
  		
  		 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')
                          }                        
                      }
  	}
  	function RButtonDown(flag,x,y)
  	{
  		ocx.Fullscreen(false); 
  	}
  	
  	function startPlayExitChannel(channel,bSub)
  	{
  		
  		 gexiti++;
  		gExitChannel[gexiti]=channel;
  		if (bSub==true){
     
             gExitSubType[gexiti]=true
         
  		}
  		else
  		{
  			gExitSubType[gexiti]=false;
  		}
  		getcolors();
  	}
  	
  	 function OneChannelOpen(channel)//打开主码流
  	 {
  		
          var tempSubPlay="subPlay"+(channel).toString();        
  		if($(tempSubPlay).hasClass('subPlay'))
  		{
  			$(tempSubPlay).removeClass($(tempSubPlay).className);
  			$(tempSubPlay).addClass('noSubPlay');        
  		}    	
  		var tempPlay="c"+(channel).toString();        
          $(tempPlay).removeClass($(tempPlay).className);
          $(tempPlay).addClass('cl2');
          getcolors();
  	 }
  
  	function oneSubOpen(channel)//打开辅码流
  	{
  		
  		 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(); 
  	}	
     
      function reName(channel)//重命名
  	{
  		 
  		 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<t.length;i++ )
  			{
  			    ts=t[i].split(strsplitb);
  			    var temp="name"+(i).toString();			    		
  			    $(temp).setText(ts[1]);
  			
  			}
  
  		}
      
  	}
  	
  	 function ReBoot()
  	 {
  		
  		$('talking').removeClass($('talking').className);
          $('talking').addClass('noT');
          $('talking').title=tl('Desktop.StartTalk');//关闭对讲
              
          for(var j=0;j<g_channelNum;j++)//关闭录像
          {
              var temp="re"+(j).toString();
              $(temp).removeClass($(temp).className);
              $(temp).addClass('noRecord');
          }         
  	 }
  	 function AutoPlayAll(bPlay)
  	 {
  		
  		if(bPlay)
  		{
  			gAutoPlayAll=true;
  		}
  		else
  		{
  			gAutoPlayAll=false;    
  		}
  	 }
  	 
  		function DigitalStatus(nStatus,channel)//˽ؖͨր״̬
  	{
  		
  		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");
     
  	SetTalkIpc(channel, nStatus);
      }
      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");
  	
  	//SetTalkIpc(channel, nStatus);
      }
      if (2==nStatus) {
      var tempPlay="c"+(channel).toString();
          $(tempPlay).removeClass($(tempPlay).className);
          $(tempPlay).addClass("cl2");
  		
  		//SetTalkIpc(channel, nStatus);
      }
      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");
      }
  	 if (7==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");
  	
  	SetTalkIpc(channel, nStatus);
      }
     
  	
      getcolors();
  	}
  	
  	
  	function StopPosition()
  	{
  	   $('menu').removeClass($('menu').className);
         $('menu').addClass('PositionStop');
  	}
  	
  	function StartPosition()
  	{
  	   $('menu').removeClass($('menu').className);
         $('menu').addClass('PositionStart');
  	}
      function ForbitLanguage()
  	{
  		$('langlist').disabled=true;
  	}
  	function HideQS(bHide)
  	{
  		 if (bHide==true) {
              $('QS').style.display='none';
  	    g_bQS=false;
          }else
          {
              $('QS').style.display='';
              g_bQS=true;
              
          }
  	}
      </script>
  
      <!-- 下拉框 -->
  
      <script type="text/javascript">
      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();
  }
      </script>
  
      <!-- 全播放，录像，声音，对讲 -->
  
      <script type="text/javascript">
      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 OntalkIpc(lnum) {
  	if (lnum == -1)
  	{
  		 if($('talkingToIpcAll').hasClass('talkIpcAllON'))
  			{
  				//if(ocx.StartTalkIpc(lnum))
  				if (ocx.SetSpecialParamEx2(5000, 0, lnum, 0))
  				{
  					$('talkingToIpcAll').removeClass($('talkingToIpcAll').className);
  					$('talkingToIpcAll').addClass('talkIpcAllOFF');
  					$('talkingToIpcAll').title=tl('Desktop.StopTalkIPCAll');	
  				}        
  			}
  		else
  			{   
  				//if(ocx.StopTalkIpc(lnum))
  				if (ocx.SetSpecialParamEx2(5001, 0, lnum, 0))
  				{
  					$('talkingToIpcAll').removeClass($('talkingToIpcAll').className);
  					$('talkingToIpcAll').addClass('talkIpcAllON');
  					$('talkingToIpcAll').title=tl('Desktop.StartTalkIPCAll');		
  				}
  			} 
  		return ;
  	}
  	if ($('talking'+ lnum).hasClass('disableIPC'))
  	{
  		return ;
  	}
      if($('talking'+ lnum).hasClass('noTIPC'))
      {
         // if(ocx.StartTalkIpc(lnum))
  	   var statusIpc = ocx.SetSpecialParamEx2(5000, 0, lnum, 0)
  	   if (statusIpc)
          {
              $('talking'+ lnum).removeClass($('talking'+ lnum).className);
              $('talking'+ lnum).addClass('tIPC');
              $('talking'+ lnum).title=tl('Desktop.StopTalkIPC');
                      
          }        
          
      }
      else
      {   
          //if(ocx.StopTalkIpc(lnum))
  		if (ocx.SetSpecialParamEx2(5001, 0, lnum, 0))
          {
              $('talking'+ lnum).removeClass($('talking'+ lnum).className);
              $('talking'+ lnum).addClass('noTIPC');
              $('talking'+ lnum).title=tl('Desktop.StartTalkIPC');
              
          }
      } 
  }
  
  function SetTalkIpcAll()
  {
  	var temp = new Array();
  	var sc=ocx.GetChannelName();
  	var strsplita=String.fromCharCode(16);
  	var strsplitb=String.fromCharCode(9);	
  	var talktoipc_All = false;
  	var bEnableTalkIpc = true;
  	var strEnableTalkIpc = "";
  	if (sc !="")
  	{
  		sc=sc.substr(0, sc.length-1);
  		t=sc.split(strsplita);
  		
  		//var funcIpcAllNumber = ocx.GetTalkFuncIpcAll();
  		//strEnableTalkIpc = funcIpcAllNumber + "";
  		//strEnableTalkIpc = ocx.GetTalkFuncIpcAll();
  		//bEnableTalkIpc = ocx.IsEnableTalkIpc();
  		//var funcIpcAllNumber = ocx.SetSpecialParamEx(5003, 0, 0, 0);
  		strEnableTalkIpc = ocx.Translate("5003");
  		//var test = "abcdef";
  		//strEnableTalkIpc = ocx.GetVMInfo(5003);
  		//var test1 = ocx.SetSpecialParam(33);
  		//bEnableTalkIpc = ocx.SetSpecialParamEx2(5004, 0, 0, 0);
  		bEnableTalkIpc = ocx.SetSpecialParamEx2(5004, 0, 0, 0);
  		//bEnableTalkIpc = ocx.SetSpecialParamEx(5004, 0, 0, 0);
  		if ("" != strEnableTalkIpc && "5003" != strEnableTalkIpc)
  		{
  			t = strEnableTalkIpc = strEnableTalkIpc.split("");
  		}
  		
  		for (var i = 0; i < t.length; i++)
  		{
  			try
  			{
  				
  				if (i < g_channelNum-g_digitalChannel || !bEnableTalkIpc || bEnableTalkIpc == undefined )
  				{
  					$('talking'+ i).style.display="none";
  					continue;
  				}
  				else if ("1" == t[i])
  				{
  					$('talking'+ i).removeClass($('talking'+ i).className);
  					$('talking'+ i).addClass('noTIPC');
  					$('talking'+ i).title=tl('Desktop.StartTalkIPC');
  					$('talking'+ i).style.display="";
  					talktoipc_All = true;
  				}
  				else
  				{
  					$('talking'+ i).removeClass($('talking'+ i).className);
  					$('talking'+ i).addClass('disableIPC');
  					$('talking'+ i).title='';
  					$('talking'+ i).style.display="";
  				}
  			}
  			catch(e)
  			{
  				$('talking'+ i).style.display="none";
  				continue;
  			}
  		}
  	
  		if (talktoipc_All)
  		{
  			$('talkingToIpcAll').removeClass($('talkingToIpcAll').className);
  			$('talkingToIpcAll').addClass('talkIpcAllON');
  			$('talkingToIpcAll').title=tl('Desktop.StartTalkIPCAll');	
  			$('talkingToIpcAll').style.display="";
  		}
  		else
  		{
  			$('talkingToIpcAll').style.display="none";
  		}
  		
  	}
  }
  
  function SetTalkIpc(channel, status)
  {
  	//设备ofline，特殊处理
  	if (1 == status)
  	{
  		if ($('talking'+ channel).hasClass('tIPC'))
  		{
  			ocx.SetSpecialParamEx2(5001, 0, channel, 0);
  			//ocx.StopTalkIpc(channel);
  		}
  		
  		$('talking'+ channel).removeClass($('talking'+ channel).className);
  		$('talking'+ channel).addClass('disableIPC');
  		$('talking'+ channel).title='';
  		
  		return 0;
  	}
  	
  	var talktoipc_All = false;
  	//if (ocx.GetTalkFuncIpc(channel))
  	if (ocx.SetSpecialParamEx2(5002, 0, channel, 0))
  	{
  		if ($('talking'+ channel).hasClass('tIPC'))
  		{
  			
  		}
  		else
  		{
  			$('talking'+ channel).removeClass($('talking'+ channel).className);
  			$('talking'+ channel).addClass('noTIPC');
  			$('talking'+ channel).title=tl('Desktop.StartTalkIPC');
  		}
  		
  		talktoipc_All = true;
  	}
  	else
  	{
  		if ($('talking'+ channel).hasClass('tIPC'))
  		{
  			ocx.SetSpecialParamEx2(5001, 0, channel, 0);
  			//ocx.StopTalkIpc(channel);
  		}
  		
  		$('talking'+ channel).removeClass($('talking'+ channel).className);
  		$('talking'+ channel).addClass('disableIPC');
  		$('talking'+ channel).title='';
  	}
  	
  	if (talktoipc_All)
  	{
  		if ($('talkingToIpcAll').hasClass('talkIpcAllOFF'))
  		{
  		
  		}
  		else
  		{
  			$('talkingToIpcAll').style.display = "";
  			$('talkingToIpcAll').removeClass($('talkingToIpcAll').className);
  			$('talkingToIpcAll').addClass('talkIpcAllON');
  			$('talkingToIpcAll').title=tl('Desktop.StartTalkIPCAll');	
  		}
  	}
  	else
  	{
  		for (var i = 0; i < t.length; i++)
  		{
  			//if (ocx.GetTalkFuncIpc(i))
  			if (ocx.SetSpecialParamEx2(5002, 0, i, 0))
  			{
  				talktoipc_All = true;
  				break;
  			}
  			else
  			{
  			
  			}
  		}
  		
  		if (talktoipc_All)
  		{
  			$('talkingToIpcAll').style.display = "";
  			if ($('talkingToIpcAll').hasClass('talkIpcAllOFF'))
  			{
  				
  			}
  			else
  			{
  				$('talkingToIpcAll').removeClass($('talkingToIpcAll').className);
  				$('talkingToIpcAll').addClass('talkIpcAllON');
  				$('talkingToIpcAll').title=tl('Desktop.StartTalkIPCAll');	
  			}
  		}
  		else
  		{
  			if ($('talkingToIpcAll').hasClass('talkIpcAllOFF'))
  			{
  				//ocx.StopTalkIpc(-1);
  			}
  			$('talkingToIpcAll').style.display="none";
  		}
  		
  	}
  }
      </script>
  
      <!-- 录像，退出,子码流播放... -->
  
      <script>
  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')        
      }
      
  }
  
  function CommonState(nType, nChannel, nStatus){
  if(nType == 0){
  	if(nStatus >= 1 && nStatus <= 4){
  		$("wifiTip").style.background='url(w-'+nStatus+'.png)';
  		$("wifiGroup").style.display="";
  	}else{
  		$("wifiGroup").style.display="none";
  	}
  }else if(nType == 1){
  	if(nStatus >= 0 && nStatus <= 4){
  		$("powerTip").style.background='url(e-'+nStatus+'.png)';
  		$("powerGroup").style.display="";
  	}else{
  		$("powerGroup").style.display="none";
  	}
  }
  }
  
      </script>
  
      <!-- 事件 -->  
      <script language="javascript" for="ocx" event="PlayAudio(bIsPlay)">
          if (bIsPlay) {
              $('PlayAudio').style.display='';
          }else
          {
             $('PlayAudio').style.display="none";
          }
      </script>
  	<SCRIPT language=JavaScript type=text/JavaScript>
  	var tmpDate = new Date();
  	var year= tmpDate.getFullYear();
      </SCRIPT> 
      <script language="javascript" for="ocx" event="reName(channel)">  
       reName(channel);
      </script>
  	
      <script language="javascript" for="ocx" event="HideQS(bHide)">         
       HideQS(bHide);
      </script>
       <script language="javascript" for="ocx" event="ShowSubQS(bShow1, bShow2, bShow3, bShow4, name4)"> 
    
          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;
      </script>
      <script language="javascript" for="ocx" event="oneSubOpen(channel)">    
      oneSubOpen(channel);
      </script>
  	
      <script language="javascript" for="ocx" event="ForbitLanguage()"> 
       
      $('langlist').disabled=true;
      </script>
      <script language="javascript" for="ocx" event="SelEnglish()"> 
         numLanguage=0;
      </script>
      <script language="javascript" for="ocx" event="StopPosition()"> 
         $('menu').removeClass($('menu').className);
         $('menu').addClass('PositionStop');
      </script>
      <script language="javascript" for="ocx" event="StartPosition()"> 
         $('menu').removeClass($('menu').className);
         $('menu').addClass('PositionStart');
      </script>
       <script language="javascript" for="ocx" event="DigitalStatus(nStatus,channel)"> 
      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");
     
  	SetTalkIpc(channel, nStatus);
      }
      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");
  	
  	//SetTalkIpc(channel, nStatus);
      }
      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");
      }
  	 if (7==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");
  	
  	SetTalkIpc(channel, nStatus);
      }
     
  	
      getcolors();
       </script>
  
      <script language="javascript" for="ocx" event="OneChannelOpen(channel)">//某个通道打开，比如报警
      OneChannelOpen(channel);
      </script>
  
      <script language="javascript" for="ocx" event="startPlayExitChannel(channel,bSub)">//开始播放上回退出视频
      OneChannelOpen(channel);
      </script>
  
      <script language="javascript" for="ocx" event="RButtonDown(flag,x,y)">//右键退出（退出全屏）
          ocx.Fullscreen(false); 
      </script>
  
      <script language="javascript" for="ocx" event="stopPlayOneChannel(lChannel)">//停止一个通道的播放（图标变色）
      
  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<g_channelNum-g_digitalChannel)
  //             {
                    var tempSubPlay="subPlay"+(lChannel).toString();
              $(tempSubPlay).removeClass($(tempSubPlay).className);
              $(tempSubPlay).addClass('noSubPlay');  
  /*            }*/
              
              
            
              
              getcolors();
      </script>
  
      <script language="javascript" for="ocx" event="bRecordAndRealPlay(bRecord, bRealPlay)">//选中一个窗口（翻译当前窗口的录像，和播放开关状态）
              if(bRealPlay==true)
              {
                  
              }
              {
                              
              }
      
                    //getcolors(); //获取颜色值
      </script>
  
      <script language="javascript" for="ocx" event="AllChannelCtrl( bPlay, bStopPlay, bRecord,bStopRecord)">//全通道录像，播放开关,(子码播放用到，record两个变量)
      if(bPlay)
      {
          if(bRecord)//借用于子码流播放
          {        
          
               for(var j=0;j<g_channelNum;j++)
               {            
                  var tempSubPlay="subPlay"+(j).toString();        
                  $(tempSubPlay).removeClass($(tempSubPlay).className);
                  $(tempSubPlay).addClass('subPlay');
                  
              }
          }
          else
          {
          
             for(var j=0;j<g_channelNum;j++)
              {
                 var temp="c"+(j).toString();
                  $(temp).removeClass($(temp).className);
                  $(temp).addClass('cl2');
                            
              }
          
          }
          
      }else if(bStopPlay)   
      {
          
            for(var j=0;j<g_channelNum;j++)
          {
          
             var temp="c"+(j).toString();
              $(temp).removeClass($(temp).className);
              $(temp).addClass('cl1');
              
  //             if(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<g_channelNum;j++)
          {
              var tempPlay="c"+(j).toString();
              var tempsub="subPlay"+(j).toString();
              if($(tempPlay).hasClass('cl2') || (/* j<g_channelNum-g_digitalChannel && */$(tempsub).hasClass('subPlay')))
              {
                  var temp="re"+(j).toString();
                  $(temp).removeClass($(temp).className);
                  $(temp).addClass('record');            
              }
             
          }
      }
      else  if(bStopRecord)
      {
          for(var j=0;j<g_channelNum;j++)
          {
             var temp="re"+(j).toString();
              $(temp).removeClass($(temp).className);
              $(temp).addClass('noRecord');
          }
      
      }
      getcolors();
      </script>
  
      <script language="javascript" for="ocx" event="bSound(bs)">//选择窗口是否有播放声音
      bSound(bs);
      </script>
  
      <script language="javascript" for="ocx" event="ReBoot()">
      
       ReBoot();
      </script>
      <script language="javascript" for="ocx" event="AutoPlayAll(bPlay)">
      AutoPlayAll(bPlay);
      </script>
      
      <script type="text/javascript" for="ocx" event="SpecialEvent(nType,nNumber,nCheck)">
      
      if(nType==1)
      {
          g_Radio=1.78;
          resizeM();              
      }
      </script>
  
  	<script language="javascript" for="ocx" event="GotoLogin(nFlag)">
  		location="index.htm";
  	</script>
  	<script language="javascript" for="ocx" event="CommonState(nType, nChannel, nStatus)">
  		CommonState(nType, nChannel, nStatus);
  	</script>
      <!-- 加载效果 -->
  
      <script>
  window.addEvent('domready',function(){
  $('langlist').disabled=false;//兼容火狐
  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,
  	
services.body_hash_sha1: sha1:a038ce17026c12199320ee1e2b2613079bb11a88
services.supported_versions: HTTP/1.0
[binary data, 2 values, 64 bytes]