


////////下拉广告//////////
    var time = 300;//大广告展开的时间
	var time1 = 300;//小广告展开的时间
    var h = 0;
	var h1=0;
    function addCount(){
        if(time>0){
            time--;
            h = h+2;
        }else{
            return;
        }
        if(h>240) { //大广告的高度
            return;
        }
        document.getElementById("bigads").style.display = "";
       // document.getElementById("bigads").style.height = h+"px";
        //setTimeout("addCount()",20); 
    }
    function addSmallCount()
    {
        if(time1>0){
            time1--;
            h1 = h1+2;//+1表示单步增加的高度
        }else{
            return;
        }
        if(h1>50) { //小广告的高度
            return;
        }
        document.getElementById("smallads").style.display = "";
        document.getElementById("smallads").style.height = h1+"px";
        setTimeout("addSmallCount()",30); 
    }

    var T = 900;//大广告收缩的时间
    var N = 240; //大广告的高度
    function noneAds(){
        if(T>0){
            T--;
            N = N-9;
        }else{
            return;
        }
        if(N<0){
            document.getElementById("bigads").style.display = "none";
			addSmallCount();
            return;
        }  
        document.getElementById("bigads").style.height = N+"px";
        setTimeout("noneAds()",30); 
    }

    function showAds(){
        addCount();
        setTimeout("noneAds()",4000); //大广告展开后停留的时间		
    }
	
	
