var online= new Array();
//5秒自动关闭
//setTimeout("CloseQQ()",5000);
function CloseQQ()
{
  dt.style.display="none";
return true; 
}
//读取cookie
function getCookie(name)
{
    var arr,reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)");
        if(arr=document.cookie.match(reg)) return unescape(arr[2]);
        else return null;
}
function closenews()
{
//searchspe.style.visibility='hidden';
g0.style.display="block";
gs.style.display="none";
searchspe2.style.display="none";
document.cookie="show=none; path=/";
}
function shownews(){
g0.style.display="none";
gs.style.display="block";
searchspe2.style.display="block";
document.cookie="show=yes; path=/" ;//保存用户登录状态
}
var specialcode="<DIV id=searchspe style='Z-INDEX: 100; left: 5px; POSITION: absolute; TOP: 30px;'><div align='center' style='width: 22px; height: 82px;display:none' id=g0><a href='javascript:' onClick='shownews()'><font size='5'>0</font>元购书→</a></div><div id='gs'><TABLE cellSpacing=0 cellPadding=0 width=100 style='font-size:12px;color:#ffffff'><TR bgcolor=#12BDFF><TD height=20> 推荐↓</TD><TD style='CURSOR: hand' onclick='closenews()' width=30>关闭</TD></TR></TABLE><a href='http://www.book771.com/view_news.asp?newsid=236&classid=10&menu=news' target='_blank'><img src='http://www.nnkaoshi.com/images/guanggao1.jpg' WIDTH=100 HEIGHT=200 border=0></img></a>"
+"<p><TABLE cellSpacing=0 cellPadding=0 width=100 style='font-size:12px;color:#ffffff'><TR bgcolor=#12BDFF><TD height=20> 推荐↓</TD><TD style='CURSOR: hand' onclick='closenews()' width=30>关闭</TD></TR></TABLE><a href='http://www.nnkaoshi.com/dispbbs.asp?boardID=20&ID=3392&page=1' target='_blank'><img src='http://www.nnkaoshi.com/images/gkfd.gif' WIDTH=100 HEIGHT=200 border=0></img></a></div></DIV>";
var specialcode2="<DIV id=searchspe2 style='Z-INDEX: 100; right: 12px; POSITION: absolute; TOP: 30px;'><TABLE cellSpacing=0 cellPadding=0 width=100 style='font-size:12px;color:#ffffff'><TR bgcolor=#C54A00><TD height=20> 推荐↓</TD><TD style='CURSOR: hand' onclick='closenews()' width=30>关闭</TD></TR></TABLE><a href='http://www.book771.com/book.asp?id=8000' target='blank'><img src='http://www.nnkaoshi.com/images/guanggao2.gif' WIDTH=100 HEIGHT=200 border=0></img></a>"
+"<p><TABLE cellSpacing=0 cellPadding=0 width=100 style='font-size:12px;color:#ffffff'><TR bgcolor=#C54A00><TD height=20> 推荐↓</TD><TD style='CURSOR: hand' onclick='closenews()' width=30>关闭</TD></TR></TABLE><a href='http://www.book771.com/book.asp?id=8067' target='_blank'><img src='http://www.nnkaoshi.com/images/guanggao3.gif' WIDTH=100 HEIGHT=200 border=0></img></a></div></DIV>";
document.write(specialcode);
document.write(specialcode2);
lastScrollX=0;
function heartBeat()
{
diffY=document.body.scrollTop+120;
percent=.1*(diffY-lastScrollX);
if(percent>0)percent=Math.ceil(percent);
else percent=Math.floor(percent);
document.all.searchspe.style.pixelTop+=percent;
document.all.searchspe2.style.pixelTop=document.all.searchspe.style.pixelTop;
lastScrollX=lastScrollX+percent;
}
var st=getCookie("show");
if ((st==null)||(st=="yes"))document.cookie="show=yes; path=/" ;
else if (st=="none") closenews();
window.setInterval("heartBeat()",20);


