//document.write("<style type=\"text/css\">#cyberpolice {position: absolute;left: 0px;bottom: 0px;width:92px;height:85px;}</style>");
//document.write("<div  id=\"cyberpolice\"><a href=\"http://www.daqing.cyberpolice.cn\" target=\"_blank\"><img src=\"http://www.dqbooksir.com/js/cyberpolice.gif\" width=\"92\" height=\"85\" border=\"0\" /></a></div>");


document.writeln("<style type=\"text\/css\">");
document.writeln("#apDiv1{position:fixed!important;position:absolute;left: 10px;bottom:1;top: expression((offsetParent.scrollTop + offsetParent.clientHeight - 400)<650?500:offsetParent.scrollTop + offsetParent.clientHeight - 550);display: block; height: 98px;width: 78px;z-index:998;}");
document.writeln("#apDiv2{position:fixed!important;position:absolute;right: 10px;bottom:1;top: expression((offsetParent.scrollTop + offsetParent.clientHeight - 400)<650?500:offsetParent.scrollTop + offsetParent.clientHeight - 550);display: block; height: 98px; width: 78px; z-index:999;}");

document.writeln("<\/style>");
document.writeln("<div id=\"apDiv1\"><a href=\"http:\/\/www.daqing.cyberpolice.cn\" target=\"_blank\"><img src=\"http:\/\/www.dqbooksir.com\/images\/cyberpolice_left.gif\" width=\"78\" height=\"98\" border=\"0\" \/><\/a><\/div>");
document.writeln("<div id=\"apDiv2\"><a href=\"http:\/\/www.daqing.cyberpolice.cn\" target=\"_blank\"><img src=\"http:\/\/www.dqbooksir.com\/images\/cyberpolice_right.gif\" width=\"78\" height=\"98\" border=\"0\" \/><\/a><\/div>");


//过年
document.writeln("<div id=\"ads\" style=\"margin:auto; width:100%; top:0px; height:0px; position:relative; overflow:hidden; text-align:center;\">");
document.writeln("<center>");
document.writeln("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=7,0,19,0\" width=\"1004\" height=\"376\">");
document.writeln("  <param name=\"movie\" value=\"http:\/\/www.dqbooksir.com\/flash\/2012.swf\" \/>");
document.writeln("  <param name=\"quality\" value=\"high\" \/>");
document.writeln("  <param name=\"wmode\" value=\"transparent\" \/>");
document.writeln("  <embed src=\"http:\/\/www.dqbooksir.com\/flash\/2012.swf\" quality=\"high\" pluginspage=\"http:\/\/www.macromedia.com\/go\/getflashplayer\" type=\"application\/x-shockwave-flash\" width=\"1004\" height=\"376\"><\/embed>");
document.writeln("<\/object>");
document.writeln("");
document.writeln("<\/center>");
document.writeln("<div id=\"close\" style=\"position:absolute; right:5px; bottom:3px; cursor:hand;\" >");
document.writeln("<img src=\'http:\/\/www.dqbooksir.com\/flash\/close.png\' onClick=\'document.getElementById(\"ads\").style.display = \"none\";document.getElementById(\"close\").style.display = \"none\"\' width=\'53\' height=\'22\' border=\'0\' vspace=\'3\' alt=\'关闭广告\' \/>");
document.writeln("<\/div>");
document.writeln("<\/div>")

var ads_time = 500;
var ads_h = 0;
function addCount()
{
if(ads_time>0)
{
ads_time--;
ads_h = ads_h+50;
}
else
{
return;
}
if(ads_h>=376) //高度
{
return;
}
document.getElementById("ads").style.display = "";
document.getElementById("ads").style.height = ads_h+"px";
setTimeout("addCount()",30); 
}

window.onload = function showAds()
{
addCount();
setTimeout("noneAds()",8000); //停留时间自己适当调整
}
var ads_T = 500;
var ads_N = 376; //高度。如果高度调整不正确，可能会导致图片无法自动收缩
function noneAds()
{
if(ads_T>0)
{
ads_T--;
ads_N = ads_N-25;
}
else
{
return;
}
if(ads_N<=0)
{
document.getElementById("ads").style.display = "none";
return;
}

document.getElementById("ads").style.height = ads_N+"px";
setTimeout("noneAds()",30); 
}

//过年

