    function addCount1()
    {
        /*var time = 500;
        var h = 0;
	    if(time>0)
        {
            time--;
            h = h+10;
        }
        else
        {
            return;
        }
        if(h>300)  //高度
        {
            return;
        }*/
        document.getElementById("ads2009lase").style.display = "";
        document.getElementById("ads2009lase").style.height = "300px";
        //setTimeout("addCount1()",30); 
    }
    
	function addCount2()
    {
        if(time>0)
        {
            time--;
            h = h+10;
        }
        else
        {
            return;
        }
        if(h>80)  //高度
        {
            return;
        }
        document.getElementById("dongpengadv2").style.display = "";
        document.getElementById("dongpengadv2").style.height = h+"px";
        setTimeout("addCount2()",30); 
    }
    
	window.onload = function showAds()
    {
        addCount1();
        setTimeout("noneAds1()",8000); //停留时间自己适当调整
    }
      
    
    function noneAds1()
    {
		/*
		var _T = 300;
        var _N = 300; //高度
        if(_T>0)
        {
            _T--;
            _N = _N-10;
        }
        else
        {
            return;
        }
        if(_N<=0)
        {
			//h=0;
			//addCount2()
			//增加的------------------------------
			//a.render('Adv_Full');
            //a.ping.flush();
			//--------------------------------------
			return;
        }*/
        //document.getElementById("ads2009lase").style.height = _N+"px";
        //setTimeout("noneAds1()",30); 
		document.getElementById("ads2009lase").style.display = "none";
		document.getElementById("dongpengadv2").style.display = "";
    }