// JavaScript Document
//主页打开后展出通告控制文档
    var time = 100;
    var h = 0;

    function addCount()
    {
        if(time>0)
        {
            time--;
            h = h+6;
        }
        else
        {
            return;
        }

        if(h>44)  //通告展出的高度（lmt为125，资源导航为44，不展出为0）
        {
            return;
        }
        document.getElementById("ads").style.display = "";
        document.getElementById("ads").style.height = h+"px";
        setTimeout("addCount()",50); 
    }

    window.onload = function showAds()
    {
		setTimeout("addCount()",0); //打开主页后展出通告的时延
        //setTimeout("noneAds()",18000); //通告停留时间
    }

    var T = 100;
    var N = 44; //通告高度（lmt为125，资源导航为44，不展出为0）

    function noneAds()
    {
        if(T>0)
        {
            T--;
            N = N-6;
        }
        else
        {
            return;
        }
        if(N<0)
        {
            document.getElementById("ads").style.display = "none";
            return;
        }
        document.getElementById("ads").style.height = N+"px";
        setTimeout("noneAds()",50); 
    }
