// JavaScript Document
var timetop = 200;
    var htop = 0;
    function addCounttop()
    {
        if(timetop>0)
        {
            timetop--;
            htop = htop+5;
        }
        else
        {
            return;
        }
        if(htop>200)  //高度
        {
            return;
        }
        document.getElementById("top").style.display = "";
        document.getElementById("top").style.height = htop+"px";
        setTimeout("addCounttop()",30); 
    }
    
    window.onload = function showAdstop()
    {
        addCounttop();
        setTimeout("noneAdstop()",10000); //停留时间自己适当调整
    }
    var Ttop = 200;
    var Ntop = 200; //高度
    function noneAdstop()
    {
        if(Ttop>0)
        {
            Ttop--;
            Ntop = Ntop-5;
        }
        else
        {
            return;
        }
        if(Ntop<0)
        {
            document.getElementById("top").style.display = "none";
            return;
        }
        
        document.getElementById("top").style.height = Ntop+"px";
        setTimeout("noneAdstop()",30); 
    }