    var time = 500;
    var h = 0;
    var T = 370;
    var N = 370; //高度
    
    function addCount()
    {
        /*if(time>0)
        {
            time--;
            h = h+5;
        }
        else
        {
            return;
        }
        if(h>=T)  //高度
        {
            return;
        }*/
        document.getElementById("ads").style.display = "";
        document.getElementById("ads").style.height = T+"px";
        //setTimeout("addCount()",10);
    }

    window.onload = function showAds()
    {
        addCount();
        setTimeout("noneAds()",3000); //停留时间自己适当调整
    }
  
  
    function noneAds()
    {
        if(T>0)
        {
            T--;
            N = N-5;
        }
        else
        {
            return;
        }
        if(N<=0)
        {

			document.getElementById("ads").style.display = "none";
            return;
        }

        document.getElementById("ads").style.height = N+"px";
        setTimeout("noneAds()",50);
    }
	
document.writeln("<div id='ads' style='margin:0px;padding:0px; display:none; width:100%; top:0px; height:0; border:solid 0px #000; background-color:#fff; position:relative; overflow:hidden; text-align:center;'>");
document.writeln("<a href='/Thematic/201111' target='_blank'><img src='/20111107223841128613.jpg' border='0'></a>");
document.writeln("<div id='close' style='position:absolute; right:110px; bottom:30px; cursor:hand;' >		<a href='#' onClick='javascript:document.getElementById('ads').style.display = 'none';document.getElementById('close').style.display = 'none';' style='color:white;font-size:13px;font-weight:bolder;'  border='0' vspace='3' alt='关闭广告'>关闭广告</a>");
document.writeln("</div></div>");

