var adfile ="http://www.xcinfo.com.cn/5.gif";
var adurl = "http://www.hainfo.net.cn/bainian/";
var adnum = "1";
var adwidth = 900;
var adheight = 300;
var staytime = 5000;

if (adfile != ""){
var hmax = adheight+5-1;//最大高度
var hmin = 25;//最小高度
var h=0;
function addCount(){
        if(h<hmax){
                h += 20;
                setTimeout("addCount()",1); 
        }
        else {
                h=hmax;
                setTimeout("noneAds()",staytime); //停留时间自己适当调整 1000 = 1秒
        }
        document.getElementById("fullscreenad").style.display = "";
        document.getElementById("fullscreenad").style.height = h+"px";
}
window.onload = function showAds(){
        document.getElementById("fullscreenad").style.display = "none";
        document.getElementById("fullscreenad").style.height = "0px";
        
        addCount(); //慢慢打开
//        h=hmax; 
//        setTimeout("noneAds()",3000); //停留时间自己适当调整 1000 = 1秒
}
function openAds(){
        h = 0;//高度
        addCount(); //慢慢打开
}

function noneAds(){
        if(h>hmin)        {
                h -= 20;
                setTimeout("noneAds()",1); 
        }
        else {
                h = hmin;
                document.getElementById("fullscreenad").style.display = "none";
                return;
        }
        document.getElementById("fullscreenad").style.height = h+"px";
}
document.write('<DIV id="fullscreenad" style="DISPLAY: none;margin-left:auto;margin-right:auto;text-align:center"><a href="'+adurl+'" target="_blank"><IMG src="'+adfile+'" border="0"></a></DIV>');}
document.writeln("<div align=\"center\" ><table width=\"900\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#EBEBEB\"><tr>");
document.writeln("    <td align=\"center\" bgcolor=\"#FFFFFF\"><a href=http://www.zzsc.net target=_blank><img src=\"http://www.xcinfo.com.cn/top.gif\" width=\"900\" height=\"60\" border=\"0\" ></a></td>");
document.writeln("  </tr>");
document.writeln("</table>");
document.writeln("</div>");
document.writeln("");
