tt.js 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508
  1. (function() {
  2. function l() {
  3. this.c = "1253113305";
  4. this.O = "z";
  5. this.K = "";
  6. this.H = "";
  7. this.J = "";
  8. this.o = "1408757646";
  9. this.M = "z4.cnzz.com";
  10. this.I = "";
  11. this.q = "CNZZDATA" + this.c;
  12. this.p = "_CNZZDbridge_" + this.c;
  13. this.C = "_cnzz_CV" + this.c;
  14. this.s = "0";
  15. this.v = {};
  16. this.a = {};
  17. this.ia()
  18. }
  19. function g(a, c) {
  20. try {
  21. /*var b = [];
  22. b.push("siteid=1253113305");
  23. b.push("name=" + f(a.name));
  24. b.push("msg=" + f(a.message));
  25. b.push("r=" + f(h.referrer));
  26. b.push("page=" + f(d.location.href));
  27. b.push("agent=" + f(d.navigator.userAgent));
  28. b.push("ex=" + f(c));
  29. b.push("rnd=" + Math.floor(2147483648 * Math.random())); (new Image).src = "http://jserr.cnzz.com/log.php?" + b.join("&")*/
  30. } catch(e) {}
  31. }
  32. var h = document,
  33. d = window,
  34. f = encodeURIComponent,
  35. k = decodeURIComponent,
  36. p = unescape,
  37. q = escape;
  38. l.prototype = {
  39. ia: function() {
  40. try {
  41. this.R(),
  42. this.G(),
  43. this.fa(),
  44. this.D(),
  45. this.l(),
  46. this.da(),
  47. this.ca(),
  48. this.ga(),
  49. this.i(),
  50. this.ba(),
  51. this.ea(),
  52. this.ha(),
  53. this.$(),
  54. this.Y(),
  55. this.aa(),
  56. this.na(),
  57. d[this.p] = d[this.p] || {},
  58. this.Z("_cnzz_CV")
  59. } catch(a) {
  60. g(a, "i failed")
  61. }
  62. },
  63. la: function() {
  64. try {
  65. var a = this;
  66. d._czc = {
  67. push: function() {
  68. return a.w.apply(a, arguments)
  69. }
  70. }
  71. } catch(c) {
  72. g(c, "oP failed")
  73. }
  74. },
  75. Y: function() {
  76. try {
  77. var a = d._czc;
  78. if ("[object Array]" === {}.toString.call(a)) for (var c = 0; c < a.length; c++) {
  79. var b = a[c];
  80. switch (b[0]) {
  81. case "_setAccount":
  82. d._cz_account = "[object String]" === {}.toString.call(b[1]) ? b[1] : String(b[1]);
  83. break;
  84. case "_setAutoPageview":
  85. "boolean" === typeof b[1] && (d._cz_autoPageview = b[1])
  86. }
  87. }
  88. } catch(e) {
  89. g(e, "cS failed")
  90. }
  91. },
  92. na: function() {
  93. try {
  94. if ("undefined" === typeof d._cz_account || d._cz_account === this.c) {
  95. d._cz_account = this.c;
  96. if ("[object Array]" === {}.toString.call(d._czc)) for (var a = d._czc,
  97. c = 0,
  98. b = a.length; c < b; c++) this.w(a[c]);
  99. this.la()
  100. }
  101. } catch(e) {
  102. g(e, "pP failed")
  103. }
  104. },
  105. w: function(a) {
  106. try {
  107. if ("[object Array]" === {}.toString.call(a)) switch (a[0]) {
  108. case "_trackPageview":
  109. if (a[1]) {
  110. this.a.d = "http://" + d.location.host;
  111. "/" !== a[1].charAt(0) && (this.a.d += "/");
  112. this.a.d += a[1];
  113. if ("" === a[2]) this.a.e = "";
  114. else if (a[2]) {
  115. var c = a[2];
  116. "http" !== c.substr(0, 4) && (c = "http://" + d.location.host, "/" !== a[2].charAt(0) && (c += "/"), c += a[2]);
  117. this.a.e = c
  118. }
  119. this.u();
  120. "undefined" !== typeof this.a.e && delete this.a.e;
  121. "undefined" !== typeof this.a.d && delete this.a.d
  122. }
  123. break;
  124. case "_trackEvent":
  125. var b = [];
  126. a[1] && a[2] && (b.push(f(a[1])), b.push(f(a[2])), b.push(a[3] ? f(a[3]) : ""), a[4] = parseFloat(a[4]), b.push(isNaN(a[4]) ? 0 : a[4]), b.push(a[5] ? f(a[5]) : ""), this.k = b.join("|"), this.u(), delete this.k);
  127. break;
  128. case "_setCustomVar":
  129. if (3 <= a.length) {
  130. if (!a[1] || !a[2]) return ! 1;
  131. var b = a[1],
  132. e = a[2],
  133. m = a[3] || 0;
  134. a = 0;
  135. for (var h in this.a.b) a++;
  136. if (5 <= a) return ! 1;
  137. var k;
  138. k = 0 == m ? "p": -1 == m || -2 == m ? m: (new Date).getTime() + 1E3 * m;
  139. this.a.b[b] = {};
  140. this.a.b[b].P = e;
  141. this.a.b[b].f = k;
  142. this.t()
  143. }
  144. break;
  145. case "_deleteCustomVar":
  146. 2 <= a.length && (b = a[1], this.a.b[b] && (delete this.a.b[b], this.t()))
  147. }
  148. } catch(l) {
  149. g(l, "aC failed")
  150. }
  151. },
  152. aa: function() {
  153. try {
  154. var a = this.r(this.C),
  155. c,
  156. b;
  157. this.a.b = {};
  158. if (a) for (var e = a.split("&"), a = 0; a < e.length; a++) b = k(e[a]),
  159. c = b.split("|"),
  160. this.a.b[k(c[0])] = {},
  161. this.a.b[k(c[0])].P = k(c[1]),
  162. this.a.b[k(c[0])].f = k(c[2])
  163. } catch(d) {
  164. g(d, "gCV failed")
  165. }
  166. },
  167. S: function() {
  168. try {
  169. var a = (new Date).getTime(),
  170. c;
  171. for (c in this.a.b)"p" === this.a.b[c].f ? this.a.b[c].f = 0 : "-1" !== this.a.b[c].f && a > this.a.b[c].f && delete this.a.b[c];
  172. this.t()
  173. } catch(b) {
  174. g(b, "cCV failed")
  175. }
  176. },
  177. t: function() {
  178. try {
  179. var a = [],
  180. c,
  181. b,
  182. e;
  183. for (e in this.a.b) {
  184. var d = [];
  185. d.push(e);
  186. d.push(this.a.b[e].P);
  187. d.push(this.a.b[e].f);
  188. c = d.join("|");
  189. a.push(c)
  190. }
  191. if (0 === a.length) return ! 0;
  192. var k = new Date;
  193. k.setTime(k.getTime() + 157248E5);
  194. b = this.C + "=";
  195. this.b = f(a.join("&"));
  196. b += this.b;
  197. b += "; expires=" + k.toUTCString();
  198. h.cookie = b + "; path=/"
  199. } catch(l) {
  200. g(l, "sCV failed")
  201. }
  202. },
  203. $: function() {
  204. try {
  205. if ("" !== d.location.hash) return this.B = d.location.href
  206. } catch(a) {
  207. g(a, "gCP failed")
  208. }
  209. },
  210. i: function() {
  211. try {
  212. return this.a.oa = h.referrer || ""
  213. } catch(a) {
  214. g(a, "gR failed")
  215. }
  216. },
  217. ba: function() {
  218. try {
  219. return this.a.m = d.navigator.systemLanguage || d.navigator.language,
  220. this.a.m = this.a.m.toLowerCase(),
  221. this.a.m
  222. } catch(a) {
  223. g(a, "gL failed")
  224. }
  225. },
  226. ea: function() {
  227. try {
  228. return this.a.N = d.screen.width && d.screen.height ? d.screen.width + "x" + d.screen.height: "0x0",
  229. this.a.N
  230. } catch(a) {
  231. g(a, "gS failed")
  232. }
  233. },
  234. l: function() {
  235. try {
  236. return this.a.ka = this.g("ntime") || "none"
  237. } catch(a) {
  238. g(a, "gLVST failed")
  239. }
  240. },
  241. F: function() {
  242. try {
  243. return this.a.Q = this.g("ltime") || (new Date).getTime()
  244. } catch(a) {
  245. g(a, "gFVBT failed")
  246. }
  247. },
  248. da: function() {
  249. try {
  250. var a = this.g("cnzz_a");
  251. if (null === a) a = 0;
  252. else {
  253. var c = 1E3 * this.l(),
  254. b = new Date;
  255. b.setTime(c); (new Date).getDate() === b.getDate() ? a++:a = 0
  256. }
  257. return this.a.sa = a
  258. } catch(e) {
  259. g(e, "gRT failed")
  260. }
  261. },
  262. ca: function() {
  263. try {
  264. return this.a.n = this.g("rtime"),
  265. null === this.a.n && (this.a.n = 0),
  266. 0 < this.F() && 432E5 < (new Date).getTime() - this.F() && (this.a.n++, this.a.Q = (new Date).getTime()),
  267. this.a.n
  268. } catch(a) {
  269. g(a, "gRVT failed")
  270. }
  271. },
  272. ga: function() {
  273. try {
  274. return "none" === this.l() ? this.a.ra = 0 : this.a.ra = parseInt(((new Date).getTime() - 1E3 * this.l()) / 1E3)
  275. } catch(a) {
  276. g(a, "gST failed")
  277. }
  278. },
  279. fa: function() {
  280. try {
  281. var a = this.g("sin") || "none";
  282. if (!h.domain) return this.a.qa = "none";
  283. this.i().split("/")[2] !== h.domain && (a = this.i());
  284. return this.a.qa = a
  285. } catch(c) {
  286. g(c, "gS failed")
  287. }
  288. },
  289. D: function() {
  290. try {
  291. return this.a.h = this.g("cnzz_eid") || "none"
  292. } catch(a) {
  293. g(a, "gC failed")
  294. }
  295. },
  296. pa: function() {
  297. try {
  298. /*var a = "http://c.cnzz.com/core.php?",
  299. c = [];
  300. c.push("web_id=" + f(this.c));
  301. this.K && c.push("show=" + f(this.K));
  302. this.J && c.push("online=" + f(this.J));
  303. this.H && c.push("l=" + f(this.H));
  304. this.O && c.push("t=" + this.O);
  305. a += c.join("&");
  306. this.V(a, "utf-8")*/
  307. } catch(b) {
  308. g(b, "rN failed")
  309. }
  310. },
  311. R: function() {
  312. try {
  313. return ! 1 === d.navigator.cookieEnabled ? this.a.U = !1 : this.a.U = !0
  314. } catch(a) {
  315. g(a, "cCE failed")
  316. }
  317. },
  318. r: function(a) {
  319. try {
  320. a += "=";
  321. var c = h.cookie.indexOf(a),
  322. b = "";
  323. if ( - 1 < c) {
  324. var e = h.cookie.indexOf(";", c); - 1 === e && (e = h.cookie.length);
  325. b = k(h.cookie.substring(c + a.length, e))
  326. }
  327. return b ? b: ""
  328. } catch(d) {
  329. g(d, "gAC failed")
  330. }
  331. },
  332. Z: function(a) {
  333. try {
  334. h.cookie = a + "=; expires=" + (new Date(0)).toUTCString() + "; path=/"
  335. } catch(c) {
  336. g(c, "dAC failed")
  337. }
  338. },
  339. ha: function() {
  340. try {
  341. for (var a = h.title,
  342. c = a.length,
  343. b = 0,
  344. e = "",
  345. d = 0; d < c; d++) {
  346. var f = a[d];
  347. this.ja(f) ? b++:b += 2;
  348. e += f;
  349. if (20 <= b) {
  350. e += "...";
  351. break
  352. }
  353. }
  354. this.a.ma = e
  355. } catch(k) {
  356. g(k, "gT failed")
  357. }
  358. },
  359. A: function(a) {
  360. try {
  361. return "http" !== a.substr(0, 4) ? "": /http:\/\/.*?\//i.exec(a)
  362. } catch(c) {
  363. g(c, "cH failed")
  364. }
  365. },
  366. G: function() {
  367. try {
  368. var a = this.q,
  369. c = {},
  370. b = this.r(this.q);
  371. if (0 < b.length) if (1E8 < this.c) {
  372. var e = b.split("|");
  373. c.cnzz_eid = k(e[0]);
  374. c.ntime = k(e[1])
  375. } else for (var e = b.split("&"), d = 0, f = e.length; d < f; d++) {
  376. var h = e[d].split("=");
  377. c[k(h[0])] = k(h[1])
  378. }
  379. this.v = c
  380. } catch(l) {
  381. g(l, "iC failed:" + a + ":" + b)
  382. }
  383. },
  384. L: function() {
  385. try {
  386. var a = this.q + "=",
  387. c = [],
  388. b = new Date;
  389. b.setTime(b.getTime() + 157248E5);
  390. if (1E8 < this.c) {
  391. if ("none" !== this.a.h) c.push(f(this.a.h));
  392. else {
  393. var e = Math.floor(2147483648 * Math.random()) + "-" + this.o + "-" + this.A(this.i());
  394. c.push(f(e))
  395. }
  396. c.push(this.o);
  397. 0 < c.length ? (a += f(c.join("|")), a += "; expires=" + b.toUTCString(), a += "; path=/") : a += "; expires=" + (new Date(0)).toUTCString()
  398. } else "none" !== this.a.h ? c.push("cnzz_eid=" + f(this.a.h)) : (e = Math.floor(2147483648 * Math.random()) + "-" + this.o + "-" + this.A(this.i()), c.push("cnzz_eid=" + f(e))),
  399. c.push("ntime=" + this.o),
  400. 0 < c.length ? (a += f(c.join("&")), a += "; expires=" + b.toUTCString(), a += "; path=/") : a += "; expires=" + (new Date(0)).toUTCString();
  401. h.cookie = a
  402. } catch(d) {
  403. g(d, "sS failed")
  404. }
  405. },
  406. g: function(a) {
  407. try {
  408. return "undefined" !== typeof this.v[a] ? this.v[a] : null
  409. } catch(c) {
  410. g(c, "gCPa failed")
  411. }
  412. },
  413. V: function(a, c) {
  414. try {
  415. if (c = c || "utf-8", "1" === this.s) {
  416. var b = h.createElement("script");
  417. b.type = "text/javascript";
  418. b.async = !0;
  419. b.charset = c;
  420. b.src = a;
  421. var e = h.getElementsByTagName("script")[0];
  422. e.parentNode && e.parentNode.insertBefore(b, e)
  423. } else h.write(p("%3Cscript src='" + a + "' charset='" + c + "' type='text/javascript'%3E%3C/script%3E"))
  424. } catch(d) {
  425. g(d, "cAS failed")
  426. }
  427. },
  428. X: function(a, c) {
  429. try {
  430. var b = h.getElementById("cnzz_stat_icon_" + this.c);
  431. if (b) {
  432. var e = h.createElement("script");
  433. e.type = "text/javascript";
  434. e.async = !0;
  435. e.charset = c;
  436. e.src = a;
  437. b.appendChild(e)
  438. } else "0" === this.s && h.write(p("%3Cscript src='" + a + "' charset='" + c + "' type='text/javascript'%3E%3C/script%3E"))
  439. } catch(d) {
  440. g(d, "cSI failed")
  441. }
  442. },
  443. W: function(a) {
  444. try {
  445. for (var c = a.length,
  446. b = "",
  447. d = 0; d < c; d++) a[d] && (b += p(a[d]));
  448. var f = h.getElementById("cnzz_stat_icon_" + this.c);
  449. f ? f.innerHTML = b: "0" === this.s && h.write(b)
  450. } catch(k) {
  451. g(k, "cI failed")
  452. }
  453. },
  454. u: function() {
  455. try {
  456. this.L();
  457. this.G();
  458. this.D();
  459. this.S();
  460. var a = [];
  461. a.push("id=" + f(this.c));
  462. this.a.e || "" === this.a.e ? a.push("r=" + f(this.a.e)) : a.push("r=" + f(this.a.oa));
  463. a.push("lg=" + f(this.a.m));
  464. a.push("ntime=" + f(this.a.ka));
  465. a.push("cnzz_eid=" + f(this.a.h));
  466. a.push("showp=" + f(this.a.N));
  467. this.a.d ? a.push("p=" + f(this.a.d)) : "[object String]" === {}.toString.call(this.B) && a.push("p=" + f(this.B));
  468. "[object String]" === {}.toString.call(this.k) && a.push("ei=" + f(this.k));
  469. "[object String]" === {}.toString.call(this.b) && a.push("cv=" + this.b);
  470. a.push("t=" + f(this.a.ma));
  471. a.push("h=1");
  472. var c = a.join("&");
  473. "[object String]" === {}.toString.call(this.k) ? this.j(["http://ei.cnzz.com/stat.htm?" + c]) : (this.I && this.j(["http://" + this.I + "/stat.htm?" + c]), this.M && this.j(["http://" + this.M + "/stat.htm?" + c]))
  474. } catch(b) {
  475. g(b, "sD failed")
  476. }
  477. },
  478. ja: function(a) {
  479. return 0 > q(a).indexOf("%u") ? !1 : !0
  480. },
  481. j: function(a) {
  482. try {
  483. for (var c = a.length,
  484. b = null,
  485. e = 0; e < c; e++) a[e] && (b = "cnzz_image_" + Math.floor(2147483648 * Math.random()), d[b] = new Image, d[b].T = b, d[b].onload = d[b].onerror = d[b].onabort = function() {
  486. try {
  487. this.onload = this.onerror = this.onabort = null,
  488. d[this.T] = null
  489. } catch(a) {}
  490. },
  491. d[b].src = a[e] + "&rnd=" + Math.floor(2147483648 * Math.random()))
  492. } catch(f) {
  493. g(f, "cR failed")
  494. }
  495. }
  496. };
  497. try {
  498. var n = new l;
  499. d[n.p].bobject = n; ! 1 !== d._cz_autoPageview ? n.u() : n.L();
  500. l.prototype.getACookie = l.prototype.r;
  501. l.prototype.callRequest = l.prototype.j;
  502. l.prototype.createScriptIcon = l.prototype.X;
  503. l.prototype.createIcon = l.prototype.W;
  504. n.pa()
  505. } catch(r) {
  506. g(r, "main failed")
  507. }
  508. })();