﻿//javascript cookie类
function jsCookie(){   
  
    var COOKIE_LIFE ={year:31536000,month:2592000,week:604800,   
  
                      day:86400,hour:3600,browser:0}   
  
       
  
    this.expires = 'browser';   
  
    this.path = null;   
  
    this.domain = null;   
  
    this.secure = null;   
  
       
  
    this.get=function(fieldName){       
  
        var regexp = window.eval("/"+fieldName+"=([\\w%,]+)(|;)/");   
  
        var result = document.cookie.match(regexp);   
  
        return (result?unescape(result[1]):null);   
  
    }       
  
    this.set=function(fieldName,fieldValue){   
  
        var cookie_list;   
  
        cookie_list = fieldName+"="+escape(fieldValue);           
  
        cookie_list += expires_param(this.expires);   
  
        cookie_list += path_param(this.path);   
  
        cookie_list += domain_param(this.domain);   
  
        cookie_list += secure_param(this.secure);   
  
        document.cookie = cookie_list;   
  
    }   
  
    function expires_param(expires){   
  
        var tm=0;   
  
        if(typeof(expires)=='string'){   
  
            if(!COOKIE_LIFE[expires]) return "";       
  
            tm = COOKIE_LIFE[expires]*1000;           
  
        }else if(typeof(expires)=='number'){               
  
            tm = expires*1000;   
  
        }else{return "";}   
  
        expires = ";expires="+new Date(new Date().getTime()+ tm).toUTCString();   
  
        return expires;   
  
    }   
  
    function path_param(path){   
  
        if(!path) return "";   
  
        return (";path="+path);   
  
    }   
  
    function domain_param(domain){   
  
        if(!domain) return "";   
  
        return (";domain="+domain);   
  
    }   
  
    function secure_param(secure){   
  
        if(secure!='secure') return "";       
  
        return ";secure";   
  
    }   
  
}  

//使用方法
//ck = new jsCookie();
  
//ck.expires = 'browser';   
  
//ck.path='/';  //可以不写 
  
//ck.domain='.xxx.com';  //可以不写  
  
//ck.secure = 'secure';   //可以不写 
  
//ck.set("abc","123456");   
  
//alert(ck.get("abc"));   
function NavMenu(n)
{
    ck = new jsCookie();  
    ck.expires = 'browser';
    ck.set("menuid",n);
    var menuarry=document.getElementById("TopNav").getElementsByTagName("li");
    var menuEng=document.getElementById("NavEn").getElementsByTagName("li");
    for(var i=0;i<menuarry.length;i++)
    {
        if(i==0)
        {
            menuarry[i].className="menu_1";
        }
        else
        {
            menuarry[i].className="menu_2";
        }
    }
    for(var i=0;i<menuarry.length;i++)
    {
       menuEng[i].className="tp2";
    }
    menuEng[n-1].className="tp1";
    if( n == 1)
    {
      menuarry[n-1].className="menu_expanded1";
    }
    else{
      menuarry[n-1].className="menu_expanded2";
    }    
}
window.onload = function(){ 
   ck = new jsCookie();  
   ck.expires = 'browser';
   if(ck.get("menuid")!= null)
   {
       NavMenu(ck.get("menuid"));
   }
   else
   {
     NavMenu(1);
   }
}

//客服qq

document.writeln("<DIV id=kefudiv onMouseOver=\"KefuQQMSN.style.display=\'\'\" style=\"RIGHT: 0px; POSITION:absolute; TOP:10px;\" onmouseout=\"KefuQQMSN.style.display=\'none\'\" >");
document.writeln("<TABLE cellPadding=0 border=0>");
document.writeln("  <TR>");
document.writeln("    <TD vAlign=top><IMG src=\"qqimg\/QQkf_l.gif\"><\/TD>");
document.writeln("    <TD id=KefuQQMSN style=\"DISPLAY: none\"0>");
document.writeln("<div id=\"qq\">");
document.writeln("  <div id=\"qq_top\"><\/div>");
document.writeln("  <div id=\"qq_body\">");
document.writeln("    <ul>");
document.writeln("	<li style=\"font-weight:bold;\">业务咨询<\/li>");
document.writeln(" ");
document.writeln("	  <li><img border=\"0\" SRC=http:\/\/wpa.qq.com\/pa?p=1:97515605:4 alt=\"海得印务\" ><a href=\"http:\/\/wpa.qq.com\/msgrd?V=1&amp;Uin=97515605&amp;Site=海得印务&amp;Menu=yes&quot;\" target=\"_blank\">业务-徐小姐<\/a><\/li>");
document.writeln("	   <li><img border=\"0\" SRC=http:\/\/wpa.qq.com\/pa?p=1:97515607:4 alt=\"海得印务\" ><a href=\"http:\/\/wpa.qq.com\/msgrd?V=1&amp;Uin=97515607&amp;Site=海得印务&amp;Menu=yes&quot;\" target=\"_blank\">业务-付先生<\/a><\/li>");
document.writeln(" <li><img border=\"0\" SRC=http:\/\/wpa.qq.com\/pa?p=1:97515603:4 alt=\"海得印务\" ><a href=\"http:\/\/wpa.qq.com\/msgrd?V=1&amp;Uin=97515603&amp;Site=海得印务&amp;Menu=yes&quot;\" target=\"_blank\">业务-周先生<\/a><\/li>");
document.writeln(" <li><img border=\"0\" SRC=http:\/\/wpa.qq.com\/pa?p=1:97515610:4 alt=\"海得印务\" ><a href=\"http:\/\/wpa.qq.com\/msgrd?V=1&amp;Uin=97515610&amp;Site=海得印务&amp;Menu=yes&quot;\" target=\"_blank\">业务-陈先生<\/a><\/li>");
document.writeln(" <li><img border=\"0\" SRC=http:\/\/wpa.qq.com\/pa?p=1:97515609:4 alt=\"海得印务\" ><a href=\"http:\/\/wpa.qq.com\/msgrd?V=1&amp;Uin=97515609&amp;Site=海得印务&amp;Menu=yes&quot;\" target=\"_blank\">业务-张先生<\/a><\/li>");
document.writeln("	   <li><img border=\"0\" SRC=http:\/\/wpa.qq.com\/pa?p=1:97515045:4 alt=\"海得印务\" ><a href=\"http:\/\/wpa.qq.com\/msgrd?V=1&amp;Uin=97515045&amp;Site=海得印务&amp;Menu=yes&quot;\" target=\"_blank\">业务-叶小姐<\/a><\/li>");
document.writeln("	  	   <li><img border=\"0\" SRC=http:\/\/wpa.qq.com\/pa?p=1:97515608:4 alt=\"海得印务\" ><a href=\"http:\/\/wpa.qq.com\/msgrd?V=1&amp;Uin=97515608&amp;Site=海得印务&amp;Menu=yes&quot;\" target=\"_blank\">业务-蒋先生<\/a><\/li>");
document.writeln("	   <li><img border=\"0\" SRC=http:\/\/wpa.qq.com\/pa?p=1:97515604:4 alt=\"海得印务\" ><a href=\"http:\/\/wpa.qq.com\/msgrd?V=1&amp;Uin=97515604&amp;Site=海得印务&amp;Menu=yes&quot;\" target=\"_blank\">业务-苏先生<\/a><\/li>");
document.writeln("		 <li style=\"font-weight:bold;\">文件接收<\/li>  ");
document.writeln("	 <li><img border=\"0\" SRC=http:\/\/wpa.qq.com\/pa?p=1:97515602:4 alt=\"海得印务\" ><a href=\"http:\/\/wpa.qq.com\/msgrd?V=1&amp;Uin=97515602&amp;Site=海得印务&amp;Menu=yes&quot;\" target=\"_blank\">海得收文件01<\/a><\/li>	");
document.writeln("	 <li><img border=\"0\" SRC=http:\/\/wpa.qq.com\/pa?p=1:763989511:4 alt=\"海得印务\" ><a href=\"http:\/\/wpa.qq.com\/msgrd?V=1&amp;Uin=763989511&amp;Site=海得印务&amp;Menu=yes&quot;\" target=\"_blank\">海得收文件02<\/a><\/li>	");
document.writeln("	 <li><img border=\"0\" SRC=http:\/\/wpa.qq.com\/pa?p=1:97515574:4 alt=\"海得印务\" ><a href=\"http:\/\/wpa.qq.com\/msgrd?V=1&amp;Uin=97515574&amp;Site=海得印务&amp;Menu=yes&quot;\" target=\"_blank\">海得收文件03<\/a><\/li>");
document.writeln("	 <li><img border=\"0\" SRC=http:\/\/wpa.qq.com\/pa?p=1:97515584:4 alt=\"海得印务\" ><a href=\"http:\/\/wpa.qq.com\/msgrd?V=1&amp;Uin=97515584&amp;Site=海得印务&amp;Menu=yes&quot;\" target=\"_blank\">海得收文件04<\/a><\/li>");
document.writeln("	");
document.writeln("	<\/ul>");
document.writeln("  <\/div>");
document.writeln("  <div id=\"qq_end\"><\/div>");
document.writeln("<\/div><\/TD>");
document.writeln("  <\/TR>");
document.writeln("<\/TABLE>");
document.writeln("<\/DIV>")

function makeStatic() {
if (document.all) {kefudiv.style.pixelTop=document.documentElement.scrollTop+100}
else {eval("document.kefudiv.top=eval(window.pageYOffset+20)");}
setTimeout("makeStatic()",0);}
 <!--
KefuQQMSN.style.display="none";
if (document.all||document.layers)
makeStatic();
if (document.layers) {
window.onload=position;
}
var sitems=new Array();
var sitemlinks=new Array();
function hl(n) {
n.className='hl'}
function n(h) {
h.className='n'}
//-->

function makeStatic() {
if (document.all) 
{kefudiv.style.pixelTop=document.documentElement.scrollTop+100}
else {eval("document.kefudiv.top=eval(window.pageYOffset+20)");}
setTimeout("makeStatic()",0);}
