document.write('<div style="position: absolute; top: 160px; right: 1px;" id="_Ten_rightDiv">'+
'<div style="height:41px;width:100px;background:transparent url(/images/qqkf/top.gif) no-repeat 0 0;"></div>'+
'<div style="width:100px;padding:0 0 5px 0;background:transparent url(/images/qqkf/middle.gif) repeat-y 0 0;">'+
'<div style="width:100px;background:transparent url(/images/qqkf/top_s.gif) no-repeat 0 0;">'+
    '<ul style="margin:0;padding:0;width:100px;text-align:center;">'+
'<li><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=1459951279&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:1459951279:41" alt="点击这里给我发消息" title="点击这里给我发消息"></a></li>'+
           '</ul>'+
'</div>'+
'</div>'+
'<div style="height:11px;width:100px;background:transparent url(/images/qqkf/bottom.gif) no-repeat 0 0;"></div>'+
'</div>');

lastScrollY = 0;
kf_moveWithScroll();
function kf_moveWithScroll() 
{ 
	 if(typeof window.pageYOffset != 'undefined') { 
        nowY = window.pageYOffset; 
     } 
     else if(typeof document.compatMode != 'undefined' && document.compatMode != 'BackCompat') { 
        nowY = document.documentElement.scrollTop; 
     } 
     else if(typeof document.body != 'undefined') { 
        nowY = document.body.scrollTop; 
     }  

		percent = .1*(nowY - lastScrollY);
		if(percent > 0) 
		{
			percent=Math.ceil(percent);
		} 
		else
		{
			percent=Math.floor(percent);
		}

	 document.getElementById("_Ten_rightDiv").style.top = parseInt(document.getElementById("_Ten_rightDiv").style.top) + percent+"px";
	 if(document.getElementById("kfpopupDiv"))
	 {
	 	document.getElementById("kfpopupDiv").style.top = parseInt(document.getElementById("kfpopupDiv").style.top) + percent+"px";
	 }
	 lastScrollY = lastScrollY + percent;
	 tOut = window.setTimeout("kf_moveWithScroll()",1);
}
