﻿document.write("<DIV id='zy_kf' style='POSITION: absolute'>");
document.write("<div class='kf_top'></div>");
document.write("<div class='kf_bg'>");
document.write("<ul>");
document.write("<li><a href=http://wpa.qq.com/msgrd?V=1&Uin=1678876&Menu=yes alt= target=blank><img src=http://wpa.qq.com/pa?p=1:1678876:1 border=0></a></li>");
document.write("</ul>");
document.write("</div>");
document.write("<div class='kf_bottom'></div>");
document.write("</DIV>");
// JavaScript Document

    var d = document;
    var dd = d.documentElement;
    var floater = new Array();
    var setTop = new Array();
    //var setBottom = new Array();
    function scroll_floater(id, strPosition) {
        if (!strPosition) { return (false); }
        var aryPosition = strPosition.split(",");
        var fL = floater.length;
        floater[fL] = d.getElementById(id);
        for (var i = 0; i < aryPosition.length; i++) {
            try {
                eval("floater[fL].style." + aryPosition[i]);
            } catch (e) { }
        }
        setTop[setTop.length] = floater[fL].offsetTop;
        move();
    }

    function move() {
        for (var i = 0; i < floater.length; i++) {
            var floater_top = setTop[i];
            //var floater_bottom = setBottom[i];
            floater[i].style.top = floater_top + dd.scrollTop + "px";
        }
        setTimeout("move()", 0)
    }



    scroll_floater("zy_kf", "top=100,right=10");
    
    
     var OpenOrColseFlag = true;
     function CloseQQ() {
         if (OpenOrColseFlag) {
             OpenOrColseFlag = false;
             QQDiv.style.display = "none";
             QQTitleDiv.style.display = "inline";

             //alert(screen.height);
             var value = screen.height - 230;
             var margintop = "top=" + value;

             scroll_floater("zy_kf", "" + margintop + ",right=10");

         }
         else {
             OpenOrColseFlag = true;
             QQDiv.style.display = "inline";
             QQTitleDiv.style.display = "none";
             scroll_floater("zy_kf", "top=100,right=10")

         } 
     }

