﻿// JavaScript Document
lastScrollY=0;
function heartBeat(){ 
var diffY;
if (document.documentElement && document.documentElement.scrollTop)
    diffY = document.documentElement.scrollTop;
else if (document.body)
    diffY = document.body.scrollTop
else
    {/*Netscape stuff*/}
    
//alert(diffY);
percent=.1*(diffY-lastScrollY); 
if(percent>0)percent=Math.ceil(percent); 
else percent=Math.floor(percent); 
document.getElementById("qqfloat").style.top=parseInt(document.getElementById("qqfloat").style.top)+percent+"px";

lastScrollY=lastScrollY+percent; 
//alert(lastScrollY);
}
suspendcode12="<DIV id=\"qqfloat\" style='right:5px;POSITION:absolute;TOP:114px;z-index:100'>";
var recontent='<table width="70" border="0" cellspacing="0" cellpadding="0">' + 
'<tr>' + 
'<td height="15" align="right"><img src="/images/qqfloat_close.gif" width="40" height="10" border="0" usemap="#MapMapMap" /></td>' + 
'</tr>' + 
'<tr>' + 
'<td><img src="/images/qqfloat_top.gif" width="70" height="25" /></td>' + 
'</tr>' + 
'<tr>' + 
'<td style="background:url(/images/qqfloat_bg.gif) repeat-y;"><table width="100%" border="0" cellspacing="0" cellpadding="0">' + 
'<tr>' + 
'<td height="5"></td>' + 
'</tr>' + 
'<tr>' + 
'<td height="45" align="center" valign="middle" style="background:url(/images/qqfloat_bg1.gif) no-repeat top; line-height:180%;"><a href="http://wpa.qq.com/msgrd?v=3&uin=2275613063&site=比蓝翻译人力资源部&menu=yes"><img SRC="http://wpa.qq.com/pa?p=2:2275613063:45" alt="加入我们" border="0"><br />加入我们</a></td>' + 
'</tr>' + 
'<tr>' + 
'<td height="6" valign="top"><img src="/images/qqfloat_line.gif" width="70" height="1" /></td>' + 
'</tr>' + 
'<td height="7" align="center" valign="middle" style="background:url(/images/qqfloat_line.gif) no-repeat top;"></td>' + 
'</tr>' + 
'<tr>' + 
'<td><img src="/images/qqfloat_bottom.gif" width="70" height="6" /></td>' + 
'</tr>' + 
'</table>' + 
'<map name="MapMapMap" onclick="far_close()" style="cursor:handle;">' + 
'<area shape="rect" coords="0,0,40,15" href="#">' + 
'</map>';

document.write(suspendcode12); 
document.write(recontent); 
document.write("</div>"); 
window.setInterval("heartBeat()",1);

function far_close()
{
	document.getElementById("qqfloat").innerHTML="";
}

function setfrme()
{
	var tr=document.getElementById("qqfloat");
	var twidth=tr.clientWidth;
	var theight=tr.clientHeight;
	var fr=document.getElementById("qqfloatframe");
	fr.width=twidth-1;
	fr.height=theight-30;
}
//setfrme()
