


    function closead()
    {
        document.getElementById("yesorno").style.display = "none";
    }




var time = 1000;
    var h = 0;
    function addCount()
    {
        if(time>0)
        {
            time--;
            h = h+10;
        }
        else
        {
            return;
        }
        if(h>463)  //高度
        {
            return;
        }
        document.getElementById("ads").style.display = "";
        document.getElementById("ads").style.height = h+"px";
        setTimeout("addCount()",30); 
    }
    
    window.onload = function showAds()
    {
        addCount();
        setTimeout("noneAds()",10000); //停留时间自己适当调整
    }
    
    var T = 463;
    var N = 463; //高度
    function noneAds()
    {
        if(T>0)
        {
            T--;
            N = N-10;
        }
        else
        {
            return;
        }
        if(N<0)
        {
        document.getElementById("yesorno").style.display = "block";
        document.getElementById("ads").style.display = "none";
            return;
        }
        
        document.getElementById("ads").style.height = N+"px";
        setTimeout("noneAds()",30); 
        setTimeout("noneYN()",30000); 
    }


    function noneYN()
    {
        document.getElementById("panel").style.display = "none";
        document.getElementById("yesorno").style.display = "none";
    }




