var qi;
var qt;
var qp="parentNode";
var qc="className";
function ldc(sd,v,l)
{
   if(!l) 
      {
         l=1;
         sd=document.getElementById("ld"+sd);
         sd.onmouseover=function(e){x6(e)
      };
     document.onmouseover=x2;
     sd.style.zoom=1;
}
sd.style.zIndex=l;
var lsp;
var sp=sd.childNodes;
for(var i=0;i<sp.length;i++)
{
    var b=sp[i];
    if(b.tagName=="A")
    {
        lsp=b;
        b.onmouseover=x0;
        if(l==1&&v)
        {
            b.style.styleFloat="none";
            b.style.cssFloat="none";
         }
     }
     if(b.tagName=="DIV")
     {
         if(window.showHelp&&!window.XMLHttpRequest)
            sp[i].insertAdjacentHTML("afterBegin","<span style='display:block;font-size:4px;height:0px;width:0px;visibility:' hidden;COLOR:White;></span>");
            
          x5("ldparent",lsp,1);
          lsp.cdiv=b;
          b.idiv=lsp;
          new ldc(b,null,l+1);
      }
   }
};

function x2(e)
{
     if(qi&&!qt)
         qt=setTimeout("x3()",100);
};

function x3()
{
     var a;
     if((a=qi))
     {
        do{
            x1(a);
          }
           while((a=a[qp])&&!ld_a(a))
     }
     qi=null;
 };
 function ld_a(a)
 {
      if(a[qc].indexOf("ldmc")+1)return 1;
 };
 
 function x1(a)
 {
      if(window.ldad&&ldad.bhide)
          eval(ldad.bhide);
      a.style.visibility="";
      x5("ldactive",a.idiv);
 };
 
 function x0(e)
 {
       if(qt)
       {
           clearTimeout(qt);
           qt=null;
        }
        var a=this;if(a[qp].isrun)return;
        var go=true;
        while((a=a[qp])&&!ld_a(a))
        {
            if(a==qi)go=false;
         }
         if(qi&&go)
         {
             a=this;
             if((!a.cdiv)||(a.cdiv&&a.cdiv!=qi))
                x1(qi);a=qi;
             while((a=a[qp])&&!ld_a(a))
             {
                 if(a!=this[qp])x1(a);else break;
              }
         }
         var b=this;
         if(b.cdiv)
         {
           var aw=b.offsetWidth;
           var ah=b.offsetHeight;
           var ax=b.offsetLeft;
           var ay=b.offsetTop;
           if(ld_a(b[qp])&&b.style.styleFloat!="none"&&b.style.cssFloat!="none")
               aw=0;
           else 
              ah=0;
           if(!b.cdiv.ismove)
           {
                b.cdiv.style.left=(ax+aw)+"px";b.cdiv.style.top=(ay+ah)+"px";
           }
           x5("ldactive",this,1);
           if(window.ldad&&ldad.bvis)
              eval(ldad.bvis);
           b.cdiv.style.visibility="inherit";
           qi=b.cdiv;
        }
        else  if(!ld_a(b[qp]))
            qi=b[qp];
            else 
               qi=null;
               x6(e);
  };
function x5(name,b,add)
{
     var a=b[qc];
      if(add)
      {
            if(a.indexOf(name)==-1)
                b[qc]+=(a?' ':'')+name;
       }else 
       {
              b[qc]=a.replace(" "+name,"");
              b[qc]=b[qc].replace(name,"");
       }
};
function x6(e)
{
    if(!e)e=event;
    e.cancelBubble=true;
    if(e.stopPropagation)e.stopPropagation();
}

function ChangeSea(index,obj)
{
    var i;
    var tdSeaTab=document.all.FSeaTab;
    for(i=0;i<tdSeaTab.length;i++)
    {
        tdSeaTab[i].className="Sea2";
    }

    tdSeaTab[index].className="Sea1";
    
    var jpfy = document.getElementById("Ljpfy");
    if(index ==0 && jpfy != null)
    {
        jpfy.innerText= obj[0];
     }
     if(index == 1 && jpfy != null)
      jpfy.innerText = obj[1];
      
     if(index == 2  && jpfy != null)
     jpfy.innerText= obj[2];
   
    var inputkey=document.getElementById("hiddenkey");
    if(inputkey != null)
    inputkey.innerText=index;
    
     var inputkey=document.getElementById("div1");
     
}

function ChangeLitVisible(index)
{
    var i;
    var tdSeaTab=document.all.FSeaTab;
    for(i=1;i< (tdSeaTab.length +1);i++)
    {
        tdSeaTab[i-1].className="NSea"+i;
    }
   
    tdSeaTab[index-1].className="Sea"+index;
    
//     var visibkey=document.all.ddv;
     index --;
     for(j = 0;j<3;j++)
     {
        
           var Cname="ddv" + j;
           var CanVisib = document.getElementById(Cname);
           if( CanVisib != null)
           {
               if(j != index)
                {
                   CanVisib.style.display="none";
                }
                else
                   CanVisib.style.display="";
            }
      }     
}

function ChangeSeaTabCh(index)
{
   var Surl = new Array("请修改安装程序目录下Website\script\menu.js文件中的：\r\nChangeSeaTab()函数的数据(优质)！","(专业)！","(传播文化)！");
   ChangeSea(index,Surl);
}

function ChangeSeaTabEng(index)
{
   var Surl = new Array("Please change the direction of the path :Website\script\menu.js文件中的：\r\nChangeSeaTab()函数的数据(优质)！","(专业)！","(传播文化)！");
   ChangeSea(index,Surl);
}
