﻿function closeWindow() {
    Element.hide("msgBox");
    Element.hide("open_bg");
}

//打开尺码表
function showSizeTable() {
    Element.show("open_bg");
    Element.show("diysize_sizetable");
}

//关闭尺码表
function closeIt() {
    Element.hide("diysize_sizetable");
    Element.hide("open_bg");
}

var Browser = new function() {
    var ua, s, i;
    this.isIE = false;
    this.isNS = false;
    this.version = null;
    ua = navigator.userAgent;
    s = "MSIE";
    if ((i = ua.indexOf(s)) >= 0) {
        this.isIE = true;
        this.version = parseFloat(ua.substr(i + s.length));
        return;
    }
    s = "Netscape6/";
    if ((i = ua.indexOf(s)) >= 0) {
        this.isNS = true;
        this.version = parseFloat(ua.substr(i + s.length));
        return;
    }
};

function showHope() {
    // Element.show("hopeUrl");
}

// 统计 flash的数据
function countFlash() {
    if (Browser.isIE) {
        try {
            flash_diy.destroy();
        } catch (err) {
            // isee 浏览器bug特殊处理
        }
    }
    if (Browser.isNS) {
        document["flash_diy"].destroy();
    }
}
