document.writeln("<link href=\"http:\/\/js.byf.com\/css/tes.css\" rel=\"stylesheet\" type=\"text/css\" />");

document.writeln("  <style  type=\"text\/css\">");
document.writeln("    a {blr:expression(this.onFocus=this.blur())}");
document.writeln("    ");
document.writeln("    <\/style>");
document.writeln("<div class=\"topnav\" >");
document.writeln("<ul class=\"guide\">");
document.writeln("	<li id=\"g1\" class=\"headnavlink\" ><a title=\"设为首页\"  href=\"#\" onclick=\"var  strHref=window.location.href;this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http:\/\/www.byf.com/\');\" style=\"CURSOR: hand\">设为首页<\/a><\/li>");
document.writeln("    <li id=\"g2\"><a class=\"headnavlink\"  id=\"div1\" href =\"#\" onmouseover=\"Divdisplay1()\">百方网导航<\/a><\/li>");
document.writeln("    <li id=\"g3\"><a class=\"headnavlink\"  id=\"divt\" href =\"#\" onmouseover=\"Divdisplay()\" >百方网服务<\/a><\/li>");
document.writeln("<\/ul>");
document.writeln("<ul class=\"toplogin\">");
document.writeln("	<li id=\"dt\">您好，欢迎来到百方网！<\/li>");
document.writeln("    <li id=\"nosign\"><a title=\"[请登录]\" href=\"http:\/\/www.byf.com\/login.aspx\" >[请登录]<\/a><\/li>");
document.writeln("    <li id=\"tzc\"><a title=\"[免费注册]\" href=\"http:\/\/www.byf.com\/Register.aspx\" target=\"_blank\">[免费注册]<\/a><\/li>");
document.writeln("<\/ul>");
document.writeln("<ul class=\"quicklink\">");
document.writeln("	<li id=\"q1\"><a class=\"headnavlink\" href =\"#\" onmouseover=\"Divdisplay2()\" id=\"div2\">中国电气供应商<\/a><\/li>");
document.writeln("    <li id=\"q2\"><a class=\"headnavlink\"  id=\"div3\" href =\"#\" onmouseover=\"Divdisplay3()\">百方助手<\/a><\/li>");
document.writeln("    <li id=\"q3\"><a  title=\"客服中心\" href=\"http:/\/\www.byf.com/\about/\contactus.html\"  target=\"_blank\">客服中心<\/a><\/li>");
document.writeln("    <li id=\"q4\"><a title=\"帮助中心\"  href=\"http:\/\/help.byf.com/\"   target=\"_blank\">帮助中心<\/a><\/li>");
document.writeln("    <li id=\"q5\"><a class=\"headnavlink\" id=\"div4\"  href=\"#\" onmouseover=\"Divdisplay4()\" target=\"_blank\">旗下网站<\/a><\/li>");
document.writeln("<\/ul>");
document.writeln("<\/div>");


Namespace = new Object();
Namespace.register=function (namespace)
{
   var nsArray=namespace.split('.');
   var sNS="";
   var sEval="";
   for(var i=0;i<nsArray.length;i++)
   {
     if(i!=0) sNS+=".";
     sNS+=nsArray[i];
     sEval+="if(typeof("+sNS+")=='undefined')"+ sNS +" = new Object();"
   }
   if(sEval!="")eval(sEval);
}
Namespace.register("CM.cookies");
    (function(){
                CM.cookies = {
		        /**
		         * 新增或者修改cookie.
		         * @param {Object} name cookie名.
		         * @param {Object} value cookie值.
		         * @param {Object} time 有效时间单位为毫秒.
		         */
		        newAndModif:function(name,value,time){
			        if(time!=null&&this.time!=''){
				        document.cookie = name+"="+value+"; expires="+this.createTime(time)+";";
			        }else{
				        document.cookie = name+"="+value+"; expires=Fri, 31 Dec 2100 23:59:59 GMT;";
			        }
		        },
		        /**
		         * 创建cookie的有效时间.
		         * @param {Object} time
		         */
		        createTime:function(time){
			        var nowTime = new Date();
			        time = parseInt(time)*24*60*60*1000 + parseInt(nowTime.getTime());
			        var needTime = new Date(time);
			        return needTime.toGMTString();
		        },
		        /**
		         * 创建cookie的有值.
		         * @param {Object} name cookie名
		         */
		        getValue:function(name){
			        if(document.cookie != null){
				        var cookieStrArr = document.cookie.split("; ");
				        for(var i=0;i<cookieStrArr.length;i++){
					        if(cookieStrArr[i].split("=")[0]==name){
						        return cookieStrArr[i].split("=")[1];
					        }
				        }
			        }else{
				        return null;
			        }
		        }
	        }
      
    }
    )();
    
  var uids=CM.cookies.getValue("UISaveid");
  var uis=CM.cookies.getValue("Saveid");
   
 if(uids!=""||uids!=null)
{
 if(uis!=""||uis!=null)
  {

  document.getElementById("tzc").innerHTML ="";
  document.getElementById('dt').innerHTML="您好,"+uids; 
  document.getElementById("nosign").innerHTML ="<a herf=\"#\" style=\"text-decoration:none;cursor:pointer\" onclick=\"deleCookies()\">[&nbsp;退出&nbsp;]</a>";
 }
}  

if(uis==""||uis==null)
{
  if(uids!=""||uids!=null)
  {
     document.getElementById('dt').innerHTML= "您好，"+uids;
     document.getElementById("tzc").innerHTML ="<a title=\"[免费注册]\" href=\"http:\/\/www.byf.com/Register.aspx\" target=\"_blank\">[免费注册]<\/a>";
     document.getElementById("nosign").innerHTML ="<a title=\"[请登录]\" href=\"http:/\/\www.byf.com/\login.aspx\" target=\"_blank\">[请登录]<\/a>";
   }
 }
 if(uids==null||uids=="")
{
  document.getElementById('dt').innerHTML="您好，欢迎来到百方网！";
  document.getElementById("tzc").innerHTML ="<a title=\"[免费注册]\" href=\"http:\/\/www.byf.com/Register.aspx\" target=\"_blank\">[免费注册]<\/a>";
  document.getElementById("nosign").innerHTML ="<a title=\"[请登录]\" href=\"http:/\/\www.byf.com/\login.aspx\" target=\"_blank\">[请登录]<\/a>";

}
 var Browser_Name=navigator.appName;

function deleCookies()
{
 window.location.href="http://bftb.byf.com/stop.aspx";

}





    var tab_oof="";

if(document.getElementById('yy')!=null)
  {
  

      var tab_oof=31;

  }
  else
  {
    var tab_oof="";
  }

  
//百方网导航
function Divdisplay1()
{
  
    var tab_oofH= document.getElementById('g2').offsetTop;
    var heades=document.getElementById("div1");
    var tabLeft= document.getElementById('g2').offsetLeft;
    

   
      
   if( document.getElementById('Layer4')!=null )
   {
    
        var width2="";
        document.getElementById('Layer4').style.display='block' ;
        var a=document.getElementById("Layer4");  
          
        if(document.body.clientWidth<970){
        
               width2=tabLeft;  
          }
         else
         {
        
          width2=tabLeft;
         
         }
   
      
         a.style.left=width2+"px"

     }
 else{

       if(document.body.clientWidth<970)
         {
        
             width=tabLeft;
          }
         else
         {
          width=tabLeft;
         
         }
         var div2= document.createElement("div");
         div2.id='Layer4';
         div2.className="Layer4";
         div2.style.left= width+"px";
         

                  div2.innerHTML= "<table width=\"94%\" style=\"margin-top:4px;margin-bottom:6px;\" align=\"center\" class=\"aa\"><tr height=\"15\" style=\"line-height:2;\"><td align =\"left\"  width=\"40\"  ><a  href=\"http://www.byf.com\" target=\"_blank\">首页</a></td>"+
         "<td align =\"center\"  width=\"40\" ><a  href=\"http://trade.byf.com\" target=\"_blank\">产品</a></td>"+
         "<td width=\"40\" align =\"left\"  ><a  href=\"http://b2b.byf.com\" target=\"_blank\">公司</a></td>"+
         "<td width=\"40\"align =\"left\"  ><a  href=\" http://sq.byf.com\"  target=\"_blank\">商情</a></td>"+ 
         "<td width=\"40\"align =\"left\"  ><a  href=\"http://hq.byf.com\" target=\"_blank\">行情</a></td></tr>"+
        
         "<tr height=\"15\" style=\"line-height:2;\"><td width=\"40\" align =\"left\"  ><a  href=\"http://buy.byf.com\"target=\"_blank\" >买家</a></td>"+
         "<td width=\"40\" align =\"left\" ><a  href=\"http://news.byf.com\" target=\"_blank\">资讯</a></td>"+
         "<td width=\"40\" align =\"left\" ><a  href=\"http://exp.byf.com/\" target=\"_blank\">展会</a></td>"+
          "<td width=\"40\" align =\"left\"  ><a  href=\"http://video.byf.com\" target=\"_blank\">视频</a></td>"+
         "<td width=\"40\"align =\"left\"><a  href=\"http://vip.byf.com\" target=\"_blank\">金卡</a></td></tr>"+
        
       
        "<tr height=\"15\" style=\"line-height:2;\"> <td width=\"40\"align =\"left\"><a  href=\"http://56.byf.com\" target=\"_blank\">物流</a></td>"+
        "<td width=\"40\" align =\"left\"><a  href=\"http://brand.byf.com\" target=\"_blank\">品牌</a></td>"+
        "<td width=\"40\" align =\"left\" ><a  href=\"http://co.byf.com\" target=\"_blank\">样本</a></td>"+
        "<td width=\"40\" align =\"left\"  ><a  href=\"http://person.byf.com\" target=\"_blank\">访谈</a></td>"+
        "<td width=\"40\"align =\"left\"  ><a  href=\"http://xh.byf.com\" target=\"_blank\">协会</a></td></tr>"+
       
        "<tr height=\"15\" style=\"line-height:2;\"><td width=\"40\" align =\"left\"  ><a  href=\"http://bbs.byf.com\" target=\"_blank\">论坛 </a></td>"+
        "<td width=\"40\"align =\"left\"><a href=\"http://spe.byf.com\" target=\"_blank\">专题</a></td>"+
        "<td width=\"40\" align =\"left\"><a  href=\"http://person.byf.com/f_index.shtml\" target=\"_blank\">人物</a></td>"+
        "<td width=\"40\" align =\"left\" ><a  href=\"http://zb.byf.com\" target=\"_blank\">招标</a></td>"+
        "<td width=\"40\" align =\"left\"  ><a  href=\"http://job.byf.com\" target=\"_blank\">人才</a></td>"+
        
         "</tr></table>";


         heades.appendChild(div2);
         heades.onmouseout=function()
         {
          document.getElementById("Layer4").style.display = "none"; 
         }
 }
}
//百方网服务
function Divdisplay()
{
   
     var  header=document.getElementById("divt");
     var tabLeft= document.getElementById('g3').offsetLeft;
     var tab_oofH= document.getElementById('g3').offsetTop;
     var width2="";
   
  
    if( document.getElementById('Layer3')!=null )
     {
          document.getElementById('Layer3').style.display='block' ;
          var a=document.getElementById("Layer3");    
          
          if(document.body.clientWidth<970)
          {
               width2=tabLef;
          }
         else
         {
          width2=tabLeft;
         
         }
  
         a.style.left=width2+"px"
     }
    else{

        if(document.body.clientWidth<970){
               width2=tabLeft;  
          }
         else
         {
          width2=tabLeft;
         
        }
        var aa2= document.createElement("div");
          aa2.id='Layer3';
          aa2.className="Layer3";
          aa2.style.left=width2+"px";
          aa2.style.top=tab_oofH+23+tab_oof+"px";
          aa2.innerHTML="<table width=\"91%\" style=\"margin-top:4px;margin-bottom:6px;\" align=\"center\" class=\"aa\"><tr height=\"15\" style=\"line-height:2;\"><td  width=\"70\" align =\"left\"><a  href=\"http://cp.byf.com/service_member.html\" target=\"_blank\">会员服务</a></td>"+
        "<td width=\"70\" align =\"left\" ><a  href=\"http://cp.byf.com/service_adv.html\" target=\"_blank\"> 广告服务</a></td>"+
         "<td width=\"70\"  align =\"left\"><a  href=\"http://cp.byf.com/service_comp.html\" target=\"_blank\"> 企业推广</a></td></tr>"+
         
       "<tr height=\"15\" style=\"line-height:2;\"><td width=\"70\"  align =\"left\"><a  href=\"http://cp.byf.com/service_co.html\" target=\"_blank\"> 电子样本</a></td>"+
         "<td width=\"70\"  align =\"left\"><a  href=\"http://cp.byf.com/service_key.html\" target=\"_blank\"> 固定排名</a></td>"+
         "<td width=\"70\" align =\"left\" ><a  href=\"http://cp.byf.com/service_gold.html\" target=\"_blank\"> 黄金展位</a></td></tr>"+
         
         "<tr height=\"15\" style=\"line-height:2;\"><td width=\"70\"  align =\"left\"><a  href=\"http://cp.byf.com/service_video.html\" target=\"_blank\">  企业视频</a></td>"+
         "<td width=\"70\"  align =\"left\"><a  href=\"http://cp.byf.com/service_base.html\" target=\"_blank\">  基础业务</a></td>"+
       "<td width=\"70\"></td></tr></table>";  
          header.appendChild(aa2);
       
          header.onmouseout=function()
            {
              document.getElementById("Layer3").style.display="none";
           
            }
    }
  }
  //中国电气供应商
 function Divdisplay2()
   {
    var  header=document.getElementById("div2");
    var tabLeft= document.getElementById('q1').offsetLeft;
    var tab_oofH= document.getElementById('q1').offsetTop;
    var widthl="";
    
    if( document.getElementById('Layer6')!=null )
     {
        document.getElementById('Layer6').style.display='block' ;
        var b=document.getElementById("Layer6");    
        var width2="";
        if(document.body.clientWidth<970)
         {
            width2=tabLeft;
               
          }
         else
         {

          width2=tabLeft;
         
        }

     
        b.style.left=width2+"px"
       
      
       
     }
         
   
    else{
        var width2="";
        if(document.body.clientWidth<970){
            width2=tabLeft; 
          }


         else
         {
       
            width2=tabLeft;
        
         }
  

          var aa2= document.createElement("div");
          aa2.id='Layer6';
          aa2.className="Layer6";
          aa2.style.left=width2+"px";
          aa2.style.top=tab_oofH+23+tab_oof+"px";
              
             aa2.innerHTML="<table    width=\"85%\" style=\"margin-top:4px;margin-bottom:6px;\" align=\"center\" class=\"aa\"><tr height=\"15\" ><td align =\"left\" width=\"90\" ><a  href=\"http://cp.byf.com/app.html\" target=\"_blank\">在线申请</a></td></tr>"+
         "<tr height=\"15\"><td width=\"90\" align =\"left\" ><a  href=\"http://www.byf.com/about/contactus.html\" target=\"_blank\"> 联系我们</a></td></tr>"+
         "<tr height=\"15\"><td width=\"90\"  align =\"left\" ><a target=\"_blank\" href=\"http://wpa.qq.com/msgrd?v=1&amp;uin=765475051&amp;site=百方网&amp;menu=yes\" >"+
         "<img alt=\"百方网真诚为您服务\" border=\"0\" src=\"http://wpa.qq.com/pa?p=1:765475051:10\" /></a> </td></tr>"+
         "<tr height=\"20\"><td width=\"90\" align =\"left\" ><a href=\"#\"> 400-826-8333 </a> </td></tr>"+
         "</table>"; 

          header.appendChild(aa2);
          header.onmouseout=function()
            {
              document.getElementById("Layer6").style.display="none";
           
            }

    }
  }
  //百方助手
function Divdisplay3()
{

 
     var tab_oofH= document.getElementById('q2').offsetTop;
     var tabW= document.getElementById('q2').offsetLeft;
     var headers=document.getElementById("div3").innerHTML;
     var  header=document.getElementById("div3");
   
   
  
    if( document.getElementById('Layer8')!=null )
    {
       
           document.getElementById('Layer8').style.display='block' ;
           var width2="";
           var b=document.getElementById("Layer8");    
           if(document.body.clientWidth<970){
        
               width2=tabW;
               
          }
         else
         {
          width2=tabW;      
         }

        b.style.left=width2+"px"
     }
    else{
          if(document.body.clientWidth<970){
            width2=tabW;   
          }
         else
         {
          var bb=document.body.clientWidth;
          var aa=(document.body.clientWidth-970)/2;
          width2=tabW;
         }
         var aa2= document.createElement("div");
         aa2.id='Layer8';
         aa2.className="Layer8";
         aa2.style.left= width2+"px";
         aa2.style.top=tab_oofH+23+tab_oof+"px";
         aa2.innerHTML="<table width=\"85%\" style=\"margin-top:4px;margin-bottom:6px;\" align=\"center\" class=\"aa\"><tr height=\"15\" ><td align =\"left\" width=\"90\" ><a href =\"http://www.byf.com/\membercenter/biz/addBiz.aspx?BZI_TYPE=1\" target=\"_blank\">发布产品信息</a></td></tr>"+
         "</table>"; 
          header.appendChild(aa2);
          header.onmouseout=function()
            {
              document.getElementById("Layer8").style.display="none";
             
       }
    }
  }
  

function Divdisplay4()
{

 
     var tab_oofH= document.getElementById('q5').offsetTop;
     var tabW= document.getElementById('q5').offsetLeft;
     var headers=document.getElementById("div4").innerHTML;
     var  header=document.getElementById("div4");
   
   
   
  
    if( document.getElementById('Layer9')!=null )
    {
       
           document.getElementById('Layer9').style.display='block' ;
           var width2="";
           var b=document.getElementById("Layer9");    
           if(document.body.clientWidth<970){
        
               width2=tabW;
               
          }
         else
         {
          width2=tabW;      
         }

        b.style.left=width2-69+"px"
     }
    else{
          if(document.body.clientWidth<970){
            width2=tabW;   
          }
         else
         {
          var bb=document.body.clientWidth;
          var aa=(document.body.clientWidth-970)/2;
          width2=tabW;
         }
         var aa2= document.createElement("div");
         aa2.id='Layer9';
         aa2.className="Layer9";
         aa2.style.left= width2-69+"px";
         aa2.style.top=tab_oofH+23+tab_oof+"px";
          aa2.innerHTML="<table width=\"94%\" style=\"margin-top:4px;margin-bottom:6px;\" align=\"center\" class=\"aa\">"+
        "<tr height=\"23\" ><td align =\"left\" width=\"90\" ><a href =\"http://www.dnedn.cn\" target=\"_blank\">鼎域网</a></td>"+
        "<td align =\"left\" width=\"90\" ><a href =\"http://www.bfjieju.com\" target=\"_blank\">百方洁具网</a></td></tr>"+     
        
         "<tr height=\"23\" ><td align =\"left\" width=\"90\" ><a href =\"http://kg.byf.com\" target=\"_blank\">开关网</a></td>"+
         "<td align =\"left\" width=\"90\" ><a href =\"http://dxdl.byf.com\" target=\"_blank\">电线电缆网</a></td></tr>"+
        
         "<tr height=\"23\" ><td align =\"left\" width=\"90\" ><a href =\"http://byq.byf.com\" target=\"_blank\">变压器网</a></td>"+
         "<td align =\"left\" width=\"90\" ><a href =\"http://fb.byf.com\" target=\"_blank\">防爆电器网</a></td></tr>"+
        "</table>"; 
          header.appendChild(aa2);
          header.onmouseout=function()
            {
              document.getElementById("Layer9").style.display="none";
             
       }
    }
  }
  




