﻿
        function Dsy() 
        { 
            this.Items = {}; 
        } 
        Dsy.prototype.add = function(id,iArray) 
        { 
            this.Items[id] = iArray; 
        } 
        Dsy.prototype.Exists = function(id) 
        { 
            if(typeof(this.Items[id]) == "undefined") return false; 
            return true; 
        }
        var p1= unescape(window.urladd_sheng); 
        var p2= unescape(window.urladd_city); 
        var s=["s1","s2"]; 
    
        //var opt0 = [p1,p2]; 
        var opt0 = [window.urladd_sheng,window.urladd_city]; 
        
        //document.write(window.urladd);
            
        var dsy = new Dsy();

        dsy.add("0",["北京市","天津市","河北省","山西省","内蒙古","辽宁省","吉林省","黑龙江省","上海市","江苏省","浙江省","安徽省","福建省","江西省","山东省","河南省","湖北省","湖南省","广东省","广西自治区","海南省","重庆市","四川省","贵州省","云南省","西藏自治区","陕西省","甘肃省","青海省","宁夏回族自治区","新疆维吾尔自治区","香港特别行政区","澳门特别行政区","台湾省","其它"]);

        dsy.add("0_0",["北京","东城区","西城区","崇文区","宣武区","朝阳区","丰台区","石景山区"," 海淀区（中关村）","门头沟区","房山区","通州区","顺义区","昌平区","大兴区","怀柔区","平谷区","密云县","延庆县","其他"]); 
        dsy.add("0_1",["和平区","河东区","河西区","南开区","红桥区","塘沽区","汉沽区","大港区","西青区","津南区","武清区","蓟县","宁河县","静海县","其他"]); 
        dsy.add("0_2",["石家庄市","张家口市","承德市","秦皇岛市","唐山市","廊坊市","衡水市","沧州市","邢台市","邯郸市","保定市","其他"]); 
        dsy.add("0_3",["太原市","朔州市","大同市","长治市","晋城市","忻州市","晋中市","临汾市","吕梁市","运城市","其他"]); 
        dsy.add("0_4",["呼和浩特市","包头市","赤峰市","呼伦贝尔市","鄂尔多斯市","乌兰察布市","巴彦淖尔市","兴安盟","阿拉善盟","锡林郭勒盟","其他"]); 
        dsy.add("0_5",["沈阳市","朝阳市","阜新市","铁岭市","抚顺市","丹东市","本溪市","辽阳市","鞍山市","大连市","营口市","盘锦市","锦州市","葫芦岛市","其他"]); 
        dsy.add("0_6",["长春市","白城市","吉林市","四平市","辽源市","通化市","白山市","延边朝鲜族自治州","其他"]); 
        dsy.add("0_7",["哈尔滨市","七台河市","黑河市","大庆市","齐齐哈尔市","伊春市","佳木斯市","双鸭山市","鸡西市","大兴安岭地区(加格达奇)","牡丹江","鹤岗市","绥化市　","其他"]); 
        dsy.add("0_8",["黄浦区","卢湾区","徐汇区","长宁区","静安区","普陀区","闸北区","虹口区","杨浦区","闵行区","宝山区","嘉定区","浦东新区","金山区","松江区","青浦区","南汇区","奉贤区","崇明县","其他"]); 
        dsy.add("0_9",["南京市","徐州市","连云港市","宿迁市","淮安市","盐城市","扬州市","泰州市","南通市","镇江市","常州市","无锡市","苏州市","其他"]);
        dsy.add("0_10",["杭州市","湖州市","嘉兴市","舟山市","宁波市","绍兴市","衢州市","金华市","台州市","温州市","丽水市","其他"]);
        dsy.add("0_11",["合肥市","宿州市","淮北市","亳州市","阜阳市","蚌埠市","淮南市","滁州市","马鞍山市","芜湖市","铜陵市","安庆市","黄山市","六安市","巢湖市","池州市","宣城市","其他"]);
        dsy.add("0_12",["福州市","南平市","莆田市","三明市","泉州市","厦门市","漳州市","龙岩市","宁德市","其他"]);
        dsy.add("0_13",["南昌市","九江市","景德镇市","鹰潭市","新余市","萍乡市","赣州市","上饶市","抚州市","宜春市","吉安市","其他"]);
        dsy.add("0_14",["济南市","聊城市","德州市","东营市","淄博市","潍坊市","烟台市","威海市","青岛市","日照市","临沂市","枣庄市","济宁市","泰安市","莱芜市","滨州市","菏泽市","其他"]);
        dsy.add("0_15",["郑州市","三门峡市","洛阳市","焦作市","新乡市","鹤壁市","安阳市","濮阳市","开封市","商丘市","许昌市","漯河市","平顶山市","南阳市","信阳市","周口市","驻马店市","其他"]);
        dsy.add("0_16",["武汉市","十堰市","襄樊市","荆门市","孝感市","黄冈市","鄂州市","黄石市","咸宁市","荆州市","宜昌市","随州市","恩施土家族苗族自治州","仙桃市","天门市","潜江市","神农架林区","其他"]);
        dsy.add("0_17",["长沙市","张家界市","常德市","益阳市","岳阳市","株洲市","湘潭市","衡阳市","郴州市","永州市","邵阳市","怀化市","娄底市","湘西土家族苗族自治州","其他"]);
        dsy.add("0_18",["广州市","清远市市","韶关市","河源市","梅州市","潮州市","汕头市","揭阳市","汕尾市","惠州市","东莞市","深圳市","珠海市","中山市","江门市","佛山市","肇庆市","云浮市","阳江市","茂名市","湛江市","其他"]);
        dsy.add("0_19",["南宁市","桂林市","柳州市","梧州市","贵港市","玉林市","钦州市","北海市","防城港市","崇左市","百色市","河池市","来宾市","贺州市","其他"]);
        dsy.add("0_20",["海口市","三亚市","其他"]);
        dsy.add("0_21",["渝中区","大渡口区","江北区","沙坪坝区","九龙坡区","南岸区","北碚区","万盛区","双桥区","渝北区","巴南区","万州区","涪陵区","黔江区","长寿区","合川市","永川市","江津市","南川市","綦江县","潼南县","铜梁县","大足县","璧山县","垫江县","武隆县","丰都县","城口县","开县","巫溪县","巫山县","奉节县","云阳县","忠县","石柱土家族自治县","彭水苗族土家族自治县","酉阳土家族苗族自治县","秀山土家族苗族自治县","其他"]);
        dsy.add("0_22",["成都市","广元市","绵阳市","德阳市","南充市","广安市","遂宁市","内江市","乐山市","自贡市","泸州市","宜宾市","攀枝花市","巴中市","资阳市","眉山市","雅安","阿坝藏族羌族自治州","甘孜藏族自治州","凉山彝族自治州县","其他"]);
        dsy.add("0_23",["贵阳市","六盘水市","遵义市","安顺市","毕节地区","铜仁地区","黔东南苗族侗族自治州","黔南布依族苗族自治州","黔西南布依族苗族自治州","其他"]);
        dsy.add("0_24",["昆明市","曲靖市","玉溪市","保山市","昭通市","丽江市","普洱市","临沧市","宁德市","德宏傣族景颇族自治州","怒江傈僳族自治州","楚雄彝族自治州","红河哈尼族彝族自治州","文山壮族苗族自治州","大理白族自治州","迪庆藏族自治州","西双版纳傣族自治州","其他"]);
        dsy.add("0_25",["拉萨市","那曲地区","昌都地区","林芝地区","山南地区","日喀则地区","阿里地区","其他"]);
        dsy.add("0_26",["西安市","延安市","铜川市","渭南市","咸阳市","宝鸡市","汉中市","安康市","商洛市","其他"]);
        dsy.add("0_27",["兰州市 ","嘉峪关市","金昌市","白银市","天水市","武威市","酒泉市","张掖市","庆阳市","平凉市","定西市","陇南市","临夏回族自治州","甘南藏族自治州","其他"]);
        dsy.add("0_28",["西宁市","海东地区","海北藏族自治州","黄南藏族自治州","玉树藏族自治州","海南藏族自治州","果洛藏族自治州","海西蒙古族藏族自治州","其他"]);
        dsy.add("0_29",["银川市","石嘴山市","吴忠市","固原市","中卫市","其他"]);
        dsy.add("0_30",["乌鲁木齐市","克拉玛依市","喀什地区","阿克苏地区","和田地区","吐鲁番地区","哈密地区","塔城地区","阿勒泰地区","克孜勒苏柯尔克孜自治州","博尔塔拉蒙古自治州","昌吉回族自治州 伊犁哈萨克自治州","巴音郭楞蒙古自治州","河子市","阿拉尔市","五家渠市","图木舒克市","其他"]);
        dsy.add("0_31",["香港","其他"]);
        dsy.add("0_31",["澳门","其他"])
        dsy.add("0_32",["台湾","其他"])
            
      

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    

        /* 客服改版，邀请框转为留言功能*/


        function act(t)
        {	
	        if(t.value==unescape(window.invite_word))
	        {
		        t.value='';
	        }
        }

        function deact(t)
        {
	        if(t.value=='')
	        {
		        t.value=unescape(window.invite_word);
	        }
        }



//网页内容
        //var version_new =true;

        ivtstr="";
  
        ivtstr+="<div style='color:#000; width:500px;overflow:hidden; border:0px #000 solid; margin-top:0px; margin-left:0px;' scroll='no' ><div class='MBox' id='MBox' style='width:300px; height:359px; border:0px;' >";
       
        if(window.version_new)
        {
            ivtstr+="<div class='title' style='width:300px; height:65px; border:0px #000 solid; background:url(/kf/sys_images/title_1.gif) no-repeat;'><a id='aa' onclick='javascript:change_open();' style='width:25px; height:25px; float:right; margin-top:21px; border:0px #000 solid; display:block;' ></a></div>";             
        }
        else
        {
            ivtstr+="<div class='title' style='width:300px; height:65px; border:0px #000 solid; background:url(/kf/sys_images/title.gif) no-repeat;'><a id='aa' onclick='javascript:change_open();' style='width:25px; height:25px; float:right; margin-top:21px; border:0px #000 solid; display:block;' ></a></div>"; 
        }
        ivtstr+="<div class='body' style='width:300px; overflow:hidden; height:294px; background:url(/kf/sys_images/body.gif) no-repeat; text-align:center;' id='win_right_down'>";
        
        //ivtstr+="<textarea name='message' onfocus='act(this)' onblur='deact(this)' style='width:270px; height:64px; border:1px #3B7398 solid;overflow:hidden ; display:inline;' id='TEXTAREA1' >请告诉我们您的需求，并留下QQ号和电话；我们的创业顾问竭诚为您服务！</textarea>";
        
        if(window.version_new)
        {
            ivtstr+="<div style='width:280px; height:93px; background:url(/kf/sys_images/msg_1.gif) no-repeat; border:0px #3B7398 solid;overflow:hidden ; display:block;' ></div>";
            ivtstr+="<div style='width:280px; height:20px; border:0px #3B7398 solid;overflow:hidden ; display:block; margin-top:5px; text-align:left; line-height:20px; ' >·我对以下资讯感兴趣（可多选）</div>";
            ivtstr+="<div class='items' style='width:300px; height:70px; border:0px #3B7398 solid; '>";
            
            ivtstr+="<div style='width:100%; height:40px;' >";
            ivtstr+="<input id='Checkbox1'name='item' type='checkbox' style='margin:8px 0 0 14px;float:left; display:inline;' /><div style='margin:8px 0 0 4px;width:50px; float:left; display:inline; line-height:22px; '>在家创业</div>";
            ivtstr+="<input id='Checkbox2' name='item' type='checkbox' style='margin:8px 0 0 20px;float:left;display:inline;' /><div style='margin:8px 0 0 4px;width:50px; float:left; display:inline; line-height:22px; '>免费开店</div>";
            ivtstr+="<input id='Checkbox3' name='item' type='checkbox' style='margin:8px 0 0 20px;float:left;display:inline;' /><div style='margin:8px 0 0 4px;width:50px; float:left; display:inline; line-height:22px; '>消费致富</div> </div> ";
            ivtstr+="<div style='width:100%; height:30px;' >";
            ivtstr+="<input id='Checkbox4' name='item' type='checkbox' style='margin:4px 0 0 14px;float:left; display:inline; ' /><div style='margin:4px 0 0 4px;width:50px; float:left; display:inline; line-height:22px; '>产品购买</div>";
            ivtstr+="<input id='Checkbox5' name='item' type='checkbox' style='margin:4px 0 0 20px;float:left;display:inline;' /><div style='margin:4px 0 0 4px;width:50px; float:left; display:inline; line-height:22px; '>网络赚钱</div>";
            ivtstr+="<input id='Checkbox6' name='item' type='checkbox' style='margin:4px 0 0 20px;float:left;display:inline;' /><div style='margin:4px 0 0 4px;width:50px; float:left; display:inline; line-height:22px; '>兼职机会</div></div></div> ";
        }
        else        
        {
            ivtstr+="<textarea name='message' onfocus='act(this)' onblur='deact(this)' style='width:270px; height:64px; border:1px #3B7398 solid;overflow:hidden ; color:gray; display:inline;' id='TEXTAREA1' >"+unescape(window.invite_word)+"</textarea>";
            ivtstr+="<div class='items' style='width:300px; height:90px; border:0px; '><div style='width:100%; height:54px;' ><input id='Checkbox1'name='item' type='checkbox' style='margin:31px 0 0 14px;float:left; display:inline;' /><div style='margin:31px 0 0 4px;width:50px; float:left; display:inline; line-height:22px; '>在家创业</div><input id='Checkbox2' name='item' type='checkbox' style='margin:31px 0 0 20px;float:left;display:inline;' /><div style='margin:31px 0 0 4px;width:50px; float:left; display:inline; line-height:22px; '>免费开店</div><input id='Checkbox3' name='item' type='checkbox' style='margin:31px 0 0 20px;float:left;display:inline;' /><div style='margin:31px 0 0 4px;width:50px; float:left; display:inline; line-height:22px; '>消费致富</div> </div> <div style='width:100%; height:40px; display:block;' ><input id='Checkbox4' name='item' type='checkbox' style='margin:7px 0 0 14px;float:left; display:inline; ' /><div style='margin:7px 0 0 4px;width:50px; float:left; display:inline; line-height:22px; '>产品购买</div><input id='Checkbox5' name='item' type='checkbox' style='margin:7px 0 0 20px;float:left;display:inline;' /><div style='margin:7px 0 0 4px;width:50px; float:left; display:inline; line-height:22px; '>网络赚钱</div><input id='Checkbox6' name='item' type='checkbox' style='margin:7px 0 0 20px;float:left;display:inline;' /><div style='margin:7px 0 0 4px;width:50px; float:left; display:inline; line-height:22px; '>兼职机会</div></div></div> ";
        }
        
        
        
        if(window.version_new)
        {
            ivtstr+="<div style='width:100%; height:20px; margin-top:5px; border:0px #3B7398 solid; '> <div style='width:80px; height:14px; float:left; margin-top:5px; margin-left:9px; '>接收邮箱：</div>  <div style='width:190px; height:20px; float:left; border:1px solid #3B7398; background:#fff; '> <input type='text' maxlength='12'name='MYQQ' style='height:14px;border:0px solid #3B7398; width:103px; margin-top:2px;float:left;' id='Text1'/> <select name='mtype' id='mtype' style=' width:80px ;  '  > <option value ='@qq.com' >@qq.com</option></select> </div></div>";                    
        }
        else
        {
            ivtstr+="<div style='width:100%; height:20px; margin-top:5px; '> <div style='width:80px; height:14px; float:left; margin-top:5px; margin-left:9px; '>我的 QQ ：</div>  <div style='width:190px; height:20px; float:left; border:1px solid #3B7398; background:#fff; '> <input type='text' maxlength='12'name='MYQQ' style='height:14px;border:0px solid #3B7398; width:167px; margin-top:2px;float:left;' id='Text1'/> <img src='/kf/sys_images/qq.gif' alt='' style=' border:0px; margin-top:2px; ' /> </div></div>";        
            ivtstr+="<div style='width:100%; height:20px;margin-top:5px; '> <div style='width:80px; height:14px; float:left; margin-top:5px; margin-left:9px; '>我的电话：</div>  <div style='width:190px; height:20px; float:left; border:1px solid #3B7398; background:#fff; '> <input type='text' maxlength='15'name='MYTEL' style='height:14px;border:0px solid #3B7398; width:167px;margin-top:2px;float:left;' id='Text2'/><img src='/kf/sys_images/tel.gif' alt='' style=' border:0px; margin-top:2px; ' /> </div></div>";        
        }
        
        ivtstr+="<div style='width:100%; height:20px;margin-top:5px; '> <div style='width:80px; height:14px; float:left; margin-top:5px; margin-left:9px; '>我的地址：</div> <div style='width:192px; height:20px; float:left; border:0px solid #3B7398;  '> <select name='s1' id='s1' style=' width:85px;   ' ></select><select name='s2' id='s2' style=' width:104px; margin-left:3px;   '></select>  <SCRIPT language='javascript'>setup()</SCRIPT></div></div>";
        if(window.version_new)
        {
            ivtstr+="<input type='button'  value='' onclick='javascript:check();'  style='width:127px;height:42px;background:url(/kf/sys_images/leav-t.gif);border:none;cursor:pointer; float:right; margin:10px 5px; display:inline; ' /> ";
        }
        else
        {
            ivtstr+="<input type='button'  value='' onclick='javascript:check();'  style='width:120px;height:30px;background:url(sys_images/leav-bt.jpg);border:none;cursor:pointer; float:right; margin:20px 5px; _margin:10px 5px; display:inline;' /> ";
        }
        ivtstr+="</div></div></div>";
        
        
          

         
        function check()
        {                         
            var q=document.getElementById("Text1").value;
            var t="";  
            var m="";
            if(window.version_new)
            { 
                m="来自有奖调查";
                t="888";
            }
            else
            {            
                t = document.getElementById("Text2").value
                m = document.getElementById("TEXTAREA1").value==unescape(window.invite_word)?"":document.getElementById("TEXTAREA1").value;                 
            }
            var adds= document.getElementById("s1").value+document.getElementById("s2").value; 
            var isselect="";
            if(document.getElementById("Checkbox1").checked==true){
                isselect+="1,";
            }
            if(document.getElementById("Checkbox2").checked==true){
                isselect+="2,";
            }
            if(document.getElementById("Checkbox3").checked==true){
                isselect+="3,";
            }
            if(document.getElementById("Checkbox4").checked==true){
                isselect+="4,";
            }
            if(document.getElementById("Checkbox5").checked==true){
                isselect+="5,";
            }
            if(document.getElementById("Checkbox6").checked==true){
                isselect+="6,";
            }
            if(isselect.length<2)
            {
                alert('请至少选一项您感兴趣的内容。');
                return false;
            }

            if (q==""&&t=="")
            { 
                alert('QQ号码和电话请至少填一项。');
                return false;                
            }
            else if (q!="")
            {                
                if (q.search("^-?\\d+$") != 0) {
                    alert("请输入正确的QQ号码!");
                    return false;
                }
                if(q.length>11||q.length<5)
                {
                    alert("请输入正确的QQ号码!");
                    return false;
                }               
            }
            else  if (t!=""&&t!="888")
            {
                 if (t.search("^-?\\d+$") != 0) {
                    alert("请输入正确的电话号码!");
                    return false;
                }
                if(t.length>15||t.length<7)
                {
                    alert("请输入正确的电话号码!");
                    return false;
                }
            }
            /**/
            //document.charset="gb2312";
            //document.leave_msg.submit();
            var  url="/kf/sys/leavemessage.php?message="+escape(m)+"&MYITEM="+isselect+"&MYQQ="+q+"&MYTEL="+t+"&MYADD="+escape(adds)+"&t="+window.invite_type+"&u="+window.invite_userid;
            var scr=document.getElementById('lvmsg_script');
            if(scr) scr.parentNode.removeChild(scr);
            var st=document.createElement('script');
            st.src=url; 
            st.type='text/javascript';
            st.id="lvmsg_script";
            document.getElementsByTagName('head')[0].appendChild(st);
           
            alert('感谢您的支持，我们的创业顾问会第一时间与您联系。');
            onliner_zdfq=3;
            hidden_ivt();
        }

        /*---- end ----*/

      // 邀请框处理 
      var acc_pop_page     = "0";
      var acc_pop_pagenum  = 1;
      var acc_pop_total    = "0";
      var acc_pop_totalnum = 1;
      var nowpage          = "invite_esos__nopage";
      var acc_lr           = "1";
      var acc_tb           = "1";
      var acc_middle       = "1";
      var acc_left         = 115;
      var acc_top          = 200;
      var acc_autotype     = "0"; // 点击接受或拒绝不再弹出 

      var zdyivt            = "0";
      
      var zdyivt_width      = "0px";
      var zdyivt_height     = "0px";
      var acc_reinvite      = "1";
      var acc_reauto        = "1";
      var acc_reauto_time   = 10000;
      var acc_poptime       = 10000;
      var acc_poptype       = 1;
      var acc_freeze        = "off";
      var acc_chattype      = 2;
      var acc_from_kf       = false;
      var hz6d_ivt_effect   = 0;

      var acc_content = "&#26377;&#20160;&#20040;&#21487;&#20197;&#24110;&#21161;&#24744;&#30340;&#21527;?";
      if(0==0)
      {
        acc_content = "&#23458;&#26381;&#19981;&#22312;&#32447;&#65292;&#28857;&#20987;&#30041;&#35328;&#65281;";
      }

      var ivt_timer = 0;
      var force_kf = "";
      var man_content = "";

      document.write("<iframe id=\"kfiframe\" style=\"display:none;width:0px;height:0px; overflow:hidden;\" frameborder=\"0\" ></iframe>");
      document.write("<div id=\"kfivteffect\" style=\"display:none;position:absolute;width:0px;height:0px;overflow:hidden;border:0px solid #1B88D0;background:#D6EEFD;z-index:7997;\"></div>");
      document.write("<div id=\"kfivtwin\" style=\"display:none; height:20px; text-align:left;  overflow:hidden;  border:0px solid #1B88D0; \">"+ivtstr+"</div>");
      
      var GoBottom =false;
      
        function change_open()
        {
            var hz6d_kfivtwin = document.getElementById("kfivtwin"); 
            var status=document.getElementById("win_right_down").style.display;
            if (status=='none') 
            {
                document.getElementById("win_right_down").style.display='';
                document.getElementById("MBox").style.height="359px";
                GoBottom=false;
                hz6d_kfivtwin.style.top = ( document.documentElement.scrollTop+ document.documentElement.clientHeight/2 -70) + 'px';
            }
            else 
            {
                document.getElementById("win_right_down").style.display='none';
                document.getElementById("MBox").style.height="59px";
                GoBottom=true; 
                hz6d_kfivtwin.style.top = ( document.documentElement.scrollTop+ document.documentElement.clientHeight -70) + 'px';
            }
              
        }
        
       

        function change(v){ 
            var str="0"; 
            for(i=0;i<v;i++){ str+=("_"+(document.getElementById(s[i]).selectedIndex-1));}; 
            var ss=document.getElementById(s[v]); 
            with(ss)
            { 
                length = 0; 
                options[0]=new Option(opt0[v],opt0[v]); 
                if(v && document.getElementById(s[v-1]).selectedIndex>0 || !v) 
                { 
                    if(dsy.Exists(str)){ 
                        ar = dsy.Items[str]; 
                        for(i=0;i<ar.length;i++)options[length]=new Option(ar[i],ar[i]); 
                        if(v)options[1].selected = true; 
                    } 
                } 
                if(++v<s.length){change(v);} 
            } 
        }

        function setup() 
        { 
            for(i=0;i<s.length-1;i++) 
            document.getElementById(s[i]).onchange=new Function("change("+(i+1)+")"); 
            change(0); 
        } 



      // 定时调用判断是否显示邀请框 
      function hz6d_checkIvt() { hz6d_showIvt(); }

      // 显示冻结层 
      function hz6d_showFreeze(){
        if(acc_freeze=="on"){
          var div = document.getElementById("hz6d_freeze_div");
          if(div==null) { hz6d_createFreezeDiv(); }
        }
      }

      // 创建冻结层 
      function hz6d_createFreezeDiv(){
        var div = document.createElement('DIV');
        div.id = 'hz6d_freeze_div';
        with(div.style){
          zIndex=6998;
          top='0px';
          left='0px';
          width='100%';
          height='100%';
          border='none';
          margin=padding=0;
          position='absolute';
          backgroundColor='#000';
          opacity='0.2';
          filter='alpha(opacity=20)';
          duration=1000;
        }
        document.body.insertBefore(div,document.body.firstChild);
        hz6d_checkFreezeStyle(div);
      }

      // 定时调整冻结层大小 
      function hz6d_checkFreezeStyle(obj){
        obj.style.width='100%';
        obj.style.height='100%';
        var bodyCW=0,bodyCH=0;
        if(window.innerWidth){
          bodyCW=window.innerWidth;
          bodyCH=window.innerHeight;
        }else if(document.documentElement&&document.documentElement.clientWidth){
          bodyCW=document.documentElement.clientWidth;
          bodyCH=document.documentElement.clientHeight;
        }else if(document.body){
          bodyCW=document.body.clientWidth;
          bodyCH=document.body.clientHeight;
        }

        setTimeout(function(){bodyCW=Math.max(document.body.scrollWidth,bodyCW);
        bodyCH=Math.max(document.body.scrollHeight,bodyCH);
        obj.style.width=bodyCW+'px';
        obj.style.height=bodyCH+'px';
        },1);
      }

      // 删除冻结层 
      function hz6d_destroyFreezeDiv(){
        try{
          var div = document.getElementById("hz6d_freeze_div");
          if(div!=null) { div.parentNode.removeChild(div); }
        }catch(e){}
      }

      // 显示邀请框 
      function hz6d_showIvt(){
        //if(hz6d_isShowIvt())
        if(true)
        {
          if(document.getElementById("kfivtwin").style.display=="none" && onliner_zdfq!=3 || acc_from_kf==true)
         {
            acc_from_kf = false;
            get_ACCWindow();
            //hz6d_setTotalNum();
            //hz6d_setPageNum();
          }
        }
      }

      // 判断是否显示邀请框 
      function hz6d_isShowIvt(){
        if(acc_reinvite==1 && acc_from_kf==true) { return true; }
        if(acc_autotype==3){
          //点击接受或拒绝后不再弹出 
          if(onliner_zdfq!=0){
            return false;
          }
        }
        if(!hz6d_overTotalNum()){
          if(hz6d_overPageNum()){
            return false;
          }
        }else{
          return false;
        }
        return true;
      }

      // 判断是否超过所有页面次数 
      function hz6d_overTotalNum(){
        if(document.getElementById("kfivtwin").style.display!="none") return;
        if(acc_pop_total==1){
          var total_invite = hz6d_getCookie("invite_esos__totalnum_1");
          if(total_invite=="") { total_invite = 0; }
          if(total_invite>=acc_pop_totalnum) { return true; }
        }
        return false;
      }

      // 判断是否超过每个页面次数 
      function hz6d_overPageNum(){
        if(document.getElementById("kfivtwin").style.display!="none") return;
        if(acc_pop_page==1){
          var page_invite = hz6d_getCookie(nowpage);
          if(page_invite=="") { page_invite = 0; }
          if(page_invite>=acc_pop_pagenum) { return true; }
        }
        return false;
      }

      // 设置所有页面弹出次数 
      function hz6d_setTotalNum()
      {
        var total_invite = hz6d_getCookie("invite_esos__totalnum_1");
        if(total_invite=="") { total_invite = 0; }
        total_invite++;
        document.cookie = "invite_esos__totalnum_1="+total_invite;
      }
      
      // 设置每个页面弹出次数 
      function hz6d_setPageNum()
      {
        var page_invite = hz6d_getCookie(nowpage);
        if(page_invite=="") { page_invite = 0; }
        page_invite++;
        document.cookie = nowpage+"="+page_invite;
      }
      
      // 隐藏邀请框 
      function hidden_ivt()
      {
        if(acc_autotype==3) { document.cookie = "onliner_zdfq63854255="+onliner_zdfq; }
        try{ document.getElementById("kfiframe").style.display = "none"; }catch(e){}
        try{ hidden_ACCWindow(); }catch(e){}
        hz6d_destroyFreezeDiv();
        try{ force_kf = ""; }catch(e){}
        
        invite_mark=false;
      }

      //查询link表，判断是否已建立对话 
      if(0==1){ hz6d_sendACC(); }

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
      
      // 强制对话 
      function get_location(type){
        // type:1 覆盖本窗口 2 如果被拦截，则本窗口刷新 
        var openurl= "";
        if(type==1){
          location.href = openurl;
        }else{
          try{
            var chatWindow = window.open(openurl,"_blank","height=473,width=703,top=200,left=200,status=yes,toolbar=no,menubar=no,resizable=yes,scrollbars=no,location=no,titlebar=no");
            chatWindow.focus();
            chatWindow.opener = window;
          }catch(e){ location.href = openurl; }
        }
        try{ force_kf = ""; }catch(e){}
      }
      
      var ivt_top = 0;
      var ivt_left = 0;

      var ivt_width="400";
      var ivt_height="auto";

      var hz6d_effect_time = 200;
      var hz6d_effect_timer = 10;

      // 显示邀请框 
      function get_ACCWindow(){
        var ivtPosition = hz6d_getIvtPosition();

        if(zdyivt==1){
          ivt_height_init = zdyivt_height;
          ivt_width_init = zdyivt_width;
        }else{
          ivt_height_init = "auto";
          //ivt_height_init = "0px";
          ivt_width_init = "400px";
        }
        document.getElementById("kfivtwin").style.height = ivt_height_init;
        document.getElementById("kfivtwin").style.width = ivt_width_init;

        try{
          document.getElementById("kfivtwin").style.zIndex = "7998";
          document.getElementById("kfivtwin").style.fontSize = "12px";
          document.getElementById("kfivtwin").style.position = "absolute";

          document.getElementById("kfiframe").style.width = document.getElementById("kfivtwin").clientWidth + 0 + "px";
          document.getElementById("kfiframe").style.height = document.getElementById("kfivtwin").clientHeight + -7 + "px";
          document.getElementById("kfiframe").style.position = "absolute";
          document.getElementById("kfiframe").style.filter = "alpha(opacity=1)";
          document.getElementById("kfiframe").style.display = "";
        }catch(e){}
        var openurl ="";
        if(man_content!=""){
          try{document.getElementById("hz6d_acc_content").innerHTML = man_content;}catch(e){}
          man_content = "";
        }else{
          try{document.getElementById("hz6d_acc_content").innerHTML = acc_content;}catch(e){}
        }
        try{
          if(zdyivt==1){
            var zdyIds = document.getElementsByTagName("div");
            for(var i=0; i<zdyIds.length; i++){
              if(zdyIds[i].id=="hz6d_esos__invite_acc"){
                zdyIds[i].onclick = function(){onliner_zdfq=2;window.open(openurl,"_blank","height=473,width=703,top=200,left=200,status=yes,toolbar=no,menubar=no,resizable=yes,scrollbars=no,location=no,titlebar=no");hidden_ivt();}
              }
            }
          }else{
            document.getElementById("hz6d_esos__invite_acc").onclick = function(){onliner_zdfq=2;window.open(openurl,"_blank","height=473,width=703,top=200,left=200,status=yes,toolbar=no,menubar=no,resizable=yes,scrollbars=no,location=no,titlebar=no");hidden_ivt();}
          }
        }catch(e){}
        
        function hz6d_open_move(iconDivMain){
          var obj = document.getElementById("kfivtwin");
          obj.style.display = "block";
          var obj_height = obj.offsetHeight;
          var obj_width = obj.offsetWidth;
          obj.style.display = "none";

          var tb_top = parseInt(iconDivMain.style.top.replace("px",""));
          var tb_left = parseInt(iconDivMain.style.left.replace("px",""));
          var tb_width = parseInt(iconDivMain.style.width.replace("px",""));
          var tb_height = parseInt(iconDivMain.style.height.replace("px",""));

          obj = document.getElementById("kfivteffect");
          obj.style.top = tb_top + "px";
          obj.style.left = tb_left + "px";
          obj.style.height = tb_height + "px";
          obj.style.width = tb_width + "px";
          obj.style.display = "block";

          var moveHeight = tb_height;
          var moveWidth  = tb_width;
          var moveTop    = tb_top;
          var moveLeft   = tb_left;

          var offTop     = Math.abs(tb_top-ivtPosition.top);
          var offLeft    = Math.abs(tb_left-ivtPosition.left);

          var topStep    = offTop/(hz6d_effect_time/hz6d_effect_timer);
          var leftStep   = offLeft/(hz6d_effect_time/hz6d_effect_timer);

          var heightStep = (obj_height-tb_height)/(hz6d_effect_time/hz6d_effect_timer);
          var widthStep  = (obj_width-tb_width)/(hz6d_effect_time/hz6d_effect_timer);

          var topD = 1;
          if(tb_top-ivtPosition.top>0) { topD=-1; }
          var leftD = 1;
          if(tb_left-ivtPosition.left>0) { leftD=-1; }

          function dmove(){
            moveHeight += heightStep;
            moveWidth  += widthStep;
            moveTop    += topD*topStep;
            moveLeft   += leftD*leftStep;

            if(moveWidth>obj_width){
              obj.style.display = "none";
              clearInterval(iIntervalId);
              hz6d_showIvtWindow();
            }else{
              var ivtPosition_t = hz6d_getIvtPosition();
              obj.style.height = moveHeight + 'px';
              obj.style.width = moveWidth + 'px';
              obj.style.top = moveTop + (ivtPosition_t.top-ivtPosition.top) + 'px';
              obj.style.left = moveLeft + (ivtPosition_t.left-ivtPosition.left) + 'px';
            }
          }
          var iIntervalId = setInterval(dmove, hz6d_effect_timer);
          try{iconDivMain.style.display = "none";}catch(e){}
        }
        
        if(hz6d_ivt_effect==1 && hz6d_kf_type==2 && hz6d_pos_model==1 && hz6d_hidden==0){
          hz6d_checkIconDivMain();
        }else{
          hz6d_showIvtWindow();
        }

        function hz6d_showIvtWindow(){
          var ivtPosition_t = hz6d_getIvtPosition();
          hz6d_setIvtTop(ivtPosition_t.top);
          hz6d_setIvtLeft(ivtPosition_t.left);
          document.getElementById("kfivtwin").style.display = "block";
          hz6d_initScrollPosition();
          hz6d_showFreeze();
          hz6d_startScrollTimer();
        }
        function hz6d_setIvtTop(top){
          document.getElementById("kfivtwin").style.top = top + "px";
          document.getElementById("kfiframe").style.top = top + "px";
        }
        function hz6d_setIvtLeft(left){
          document.getElementById("kfivtwin").style.left = left + "px";
          document.getElementById("kfiframe").style.left = left + "px";
        }
        function hz6d_initScrollPosition(){
          var scrollPosition = hz6d_getScrollPosition();
          ivt_top = scrollPosition.sTop;
          ivt_left = scrollPosition.sLeft;
        }
        
            
        function hz6d_checkIconDivMain(){
          var iconDivMain = document.getElementById("iconDivMain"+kf_icon_id);
          if(iconDivMain!=null){
            hz6d_open_move(iconDivMain);
          }else{
            setTimeout(hz6d_checkIconDivMain, 100);
          }
        }
        function hz6d_startScrollTimer(){lvmsg_startScrollTimer();
          /*if(ivt_timer==0){
            if(browser=="360" || browser=="TheWorld"){
              ivt_timer = window.setInterval("ivt_autoScroll()", 500);
            }else{
              ivt_timer = window.setInterval("ivt_autoScroll()", 10);
            }
          }*/
        }
        
        
        
        
        function lvmsg_startScrollTimer(){
          if(ivt_timer==0){
            if(browser=="360" || browser=="TheWorld"){
              ivt_timer = window.setInterval("msg_autoScroll()", 500);
            }else{
              ivt_timer = window.setInterval("msg_autoScroll()", 10);
            }
          }
        }

        //if(zdyivt!=1)
        if(false)
        {
          var posX;
          var posY;
          fdiv = document.getElementById("kfivtwin");
          document.getElementById("acc_title").onmousedown=function(e){
            if(!e) e = window.event;   //如果是IE 
            posX = e.clientX - parseInt(fdiv.style.left);
            posY = e.clientY - parseInt(fdiv.style.top);
            document.onmousemove = mousemove;          
          }
          document.onmouseup = function(){
            document.onmousemove = null;
          }
          function mousemove(ev){
            if(ev==null) ev = window.event;//如果是IE 
            fdiv.style.left = (ev.clientX - posX) + "px";
            fdiv.style.top = (ev.clientY - posY) + "px";
            ivt_top = document.body.scrollTop;
            ivt_left = document.body.scrollLeft;
            
            if(ivt_top==0) { ivt_top = document.documentElement.scrollTop; }
            if(ivt_left==0) { ivt_left = document.documentElement.scrollLeft; }
          }
        }
      }

      function hidden_ACCWindow()
      {
        function hz6d_close_move(iconDivMain)
        {
          var obj = document.getElementById("kfivtwin");
          var obj_height = obj.offsetHeight;
          var obj_width = obj.offsetWidth;
          var ivtPosition = {top:obj.offsetTop,left:obj.offsetLeft};
          obj.style.display = "none";

          var tb_top = parseInt(iconDivMain.style.top.replace("px",""));
          var tb_left = parseInt(iconDivMain.style.left.replace("px",""));
          var tb_width = parseInt(iconDivMain.style.width.replace("px",""));
          var tb_height = parseInt(iconDivMain.style.height.replace("px",""));

          obj = document.getElementById("kfivteffect");
          obj.style.top = ivtPosition.top + "px";
          obj.style.left = ivtPosition.left + "px";
          obj.style.height = obj_height + "px";
          obj.style.width = obj_width + "px";
          obj.style.display = "block";

          var moveHeight = obj_height;
          var moveWidth  = obj_width;
          var moveTop    = ivtPosition.top;
          var moveLeft   = ivtPosition.left;

          var offTop     = Math.abs(tb_top-ivtPosition.top);
          var offLeft    = Math.abs(tb_left-ivtPosition.left);

          var topStep    = offTop/(hz6d_effect_time/hz6d_effect_timer);
          var leftStep   = offLeft/(hz6d_effect_time/hz6d_effect_timer);

          var heightStep = (obj_height-tb_height)/(hz6d_effect_time/hz6d_effect_timer);
          var widthStep  = (obj_width-tb_width)/(hz6d_effect_time/hz6d_effect_timer);

          var topD = 1;
          if(tb_top-ivtPosition.top>0) 
          { 
            topD=-1; 
          }
          var leftD = 1;
          if(tb_left-ivtPosition.left>0) 
          { 
            leftD=-1; 
          }

          ivtPosition = hz6d_getIvtPosition();
          function dmove()
          {
            moveHeight -= heightStep;
            moveWidth  -= widthStep;
            moveTop    -= topD*topStep;
            moveLeft   -= leftD*leftStep;

            if(moveWidth<tb_width)
            {
              obj.style.display = "none";
              try{iconDivMain.style.display = "block";}catch(e){}
              clearInterval(iIntervalId);
              hz6d_startReautoTimer();
            }
            else
            {
              var ivtPosition_t = hz6d_getIvtPosition();
              obj.style.height = moveHeight + 'px';
              obj.style.width = moveWidth + 'px';
              obj.style.top = moveTop + (ivtPosition_t.top-ivtPosition.top) + 'px';
              obj.style.left = moveLeft + (ivtPosition_t.left-ivtPosition.left) + 'px';
            }
          }
          var iIntervalId = setInterval(dmove, hz6d_effect_timer);
        }
        if(hz6d_ivt_effect==1 && hz6d_kf_type==2 && hz6d_pos_model==1 && hz6d_hidden==0)
        {
          var iconDivMain = document.getElementById("iconDivMain"+kf_icon_id);
          hz6d_close_move(iconDivMain);
        }else
        {
          document.getElementById("kfivtwin").style.display = "none";
          hz6d_startReautoTimer();
        }
      }

      function hz6d_startReautoTimer(){
        if(acc_reauto==1) { setTimeout("hz6d_checkIvt()", 60000); }
      }
      
      // get ivt position 
      function hz6d_getIvtPosition(){
        var clientRect = hz6d_getClientWindow();

        if(ivt_height=="auto") { ivt_height="200"; }
        if(zdyivt==1){
          ivt_width = zdyivt_width.replace("px","");
          ivt_height = zdyivt_height.replace("px","");
        }
        if(acc_middle==1){
          acc_lr = 1;
          acc_tb = 1;
          acc_left = (clientRect.width-ivt_width)/2;
          acc_top = (clientRect.height-ivt_height)/2;
        }

        var scrollPosition = hz6d_getScrollPosition();
        if(acc_lr==2){
          var ivt_left_init = scrollPosition.sLeft + clientRect.width - acc_left - ivt_width;
        }else{
          var ivt_left_init = acc_left + scrollPosition.sLeft;
        }
        if(acc_tb==2){
          var ivt_top_init = clientRect.height + scrollPosition.sTop - acc_top - ivt_height;
        }else{
          var ivt_top_init = acc_top + scrollPosition.sTop;
        }
        return {top:ivt_top_init, left:ivt_left_init};
      }
      
      // get scroll position 
      function hz6d_getScrollPosition(){
        var s_top = document.body.scrollTop;
        var s_left = document.body.scrollLeft;
        if(s_left==0) { s_left=document.documentElement.scrollLeft; }
        if(s_top==0) { s_top=document.documentElement.scrollTop; }
        return {sTop:s_top, sLeft:s_left};
      }

      // get client width height 
      function hz6d_getClientWindow(){
        var clientWidth = 0;
        var clientHeight = 0;
        if(document.documentElement && document.documentElement.scrollTop){ 
          clientWidth = document.documentElement.clientWidth; 
          clientHeight = document.documentElement.clientHeight; 
        }else if(document.body){
          clientWidth = document.body.clientWidth;
          clientHeight = document.body.clientHeight;
        }
        if(hasdoctype){
          clientHeight = document.documentElement.clientHeight;
          clientWidth = document.documentElement.clientWidth;
        }
        return {width:clientWidth, height:clientHeight};
      }
      
      // old client height width 
      var hz6d_oldClient = hz6d_getClientWindow();
      
      function ivt_autoScroll(){
        var scrollPosition = hz6d_getScrollPosition();
        // new client height width 
        var hz6d_newClient = hz6d_getClientWindow();

        var hz6d_kfivtwin = document.getElementById("kfivtwin");
        var hz6d_kfiframe = document.getElementById("kfiframe");
        //============================================================================
        // top change 
        if(scrollPosition.sTop!=ivt_top || hz6d_oldClient.height!=hz6d_newClient.height)
        {
          if(scrollPosition.sTop!=ivt_top)
          {
            if(browser=="360" || browser=="TheWorld")
            {
			  ivt_top = scrollPosition.sTop;
            }
            else
            {
              ivt_top = smoothMove(ivt_top, scrollPosition.sTop);
            }
		  }
		 if(hz6d_oldClient.height!=hz6d_newClient.height)
		 {
            if(browser=="360" || browser=="TheWorld")
            {
						  hz6d_oldClient.height = hz6d_newClient.height;
            }
            else
            {
              hz6d_oldClient.height = smoothMove(hz6d_oldClient.height, hz6d_newClient.height);
            }
		 }
          var hz6d_ivt_top = 0;
          if(acc_tb==2){
            hz6d_ivt_top = hz6d_oldClient.height - acc_top - ivt_height + ivt_top;
          }else{
            hz6d_ivt_top = acc_top + ivt_top;
          }
                   
          if(browser=="360" || browser=="TheWorld"){
            if(hz6d_kfivtwin.style.display=="none"){
              hz6d_recover = false;
            }else{
              hz6d_recover = true;
              hz6d_kfivtwin.style.display = "none";
              try{
                hz6d_kfiframe.style.display = "none";
              }catch(e){}
            }
            hz6d_kfivtwin.style.top = hz6d_ivt_top+"px";
            try{
              hz6d_kfiframe.style.top = hz6d_ivt_top+"px";
            }catch(e){}
            if(hz6d_recover==true){
              hz6d_kfivtwin.style.display = "block";
              try{
                hz6d_kfiframe.style.display = "block";
              }catch(e){}
            }
          }else{
            hz6d_kfivtwin.style.top = hz6d_ivt_top+"px";
            try{
              hz6d_kfiframe.style.top = hz6d_ivt_top+"px";
            }catch(e){}
          }
        }
        //============================================================================
        // left change 
        if(scrollPosition.sLeft!=ivt_left || hz6d_oldClient.width!=hz6d_newClient.width){
          if(scrollPosition.sLeft!=ivt_left){
            if(browser=="360" || browser=="TheWorld"){
						  ivt_left = scrollPosition.sLeft;
            }else{
              ivt_left = smoothMove(ivt_left, scrollPosition.sLeft);
            }
					}
					if(hz6d_oldClient.width!=hz6d_newClient.width){
            if(browser=="360" || browser=="TheWorld"){
						  hz6d_oldClient.width = hz6d_newClient.width;
            }else{
              hz6d_oldClient.width = smoothMove(hz6d_oldClient.width, hz6d_newClient.width);
            }
					}
          var hz6d_ivt_left = 0;
          if(acc_lr==2){
            hz6d_ivt_left = ivt_left + hz6d_oldClient.width - acc_left - ivt_width;
          }else{
            hz6d_ivt_left = acc_left + ivt_left;
          }
          
          if(browser=="360" || browser=="TheWorld"){
            if(hz6d_kfivtwin.style.display=="none"){
              hz6d_recover = false;
            }else{
              hz6d_recover = true;
              hz6d_kfivtwin.style.display = "none";
              try{
                hz6d_kfiframe.style.display = "none";
              }catch(e){}
            }
            hz6d_kfivtwin.style.left = hz6d_ivt_left+"px";
            try{
              hz6d_kfiframe.style.left = hz6d_ivt_left+"px";
            }catch(e){}
            if(hz6d_recover==true){
              hz6d_kfivtwin.style.display = "block";
              try{
                hz6d_kfiframe.style.display = "block";
              }catch(e){}
            }
          }else{
            hz6d_kfivtwin.style.left = hz6d_ivt_left+"px";
            try{
              hz6d_kfiframe.style.left = hz6d_ivt_left+"px";
            }catch(e){}
          }
        }
      }
      
       //留言框的最小化 位置调整
       function msg_autoScroll(){
        var scrollPosition = hz6d_getScrollPosition();
        // new client height width 
        var hz6d_newClient = hz6d_getClientWindow();
        
        var hz6d_kfivtwin = document.getElementById("kfivtwin");
        var hz6d_kfiframe = document.getElementById("kfiframe");
        //============================================================================
        // top change 
        if(scrollPosition.sTop!=ivt_top || hz6d_oldClient.height!=hz6d_newClient.height){
          if(scrollPosition.sTop!=ivt_top){
            if(browser=="360" || browser=="TheWorld"){
						  ivt_top = scrollPosition.sTop;
            }else{
              ivt_top = smoothMove(ivt_top, scrollPosition.sTop);
            }
					}
					if(hz6d_oldClient.height!=hz6d_newClient.height){
            if(browser=="360" || browser=="TheWorld"){
						  hz6d_oldClient.height = hz6d_newClient.height;
            }else{
              hz6d_oldClient.height = smoothMove(hz6d_oldClient.height, hz6d_newClient.height);
            }
					}
          var hz6d_ivt_top = 0;
          if(acc_tb==2){
            hz6d_ivt_top = hz6d_oldClient.height - acc_top - ivt_height + ivt_top;
          }else{
            hz6d_ivt_top = acc_top + ivt_top ;
          }
          //最小化
          if(GoBottom)
          {
            var clientRect = hz6d_getClientWindow();
            
            if(browser=="360" || browser=="TheWorld")
            {
                hz6d_ivt_top = hz6d_ivt_top + clientRect.height/2 +30; 
            }
            else
            
            {
                hz6d_ivt_top = hz6d_ivt_top + clientRect.height/2 +40; 
            }
            
          }
          if(browser=="360" || browser=="TheWorld")
          {
            if(hz6d_kfivtwin.style.display=="none")
            {
              hz6d_recover = false;
            }
            else
            {
              hz6d_recover = true;
              hz6d_kfivtwin.style.display = "none";
              try
              {
                hz6d_kfiframe.style.display = "none";
              }
              catch(e){}
            }
            hz6d_kfivtwin.style.top = hz6d_ivt_top+"px";
            try
            {
              hz6d_kfiframe.style.top = hz6d_ivt_top+"px";
            }
            catch(e){}
            if(hz6d_recover==true)
            {
              hz6d_kfivtwin.style.display = "block";
              try
              {
                hz6d_kfiframe.style.display = "block";
              }
              catch(e){}
            }
          }
          else
          {
            hz6d_kfivtwin.style.top = hz6d_ivt_top+"px";
            try{
              hz6d_kfiframe.style.top = hz6d_ivt_top+"px";
            }catch(e){}
          }
        }
        //============================================================================
        // left change 
        if(scrollPosition.sLeft!=ivt_left || hz6d_oldClient.width!=hz6d_newClient.width){
          if(scrollPosition.sLeft!=ivt_left){
            if(browser=="360" || browser=="TheWorld"){
						  ivt_left = scrollPosition.sLeft;
            }else{
              ivt_left = smoothMove(ivt_left, scrollPosition.sLeft);
            }
					}
					if(hz6d_oldClient.width!=hz6d_newClient.width){
            if(browser=="360" || browser=="TheWorld"){
						  hz6d_oldClient.width = hz6d_newClient.width;
            }else{
              hz6d_oldClient.width = smoothMove(hz6d_oldClient.width, hz6d_newClient.width);
            }
					}
          var hz6d_ivt_left = 0;
          if(acc_lr==2){
            hz6d_ivt_left = ivt_left + hz6d_oldClient.width - acc_left - ivt_width;
          }else{
            hz6d_ivt_left = acc_left + ivt_left;
          }
          
          if(browser=="360" || browser=="TheWorld"){
            if(hz6d_kfivtwin.style.display=="none"){
              hz6d_recover = false;
            }else{
              hz6d_recover = true;
              hz6d_kfivtwin.style.display = "none";
              try{
                hz6d_kfiframe.style.display = "none";
              }catch(e){}
            }
            hz6d_kfivtwin.style.left = hz6d_ivt_left+"px";
            try{
              hz6d_kfiframe.style.left = hz6d_ivt_left+"px";
            }catch(e){}
            if(hz6d_recover==true){
              hz6d_kfivtwin.style.display = "block";
              try{
                hz6d_kfiframe.style.display = "block";
              }catch(e){}
            }
          }else{
            hz6d_kfivtwin.style.left = hz6d_ivt_left+"px";
            try{
              hz6d_kfiframe.style.left = hz6d_ivt_left+"px";
            }catch(e){}
          }
        }
      }

      if(0==0 && "on"=="on" ){
        //visitor_check();
        setTimeout("hz6d_checkIvt()",1000);
      }
      
      //setTimeout("hz6d_checkIvt()",1000);
      
