var pp = 200;
var qq = 200;
var adheight = 500; //高度
var hh = 0;
function showAds() {
    if (pp > 0) {
        pp--;
        hh = hh + 5;
    }
    else {
        return;
    }
    if (hh > adheight)  //高度
    {
        return;
    }
    document.getElementById("achaterAds").style.display = "";
    document.getElementById("achaterAds").style.height = hh + "px";
    setTimeout("showAds()", 10);
}
function hiddenAds() {
    if (qq > 0) {
        qq--;
        adheight = adheight - 5;
    }
    else {
        return;
    }
    if (adheight < 0) {
        document.getElementById("achaterAds").style.display = "none";
        return;
    }

    document.getElementById("achaterAds").style.height = adheight + "px";
    setTimeout("hiddenAds()", 10);
}
function replayAds() {
    pp = 200;
    qq = 200;
    adheight = 500; //高度
    hh = 0;
    setTimeout("showAds()", 10);
    setTimeout("hiddenAds()", 20000);
}