﻿//
//var index_top_unfold = {
//
//    showAD: function() {
//        var strAD = "";
//        strAD += "<div id='gg_index_top_unfold' class='box'  style='width:950px; margin:0 auto; overflow:hidden; height:0px;'>"
//        strAD += "  <a href='http://www.zbsonline.com/zbonline/lesson.aspx' target='_blank'><img src='/images01/gg/gg20100309.jpg' width='949' height='530' border='0' /></a>"
//        strAD += "  <div style='width:100%; text-align:right;  margin-top:-20px;'>"
//        strAD += "    <div style=' margin-right:10px; cursor:pointer; font-size:13px; color:#000000; font-weight:bold' onclick='index_top_unfold.close_window();' title='点击这里可以关闭'>"
//        strAD += "        点击这里关闭<img src='/images01/close.png' style=' border:0px;' />"
//        strAD += "    </div>"
//        strAD += "  </div>"
//        strAD += "</div>"
//
//        document.writeln(strAD);
//
//        var h = 0;
//
//        function anim() {
//            h = h + 53; // 每次递减5像素
//            if (h >= 550) {
//                if (tt) {
//                    window.clearInterval(tt);
//                }
//                //document.getElementById("gg_index_top_unfold").style.display = "none"; // 内容容器不可见（当容器高度小于5px）
//                //if (tt) {
//                //    window.clearInterval(tt);
//                //    document.getElementById("gg_index_top_unfold").innerHTML = "";
//                //}
//            } else {
//                document.getElementById("gg_index_top_unfold").style.height = h + "px"; // // 容器高度不断的以1px递减
//            }
//        }
//
//        var tt = window.setInterval(anim, 1);
//    },
//
//    hiddenList: function() {
//        var h = parseInt(document.getElementById("gg_index_top_unfold").offsetHeight, 10); // 内容容器div1的初始高度
//
//
//        function anim() {
//            h = h - 53; // 每次递减5像素
//            if (h <= 15) {
//                document.getElementById("gg_index_top_unfold").style.display = "none"; // 内容容器不可见（当容器高度小于5px）
//                if (tt) {
//                    window.clearInterval(tt);
//                    document.getElementById("gg_index_top_unfold").innerHTML = "";
//                }
//            } else {
//                document.getElementById("gg_index_top_unfold").style.height = h + "px"; // // 容器高度不断的以1px递减
//                //document.getElementById("gg_index_top_unfold").style.height = document.getElementById("gg_index_top_unfold").clientHeight + "px"; // // 容器高度不断的以1px递减
//
//            }
//        }
//
//        var tt = window.setInterval(anim, 1); // 设置每1毫秒循环一次（每1毫秒，运行一次anim[容器的高度递减5px]）
//    },
//
//    close_window: function() {
//        //document.getElementById("gg_index_top_unfold").style.display = 'none';
//        //document.getElementById("gg_index_top_unfold").innerHTML = "";
//        index_top_unfold.hiddenList();
//    },
//
//    run: function() {
//        this.showAD();
//        setTimeout("index_top_unfold.close_window()", 10000)
//    }
//}
//index_top_unfold.run();
//window.setTimeout("index_top_unfold.run()",1000);