function slide() {
    var listItem = document.getElementById("homePushShow");
    var tList = document.getElementById("homePushName").childNodes;

    var controlItem = [];
    for (var i = 0; i < tList.length; i++) {
        if (tList[i].nodeName.toLowerCase() == "li") {
            controlItem.push(tList[i]);
        }
    }
    var picCount = controlItem.length;
    var cid = 0;
    var tid = Math.floor(Math.random() * picCount);
    window.cTop = 0
    window.gTop = 0;
    window.speed = 0;
    window.controlAction = "";
    window.timeCount = 0;
    setInterval(function() {
        if (cid != tid) {
            gTop = tid * 180;
            speed = (gTop - cTop) / 10;
            cid = tid;
            for (var i = 0; i < picCount; i++) {
                controlItem[i].className = ((i == cid) ? "current" : "");
            }
        }
        if (window.cTop != window.gTop) {
            window.cTop += parseInt(speed);
            listItem.style.marginTop = "-" + parseInt(window.cTop) + "px";
        }
        document.getElementById("homePushBg").style.display = "block";
        document.getElementById("homePushName").style.display = "block";
    }, 20);

    for (var i = 0; i < picCount; i++) {
        controlItem[i].onmouseover = function() {
            var goId = parseInt(this.innerHTML) - 1;
            clearTimeout(window.controlAction);
            window.controlAction = setTimeout(function() {
                tid = goId;
                timeCount = 0;
            }, 300);
        }
        controlItem[i].onmouseout = function() {
            clearTimeout(window.controlAction);
        }
    }

    setInterval(function() {
        timeCount += 1
        if (timeCount >= 5) {
            window.controlAction = setTimeout(function() {
                tid = tid + 1;
                if (tid >= picCount) { tid = 0; }
            }, 20);
            timeCount = 0;
        }
    }, 1000);
}