if (window.ActiveXObject){
                document.body.scroll = "no";
            }
            var isFirst = true, isFlashReady = false;
            if (checkFlash() && checkCookies()) {
                // 如果安装了flash插件
                initFlash(document.getElementById("div_flash"), "Transition.swf", "flash/ptmind/", "flash1");
                var flashCount = 0;
                var flashInterval = setInterval (function () {
                    flashCount++;
                    if (isFlashReady || flashCount == 10) {
                        // 如果flash加载完成或者加载等待时间超过10*100毫秒，则退出等待
                        clearInterval(flashInterval);
                        if (isFlashReady) {
                            // 如果flash顺利加载，开始播放
                            animationStart();
                        } else {
                            animationEnd();
                        }
                    }
                }, 100);
            } else {
                animationEnd();
            }
            function initFlash(obj,name, path, id) {
                obj.innerHTML ='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="100%" height="100%" id="' + id + '">'
                    +'<param name="allowScriptAccess" value="always"/>'
                    +'<param name="wmode" value="transparent"/>'
                    +'<param name="movie" value="' + path + name + '"/>'
                    +'<embed src="' + path + name + '" width="100%" height="100%" name="' + id + '" allowScriptAccess="always" wmode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/>'
                    +'</object>';
            }
            function checkFlash () {
                if (navigator.plugins.length != 0){
                    return !!navigator.plugins["Shockwave Flash"];
                } else {
                    try {
                        return !!(new ActiveXObject("ShockwaveFlash.ShockwaveFlash"));
                    } catch (e) {return false;}
                }
            }
            function animationBegin(){
                isFlashReady = true;
            }
            function animationStart() {
                //document.getElementById("container").style.display="none";
                document.getElementById("div_flash").style.display="block";
                document.getElementById("div_flash").style.zIndex=100;
            }
            function animationEnd(){
                document.getElementById("div_flash").style.display="none";
                document.getElementById("div_flash").style.zIndex=0;
                document.body.style.overflow = "auto";
                document.body.scroll = "yes";
                //document.getElementById("container").style.display="block";
            }
            function get_cookie(Name)
            {
                var search = Name + "="
                var returnvalue = "";
                if (document.cookie.length > 0) {
                    var offset = document.cookie.indexOf(search)
                    if (offset != -1) {                            // 如果指定的cookie已经存在
                        offset += search.length                     // 长度指定到cookie值的位置
                        var end = document.cookie.indexOf(";", offset); // 判断是否还包括其他cookie值
                        if (end == -1)                              //如果不包括
                            end = document.cookie.length;            //获取cookie的长度
                        returnvalue=unescape(document.cookie.substring(offset, end)) //获取cookie的值
                    }
                }
                return returnvalue;
            }

            function checkCookies(){
                if (get_cookie("isFirst")==""){                   //判断是否已经弹出过窗口
                    document.cookie="isFirst=no";            //设置cookie值
                    return true;
                } else {
                    return false;
                }
            }
