// javascript document ; (function () { function ea() { this.url = []; this.init() } var h, k, j, l, p, r, q, n, m, o, f = {}; ea.prototype = { init: function () { f ? l = f : l = {}; h = document; k = h.location; j = h.body; m = navigator; p = m.platform; q = this.getcookiesetdomain(); }, run: function () { g.init(); this.url.push(this.geturl()); this.url.unshift("go.php?"); this.url.push(this.getrefinfo()); this.url.push(this.getpvi()); this.url.push(this.getsi()); this.url.push(this.getmainenvinfo()); this.url.push(this.getextendenvinfo()); this.url.push(this.getbrowserinfo()); this.url.push(this.getpagespeed()); this.url.push(this.getscrollheight()); this.url.push(this.getui()); g.save(); this.sendinfo(this.url.join("")); //this.loadhotclick(this); }, loadhotclick: function (a) { u && u.getscript({ url: "hot.js", callback: function () { (new hot(a)).watchclick(); } }) }, inarray: function (a, c) { for (i = 0; i < a.length && a[i] != c; i++); return i != a.length; }, getui: function () { var a = "", b = ""; a = unescape(g.get("pi=", !0)); if ("-" != a) { for (var a = a.split(";"), c = 0; c < a.length; c++) { b = a[c]; break; } } return "&ui=" + b; }, geturl: function () { return "&url=" + escape(h.url); }, getrefinfo: function () { return "&rurl=" + escape(h.referrer.substr(0, 100)); }, getpagespeed: function () { return "undefined" == typeof _speedmark ? "&ps=" : "&ps=" + (new date - _speedmark); }, getpvi: function () { try { return m.cookieenabled ? "&pvi=" + g.setcookie("pgv_pvi", !0) : "&pvi=nocookie"; } catch (a) { return "&pvi=nocookie"; } }, getsi: function () { return "&si=" + g.setcookie("ssi"); }, getbrowserinfo: function () { var a = b.detect(); return "&os=" + a.os + "&bs=" + a.browser + "/" + a.version; }, getscrollheight: function () { return "&sh=" + math.max(j.scrollheight, h.documentelement.scrollheight); }, getmainenvinfo: function () { var a = ""; try { var c = "-", b = "-", d = "-", e = "-", o = 0; self.screen && (c = screen.width + "x" + screen.height, b = (screen.colordepth || 0) + "-bit"); m.language ? d = m.language.tolowercase() : m.browserlanguage && (d = m.browserlanguage.tolowercase()); o = m.javaenabled() ? 1 : 0; e = -((new date).gettimezoneoffset()) / 60; a = "&scr=" + c + "&scl=" + b + "&lg=" + d + "&jv=" + o + "&tz=" + e } catch (g) { } finally { return a } }, getextendenvinfo: function () { var a = ""; try { var c = k.href, b = "", a = a + ("&fl=" + this.getflashinfo()); j.addbehavior && (j.addbehavior("#default#homepage"), j.ishomepage(c) && (a += "&hp=y")) || (a += "&hp="); j.addbehavior && (j.addbehavior("#default#clientcaps"), b = j.connectiontype); } catch (d) { } finally { return a } }, getflashinfo: function () { var a = "-", c = navigator; try { if (c.plugins && c.plugins.length) for (var b = 0; b < c.plugins.length; b++) { if (-1 < c.plugins[b].name.indexof("shockwave flash")) { a = c.plugins[b].description.split("shockwave flash ")[1]; break } } else if (window.activexobject) for (b = 12; 5 <= b; b--) try { if (eval("new activexobject('shockwaveflash.shockwaveflash." + b + "');")) { a = b + ".0"; break } } catch (d) { } } catch (e) { } return a }, getparameter: function (a, c) { if (a && c) { var b = c.match(regexp("(\\?|#|&)" + a + "=([^&^#]*)(#|&|$)")); return b ? b[2] : "" } return "" }, getcookiesetdomain: function () { var a = window.location.host, c = { "com.cn": 1, "net.cn": 1, "gov,cn": 1, "com.hk": 1 }, b = a.split("."); 2 < b.length && (a = (c[b.slice(-2).join(".")] ? b.slice(-3) : b.slice(-2)).join(".")); return a }, sendinfo: function (a) { n = new image(1, 1); n.onload = n.onerror = function () { n.onload = n.onerror = null; n = null; } n.src = a; } }; var u = { config: { url: "", charset: "utf-8", callback: function () { } }, merge: function (a, c) { for (var b in c) a[b] = c[b]; return a }, getscript: function (a) { var c; this.config = this.merge(this.config, a); a = document.createelement("script"); a.setattribute("type", "text/javascript"); a.setattribute("charset", this.config.charset); a.setattribute("src", this.config.url); var b = document.getelementsbytagname("script")[0]; b.parentnode.insertbefore(a, b); c = this.config.callback; a.onload = a.onreadystatechange = function () { ("undefined" == typeof this.readystate || "loaded" == this.readystate || "complete" == this.readystate) && c() } } }, d = { getrandomnum: function (a, b) { var g = b - a; var r = math.random(); return (a + math.round(r * g)); } }, g = { sck: [], sco: {}, init: function () { var a = this.get("pgv_info=", !0); if ("-" != a) { for (var a = a.split("&"), c = 0; c < a.length; c++) { var b = a[c].split("="); this.set(b[0], unescape(b[1])) } } }, get: function (a, c) { var b = c ? h.cookie : this.get("pgv_info=", !0), d = "-", e; e = b.indexof(a); if (-1 < e) { e += a.length; d = b.indexof(";", e); -1 == d && (d = b.length); if (!c) { var f = b.indexof("&", e); -1 < f && (d = math.min(d, f)) } d = unescape(b.substring(e, d)) } return d }, set: function (a, c) { this.sco[a] = c; for (var b = !1, d = this.sck.length, e = 0; e < d; e++) if (a == this.sck[e]) { b = !0; break } b || this.sck.push(a) }, setcookie: function (a, c) { var b = g.get(a + "=", c); if ("-" == b) { c ? b = "" : b = "s"; var d = (new date).getutcmilliseconds(), b = b + math.round(2147483647 * math.abs(math.random() + 1)) * (d + 1) % 1e10 } c ? this.savecookie(a + "=" + b, "expires=sun, 18 jan 2038 00:00:00 gmt;") : this.set(a, b); return b }, save: function () { if (l.sessionspan) { var a = new date; a.settime(a.gettime() + 6e4 * l.sessionspan) } for (var c = "", b = this.sck.length, d = 0; d < b; d++) c += this.sck[d] + "=" + this.sco[this.sck[d]] + "&"; c = "pgv_info=" + c.substr(0, c.length - 1); b = ""; a && (b = "expires=" + a.togmtstring()); this.savecookie(c, b) }, savecookie: function (a, c) { h.cookie = a + ";path=/;domain=" + q + ";" + c } }, b = { detect: function () { var ret = { browser: this.search(this.data.bs), version: this.search(navigator.useragent), os: this.search(this.data.os) }; if (ret.os == 'linux') { var distros = ['centos', 'debian', 'fedora', 'gentoo', 'mandriva', 'mageia', 'red hat', 'slackware', 'suse', 'turbolinux', 'ubuntu']; for (var i = 0; i < distros.length; i++) { if (navigator.useragent.tolowercase().match(distros[i].tolowercase())) { ret.distro = distros[i]; break; } } } return ret; }, search: function (data) { if (typeof data === "object") { for (var i = 0; i < data.length; i++) { var datastring = data[i].string, dataprop = data[i].prop; this.version_string = data[i].versionsearch || data[i].identity; if (datastring) { if (-1 != datastring.indexof(data[i].substring)) { return data[i].identity; } } else if (dataprop) { return data[i].identity; } } } else { var index = data.indexof(this.version_string); if (index == -1) return; return parsefloat(data.substr(index + this.version_string.length + 1)); } }, data: { bs: [ { string: navigator.useragent, substring: "chrome", identity: "chrome" }, { string: navigator.useragent, substring: "omniweb", versionsearch: "omniweb/", identity: "omniweb" }, { string: navigator.vendor, substring: "apple", identity: "safari", versionsearch: "version" }, { prop: window.opera, identity: "opera", versionsearch: "version" }, { string: navigator.vendor, substring: "icab", identity: "icab" }, { string: navigator.vendor, substring: "kde", identity: "konqueror" }, { string: navigator.useragent, substring: "firefox", identity: "firefox" }, { string: navigator.vendor, substring: "camino", identity: "camino" }, { string: navigator.useragent, substring: "netscape", identity: "netscape" }, { string: navigator.useragent, substring: "msie", identity: "explorer", versionsearch: "msie" }, { string: navigator.useragent, substring: "gecko", identity: "mozilla", versionsearch: "rv" }, { string: navigator.useragent, substring: "mozilla", identity: "netscape", versionsearch: "mozilla" } ], os: [ { string: navigator.platform, substring: "win", identity: "windows" }, { string: navigator.platform, substring: "mac", identity: "mac" }, { string: navigator.useragent, substring: "iphone", identity: "iphone/ipod" }, { string: navigator.useragent, substring: "ipad", identity: "ipad" }, { string: navigator.useragent, substring: "android", identity: "android" }, { string: navigator.platform, substring: "linux", identity: "linux" } ] } }; ea && (new ea).run(); })();