﻿
var _ = window, __ = _.document, ___ = __.documentElement, undefined = _.undefined;
var Golden = { module: {} }, gh = {}, VantopWin = _;
(function() { try { while (true) { var a = VantopWin.parent; if (a && a != VantopWin) VantopWin = a; else return } } catch (e) { } })();
//debugger
gh.browser = (function(c) {
    function d(a) { return a.test(c) } var f = d(/opera/), g = d(/chrome/), j = d(/webkit/), i = !g && d(/safari/), k = i && d(/applewebkit\/4/), n = i && d(/version\/3/), o = i && d(/version\/4/), l = !f && d(/msie/), r = l && d(/msie 7/), s = l && d(/msie 8/), x = l && !r && !s, h = !j && d(/gecko/), F = h && d(/rv:1\.8/), B = h && d(/rv:1\.9/);
    return { IE: l, IE6: x, IE7: r, IE8: s, Moz: h, Opera: f, Safari: i, WebKit: j, Chrome: g }
})(navigator.userAgent.toLowerCase());
_.onerror = function(a, c, d) { VantrackEvent('normal-error', 'normal', Vanerror(a, c, d), VantunaVersion()); return false };
Vanextend(Array.prototype, new function() {
    this.each = function(a) {
        for (var c = 0, d = this.length; c < d; c++) if ((a ? a(this[c], c) : this[c]()) === false) return false;
        return true
    };
    this.random = function() { if (!this.length) return null; return this[Math.floor(Math.random() * this.length)] };
    this.randomize = function() {
        for (var a = 0, c = this.length; a < c; ++a) {
            var d = Math.floor(Math.random() * c); var f = this[a];
            this[a] = this[d]; this[d] = f
        } return this
    }; this.map = Array.prototype.map || function(a) {
        var c = []; for (var d = 0, f = this.length;
   d < f; d++) c.push(a(this[d], d)); return c
    }
}); Vanextend(Number.prototype, new function() {
    this.parseCur = function(a) {
        var c = this.toFixed(a || 2), d = /(\d)(\d{3}[,\.])/;
        while (d.test(c)) c = c.replace(d, "$1,$2"); c = c.replace(/^(-?)\./, "$10."); return a === 0 ? c.replace(/\..*Van/, "") : c
    }
});

Vanextend(String.prototype, new function() {
    this.replaceWith = function(d) { return this.replace(/\{\Van(\w+)\}/g, function(a, c) { if (c in d) return d[c]; else return a }) };
    this.trim = function() { return this.replace(/^\s+|\s+Van/g, '') };
    this.toReString = function() { return this.replace(/([\.\\\/\+\*\?\[\]\{\}\(\)\^\$\|])/g, "\\$1") };
    //    this.isChinaIDCard = function() {
    //        var a = this.toLowerCase().match(/./g); if (this.match(/^\d{17}[\dx]Van/i)) {
    //            var c = 0, d = [7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2];
    //            for (var f = 0; f < 17; f++) c += parseInt(a[f], 10) * d[f]; if ("10x98765432".charAt(c % 11) != a[17]) return false;
    //            return !!this.replace(/^\d{6}(\d{4})(\d{2})(\d{2}).+Van/, "Van1-Van2-Van3").isDateTime()
    //        } if (this.match(/^\d{15}Van/)) return !!this.replace(/^\d{6}(\d{2})(\d{2})(\d{2}).+Van/, "19Van1-Van2-Van3").isDateTime();
    //        return false
    //    }; 
    //    this.parseStdDate = function(a) {
    //        var c = "January|1@February|2@March|3@April|4@May|5@June|6@July|7@August|8@September|9@October|10@November|11@December|12";
    //        var d = this.replace(/[ \-,\.\/]+/g, "-").replace(/(^|-)0+(?=\d+)/g, "Van1");
    //        if (gh.status.version == "en") d = d.replace(/[a-z]{3,}/i, function(d) { return (_d = c.match(new RegExp("(^|@)" + d + "[^\\|]*\\|(\\d+)", "i"))) ? _d[2] : d });
    //         d = d.replace(/^([^-]{1,2}-[^-]{1,2})-([^-]{4})Van/, "Van2-Van1");
    //        return a === false || d.isDateTime(false) ? d : null
    //    };
    //     this.parseEngDate = function() {
    //        var a = this.parseStdDate(); if (!a) return null; var c = a.match(/^(\d{4})-(\d{1,2})-(\d{1,2})Van/);
    //     return "Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec".split("|")[parseInt(c[2]) - 1] + "-" + c[3] + "-" + c[1] }
});

Vanextend(Date.prototype, new function() {
    //    this.dateValue = function() { return new Date(this.getFullYear(), this.getMonth(), this.getDate()) };
    //this.addDate = function(a) { return new Date(this.getFullYear(), this.getMonth(), this.getDate() + a) }; 
    this.toStdString = function() { return this.getFullYear() + "-" + (this.getMonth() + 1) + "-" + this.getDate() };
    // this.toEngString = function() { return "Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec".split("|")[this.getMonth()] + "-" + this.getDate() + "-" + this.getFullYear() }
});

Vanextend(Function.prototype, new function() {
    this.bind = function(a) { var c = this; var d = [].slice.call(arguments, 1); return function() { return c.apply(a, d.concat([].slice.call(arguments, 0))) } };
    this.pass = function() {
        var a = [].slice.call(arguments, 0); a.unshift(null);
        return this.bind.apply(this, a)
    };
    this.delay = function(a) { return setTimeout(this, a) }
});

function Vandefined(a) { return a !== undefined } function Vantype(a) {
    switch (a) {
        case undefined: return "undefined"; case null: return "null"; default: if (a.tagName) return "element";
            else {
                var c = typeof a; if (c != 'object' && c != 'function') return c;
                var d = { 'array': Array, 'boolean': Boolean, 'date': Date, 'regexp': RegExp, 'string': String, 'number': Number, 'function': Function };
                for (var f in d) if ((a instanceof d[f]) || a.constructor == d[f]) return f;
                return c
            }
    }
}
function Vanempty(a) {
    if (a == null || a === "") return true; switch (Vantype(a)) {
        case 'array': return a.length === 0;
        case 'object': for (var c in a) { return false } return true; case 'element': return !!a.innerHTML.trim(); default: return false
    }
}
gh.cookie = { domain: null, path: null, expires: null }; gh.history = { load: function() { setTimeout(gh.history.load, 200) } };
_.__.write("<div id=\"jsContainer\" class=\"jsContainer\"><div id=\"jsHistoryDiv\" style=\"display:none;\">" + (gh.browser.IE ? "" : "<iframe id=\"jsHistoryFrame\" name=\"jsHistoryFrame\" onload=\"gh.history.load();\" src=\"about:blank\"><\/iframe>") + "<\/div><textarea id=\"jsSaveStatus\" style=\"display:none;\"><\/textarea><div id=\"tuna_alert\" style=\"display:none;position:absolute;z-index:999;overflow:hidden;\"><\/div><\/div><div id=\"tuna_jmpinfo\" style=\"visibility:hidden;position:absolute;z-index:120;overflow:hidden;\"><\/div>");
gh.status = new function() {
    this.domReady = false; this.load = false; this.busy = 0; this.dealt = {}; this.regEventCount = 0; this.regEventHash = {};
    this.charset = (((_.__.charset ? _.__.charset : _.__.characterSet) || "").match(/^(gb2312|big5|utf-8)Van/gi) || "gb2312").toString().toLowerCase();
    this.version = { "gb2312": "zh-cn", "big5": "zh-tw", "utf-8": "en"}[this.charset]; var a = VantopWin.__.getElementsByTagName("script");
    this.debug = false; this.debugEvent = false; this.alertDiv = _.__.getElementById("tuna_alert"); this.container = _.__.getElementById("jsContainer");
    this.saveStatus = _.__.getElementById("jsSaveStatus");
    this.back = false;
    this.pageValue = { data: {} }; this.globalValue = {};
    // this.today = new Date().toStdString()
};
//debugger 
gh.history = { isFirefox2: /Firefox\/2\.0\.0\.\d+/.test(navigator.userAgent), enabled: false, callback: {}, info: { "#": ["#", "", "", ""] }, current: "#", blank: "blank.html", div: _.__.getElementById("jsHistoryDiv"), frame: _.frames["jsHistoryFrame"], iframe: null, isReady: false, count: 0, init: function() {
    if (_.gh.history.frame) return;
    this.div.innerHTML = "<iframe id=\"jsHistoryFrame\" name=\"jsHistoryFrame\" src=\"" + this.blank + "\" onload=\"gh.history.load();\"><\/iframe>";
    this.frame = _.frames["jsHistoryFrame"];
    this.iframe = Van("jsHistoryFrame")
}, load: function() {

    this.isReady = true; Vanr("domReady", function() {
        var f = 0; setInterval(function() {
            var a = (_.gh.history.isFirefox2 ? _ : _.gh.history.frame).location.hash.replace(/^#/, "") || "#"; if (a != _.gh.history.current) {
                if (f < 1) f++; else {
                    _.gh.history.current = a; var c = _.gh.history.info[a]; if (c) {
                        Vant("[history]返回标志:" + c[0] + "/" + a, "green", c.join("\t")); var d = _.gh.history.callback[c[0]];
                        if (typeof d == "function") d.apply(c[0], c.slice(1))
                    } if (gh.browser.Opera) _.VansaveHistory()
                }
            } else f = 0
        }, 100)
    }); Vant("[history]初始化完成", "green");
    var g = (_.gh.history.isFirefox2 ? _ : _.gh.history.frame).location.hash.replace(/^#/, "") || "#"; Vant("[history]返回标志:" + g, "green"); this.load = function() { }
}
};

gh.module = { iframe: [], list: {}, tab: {}, selectAll: {}, address: { source: {} }, calendar: {}, init: [] };
gh.string = { "zh-cn": { weekday: "日一二三四五六", display: "@▲|▼@显示|隐藏@" }, "zh-tw": { weekday: "日一二三四五六", display: "@▲|▼@顯示|隱藏@" }, "en": { weekday: "SMTWTFS", display: "@Show|Hidden@"}}[gh.status.version];
function Vanextend(a) {
    for (var c = 1; c < arguments.length; c++) {
        var d = arguments[c];
        for (var f in d) if (d.hasOwnProperty(f)) a[f] = d[f]
    } return a
}
function Vanmerge() { return Vanextend.apply(null, [{}].concat([].slice.call(arguments, 0))) }
function Vankeys(a, c) {
    var d = []; for (var f in a) if (c || a.hasOwnProperty(f)) d.push(f);
    return d
}
function Vanvalues(a, c) { var d = []; for (var f in a) if (c || a.hasOwnProperty(f)) d.push(a[f]); return d }
function Vanitems(a, c) {
    var d = [];
    for (var f in a) if (c || a.hasOwnProperty(f)) d.push([f, a[f]]); return d
}
function Vanclass(g, j) {
    var i = arguments.callee; var k = function() { };
    if (j) { k.prototype = new j(); k.prototype.constructor = j } var n = function() {
        var a = arguments.callee.caller; if (a == i || a == n.create) return;
        if (this.initialize) this.initialize.apply(this, arguments)
    }; n.prototype = new k();
    Vanextend(n.prototype, g || {}, { constructor: n, proto: n.prototype, base: k.prototype });
    Vanextend(n, { create: function(a) {
        var c = new n(); if (c.initialize) c.initialize.apply(c, a);
        return c
    }, subclass: function(a) { return i(a, n) }, implement: function(d, f) {
        if (Vantype(d) == 'string') { n.prototype[d] = f } else {
            [ ].slice.call(arguments).each(function(c) {
                if (Vantype(c) == 'function') c = new c();
                Vanitems(c, true).each(function(a) { n.prototype[a[0]] = a[1] })
            })
        } 
    } 
    });
    return n
}
function VanpageSize(a) {
    var c = { docWidth: ___.scrollWidth, docHeight: ___.scrollHeight, winWidth: ___.clientWidth, winHeight: ___.clientHeight, scrollLeft: gh.browser.WebKit ? __.body.scrollLeft : ___.scrollLeft, scrollTop: gh.browser.WebKit ? __.body.scrollTop : ___.scrollTop };
    if (gh.browser.WebKit) {
        var d = ___.VangetStyle(); c.docWidth += parseInt(d.marginLeft) + parseInt(d.marginRight);
        c.docHeight += parseInt(d.marginTop) + parseInt(d.marginBottom)
    } c.docWidth = Math.max(c.docWidth, c.winWidth); c.docHeight = Math.max(c.docHeight, c.winHeight);
    if (a) {
        var f = a == 'win'; c.left = f ? c.scrollLeft : 0; c.top = f ? c.scrollTop : 0; if (gh.browser.Moz) {
            var d = ___.VangetStyle();
            c.left -= parseInt(d.borderLeftWidth) + parseInt(d.marginLeft) ;
            c.top -= parseInt(d.borderTopWidth) + parseInt(d.marginTop) 
        } c.width = f ? c.winWidth : Math.max(c.docWidth, c.winWidth);
        c.height = f ? c.winHeight : Math.max(c.docHeight, c.winHeight)
    } return c
}
function Vananimate(j, i, k) {
    if (!j || !j.style) return; j = j.style;
    var k = Vanextend({ fps: 40, duration: 400, callback: function() { }, reverse: false, fn: function(a) { return Math.sin(a * Math.PI / 2) } }, k || {});
    var n = Vankeys(i);
    var o = n.map(function(a) { return /(width|height|left|top)\b/i.test(a) ? 'px' : '' }); var l = new Date(); var r = function() {
        var a = new Date() - l; if (a > k.duration) a = k.duration; for (var c = 0; c < n.length; c++) {
            var d = i[n[c]]; var f = k.fn(a / k.duration); var g = k.reverse ? d[1] + (d[0] - d[1]) * f : d[0] + (d[1] - d[0]) * f;
            if (o[c] == 'px') g = Math.round(g); j[n[c]] = g + o[c]
        } if (a == k.duration) { clearInterval(s); if (k.callback) setTimeout(k.callback, Math.round(1000 / k.fps)) }
    };
    var s = setInterval(r, Math.round(1000 / k.fps)); r(); return s
}
function Vananimate2(n, o) {
    var o = Vanmerge({ fps: 40, duration: 400, callback: function() { }, reverse: false, fn: function(a) { return Math.sin(a * Math.PI / 2) } }, o || {});
    var l = new Date; var r = function() {
        var a = new Date - l; if (a > o.duration) a = o.duration; var c = o.fn(a / o.duration);
        for (var d = 0; d < n.length; d++) {
            var f = n[d][0]; var g = n[d][1]; for (var j in g) {
                var i = g[j];
                var k = o.reverse ? i[1] + (i[0] - i[1]) * c : i[0] + (i[1] - i[0]) * c;
                if (i[2] == 'px' || i[3]) k = Math.round(k); f[j] = k + i[2]
            }
        } if (a == o.duration) {
            clearInterval(s);
            if (o.callback) setTimeout(o.callback, Math.round(1000 / o.fps))
        } return arguments.callee
    };
    var s = setInterval(r(), Math.round(1000 / o.fps)); return s
}
function VanfixE(a) {
    a = _.event || a || arguments.callee.caller.arguments[0];
    Van(a.Vantarget = a.target ? (a.target.nodeType && a.target.nodeType == 3 ? a.target.parentNode : a.target) : a.srcElement); return a
}
function VanstopEvent(a, c) {
    a = VanfixE(a); c = c || 0; if (c >= 0) a.preventDefault ? a.stopPropagation() : (a.cancelBubble = true);
    if (c != 0) a.preventDefault ? a.preventDefault() : (a.returnValue = false)
} function VangetUid() { return "uid_" + (new Date()).getTime() + Math.random().toString().substr(2, 5) }
function Vanc(a) { if (a.constructor == Array) return Van(__.createTextNode(a.join("\n"))); else return Van(__.createElement(a)) } var VancreateElement = Vanc;
function VantoJson(c) {
    if (c === null) return 'null'; if (typeof c == 'undefined') return 'undefined'; switch (c.constructor) {
        case Object: var d = [], f; for (var g in c) d.push(VantoJson(g) + ":" + VantoJson(c[g])); return "{" + d.join(",") + "}";
        case Array: return "[" + c.map(function(a) { return VantoJson(a) }).join(",") + "]"; case String: return "\"" + c.replace(/([\n\r\\\/\'\"])/g, function(a) { return { "\n": "\\n", "\r": "\\r"}[a] || "\\" + a }) + "\""; case Date: return "new Date(" + c.getTime() + ")"; case Number: case Boolean: case Function: case RegExp: return c.toString(); default: return "null"
    }
}
function VanfromJson(a) { var c; var d = null; try { d = eval("(" + a + ")") } catch (e) { VantrackEvent('tuna-error', 'VanfromJson', Vanerror(e), VantunaVersion()) }; return d }
function VanpageValue() { return VanpageValue.get.apply(_, arguments) }
VanpageValue.set = function(a, c, d) {
    d = d || gh.history.current; if (!(d in gh.status.pageValue.data)) gh.status.pageValue.data[d] = {};
    gh.status.pageValue.data[d][a] = c; if (gh.browser.Opera) VansavePageValue()
}; VanpageValue.get = function(a, c) {
    var d = gh.status.pageValue.data[c || gh.history.current];
    return d && a in d ? d[a] : null
}; VanpageValue.del = function(a, c) {
    var d = gh.status.pageValue.data[c || gh.history.current]; if (d) {
        delete d[a];
        if (gh.browser.Opera) VansavePageValue()
    }
};
function VansavePageValue() { gh.status.saveStatus.value = VantoJson(gh.status.pageValue) }
function VansaveHistory() {
    var a = []; for (var c in gh.history.info) {
        var d = gh.history.info[c];
        if (d.constructor == Array && d.length == 4) {
            var f = [c]; for (var g = 0; g < d.length; g++) f.push(escape(d[g] || ""));
            a.push(escape(f.join("|")))
        }
    } gh.status.pageValue["historyInfo"] = a.join("|"); gh.status.pageValue["historyCount"] = gh.history.count;
    if (gh.history.frame) gh.status.pageValue["lastHistory"] = gh.history.frame.location.href; VansavePageValue()
} function VanglobalValue() { }
function VangetQuery(a) { var c = (location.search || "").match(new RegExp("[\\?&]" + a + "=([^&]+)", "i")); return c ? unescape(c[1]) : null }
function VanloadJs(d, f, g, j) {
    var i = arguments.callee; var k = i.queue || (i.queue = {}); var n = null; if (!(d in k)) {
        k[d] = [];
        if (g) { n = l(); k[d].push(g) }
    } else { if (g) { if (k[d]) { n = l(); k[d].push(g) } else { g() } } return } var o = document.createElement('script');
    o.type = 'text/javascript'; o.charset = f || gh.status.charset; o.onload = o.onreadystatechange = function() {
        if (o.readyState && o.readyState != 'loaded' && o.readyState != 'complete') return;
        if (n) clearTimeout(n); o.onreadystatechange = o.onload = null; while (k[d].length) k[d].shift()(); k[d] = null
    }; o.src = d; __.getElementsByTagName('head')[0].appendChild(o); function l() {
        var a = k[d]; var c = a.length;
        if (g && j) { return setTimeout(function() { if (g(true) !== true) a.splice(c, 1) }, j) } 
    }
} function VanloadCss(a, c) {
    if (gh.browser.IE) __.createStyleSheet(a).charset = c || _.gh.status.charset; else {
        var d = _.__.createElement("link");
        with (d) { type = "text\/css"; rel = "stylesheet"; href = a } __.Van("head")[0].appendChild(d)
    } 
} function VangetCookie(a, c) {
    var d = __.cookie.match(new RegExp("(?:^|;)\\s*" + encodeURIComponent(a) + "=([^;]+)")); if (c === false) return d ? d[1] : null;
    if (d && c) d = d[1].match(new RegExp("(?:^|&)\\s*" + encodeURIComponent(c) + "=([^&]+)"));
    return d ? decodeURIComponent(d[1]) : null
} function VandelCookie(a, c) {
    if (c) {
        var d = VangetCookie(a, false); if (d === null) return;
        d = d.replace(new RegExp("(^|&)\\s*" + encodeURIComponent(c) + "=[^&]+"), "").replace(/^\s*&/, "");
        if (d) { __.cookie = encodeURIComponent(a) + "=" + d; return }
    } var f = new Date(); f.setTime(f.getTime() - 1); __.cookie = encodeURIComponent(a) + "=;expires=" + f
} function VansetCookie(a, c, d) {
    if (!d) { d = c; c = null } var f = (gh.cookie.domain ? "; domain=" + gh.cookie.domain : "") + "; path=" + (gh.cookie.path || "/") + (gh.cookie.expires ? "; expires=" + new Date((new Date()).getTime() + gh.cookie.expires * 3600000).toGMTString() : "");
    if (c) {
        var g = VangetCookie(a, false) || "";
        if (g) g = (g + "&").replace(new RegExp("(^|&)\\s*" + encodeURIComponent(c) + "=[^&]+&"), "$1"); __.cookie = encodeURIComponent(a) + "=" + g + encodeURIComponent(c) + "=" + encodeURIComponent(d) + f
    } else __.cookie = encodeURIComponent(a) + "=" + encodeURIComponent(d) + f
}
function Vaninit(a) { if (a) VantopWin.gh.module.init.push(a); else VantopWin.gh.module.init.each() }
function VanparserRe(d) {
    var f = [];
    var g = /<[^>]+\smod=[\'\"]?([\w|]+)[^>]+/g; var j = /\sid=[\'\"]?([^\s>\'\"]+)/i;
    var i = null; var k = null; var n = null; (d && d.innerHTML ? d : __.body).innerHTML.replace(g, function(a, c) {
        try {
            if (c == "jmpInfo") { } else if ((k = a.match(j)) && (n = Van(k[1]))) {
                if (c in Golden.module) new Golden.module[c](n);
                else f.push(n)
            }
        } catch (e) { Vant("parserRe函数错误:" + func.toString().slice(0, 50) + "...", "red"); VantrackEvent('tuna-error', 'VanparserRe', Vanerror(e), VantunaVersion()) };
        return ""
    }); var o = setInterval(function() { var a = f.shift(); if (a) VantopWin.Vand(a); else clearInterval(o) }, 50)
} function Vand(c) {
    (Van(c).getAttribute("mod") || "").replace(/\w+/ig, function(a) {
        if (Golden.module[a]) { new Golden.module[a](c) } else {
            Vant("错误:元素[" + (c.id || c.tagName) + "]引用未知模块[" + a + "]", "red");
            VantrackEvent('tuna-error', 'Vand', [c.id || c.tagName, a].join('; '), VantunaVersion())
        } 
    })
} var VandealElement = Vand; gh.access = {}; function Vani(j) {
    var i = gh.access[j]; if (i) return i; else {
        i = new function() {
            var f = [], g = []; this.get = function() {
                var a = i.value;
                for (var c = 0; c < f.length; c++) { var d = f[c].call(a); if (typeof d != 'undefined') a = d } return a
            }; this.set = function(a) { for (var c = 0; c < g.length; c++) { var d = g[c].call(a); if (typeof d != 'undefined') a = d } return i.value = a };
            this.regGet = function(a) { if (!a) f = []; else f.push(a); return }; this.regSet = function(a) {
                if (!a) g = []; else g.push(a);
                return
            } 
        } 
    } return gh.access[j] = i
} function VanfixElement(f) {
    function g(a, c, d) { if ('attachEvent' in a) a.attachEvent('on' + c, d); else a.addEventListener(c, d) } function j(a) {
        a = a.getElementsByTagName('input'); for (var c = 0; c < a.length; c++) if (/checkbox|radio/.test(a[c].type)) return a[c];
        return null
    } function i(a) { if (!a) a = window.event; return a.srcElement || a.target }
    function k(a) {
        var c = a._7; if (c) {
            a.htmlFor = c.id || (c.id = VangetUid());
            a._7 = null
        } var d = a.style; d.borderBottom = '#aaa 1px dashed'; d.paddingBottom = '0px'; d.color = '#1E1A75'
    } function n(a) { var c = a.style; c.borderBottom = ''; c.paddingBottom = ''; c.color = '' } f = f && f.nodeType ? f : _.__;
    if (gh.browser.IE6) {
        var o = f.getElementsByTagName("label"); for (var l = 0; l < o.length; l++) {
            var r = j(o[l]);
            if (r && /checkbox|radio/.test(r.type)) (function(lbl, box) { lbl._7 = box; g(lbl, 'mouseover', function() { k(lbl) }); g(lbl, 'mouseout', function() { n(lbl) }) })(o[l], r)
        } 
    } if (gh.browser.IE) {
        var s = f.getElementsByTagName("select");
        for (var l = 0; l < s.length; l++) s[l].onmousewheel = function() { return false } 
    }
} function VanremoveTextNode(a) { if (!a) return; var c = a.firstChild, d; while (c) { d = c.nextSibling; if (c.nodeType == 3) { if (!c.nodeValue.trim()) a.removeChild(c) } else VanremoveTextNode(c); c = d } return a } function Vanajax(d, f, g, j) {
    var i = ["MSXML2.XMLHTTP", "Microsoft.XMLHTTP"], k; try { k = new XMLHttpRequest() } catch (e) {
        for (var n = 0; n < i.length; n++) try {
            k = new ActiveXObject(i[n]);
            break
        } catch (e) { } 
    } if (!k) {
        VantrackEvent('tuna-error', 'Vanajax', 'xmlObj creation failure', VantunaVersion());
        return
    } k.open(f ? "POST" : "GET", d || location.href, !!g); k.setRequestHeader("Content-Type", "application\/x-www-form-urlencoded");
    k.setRequestHeader("If-Modified-Since", new Date(0));
    function o() {
        if (gh.history.enabled && j) {
            gh.history.init(); var c = "ajaxHistory_" + gh.history.count++; gh.history.current = c; (function() {
                if (gh.history.isReady) {
                    var a = gh.history.info[c] = [j, k.status == 200 ? k.responseText : null, d, f]; if (gh.history.isFirefox2) location.hash = c;
                    else gh.history.frame.location.href = gh.history.blank + (gh.browser.IE ? "?" + !(gh.history.count % 2) : "") + "#" + c;
                    if (gh.browser.Opera) VansaveHistory();
                    Vant("[history]增加历史:" + a[0] + "/" + c, "green", a.slice(1).join("\n"))
                } else setTimeout(arguments.callee, 50)
            })()
        } return (k.status == 200 ? (/xml/i.test(k.getResponseHeader("content-type")) ? k.responseXML : k.responseText) : null)
    } if (g) k.onreadystatechange = function() { if (k.readyState == 4) { var l = o(); if (g(l) === true) { setTimeout(function() { Vanajax(d, f, g) }, 1000) } } }; k.send(f || "");
    return g ? k : o()
}
function VanshowDebug(a) {
    var c = a.keyCode || a.charCode; if (gh.status.debug && c == 192) {
        var d = VangetDebug();
        if (d && (d = d.frameElement)) d.style.display = d.style.display == "" ? "none" : ""
    }
}
function VangetDebug() {
    var a = VantopWin.frames["Golden_debug"]; if (a) return a;
    with (a = VantopWin.Vanc("iframe")) {
        frameBorder = 0; id = name = "Golden_debug";
        with (style) { border = "1px solid red"; width = "600px"; height = "300px"; position = gh.browser.IE6 ? "absolute" : "fixed"; bottom = right = "10px"; background = "white" }
    } VantopWin.gh.status.container.appendChild(a); if (gh.browser.IE6) VantopWin.Vanr("scroll", function() { with (Van("Golden_debug").style) { zoom = 1; zoom = 0 } });
    with ((a = VangetDebug()).document) { open(); write("<style>body{margin:0;padding:0;font-family:Arial;font-size:12px;overflow:scroll;}div{border-bottom:1px solid #CCC;}<\/style><body><\/body>"); close() } VantopWin.__.Vanr("keydown", VanshowDebug);
    return a
}
function Vant(a, c, d) {
    if (!VantopWin.gh.status.debug) return; if (_ != VantopWin) return VantopWin.Vant(a, c); var f = VangetDebug();
    var g = new Date().getTime() % (1E7);
    var j = "<font id=\"msg_" + g + "\"> " + a + "<\/font>"; var i = f.document.createElement("div");
    if (c) i.style.color = c || "black"; if (d) i.title = d; i.innerHTML = "<font style=\"color:blue;\">" + g + "<\/font> " + j;
    with (f.document.body) { if (firstChild) insertBefore(i, firstChild); else appendChild(i) } return a
}
function Vanalert(a, c, d, f, g) {
    a = Van(a); var j = Van("alertInfo"), i = Van("alertTable"), k = 1; j.innerHTML = c; VantopWin.gh.status.alertDiv.style.display = "";
    VantopWin.gh.status.alertDiv.VansetPos(a, f || "tl", g || "tr"); VantopWin.gh.status.alertDiv.VansetIframe(); a.className += " pubGlobal_checkinfo_input01";
    if (d !== false) a.VansetDisplay();
    function n() {
        a.className = a.className.replace("pubGlobal_checkinfo_input01", ""); VantopWin.gh.status.alertDiv.style.display = "none";
        VantopWin.gh.status.alertDiv.VanclearIframe(); a.Vanur("onblur", n); __.body.Vanur("onmousedown", n); a.clearAlert = null;
        Vanalert.element = null
    } if (a.disabled) k = 0;
    else setTimeout(function() { try { a.focus() } catch (e) { k = 0 } }, 0); if (k) a.Vanr("onblur", n);
    else __.body.Vanr("onmousedown", n);
    Vanalert.element = a; a.clearAlert = n
}
function VantoQuery(a, c) {
    var d = []; for (var f in a) if (a.hasOwnProperty(f)) d.push([f, c ? c(a[f]) : a[f]].join('='));
    return d.join('&')
}

// function VanfromQuery(a, c) {
//     var d = a.split('&'); var f = {}; for (var g = 0; g < d.length; g++) {
//         var j = d[g].split('=');
//         if (j.length > 1) f[j[0]] = c ? c(j.slice(1).join('=')) : j.slice(1).join('=')
//     } return f
// } 
// function VanmakeArray(a) {
//    var c = []; if (a != null) {
//        var d = Array.prototype.push; if (a.length == null || a.setInterval) { d.call(c, a) } else {
//            switch (Vantype(a)) {
//                case "string": case "function": d.call(c, a);
//                    break;
//                default: for (var f = 0, g = a.length; f < g; f++) c.push(a[f])
//            } 
//        } 
//    } return c
//}
function VantrackEvent(c, d, f, g) {
    var j = (arguments.callee._e || (arguments.callee._e = { tuna_total: 0, other_total: 0 }));
    if (c == 'tuna-error') {
        if (j.tuna_total >= 20) return;
        var i = c + '.' + d;
        if (j[i] && j[i] >= 5) return;
        j[i] = (j[i] || 0) + 1;
        ++j.tuna_total
    } else {
        if (j.other_total >= 80) return;
        ++j.other_total
    }
}
function Vanerror(a) {
    if (!a) return "";
    var c, d, f, g; if (a.message) {
        if (gh.browser.Opera) {
            var j = transErrMessage(a.message); c = "";
            d = this.transed[2]; f = this.transed[1]; g = this.transed[3].match(/.+((?:file:|http:)[^\s]+?)\s+.+/i)[1]
        } else {
            c = a.name || ''; d = a.message || "";
            f = a.lineNumber || a.line || ""; g = a.fileName || a.sourceURL || ""
        }
    } else if (!a.message && (arguments[2] || arguments[2] == 0)) {
        d = a; c = "";
        f = arguments[2]; g = arguments[1]
    } return [c, d, f, g].join('|')
}
function transErrMessage(a) {
    var c = [];
    c = a.match(/Statement[^\d]+(\d+)\:([\s\S]+)Backtrace\:([\s\S]+)/);
    return c
}
//获取脚本版本
function VantunaVersion() {
    var a = arguments.callee;

    if (!a._1) {
        a._1 = -1; for (var c = document.getElementsByTagName('script'), d = c.length - 1; d >= 0; d--) {
            var f = c[d].src.match(/\/tuna_(\d+).jsVan/i);
            if (f) {
                a._1 = parseInt('20' + f[1]);
                break
            }
        }
    } return a._1
}

//function VanisOnline() { VantunaVersion(); return !VantunaVersion._2 && !VantunaVersion._3 }

var c_linklist = {};

var c_allyes_text = {};
var c_allyes_delay = 1000;

var DOM = function() {
    if (!this || this.nodeType == 3 || this.Van) return this;
    this.module = {}; this.module.event = {};
    function C(a) { return (a.toString().match(/function([^\{]+)/i) || ["", "anonymous"])[1].replace(/\(\)/, "").trim() || "anonymous" } function q(a) {
        var c = "[" + a.event + "] "; c += a.obj.tagName || { 3: a.obj.nodeValue, 9: "document"}[a.obj.nodeType || ""] || "window";
        c += a.obj.id ? "#" + a.obj.id : (a.obj.name ? "@" + a.obj.name : ""); c += " " + C(a.func);
        return c
    } function t(g) {
        return function(a) {

            a = VanfixE(a); var c = g.module.event[a.type], d; for (var f = 0; f < c.length; f++) {
                if (c[f].enabled) {
                    try {
                        d = c[f].func.call(g, a); if (VantopWin.gh.status.debugEvent) Vant(q(c[f]) + " (" + (typeof d == "undefined" ? "无返回值" : d.toString().slice(0, 100)) + ")", null, c[f].func);
                        if (d === false) break
                    } catch (ex) { Vant(q(c[f]) + " (执行错误)", "red", c[f].func); VantrackEvent('tuna-error', 'DOM.execEvent', Vanerror(ex), VantunaVersion()) }
                } else { c.splice(f, 1); f-- }
            } return d
        }
    } if (this.__) this.Van = function(objId, flag) {
        if (typeof objId == "object") return DOM.apply(objId); var v; if (flag) {
            var m = ___.innerHTML.match(new RegExp("\\sid=([\\\'\\\"]?)([\\w$]+?[_$]" + objId.toReString() + ")\\1"), "g");
            if (m) { for (var D = 0; D < m.length; D++) { v = Van(m[D]); if (v) return v } } return Van(objId)
        } else v = __.getElementById(objId); return v ? Van(v) : null
    };
    else this.Van = function(f) {
        var g = this.getElementsByTagName(f);
        g.Vaneach = function(a) {
            var c; if (g.length !== undefined) for (var d = 0;
         d < g.length && (c = a.call(this, g[d], d)) !== false; d++); else a.call(this, g, 0); return c === false ? 0 : 1
        }; for (var j = 0; j < g.length; j++) Van(g[j]);
        return g
    }; if (this.nodeType == 1) {
        if (this.tagName == "INPUT" && /^(text|hidden)Van/i.test(this.type) || this.tagName == "TEXTAREA") this.isNull = function() { return !this.value.trim() };
        if (/^SELECTVan/.test(this.tagName)) this.VansetValue = function(value) { for (var D = 0; D < this.options.length; D++) { if (this.options[D].value == value) { this.selectedIndex = D; return true } } return false }
    } if (!this.hasAttribute) this.hasAttribute = function(str) { return typeof this.attributes[str] != "undefined" }; this.VanparentNode = function(a) {
        var c = Van(this.parentNode);
        if (a && c && c.tagName && c.tagName.toLowerCase() != a.toLowerCase()) c = c.VanparentNode(a); return c && c.tagName ? c : null
    }; this.VanfirstChild = function() { return Van(this.firstChild) }; this.VanlastChild = function() { return Van(this.lastChild) };
    this.VanchildNodes = function() { var a = this.childNodes; for (var c = 0; c < a.length; c++) Van(a[c]); return a };
    this.VannSib = this.VannextSibling = function() { return Van(this.nextSibling) };
    this.VanpSib = this.VanpreviousSibling = function() { return Van(this.previousSibling) };
    this.Vanclick = function() {
        if (this.click) this.click(); else {
            var a = __.createEvent("MouseEvents");
            a.initMouseEvent("click", true, true, _, 0, 0, 0, 0, 0, false, false, false, false, 0, this); this.dispatchEvent(a)
        }
    };
    this.VangetStyle = function(a) { var c = this.currentStyle || _.getComputedStyle(this, null); return a ? c[a] : c };
    this.VangetPara = function() {
        var a, c = (a = this.getAttribute(arguments[0]) || "").split(a.indexOf("") > -1 ? "" : "|");
        for (var d = 0; d < Math.max(arguments.length - 1, c.length); d++) c[d] = c[d] || arguments[d + 1] || ""; return c
    };

    this.Vanr = this.VanregEvent = function(j, i, k, n) {
        n = n || 50; if (arguments.length == 3 && typeof k == "number") { n = k; k = null } var o = this;
        if (j.constructor != Array) j = [j]; if (i.constructor != Array) i = [i]; j.each(function(g) {
            i.each(function(d) {
                g = g.replace(/^(on)?/i, "");
                g = g == "DOMContentLoaded" ? "domready" : g.toLowerCase(); if (g == "domready") o = _;
                var f = { enabled: true, obj: o, event: g, func: d, hash: k, level: n, id: _.gh.status.regEventCount++ };
                if (g == "domready" && gh.status.domReady || g == "load" && (o == _ || o == __.body) && gh.status.load) d();
                else {
                    if (!(g in o.module.event)) {
                        o.module.event[g] = []; if (o.attachEvent) o.attachEvent("on" + g, t(o));
                        else o.addEventListener(g, t(o), false)
                    } o.module.event[g].push(f); o.module.event[g].sort(function(a, c) { return (a.level - c.level) || (a.id - c.id) })
                } if (k) { if (!(k in gh.status.regEventHash)) gh.status.regEventHash[k] = []; gh.status.regEventHash[k].push(f) }
            })
        })
    };
    this.Vanur = this.VanunregEvent = function(g, j, i) {
        var k = this; if (g.constructor != Array) g = [g]; if (j.constructor != Array) j = [j]; g.each(function(f) {
            j.each(function(a) {
                f = f.replace(/^(on)?/i, ""); f = f == "DOMContentLoaded" ? "domready" : f.toLowerCase(); if (f == "domready") k = _;
                if (f in k.module.event) {
                    var c = k.module.event[f]; for (var d = 0; d < c.length; d++) {
                        if (c[d].enabled && c[d].func == a && (!i || c[d].hash == i)) {
                            c[d].enabled = false;
                            break
                        } 
                    } if (!c.length) {
                        delete k.module.event[f];
                        if (k.detachEvent) k.detachEvent(f, t); else k.removeEventListener(f, t, false)
                    }
                }
            })
        })
    }; this.Vanurh = this.VanunregEventHash = function(a) { var c = this; if (a in gh.status.regEventHash) { var d = gh.status.regEventHash[a], f; while (f = d.shift()) f.obj.Vanur(f.event, f.func, a); delete gh.status.regEventHash[a] } }; this.VangetWin = function() { var a = this.ownerDocument; return a.parentWindow || a.defaultView }; this.Vang = this.VanselNode = function(F) { function B(n, o) { var l = [], r = n.match(/^([\.\#]*)([a-zA-Z0-9\-_*]+)(.*)$/i); if (!r) return []; if (r[1] == "#") { var s = Van(r[2]); if (s) l.push(s) } else if (r[1] == ".") o.each(function(v) { v.Van("*").Vaneach(function(a) { if (new RegExp("\\b" + r[2] + "\\b").test(a.className)) l.push(Van(a)) }) }); else for (var x = 0; x < o.length; x++) { var s = o[x].Van(r[2]); if (s) for (var h = 0; h < s.length; h++) l.push(s[h]) } r[3].replace(/\[([^!=]+)(=|!=)([^\]]*)\]/gi, function(f, g, j, i) { var k = l.slice(0); l = []; k.each(function(a) { g = { "class": "className", "for": "htmlFor"}[g] || g; var c = a[g] || a.getAttribute(g); var d; if (g == "className") d = new RegExp("\\b" + i + "\\b").test(c); else d = c == i; if ((j == "=") == d) l.push(Van(a)) }) }); return l } var X = [this == _ ? _.__.body : this], K = [], H = []; F.replace(/[^\[,]([^\[,]*(\[[^\]]*\])*)+/g, function(c) { var d = X.slice(0); c.replace(/(#|\*)/gi, " $1").replace(/([^\^ ])\.(\w+)/gi, "$1[className=$2]").trim().split(/\s+/g).each(function(a) { d = B(a, d) }); K = K.concat(d) }); K.each(function(a) { if (!a.__selNodeFlag__) { a.__selNodeFlag__ = true; H.push(a) } }); H.each(function(a) { a.__selNodeFlag__ = false; if (a.hasAttribute("__selNodeFlag__")) a.removeAttribute("__selNodeFlag__") }); return H.length == 0 ? null : H }; this.VangetPos = function() { var f = this, g = this, j, i = [0, 0], k, n = { "thin": 2, "medium": 4, "thick": 6 }; function o() { if (f == g) return; function d(a) { var c = /^(none|hidden)Van/i.test(g.VangetStyle("border" + a + "Style")) ? 0 : g.VangetStyle("border" + a + "Width"); return n[c] || parseInt(c, 10) || 0 } i[0] += d("Left") - 3; i[1] += d("Top")-4 } do { j = Van(g).VangetWin(); if (g.tagName.match(/^(iframe|frameset)$/i)) o(); k = -1; do { i[0] += g.offsetLeft - g.scrollLeft; i[1] += g.offsetTop - (gh.browser.WebKit && g == j.document.body ? 0 : g.scrollTop); if (gh.browser.IE) o(); if (!gh.browser.IE6 && g.VangetStyle("position") == "fixed") k = 1 } while (g.offsetParent && g != g.offsetParent && (g = Van(g.offsetParent)) && g != _.___); if (gh.browser.WebKit) { i[0] += j.__.body.leftMargin || 0; i[1] += j.__.body.topMargin || 0 } if (k == 1 || j != VantopWin) { i[0] += j.___.scrollLeft * k; i[1] += j.___.scrollTop * k } if (j == VantopWin) break } while (g = j.frameElement); return i }; this.VansetPos = function(k, n, o) { function l(g, j) { function i(a, c, d, f) { return d + { "l": 0, "c": c.offsetWidth / 2, "r": c.offsetWidth, "t": 0, "m": c.offsetHeight / 2, "b": c.offsetHeight}[a || "l"] * f } return i(n.match(g), this, i(o.match(g), k, r[j], 1), -1) + "px" } var r = k.VangetPos(); n = n || "lt"; o = o || "lb"; this.style.left = l.call(this, /[lcr]/i, 0); this.style.top = l.call(this, /[tmb]/i, 1) }; this.VansetIframe = function(c) { if (c !== true && !gh.browser.IE6) return; if (this.module.iframe) f = this.module.iframe; else { function d() { for (var a = 0; a < VantopWin.gh.module.iframe.length; a++) { if (VantopWin.gh.module.iframe[a].VangetStyle("display") == "none") return VantopWin.gh.module.iframe[a] } } var f = d(); if (!f) { f = VantopWin.Vanc("iframe"); with (f.style) { width = height = "0px"; background = "#FFF"; position = "absolute"; display = "none"; zIndex = 100 } f.frameBorder = 0; f.id = f.name = VangetUid(); VantopWin.gh.status.container.appendChild(f); VantopWin.gh.module.iframe.push(f); with (VantopWin.frames[f.id].document) { open(); write('<style>html,body{overflow:hidden}</style>'); close() } } this.module.iframe = f } f.VansetPos(this, "tl", "tl"); with (f.style) { width = this.offsetWidth + "px"; height = this.offsetHeight + "px"; display = "" } return f }; this.VanclearIframe = function() { var a = this.module.iframe; if (a) { a.style.display = "none"; this.module.iframe = null } return a }; function O(a, c, d) {
        if (!a) return null;
        c = c || "n"; var f = new RegExp(({ 1: "n", 3: "t", 8: "c"}[a.nodeType]) || "o", "i"); return c.match(f) ? a : d.call(a, c)
    } this.VannAbs = function(a) { var c = this, d = c.firstChild || c.nextSibling; if (!d) do { c = c.parentNode; if (c == __.body) return null; d = c.nextSibling } while (!d); return Van(O(d, a, arguments.callee)) }; this.VanpAbs = function(a) { if (this == __.body) return null; var c = this.previousSibling; if (c) { while (c.lastChild) c = c.lastChild } else c = this.parentNode; return Van(O(c, a, arguments.callee)) }; this.VanfocusNext = function() { if (!this.form) return; try { this.blur() } catch (e) { }; var a = this.form.elements, c; for (var d = 0; d < a.length; d++) { if (c) { if (!Van(a[d]).disabled && a[d].VanisDisplay()) try { a[d].focus(); return } catch (e) { } } if (a[d] == this) c = true } }; this.VansetDisplay = function() { var a = this.VangetPos(); with (VantopWin.___) { scrollLeft = a[0] - 80; scrollTop = a[1] - 80 } }; this.VanisDisplay = function() { var a = this; do { if (a.tagName == "INPUT" && a.type == "hidden" || a.VangetStyle("display") == "none" || a.VangetStyle("visibility") == "hidden") return false } while ((a = a.VanparentNode()) && a.nodeType == 1); return true }; return this
}; DOM.apply(_); DOM.apply(__); DOM.apply(___); DOM.apply(gh.status.alertDiv); Golden.module.linklist = function(a) { var c = a.getAttribute('mod_linklist_class'); if (c === null) c = 'pubSidebar_linkmargin01'; var d = '<a class="' + c + '" href="{Vanlink}" title="{Vantext}" target="{Vantarget}">{Vantext}</a>'; var f = a.getAttribute('mod_linklist_id'); if (!f || !(f = window.c_linklist[f]) || f.constructor !== Array) return; for (var g = 0; g < f.length; g++) { var j = f[g].split('|', 2); f[g] = d.replaceWith({ text: Vans2t(j[0]), link: j[1], target: f[g].target || '_f' }) } a.innerHTML = f.join('') }; Golden.module.allyes = function(f) {
    var g = l("user") || l("mod_allyes_user"); if (!g) { var j = l('mod_allyes_buttons', window); var i = l('mod_allyes_text', window.c_allyes_text); if (!j && !i) return } var k = '<div class="base_ad140x60" style="height:{Vanheight}px">{Vaniframe}<\/div>'; var n = '<div class="base_adtxt140">{Vantext}<\/div>'; var o = '<iframe marginheight="0" width="100%" height="100%" marginwidth="0" frameborder="0" scrolling="no" src="http:\/\/allyes.Golden.com\/main\/adfshow?user={Vanuser}&db=Golden&border=0&local=yes"><\/iframe>'; setTimeout(function() { if (g) { if (g.indexOf('@') > -1) g = r(g.split('@')); f.innerHTML = o.replace('{Vanuser}', g) } else { var a = []; if (j) a = j.map(function(b) { b.button = b.button || ';'; return k.replace('{Vanheight}', b.height).replace('{Vaniframe}', o.replace('{Vanuser}', b.user)) }); if (i) a.push(n.replace('{Vantext}', Vans2t(i))); f.innerHTML = a.join('') } }, window.c_allyes_delay); function l(a, c) {
        var d = f.getAttribute(a); if (!d) return null; if (c) return c[d] || null;
        else return d
    }
};

Golden.module.notice = function(a) {
    var c; a.module.notice = new function() {
        this.enabled = true; this.tip = a.getAttribute("mod_notice_tip") || ""; this.check = function() { if (a.module.notice.enabled) { with (a) { if (isNull()) { style.color = "gray"; value = module.notice.tip } else style.color = "" } } };
        this.isNull = a.isNull = function() { return a.value.trim() == "" || a.value == a.module.notice.tip } 
    }; a.Vanr("focus", function() { c = true; if (a.module.notice.enabled) { a.style.color = ""; if (a.value == a.module.notice.tip) a.value = "" } }, 10); a.Vanr("blur", function() { c = false; a.module.notice.check() }, 90); if (a.form) { var d = Van(a.form); d.Vanr("submit", function() { if (a.isNull()) a.value = ""; setTimeout(function() { if (!c) a.module.notice.check() }, 1) }); if (!gh.browser.Opera) _.Vanr("beforeunload", a.module.notice.check) } a.module.notice.check()
}; Golden.module.tab = function(g) {
    var j = _.Vang(g.getAttribute("mod_tab_button") || ""); var i = _.Vang(g.getAttribute("mod_tab_panel") || ""); var k = parseInt(g.getAttribute("mod_tab_select") || 1, 10); var n = ((g.getAttribute("mod_tab_event") || "").match(/^mouseover$/i) || "click").toString(); if (!j || !i) return; g.module.tab = new function() { this.funcListHash = {}; this.select = function(a) { if (this.funcListHash[a - 1]) this.funcListHash[a - 1]() }; this.index = k }; j.each(function(d, f) {
        g.module.tab.funcListHash[f] = function() {
            j.each(function(a, c) { a.className = a.className.replace(/_(no)?current/g, "_" + (f == c ? "" : "no") + "current"); if (i[c]) i[c].style.display = (f == c) ? "" : "none" });
            g.module.tab.index = f + 1
        }; d.Vanr(n, g.module.tab.funcListHash[f])
    }); g.module.tab.select(k)
}; Golden.module.display = function(i) {
    var k = i.VangetPara("mod_display_panel"), n = [];
    k.each(function(a) { a = _.Van(a) || _.VanselNode(a); if (a) { if (a.length) a.each(function(a) { n.push(a) }); else n.push(a) } }); i.Vanr("click", function() { (function(f) { for (var g = 0; g < f.childNodes.length; g++) { with (f.childNodes[g]) { if (nodeType == 3) { var j = new RegExp(gh.string.display.match(/[^@]+/g).join("|"), "gi"); nodeValue = nodeValue.replace(j, function(a) { var c = new RegExp("@" + a + "\\|([^@]+)|([^@]+)\\|" + a + "@", "i"); var d = gh.string.display.match(c); return d[1] || d[2] }) } else arguments.callee(f.childNodes[g]) } } })(i); n.each(function(a) { a.style.display = a.VangetStyle("display") == "none" ? "" : "none" }) })
}; Golden.module.selectAll = function(d) { var f = VanselNode(d.getAttribute("mod_selectAll_input") || ""); if (!f) return; f.each(function(c) { if (c != d) c.Vanr("onclick", function() { d.checked = f.each(function(a) { if (a != d && !a.checked) return false }) }) }); d.Vanr("click", function() { f.each(function(a) { a.checked = d.checked }) }) }; Golden.module.validate = function(a) { var c = _.Van(a.getAttribute("mod_validate_true") || ""); var d = _.Van(a.getAttribute("mod_validate_false") || ""); var f = a.getAttribute("mod_validate_function") || ""; if (!f) return; var g = f.match(/^\/(.*?[^\\])\/([gmi]*?)$/); var j, i, k; f = a[f] || _[f]; if (g || f) { a.module.validate = new function() { this.check = function() { if (a.value || !c && !d) k = !(i = f ? f(a.value, a) : a.value.match(new RegExp(g[1], g[2]))); else i = k = false; if (c) c.style.display = i ? "" : "none"; if (d) d.style.display = k ? "" : "none" } }; a.Vanr("focus", function() { j = setInterval(a.module.validate.check, 200) }); a.Vanr("blur", function() { a.module.validate.check(); clearInterval(j) }) } };



gh.module.jmpInfo = (function() {
    var s = function(a) { var c = Van(a).VangetPos(); return { x: c[0], y: c[1]} };
    var x = function(a, c) {
        if (!a) return; var d = a.style, f, g; if (c) {
            f = c.x + 'px';
            g = c.y + 'px'
        } else { f = '-10000px'; g = '-10000px' } if (d.display != 'block') d.display = 'block';
        if (d.left != f) d.left = f; if (d.top != g) d.top = g
    };
    var h = { logging: false, coloring: false, animating: false, fading: false, current: null, next: null, popup: null, ani_box: null, log_box: null, timers: { show: 300, hide: 100, refresh: 200 }, array: {}, template: {}, css_loaded: false, load_timeout: 3000, template_dir: '', data_dir: '', common_callback: null, log: function() { if (!h.logging) return; var a = [].slice.call(arguments, 0); if (window.console) { console.log(a.join(' ')) } else { if (!h.console_box) h.console_box = h.make_box({ left: '50%', top: '0px', font: 'normal 12px/16px verdana', color: 'red', border: '1px solid gray', padding: '4px' }); h.console_box.appendChild(document.createElement('div')).innerHTML = a.join(' ').replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\r\n?|\n/g, '<br />') } }, color: function(a, c) { if (h.coloring) { a.style.backgroundColor = c; a.style.borderColor = c == 'red' ? '#000' : '' } }, init: function() { h.popup = Van("tuna_jmpinfo") || Van('z1'); h.popup.style.visibility = 'visible'; x(h.popup, null); document.documentElement.Vanr('mouseover', h.mouseover) }, test: function(a) { return a.getAttribute('mod') && /(\||^)jmpInfo(\||Van)/.test(a.getAttribute('mod')) }, mouseover: function(a) { var c = a || window.event; var d = c.target || c.srcElement; if (d == h.ani_box) return; if (h.current) { if (h.parent_of(h.current, d) || h.parent_of(h.popup, d)) { h.clear_timer('hide'); h.color(h.current, 'red'); return } h.set_hide(); h.set } if (h.next) { if (h.parent_of(h.next, d)) return; h.clear_timer('show'); h.color(h.next, '') } h.next = null; if (h.test(d)) h.set_show(d) }, make_box: function(a) { var c = document.createElement('div'); var d = []; a = Vanmerge({ position: 'absolute', left: '-1000px', top: '-1000px' }, a); for (var f in a) d.push(f + ':' + a[f]); c.style.cssText = d.join(';'); return document.body.appendChild(c) }, set_show: function(a) { h.next = a; h.set_timer('show'); h.color(h.next, 'pink'); h.getInfo(h.next); h.fire_event('before-show', h.next) }, set_hide: function(a) { h.set_timer('hide'); h.color(h.current, 'yellow'); h.fire_event('before-hide', h.current) }, set_timer: function(a, c) { var d = h.timers; if (!d['h_' + a]) { d['h_' + a] = (!c ? setTimeout : setInterval)(h['fn_' + a], d[a]); if (c) h['fn_' + a]() } }, clear_timer: function(a, c) { var d = h.timers; d['h_' + a] = (!c ? clearTimeout : clearInterval)(d['h_' + a]) && null }, change_state: function(a) { if (a) { if (!h.next) { h.log('fn_show: J.next is null'); return } h.clear_timer('show'); h.current = h.next; h.next = null; h.color(h.current, 'red'); h.set_timer('refresh', true); h.fire_event('show', h.current); h.popup.VansetIframe() } else { if (!h.current) { h.log('fn_hide: J.current is null'); return } h.clear_timer('hide'); h.clear_timer('refresh', true); if (h.fading) h.fade(true, h.popup, true); else if (h.animating) h.animate(true, s(h.popup), true); else x(h.popup, null); h.color(h.current, ''); h.fire_event('hide', h.current); h.popup.VanclearIframe(); h.current = null } }, fn_show: function(a) { h.change_state(true) }, fn_hide: function(a) { h.change_state(false) }, fn_refresh: function() { if (!h.current) { h.log('J.current lost'); return } var a = h.getInfo(h.current); if (a.ready) { h.set_html(h.popup, h.makeHtml(a)); var c = h.set_pos(h.current, h.popup, a.position); if (h.animating) h.animate(true, c); else if (h.fading) h.fade(true, h.popup) } }, parent_of: function(a, c) { if (!a || !c) return false; while (c && a != c) c = c.parentNode; return a == c }, view_port: function() { var a = VanpageSize('win'); a.right = a.left + a.width; a.bottom = a.top + a.height; return a }, animate: function(a, c, d) { if (!h.ani_box) h.ani_box = h.ani_box = h.make_box({ border: '1px solid #999' }); if (a === true) { if (!d == h.animate__) return; h.animate__ = !d; h.popup.style.visibility = 'hidden'; var f = s(h.current); Vananimate(h.ani_box, { left: [f.x, c.x], top: [f.y, c.y], width: [h.current.offsetWidth, h.popup.offsetWidth], height: [h.current.offsetHeight, h.popup.offsetHeight] }, { duration: 240, callback: h.animate, reverse: d }) } else { h.popup.style.visibility = 'visible'; x(h.ani_box, null) } }, fade: function(a, c, d) { if (a === true) { if (!d == h.fade__) return; h.fade__ = !d; Vananimate(c, { opacity: [0, 1] }, { duration: 240, callback: d ? h.fade : function() { }, reverse: d }) } else { x(h.popup, null) } }, set_html: function(a, c) { if (h.current_html == c) return; a.innerHTML = h.current_html = c; VanparserRe(a); var d = a.style; d.overflow = 'visible'; d.width = ''; d.width = a.scrollWidth + 'px'; d.height = ''; d.height = a.scrollHeight + 'px' }, set_pos: function(a, c, d) { if (!a || !c) { return null } if (!a.offsetWidth || !a.offsetHeight) { x(c, null); if (c.VanclearIframe) c.VanclearIframe(); return null } else { var f = h.calc_pos(a, c, d); x(c, f); if (c.VansetIframe) c.VansetIframe(); return f } }, calc_pos: function(a, c, d) { if (d && d.length == 4) { for (var f = 0, g = []; f < d.length; f++) { g[f] = /[lt]/.test(d[f]) ? 0 : /[rb]/.test(d[f]) ? 1 : 0.5 } var j = [{ x: c.offsetWidth * g[0], y: c.offsetHeight * g[1] }, { x: a.offsetWidth * g[2], y: a.offsetHeight * g[3]}]; var i = s(a); return { x: i.x + j[1].x - j[0].x, y: i.y + j[1].y - j[0].y} } else { var i = s(a); var k = h.view_port(); var n = { x: a.offsetWidth, y: a.offsetHeight }; var o = { x: c.offsetWidth, y: c.offsetHeight }; var l = ['l', 't', 'l', 'b']; if (i.x + o.x > k.right && i.x + n.x - o.x >= k.left) { l[0] = 'r'; l[2] = 'r' } if (i.y + n.y + o.y > k.bottom && i.y - o.y >= k.top) { l[1] = 'b'; l[3] = 't' } return arguments.callee(a, c, l) } }, fire_event: function(a, c) { if (h.common_callback) h.common_callback(a, c); var d = h.getInfo(c).callback; if (d) d(a, c) }, loadTemplate: function(c) {
        var d = gh.module.jmpInfo.template; if (d.hasOwnProperty(c)) return !!d[c];
        d[c] = false; if (c.charAt(0) == '#') {
            var f = document.Vang(c); if (!f) { h.log('template element ' + c + ' not found') } else {
                d[c] = h.htmlOf(f[0]);
                return true
            }
        } else {
            var g = h.template_dir + c + '.js';
            //alert(g);
            VanloadJs(g, 'gbk', function(a) { if (a) { h.log('J.loadTemplate timeout for ' + g); return true } }, h.load_timeout)
        } return false
    }, loadData: function(c) {
        if (!c) return true; var d = c.name; var f = gh.module.jmpInfo.array; if (f.hasOwnProperty(d)) return !!f[d]; f[d] = false;
        var g = "/Scripts/default_ordered_list.js";
        //alert(g);
        VanloadJs(g, null, function(a) { if (a) { h.log('J.loadData timeout for ' + g); return true } }, h.load_timeout); return false
    }, getInfo: function(a) {
        var c = {};
        var d = (a.getAttribute('mod_jmpInfo_page') || 'default_normal').split('?'); c.page = !/^#/.test(d[0]) ? d[0].replace(/\.aspVan/i, '').toLowerCase() : d[0];
        c.query = h.parseQuery(d.slice(1).join(''));
        c.ready = h.loadTemplate(c.page) && h.loadData(c.query);
        var f = a.getAttribute('mod_jmpInfo_content') || ''; c.content = f.split('|'); var g = a.getAttribute('mod_jmpInfo_position') || 'auto'; if (g in h.posMap) g = h.posMap[g];
        c.position = /[ltrbcm]{4}/.test(g) ? g.split('') : null;
        var j = a.getAttribute('mod_jmpInfo_callback'); if (j && typeof (window[j]) == 'function') c.callback = window[j];
        return c
    }, posMap: { 'align-center': 'ctcb', 'align-left': 'ltlb', 'corner-left': 'ltrb', 'align-right': 'rtrb', 'corner-right': 'rtlb', 'above-align-left': 'lblt', 'above-align-right': 'rbrt' }, parseQuery: function(a) {
        if (!a) return null; var c = a.split('=');
        if (c.length < 2) return null;
        return { name: c[0], value: c.slice(1).join('') }
    }, queryData: function(a) {
        var c = gh.module.jmpInfo.array[a.name]; var d = '@' + a.value + '|';
        var f = c.indexOf(d) + 1; if (!f) {
            h.log('queryData failure', a.name, a.value);
            return []
        } return c.slice(f, c.indexOf('@', f)).split('|')
    }, makeHtml: function(a) {
        var c = gh.module.jmpInfo.template[a.page];
        var d = c.match(/<body.*?>([\s\S]+)<\/body>/i); c = (d ? d[1] : c).replace(/<!--[\s\S]*?-->/g, ''); var f = { 'para': a.content }; if (a.query) f['array'] = h.queryData(a.query); return h.fillContent(c, f)
    }, fillContent: function(k, n) {
        var o = Vankeys(n).join('|');
        var l = '(<(\\w+)[^>]*)\\bid="(' + o + ')(\\d+)"([^>]*>)[\\s\\S]*?(<\\/\\2>)'; var r = new RegExp(l, 'gi'); return k.replace(r, function(a, c, d, f, g, j, i) { return c + j + (n[f][g - 1] || '') + i })
    }, htmlOf: function(a) {
        //alert(a);
        if (!a || a.nodeType != 1) return ''; a = a.cloneNode(true); a.removeAttribute('id'); a.style.cssText = a.style.cssText.replace(/\bdisplay:\s*none;?/i, '');
        if ('outerHTML' in a) { return a.outerHTML.replace(/(<[^>]+\sid=)(\w+)/g, '$1"$2"') } else {
            var c = []; var d = a.attributes;
            for (var f = 0; f < d.length; f++) { if (d[f].name == 'id') continue; c.push(d[f].name + '="' + d[f].value + '"') } var g = c.length ? ' ' + c.join(' ') : '';
            var j = a.tagName.toLowerCase(); return '<' + j + g + '>' + a.innerHTML + '</' + j + '>'
        }
    }
    }; Vanr('domReady', h.init); return h
})();


//初始化城市选择控件
Vanr('domReady', function() {
    //var a = '.jsContainer div, .jsContainer dl, .jsContainer dt, .jsContainer dd, .jsContainer ol, .jsContainer ul, .jsContainer li{margin:0; padding:0; font-size:12px; list-style:none} .jsContainer a{color:#05A; text-decoration:none} .jsContainer a:hover{text-decoration:underline} .jsContainer{font-size:12px}  address_hot li, .address_hot_abb, .address_hot_adress{margin:0; padding:0; list-style:none} .address_hot_adress a{text-decoration:none} #tuna_address{font-size:12px; font-family:Arial,Simsun} #tuna_address #address_warp{width:220px; border:1px solid #7F9DB9; background:#FFF; padding:0 0 4px; margin:0; text-align:left; min-height:305px} * html #tuna_address #address_warp{height:305px} #tuna_address #address_message{display:block; line-height:20px; padding:2px 0 2px 9px; color:#666; font-family:"Simyou"; word-wrap:break-word; word-break:break-all; background-color:#67a1e2; color:#fff; width:auto; border:none} #tuna_address #address_list{padding:0; margin:0; min-height:277px} * html #tuna_address #address_list{height:277px} #tuna_address #address_list span{width:110px; white-space:nowrap; overflow:hidden; margin:0; padding:0; float:right; text-align:right; font:normal 10px/22px verdana} #tuna_address #address_list a{height:22px; padding:1px 9px 0 9px; border-top:1px solid #FFF; border-bottom:1px solid #FFF; cursor:pointer; line-height:22px; color:#05a; display:block; text-decoration:none; min-height:22px; text-align:left; overflow:hidden} * html #tuna_address #address_list a{height:22px} #tuna_address #address_list a:hover{background:#e8f4ff; border-top:1px solid #7F9DB9; border-bottom:1px solid #7F9DB9} #tuna_address .address_selected{background:#ffe6a6; color:#FFF; height:22px} #tuna_address .address_pagebreak{padding:0; margin:0; display:none; line-height:25px; text-align:center} #tuna_address .address_pagebreak a{color:#05a; font-family:Arial,Simsun,sans-serif; text-decoration:underline; padding:0 4px 0 4px; margin:0; font-size:14px} #tuna_address #address_arrowl, #tuna_address #address_arrowr{color:#05a} #tuna_address a.address_current{color:black; text-decoration:none} .address_hot{background-color:#fff; width:283px; font-size:12px} .address_hotcity{padding-left:10px; height:24px; line-height:24px; color:#cee3fc; border:#2c7ecf solid 1px; border-width:1px 1px 0 1px; background-color:#67a1e2} .address_hotcity strong{color:#fff} .address_hotlist{border:#999 solid 1px; border-width:0 1px 1px 1px; padding:5px; overflow:hidden} .address_hot_abb{border-bottom:#5da9e2 solid 1px; height:20px} .address_hot_abb li{float:left; width:42px; height:20px; line-height:20px; text-align:center; list-style-type:none; color:#005daa; position:relative; zoom:1; cursor:pointer} .address_hot_abb li .hot_selected{width:42px; border:#5da9e2 solid 1px; border-width:1px 1px 0 1px; position:absolute; left:0; background-color:#fff; color:#000; font-weight:bold} .address_hot_adress{padding-top:4px} .address_hot_adress li{float:left; width:67px; height:24px; overflow:hidden} .address_hot_adress li a{display:block; height:22px; line-height:22px; border:#fff solid 1px; padding-left:5px; color:#000} .address_hot_adress li a:hover{background-color:#e8f4ff; border:#acccef solid 1px; text-decoration:none} .layoutfix {DISPLAY: inline-block}.layoutfix {DISPLAY: block; OVERFLOW: hidden} '.replaceWith({ 'picserver': '' });
var a = '.jsContainer div, .jsContainer dl, .jsContainer dt, .jsContainer dd, .jsContainer ol, .jsContainer ul, .jsContainer li{margin:0; padding:0; font-size:12px; list-style:none} .jsContainer a{color:#05A; text-decoration:none} .jsContainer a:hover{text-decoration:underline} .jsContainer{font-size:12px}  address_hot li, .address_hot_abb, .address_hot_adress{margin:0; padding:0; list-style:none} .address_hot_adress a{text-decoration:none} #tuna_address{font-size:12px; font-family:Arial,Simsun} #tuna_address #address_warp{width:220px; border:1px solid #ffaa00; background:#FFF; padding:0 0 4px; margin:0; text-align:left; min-height:305px} * html #tuna_address #address_warp{height:305px} #tuna_address #address_message{display:block; line-height:20px; padding:2px 0 2px 9px; color:#666; font-family:"Simyou"; word-wrap:break-word; word-break:break-all; background-color:#ffcc00; color:#fff; width:auto; border:none} #tuna_address #address_list{padding:0; margin:0; min-height:277px} * html #tuna_address #address_list{height:277px} #tuna_address #address_list span{width:110px; white-space:nowrap; overflow:hidden; margin:0; padding:0; float:right; text-align:right; font:normal 10px/22px verdana} #tuna_address #address_list a{height:22px; padding:1px 9px 0 9px; border-top:1px solid #FFF; border-bottom:1px solid #FFF; cursor:pointer; line-height:22px; color:#595959; display:block; text-decoration:none; min-height:22px; text-align:left; overflow:hidden} * html #tuna_address #address_list a{height:22px} #tuna_address #address_list a:hover{background:#ffe6a6; border-top:1px solid #ffaa00; border-bottom:1px solid #ffaa00} #tuna_address .address_selected{background:#ffe6a6; color:#e30000; height:22px} #tuna_address .address_pagebreak{padding:0; margin:0; display:none; line-height:25px; text-align:center} #tuna_address .address_pagebreak a{color:#05a; font-family:Arial,Simsun,sans-serif; text-decoration:underline; padding:0 4px 0 4px; margin:0; font-size:14px} #tuna_address #address_arrowl, #tuna_address #address_arrowr{color:#05a} #tuna_address a.address_current{color:black; text-decoration:none} .address_hot{background-color:#fff; width:283px; font-size:12px} .address_hotcity{padding-left:10px; height:24px; line-height:24px; color:#fff; border:#ffaa00 solid 1px; border-width:1px 1px 0 1px; background-color:#ffcc00} .address_hotcity strong{color:#fff} .address_hotlist{border:#ffaa00 solid 1px; border-width:0 1px 1px 1px; padding:5px; overflow:hidden} .address_hot_abb{border-bottom:#ffaa00 solid 1px; height:20px} .address_hot_abb li{float:left; width:42px; height:20px; line-height:20px; text-align:center; list-style-type:none; color:#e30000; position:relative; zoom:1; cursor:pointer} .address_hot_abb li .hot_selected{width:42px; border:#ffaa00 solid 1px; border-width:1px 1px 0 1px; position:absolute; left:0; background-color:#fff; color:#000; font-weight:bold} .address_hot_adress{padding-top:4px} .address_hot_adress li{float:left; width:67px; height:24px; overflow:hidden} .address_hot_adress li a{display:block; height:22px; line-height:22px; border:#fff solid 1px; padding-left:5px; color:#595959} .address_hot_adress li a:hover{text-decoration:none; color:#e30000} .layoutfix {DISPLAY: inline-block}.layoutfix {DISPLAY: block; OVERFLOW: hidden} '.replaceWith({ 'picserver': '' });

    if (gh.browser.IE) { var c = document.createStyleSheet(); c.cssText = a } else {
        var c = document.createElement('style'); c.type = "text/css";
        c.textContent = a; document.getElementsByTagName('head')[0].appendChild(c)
    }
});
gh.string.address = { "zh-cn": { b: "输入中文/拼音或↑↓选择.", i: "输入", j: "或↑↓选择.", k: "中文/拼音", e: "请输入至少两个字母或一个汉字.", h: "", o: "按拼音排序", s: "对不起, 找不到: ", l: "结果共", p: "项,←→翻页", a: ",共" }, "zh-tw": { b: "輸入中文/拼音或↑↓選擇.", i: "輸入", j: "或↑↓選擇.", k: "中文/拼音", e: "請輸入至少兩個字母或一個漢字.", h: "", o: "按拼音排序", s: "對不起, 找不到: ", l: "結果共", p: "項,←→翻頁", a: ",共" }, "en": { b: "Type or scroll to select.", i: "Input ", j: " or use up or down to select.", k: "English", e: "Please Input at least two character.", h: "", o: "sort by spelling", s: "No match", l: "Results ", p: ",left or right to turn page", a: ",All"}}[gh.status.version];

(function() {
    var bg = "_".toString() + "hotData";

    var u = { target: null, hotTarget: null, data: null, selectedValue: null, hotSelected: '热门', tabTagName: 'span', tabListTagName: 'ol', cityListTagName: 'ul', cityTagName: 'span', hotData: {}, hotTemplate: { container: '<div class="address_hot" style="display:none;-moz-box-shadow:2px 2px 5px #333;-webkit-box-shadow:2px 2px 5px #333;" id="address_hot">{Vantext}</div>', title: '<div class="address_hotcity"><strong>热门城市</strong>{Vantext}</div>', hotlist: '<div class="address_hotlist">{Vantext}</div>', tags: '<ol class="address_hot_abb" style="{Vanstyle}">{Vantext}</ol>', tag: '<li><span {VanclassName}>{Vantext}</span></li>', items: '<ul class="address_hot_adress layoutfix" {Vandisplay} type="{Vantype}">{Vantext}</ul>', item: '<li><a href="###" data="{Vandata}">{Vantext}</a></li>' }, hotClassNames: { tagSelected: 'hot_selected'} };
    function bj() { if (!ba(arguments[0], arguments[1])) { arguments[0].className = arguments[0].className + " " + arguments[1] } }
    function bk() {
        if (ba(arguments[0], arguments[1])) {
            var a = new RegExp('(\\s|^)' + arguments[1].toReString() + '(\\s|$)');
            arguments[0].className = arguments[0].className.replace(a, ' ').split(" ").join(" ")
        }
    }
    function ba() { return arguments[0].className.match(new RegExp('(\\s|^)' + arguments[1] + '(\\s|$)')) } function P(a, c) {
        var d = a.match(/^[^\|]+/), f = c.match(/^[^\|]+/);
        return d > f ? 1 : (d == f ? 0 : -1)
    }
    function bl() {
        var a = Vanc("div"); with (a.style) { width = "0px"; height = "0px" } a.innerHTML = "<div id=\"tuna_address\" style=\"display:none;position:absolute;z-index:120;overflow:hidden;-moz-box-shadow:2px 2px 5px #333;-webkit-box-shadow:2px 2px 5px #333;\"><div id=\"address_warp\"><div id=\"address_message\">&nbsp;<\/div><div id=\"address_list\"><a class=\"a1\" href=\"###\"><span>&nbsp;<\/span>&nbsp;<\/a><a class=\"a1\" href=\"###\"><span>&nbsp;<\/span>&nbsp;<\/a><a class=\"a1\" href=\"###\"><span>&nbsp;<\/span>&nbsp;<\/a><a class=\"a1\" href=\"###\"><span>&nbsp;<\/span>&nbsp;<\/a><a class=\"a1\" href=\"###\"><span>&nbsp;<\/span>&nbsp;<\/a><a class=\"a1\" href=\"###\"><span>&nbsp;<\/span>&nbsp;<\/a><a class=\"a1\" href=\"###\"><span>&nbsp;<\/span>&nbsp;<\/a><a class=\"a1\" href=\"###\"><span>&nbsp;<\/span>&nbsp;<\/a><a class=\"a1\" href=\"###\"><span>&nbsp;<\/span>&nbsp;<\/a><a class=\"a1\" href=\"###\"><span>&nbsp;<\/span>&nbsp;<\/a><a class=\"a1\" href=\"###\"><span>&nbsp;<\/span>&nbsp;<\/a><a class=\"a1\" href=\"###\"><span>&nbsp;<\/span>&nbsp;<\/a><\/div><div class=\"address_pagebreak\" id=\"address_p\"><a id=\"address_arrowl\" href=\"javascript:;\" name=\"p\">&lt;-<\/a><a id=\"address_p1\" href=\"javascript:;\" name=\"1\" class=\"address_current\">1<\/a><a id=\"address_p2\" href=\"javascript:;\" name=\"2\">2<\/a><a id=\"address_p3\" href=\"javascript:;\" name=\"3\">3<\/a><a id=\"address_p4\" href=\"javascript:;\" name=\"4\">4<\/a><a id=\"address_p5\" href=\"javascript:;\" name=\"5\">5<\/a><a id=\"address_arrowr\" href=\"javascript:;\" name=\"n\">-&gt;<\/a><\/div><\/div><\/div>"; Van("jsContainer").appendChild(a); E = Van("tuna_address"); gh.module.address.source["default"] = "@@"; bb = Van("address_warp"); Q = Van('address_message'); S = Van('address_list'); R = [Van('address_p'), Van('address_p1'), Van('address_p2'), Van('address_p3'), Van('address_p4'), Van('address_p5')]; T = Van('address_arrowl'); U = Van('address_arrowr'); y = S.getElementsByTagName("a"); bh = [];
        for (var c = 0; c < y.length; c++) bh[c] = y[c].cloneNode(true)
    } var E, bb, Q, S, R, T, U, y, bh, bc = 0; Golden.module.address = function(l) {
        function r() {
            var a = [];
            for (var c in u.hotData) { bc++; a.push(u.hotTemplate.tag.replaceWith({ text: c, className: Vans2t(l.hotSelected) == c ? "class=" + u.hotClassNames.tagSelected : '' })) } return a.join('')
        } function s() {
            var f = []; for (var g in u.hotData) {
                var j = []; var i = u.hotData[g];
                j = i.replace(/@([^@]*)\|([^@]*)/g, function(a, c, d) { return u.hotTemplate.item.replaceWith({ data: [c, d].join("|"), text: d }) });
                f.push(u.hotTemplate.items.replaceWith({ text: j, display: Vans2t(l.hotSelected) == Vans2t(g) ? "" : "style='display:none'", type: g }))
            } return f.join('')
        }
        function x() {
            t.style.position = "absolute";
            t.VansetPos(q)
        } function h() {
            var a = t.getElementsByTagName(u.cityListTagName);
            for (var c = 0; c < a.length; c++) { if (a[c].style.display == "") { return a[c] } }
        } function F(a) {
            var c = t.getElementsByTagName(u.cityListTagName);
            for (var d = 0; d < c.length; d++) { if (c[d].getAttribute('type') == a) { return c[d] } }
        } function B(a) {
            var c = a.getElementsByTagName(u.cityTagName);
            for (var d = 0; d < c.length; d++) { if (ba(c[d], u.hotClassNames.tagSelected)) { return c[d] } }
        } function X(a, c) {
            var d = h(); if (a && d) {
                h().style.display = "none";
                l.hotSelected = c.innerText || c.textContent; F(Vans2t(l.hotSelected)).style.display = "";
                bk(B(a), u.hotClassNames.tagSelected);
                var f = c.tagName == u.cityTagName.toUpperCase() ? c : c.getElementsByTagName(u.cityTagName)[0];
                bj(f, u.hotClassNames.tagSelected)
            }
        } function K(a, c) {
            clearInterval(M);
            selectedValue = c.Vantarget.getAttribute('data').split('|'); focusTarget.value = selectedValue[1].trim();
            var d = focusTarget.getAttribute('mod_address_reference');
            if (d && Van(d)) {
                Van(d).value = selectedValue[0].trim();

                if (p.hook["change"]) p.hook["change"](Van(l))
            } v = 0;
            t.VanclearIframe();
            t.style.display = "none";
            l.blur();
            setTimeout(function() { if (p.focusNext) setTimeout(function() { l.VanfocusNext() }, 1) }, 0)
        }
        function H() {
            t.onmousedown = function(a) {
                a = VanfixE(a);
                var c = a.Vantarget;
                u.olObj = c.VanparentNode(u.tabListTagName);
                u.ulObj = c.VanparentNode(u.cityListTagName);
                if (u.olObj) { X(u.olObj, c) } else if (u.ulObj) { K(u.ulObj, a); return } else { focusTarget.select() } VanstopEvent(a, 2);
                if (gh.browser.IE) { c.outerHTML += "" }
            }
        }
        function C() {
            u.hotData = gh.module.address.source[p.source + bg];
            if (!u.hotData) return; q = l; l.select(); if (!l.hotSelected) { l.hotSelected = u.hotSelected } var a = Van("address_hot");
            if (a) { a.parentNode.removeChild(a) } var c = u.hotTemplate.container.replaceWith({ text: [u.hotTemplate.title.replaceWith({ text: gh.module.address.source[p.source + "_k"] || " （可直接输入城市或城市拼音）" }), u.hotTemplate.hotlist.replaceWith({ text: [u.hotTemplate.tags.replaceWith({ text: r(), style: bc > 1 ? "" : 'display:none;' }), s()].join('') })].join('') });
            var d = Vanc('div'); d.innerHTML = c; t = Van(d.removeChild(d.firstChild)); __.body.appendChild(t); t.style.display = ''; t.style.zIndex = 999; x();
            t.VansetIframe(); H(); bc = 0
        }

        var q, t;
        var v = 0, m, D = l.VangetWin(), O = 0;
        var p = l.module.address = {};
        var bd, M, w = null, z, A = [];
        var I = false; p.ver = l.getAttribute('mod_address_ver');
        if (!E) bl(); l.setAttribute("autoComplete", "off");
        Vanr("beforeunload", function() { l.setAttribute("autoComplete", "on") });
        p.focusNext = l.getAttribute("mod_address_focusNext");
        p.focusNext = /^(1|true)Van/i.test(p.focusNext || "");
        p.reference = l.getAttribute("mod_address_reference");
        var G = l.getAttribute("mod_address_cookie"); if (G) {
            G = D.Van(G); if (!G) {
                var V = D.Vanc("input"); with (V) {
                    type = "hidden";
                    id = name = G
                } G = V; l.parentNode.insertBefore(G, l)
            }
        }
        if (p.reference) p.reference = D.Van(p.reference) || D.Van(p.reference, true);
        var N = l.getAttribute("mod_address_suggest");
        var W = l.getAttribute("mod_address_cookieSuggest");
        p.suggest = [];
        if (W) {
            p.suggest = W.match(/[^@]+@/gi);
            if (N) p.suggest._l(N.match(/[^@]+@/gi))
        } else if (N) p.suggest = N.match(/[^@]+@/gi); if (p.suggest.length > 12) p.suggest = p.suggest.slice(0, 12);
        p.source = l.getAttribute("mod_address_source") || "default";
        if (!gh.module.address.source[p.source]) {
            gh.module.address.source[p.source] = "@@";
            VanloadJs("http://www.goldenholiday.com/GoldenWeb/js/jscity.js", gh.status.charset)
        }
        p.auto = l.getAttribute("mod_address_auto");
        p.auto = p.auto && p.auto.match(/^(false|0)$/i) ? false : true;
        p.redraw = function() { if (M) be() };
        p.hook = {}; (l.getAttribute("mod_address_hook") || "").replace(/(on)?([^;:]+):([^;]+)/gi, function(a, c, d, f) { p.hook[d.toLowerCase()] = D[f] });
        function Y() {
            I = true;
            if (v) { v = 0; return }
            m = false;
            S.style.display = Q.style.display = R[0].style.display = "none";
            function d(c) {

                y[c].onmousedown = function(a) {
                    Z(c); VanstopEvent(a); if (y[c].outerHTML) y[c].outerHTML = y[c].outerHTML + ' ';
                    l.blur()
                }
            }
            E.onmousedown = function(a) { setTimeout(function() { I = false }, 200); v = 1; a = a || window.event; VanstopEvent(a); return false };
            for (var f = 0; f < y.length; f++) new d(f); T.onmousedown = U.onmousedown = L; for (var f = 1; f < R.length; f++) R[f].onmousedown = L; z = null;
            if (w !== null) { y[w].className = "address_selected" }
            if (p.hook["focus"]) { p.hook["focus"](l) } be();
            M = setInterval(be, 150)
        }

        function L(a) {
            v = 1; if (a) VanstopEvent(a); switch (this) {
                case T: J.m_get(J.page - 1); break; case U: J.m_get(J.page + 1); break;
                default: J.m_get(parseInt(this.firstChild.nodeValue))
            } return false
        } var J = new function() {
            var g; this.page = 1; this.pagelist; this.maxpage = 1; this.m_get = function(a) {
                if (!g || !a || a < 1 || a > this.maxpage) return null; this.page = a; this.pagelist = g.slice((a - 1) * 12, Math.min(a * 12, g.length));
                for (var c = 0; c < y.length; c++) {
                    if (c < this.pagelist.length) {
                        y[c].style.display = "block";
                        var d = this.pagelist[c].replace(/@/g, "").split("|"); y[c].lastChild.nodeValue = d[1]; y[c].firstChild.firstChild.nodeValue = d[0]; A[c] = d
                    } else { y[c].style.display = "none"; A[c] = null }
                } if (w !== null) {
                    if (w >= this.pagelist.length) {
                        y[w].className = "";
                        w = this.pagelist.length - 1; y[w].className = "address_selected"
                    }
                } else { w = 0; y[0].className = "address_selected" } j.call(this); S.style.display = Q.style.display = "";
                if (!m) {
                    E.style.display = ""; var f = l.VangetPos(); if (E.offsetWidth + f[0] > ___.offsetWidth) E.VansetPos(l, "tr", "br"); else E.VansetPos(l); E.VansetIframe();
                    m = true
                } bf.call(this)
            }; this.m_set = function(a) { g = a; this.maxpage = Math.ceil(a.length / 12); this.page = 1; this.m_get(1) };
            function j() {
                var a = this.maxpage < 6 || this.page < 3 ? 1 : this.page > this.maxpage - 2 ? this.maxpage - 4 : this.page - 2;
                var c = Math.min(a + 4, this.maxpage); var d; T.style.display = this.page == 1 ? "none" : ""; U.style.display = this.page == this.maxpage ? "none" : "";
                for (var f = a; f < a + 5; f++) {
                    d = R[f - a + 1]; if (f <= c) {
                        d.firstChild.nodeValue = f; d.className = f == this.page ? "address_current" : "";
                        d.style.display = ""
                    } else d.style.display = "none"
                } R[0].style.display = this.maxpage > 1 ? "block" : "none"
            }
        };
        function bf() {
            with (E.style) {
                width = bb.offsetWidth + "px"; height = bb.offsetHeight + "px"
            }
            E.VansetIframe()

        }
        function bi() {
            if (p.suggest.length == 0) {
                E.style.display = "none";
                if (w !== null) {
                    y[w].className = "";
                    w = null
                }
                return
            }
            J.m_set(p.suggest);
            Q.lastChild.nodeValue = gh.status.version.match(/^zh-/) ? gh.string.address.i + (l.module.notice ? l.module.notice.tip : gh.string.address.k) + gh.string.address.j : gh.string.address.b

        }


        //提示信息控制
        function be() {
            focusTarget = l;
            var c = l.value.trim();
            if (c === z) return;
            z = c;
            c = c.replace(/([\(\)\\\[\]\.\+\?\*\|\^\$])/gi, "\\$1").replace(/@|\|/gi, "");

            if (I && gh.module.address.source[p.source + bg]) {
                C();
                I = false;
                return
            }

            if (t && !t.style.display) {
                t.VanclearIframe();
                t.style.display = "none"

            }
            if (!c) {
                bi(); bf();
                return
            }
            if (t) {
                t.VanclearIframe();
                t.style.display = "none"
            } E.style.display = "";
            var d = gh.module.address.source[p.source];

            var f = new RegExp("@([^\\|@]*\\|)?" + c + "[^@]*", "gi");
            var g = new RegExp("@([^@]*\\|)?" + c + "[^@]*", "gi");
            var j = new RegExp("@[^@]*" + c + "[^@]*", "gi");
            var i = [], k = [], n = [];
            d = d.replace(f, function(a) { i.push(a); return "" });
            if (i) i.sort(P);
            d = d.replace(g, function(a) { k.push(a); return "" });
            if (k) k.sort(P);
            d = d.replace(j, function(a) { n.push(a); return "" });
            if (n) n.sort(P); arr = i.concat(k).concat(n);

            if (!arr || !arr.length) {

                Q.lastChild.nodeValue = p.auto ? (gh.string.address.s + (gh.status.version == "en" ? "" : l.value + " " + "请重新输入")) : (gh.string.address.s + gh.string.address.h + l.value);
                //                if (!p.auto) {
                //                    E.style.display = "none";
                //                    if (w !== null) {
                //                        y[w].className = "";
                //                        w = null
                //                    }

                //                }
                if (S.style.display == "none") bi(); bf()

            }
            else {

                Q.lastChild.nodeValue = gh.string.address.h + l.value + ", " + gh.string.address.b;
                J.m_set(arr)
            }
            I = false
        }
        function bm(a) {
            var c = a ? a.keyCode : event.charCode; var d = "|" + c + "|"; if (w == null) {
                if ("|13|".indexOf(d) != -1) {
                    VanstopEvent(a, 1);
                    if (p.focusNext) setTimeout(function() { l.VanfocusNext() }, 1)
                } return true
            } if ("|13|".indexOf(d) != -1) {
                VanstopEvent(a, 1); Z(w);
                l.blur()
            } if ("|33|37|109|188|219|".indexOf(d) != -1) { L.call(T); VanstopEvent(a, 1) } if ("|34|39|61|190|221|".indexOf(d) != -1) {
                L.call(U);
                VanstopEvent(a, 1)
            } if ("|38|40|".indexOf(d) != -1) {
                y[w].className = ""; w += J.pagelist.length - 39 + c;
                w %= J.pagelist.length; y[w].className = "address_selected"; VanstopEvent(a, 1)
            }
        } function Z(a, c) {
            v = 2; l.value = A[a][1] || A[a][0];
            if (p.reference) p.reference.value = A[a][2]; if (G) G.value = A.join("|"); if (p.hook["change"]) p.hook["change"](l);
            if (c !== false && p.focusNext) setTimeout(function() { l.VanfocusNext() }, 1)
        } function bn() {
            I = false;
            if (v == 1) { setTimeout(function() { l.focus() }, 1); return } clearInterval(M); M = null; if (t) {
                t.VanclearIframe();
                t.style.display = "none"
            } E.VanclearIframe(); E.style.display = "none"; if (w !== null) {
                if (l.value && v != 2) { if (p.auto) Z(w, false); else p.check() } y[w].className = "";
                w = null
            } v = 0; E.onmousedown = null
        } p.check = function() {
            var c = l.value.trim(); if (l.isNull && l.isNull()) c = ""; var d; z = c; c = c.replace(/([\(\)\\\[\]\.\+\?\*\|\^\$])/gi, "\\$1").replace(/@|\|/gi, "");
            if (c) {
                var f = gh.module.address.source[p.source]; var g = p.auto ? new RegExp("@([^\\|@]*\\|)?" + c + "[^@]*", "gi") : new RegExp("@([^\\|@]*\\|)?" + c + "(\\|[^@]*)?(?=@)", "gi");
                var j = p.auto ? new RegExp("@([^@]*\\|)?" + c + "[^@]*", "gi") : new RegExp("@([^@]*\\|)?" + c + "(\\|[^@]*)?(?=@)", "gi");
                var i = new RegExp("@[^@]*" + c + "[^@]*", "gi");
                var k = [], n = [], o = []; f = f.replace(g, function(a) { k.push(a); return "" }); if (k) k.sort(P); f = f.replace(j, function(a) { n.push(a); return "" });
                if (n) n.sort(P); if (p.auto) { f = f.replace(i, function(a) { o.push(a); return "" }); if (o) o.sort(P) } d = k.concat(n).concat(o);
                if (d && d.length) { m = true; J.m_set(d); m = false; Z(0, false); v = 0 }
            } if (l.module.notice) l.module.notice.check(); return !!d
        };
        l.Vanr("onfocus", Y); l.blur(); l.Vanr("onblur", bn); l.Vanr("onkeydown", bm); if (p.hook["load"]) p.hook["load"](l)
    }
})();


(function() {
    var f = (__.domain || "").match(/Golden(travel)?\.comVan/);
    //if (f && VanisOnline()) {
    if (f) {
        _.__uidc_init = new Date * 1;
        // __.write('<script src="http://www.' + (f[1] ? 'dev.sh.' + f[0] : f[0]) + '/rp/uiScript.asp"></script>')
        // alert ('http://www.' + (f[1] ? 'dev.sh.' + f[0] : f[0]) + '/rp/uiScript.asp');
        // if (_.gh.status.charset == 'big5' && VanisOnline()) __.write('<script src="js/public/public_s2t.js" charset="gb2312"><\/script>');
    } //if (_.gh.status.charset == 'big5') __.write('<script src="public_s2t.js" charset="gb2312"><\/script>');
    else _.Vans2t = function(a) { return a };

    if (gh.browser.IE6) try { __.execCommand("BackgroundImageCache", false, true) } catch (e) { };
    gh.status.debug = /\Vandebug\Van/i.test(VantopWin.name) || /^(true|1)Van/.test(VangetQuery("debug")); gh.status.debugEvent = /\VandebugEvent\Van/i.test(VantopWin.name) || /^(true|1)Van/.test(VangetQuery("debugEvent")); gh.status.alertDiv.innerHTML = gh.status.version.match(/^zh-/) ? "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"base_popwindow01\"><tr><td class=\"base_poptl\"><\/td><td class=\"base_poptc\"><div><\/div><\/td><td class=\"base_poptr\"><\/td><\/tr><tr><td class=\"base_popml\"><\/td><td id=\"alertInfo\" class=\"base_popmc\">内容<\/td><td class=\"base_popmr\"><\/td><\/tr><tr><td class=\"base_popbl\"><\/td><td class=\"base_popbc\"><div><\/div><\/td><td class=\"base_popbr\"><\/td><\/tr><\/table>" : "<table id=\"alertTable\" style=\"font-family:Arial;margin:0;\" cellpadding=\"0\" cellspacing=\"0\"><tr><td style=\"margin:0;padding:0px 2px 2px 0px;background:#E7E7E7;\"><div id=\"alertInfo\" style=\"margin:0px;padding:10px;font-size:12px;text-align:left;background:#FFFFE8;border:1px solid #FFDF47;color:#000;white-space:nowrap;\">内容<\/div><\/td><\/tr><\/table>"; function g(c) { function d() { if (gh.status.domReady) return; var a; gh.status.domReady = true; if ("domready" in _.module.event) { while (a = _.module.event["domready"].shift()) if (a.enabled) try { a.func(c) } catch (c) { Vant("domReady函数错误:" + a.func.toString().slice(0, 100) + "...", "red", a.func); VantrackEvent('tuna-error', 'evtDomReady.execEvent', Vanerror(c), VantunaVersion()) } } } if (gh.browser.WebKit || gh.browser.Opera) setTimeout(d, 1); else d() } if (gh.browser.Moz) __.addEventListener("DOMContentLoaded", g, false); else if (gh.browser.IE) { try { if (!_.frameElement) (function() { try { ___.doScroll("left") } catch (e) { setTimeout(arguments.callee, 50); return } g() })() } catch (e) { } } else if (gh.browser.WebKit) { var j = setInterval(function() { if (__.readyState == "loaded" || __.readyState == "complete") { clearInterval(j); g() } }, 10) } function loadPageValue() { var a = gh.status.saveStatus.value; if (a) gh.status.back = true; gh.status.pageValue = VanfromJson(a || "{}"); if (!("data" in gh.status.pageValue)) gh.status.pageValue.data = {}; if (!gh.browser.Opera) Vanr("beforeunload", [VansaveHistory, VansavePageValue], 90) } function loadHistory() { (gh.status.pageValue["historyInfo"] || "").split("|").each(function(a) { var c = unescape(a).split("|"); if (c.length == 5) { for (var d = 0; d < c.length; d++) c[d] = unescape(c[d]); gh.history.info[c[0]] = c.slice(1); Vant("[history]恢复历史:" + c[1] + "/" + c[2], "green", c.slice(2).join("\r")) } }); gh.history.count = parseInt(gh.status.pageValue["historyCount"] || 0, 10) || 0 } Vanr("domReady", function() { Van(__.body); loadPageValue(); loadHistory(); var a = gh.status.pageValue["lastHistory"]; if (a) if (gh.browser.IE || gh.browser.Opera) { Vanr("load", function() { setTimeout(function() { gh.history.init() }, 1) }) } else gh.history.init() }, 10); Vanr("domready", [VanparserRe, VanfixElement, function() { try { __.body.focus() } catch (e) { } } ]); Vanr("load", [g, function() { gh.status.load = true } ])
})();


