Advertisement
Guest User

Untitled

a guest
Mar 26th, 2013
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 66.04 KB | None | 0 0
  1. var PluginDetect = {
  2. version: "0.7.9",
  3. name: "PluginDetect",
  4. handler: function (c, b, a) {
  5. return function () {
  6. c(b, a)
  7. }
  8. },
  9. openTag: "<",
  10. isDefined: function (b) {
  11. return typeof b != "undefined"
  12. },
  13. isArray: function (b) {
  14. return (/array/i).test(Object.prototype.toString.call(b))
  15. },
  16. isFunc: function (b) {
  17. return typeof b == "function"
  18. },
  19. isString: function (b) {
  20. return typeof b == "string"
  21. },
  22. isNum: function (b) {
  23. return typeof b == "number"
  24. },
  25. isStrNum: function (b) {
  26. return (typeof b == "string" && (/\d/).test(b))
  27. },
  28. getNumRegx: /[\d][\d\.\_,-]*/,
  29. splitNumRegx: /[\.\_,-]/g,
  30. getNum: function (b, c) {
  31. var d = this,
  32. a = d.isStrNum(b) ? (d.isDefined(c) ? new RegExp(c) : d.getNumRegx).exec(b) : null;
  33. return a ? a[0] : null
  34. },
  35. compareNums: function (h, f, d) {
  36. var e = this,
  37. c, b, a, g = parseInt;
  38. if (e.isStrNum(h) && e.isStrNum(f)) {
  39. if (e.isDefined(d) && d.compareNums) {
  40. return d.compareNums(h, f)
  41. }
  42. c = h.split(e.splitNumRegx);
  43. b = f.split(e.splitNumRegx);
  44. for (a = 0; a < Math.min(c.length, b.length); a++) {
  45. if (g(c[a], 10) > g(b[a], 10)) {
  46. return 1
  47. }
  48. if (g(c[a], 10) < g(b[a], 10)) {
  49. return -1
  50. }
  51. }
  52. }
  53. return 0
  54. },
  55. formatNum: function (b, c) {
  56. var d = this,
  57. a, e;
  58. if (!d.isStrNum(b)) {
  59. return null
  60. }
  61. if (!d.isNum(c)) {
  62. c = 4
  63. }
  64. c--;
  65. e = b.replace(/\s/g, "").split(d.splitNumRegx).concat(["0", "0", "0", "0"]);
  66. for (a = 0; a < 4; a++) {
  67. if (/^(0+)(.+)$/.test(e[a])) {
  68. e[a] = RegExp.$2
  69. }
  70. if (a > c || !(/\d/).test(e[a])) {
  71. e[a] = "0"
  72. }
  73. }
  74. return e.slice(0, 4).join(",")
  75. },
  76. $$hasMimeType: function (a) {
  77. return function (c) {
  78. if (!a.isIE && c) {
  79. var f, e, b, d = a.isArray(c) ? c : (a.isString(c) ? [c] : []);
  80. for (b = 0; b < d.length; b++) {
  81. if (a.isString(d[b]) && /[^\s]/.test(d[b])) {
  82. f = navigator.mimeTypes[d[b]];
  83. e = f ? f.enabledPlugin : 0;
  84. if (e && (e.name || e.description)) {
  85. return f
  86. }
  87. }
  88. }
  89. }
  90. return null
  91. }
  92. },
  93. findNavPlugin: function (l, e, c) {
  94. var j = this,
  95. h = new RegExp(l, "i"),
  96. d = (!j.isDefined(e) || e) ? /\d/ : 0,
  97. k = c ? new RegExp(c, "i") : 0,
  98. a = navigator.plugins,
  99. g = "",
  100. f, b, m;
  101. for (f = 0; f < a.length; f++) {
  102. m = a[f].description || g;
  103. b = a[f].name || g;
  104. if ((h.test(m) && (!d || d.test(RegExp.leftContext + RegExp.rightContext))) || (h.test(b) && (!d || d.test(RegExp.leftContext + RegExp.rightContext)))) {
  105. if (!k || !(k.test(m) || k.test(b))) {
  106. return a[f]
  107. }
  108. }
  109. }
  110. return null
  111. },
  112. getMimeEnabledPlugin: function (k, m, c) {
  113. var e = this,
  114. f, b = new RegExp(m, "i"),
  115. h = "",
  116. g = c ? new RegExp(c, "i") : 0,
  117. a, l, d, j = e.isString(k) ? [k] : k;
  118. for (d = 0; d < j.length; d++) {
  119. if ((f = e.hasMimeType(j[d])) && (f = f.enabledPlugin)) {
  120. l = f.description || h;
  121. a = f.name || h;
  122. if (b.test(l) || b.test(a)) {
  123. if (!g || !(g.test(l) || g.test(a))) {
  124. return f
  125. }
  126. }
  127. }
  128. }
  129. return 0
  130. },
  131. getPluginFileVersion: function (f, b) {
  132. var h = this,
  133. e, d, g, a, c = -1;
  134. if (h.OS > 2 || !f || !f.version || !(e = h.getNum(f.version))) {
  135. return b
  136. }
  137. if (!b) {
  138. return e
  139. }
  140. e = h.formatNum(e);
  141. b = h.formatNum(b);
  142. d = b.split(h.splitNumRegx);
  143. g = e.split(h.splitNumRegx);
  144. for (a = 0; a < d.length; a++) {
  145. if (c > -1 && a > c && d[a] != "0") {
  146. return b
  147. }
  148. if (g[a] != d[a]) {
  149. if (c == -1) {
  150. c = a
  151. }
  152. if (d[a] != "0") {
  153. return b
  154. }
  155. }
  156. }
  157. return e
  158. },
  159. AXO: window.ActiveXObject,
  160. getAXO: function (a) {
  161. var f = null,
  162. d, b = this,
  163. c = {};
  164. try {
  165. f = new b.AXO(a)
  166. } catch (d) {}
  167. return f
  168. },
  169. convertFuncs: function (f) {
  170. var a, g, d, b = /^[\$][\$]/,
  171. c = this;
  172. for (a in f) {
  173. if (b.test(a)) {
  174. try {
  175. g = a.slice(2);
  176. if (g.length > 0 && !f[g]) {
  177. f[g] = f[a](f);
  178. delete f[a]
  179. }
  180. } catch (d) {}
  181. }
  182. }
  183. },
  184. initObj: function (e, b, d) {
  185. var a, c;
  186. if (e) {
  187. if (e[b[0]] == 1 || d) {
  188. for (a = 0; a < b.length; a = a + 2) {
  189. e[b[a]] = b[a + 1]
  190. }
  191. }
  192. for (a in e) {
  193. c = e[a];
  194. if (c && c[b[0]] == 1) {
  195. this.initObj(c, b)
  196. }
  197. }
  198. }
  199. },
  200. initScript: function () {
  201. var d = this,
  202. a = navigator,
  203. h, i = document,
  204. l = a.userAgent || "",
  205. j = a.vendor || "",
  206. b = a.platform || "",
  207. k = a.product || "";
  208. d.initObj(d, ["$", d]);
  209. for (h in d.Plugins) {
  210. if (d.Plugins[h]) {
  211. d.initObj(d.Plugins[h], ["$", d, "$$", d.Plugins[h]], 1)
  212. }
  213. }
  214. d.convertFuncs(d);
  215. d.OS = 100;
  216. if (b) {
  217. var g = ["Win", 1, "Mac", 2, "Linux", 3, "FreeBSD", 4, "iPhone", 21.1, "iPod", 21.2, "iPad", 21.3, "Win.*CE", 22.1, "Win.*Mobile", 22.2, "Pocket\s*PC", 22.3, "", 100];
  218. for (h = g.length - 2; h >= 0; h = h - 2) {
  219. if (g[h] && new RegExp(g[h], "i").test(b)) {
  220. d.OS = g[h + 1];
  221. break
  222. }
  223. }
  224. };
  225. d.head = i.getElementsByTagName("head")[0] || i.getElementsByTagName("body")[0] || i.body || null;
  226. d.isIE = new Function("return/*@cc_on!@*/!1")();
  227. d.verIE = d.isIE && (/MSIE\s*(\d+\.?\d*)/i).test(l) ? parseFloat(RegExp.$1, 10) : null;
  228. d.ActiveXEnabled = false;
  229. if (d.isIE) {
  230. var h, m = ["Msxml2.XMLHTTP", "Msxml2.DOMDocument", "Microsoft.XMLDOM", "ShockwaveFlash.ShockwaveFlash", "TDCCtl.TDCCtl", "Shell.UIHelper", "Scripting.Dictionary", "wmplayer.ocx"];
  231. for (h = 0; h < m.length; h++) {
  232. if (d.getAXO(m[h])) {
  233. d.ActiveXEnabled = true;
  234. break
  235. }
  236. }
  237. };
  238. d.isGecko = (/Gecko/i).test(k) && (/Gecko\s*\/\s*\d/i).test(l);
  239. d.verGecko = d.isGecko ? d.formatNum((/rv\s*\:\s*([\.\,\d]+)/i).test(l) ? RegExp.$1 : "0.9") : null;
  240. d.isChrome = (/Chrome\s*\/\s*(\d[\d\.]*)/i).test(l);
  241. d.verChrome = d.isChrome ? d.formatNum(RegExp.$1) : null;
  242. d.isSafari = ((/Apple/i).test(j) || (!j && !d.isChrome)) && (/Safari\s*\/\s*(\d[\d\.]*)/i).test(l);
  243. d.verSafari = d.isSafari && (/Version\s*\/\s*(\d[\d\.]*)/i).test(l) ? d.formatNum(RegExp.$1) : null;
  244. d.isOpera = (/Opera\s*[\/]?\s*(\d+\.?\d*)/i).test(l);
  245. d.verOpera = d.isOpera && ((/Version\s*\/\s*(\d+\.?\d*)/i).test(l) || 1) ? parseFloat(RegExp.$1, 10) : null;
  246. d.addWinEvent("load", d.handler(d.runWLfuncs, d))
  247. },
  248. init: function (d) {
  249. var c = this,
  250. b, d, a = {
  251. status: -3,
  252. plugin: 0
  253. };
  254. if (!c.isString(d)) {
  255. return a
  256. }
  257. if (d.length == 1) {
  258. c.getVersionDelimiter = d;
  259. return a
  260. }
  261. d = d.toLowerCase().replace(/\s/g, "");
  262. b = c.Plugins[d];
  263. if (!b || !b.getVersion) {
  264. return a
  265. }
  266. a.plugin = b;
  267. if (!c.isDefined(b.installed)) {
  268. b.installed = null;
  269. b.version = null;
  270. b.version0 = null;
  271. b.getVersionDone = null;
  272. b.pluginName = d
  273. }
  274. c.garbage = false;
  275. if (c.isIE && !c.ActiveXEnabled && d !== "java") {
  276. a.status = -2;
  277. return a
  278. }
  279. a.status = 1;
  280. return a
  281. },
  282. fPush: function (b, a) {
  283. var c = this;
  284. if (c.isArray(a) && (c.isFunc(b) || (c.isArray(b) && b.length > 0 && c.isFunc(b[0])))) {
  285. a.push(b)
  286. }
  287. },
  288. callArray: function (b) {
  289. var c = this,
  290. a;
  291. if (c.isArray(b)) {
  292. for (a = 0; a < b.length; a++) {
  293. if (b[a] === null) {
  294. return
  295. }
  296. c.call(b[a]);
  297. b[a] = null
  298. }
  299. }
  300. },
  301. call: function (c) {
  302. var b = this,
  303. a = b.isArray(c) ? c.length : -1;
  304. if (a > 0 && b.isFunc(c[0])) {
  305. c[0](b, a > 1 ? c[1] : 0, a > 2 ? c[2] : 0, a > 3 ? c[3] : 0)
  306. } else {
  307. if (b.isFunc(c)) {
  308. c(b)
  309. }
  310. }
  311. },
  312. $$isMinVersion: function (a) {
  313. return function (h, g, d, c) {
  314. var e = a.init(h),
  315. f, b = -1,
  316. j = {};
  317. if (e.status < 0) {
  318. return e.status
  319. }
  320. f = e.plugin;
  321. g = a.formatNum(a.isNum(g) ? g.toString() : (a.isStrNum(g) ? a.getNum(g) : "0"));
  322. if (f.getVersionDone != 1) {
  323. f.getVersion(g, d, c);
  324. if (f.getVersionDone === null) {
  325. f.getVersionDone = 1
  326. }
  327. }
  328. a.cleanup();
  329. if (f.installed !== null) {
  330. b = f.installed <= 0.5 ? f.installed : (f.installed == 0.7 ? 1 : (f.version === null ? 0 : (a.compareNums(f.version, g, f) >= 0 ? 1 : -0.1)))
  331. };
  332. return b
  333. }
  334. },
  335. getVersionDelimiter: ",",
  336. $$getVersion: function (a) {
  337. return function (g, d, c) {
  338. var e = a.init(g),
  339. f, b, h = {};
  340. if (e.status < 0) {
  341. return null
  342. };
  343. f = e.plugin;
  344. if (f.getVersionDone != 1) {
  345. f.getVersion(null, d, c);
  346. if (f.getVersionDone === null) {
  347. f.getVersionDone = 1
  348. }
  349. }
  350. a.cleanup();
  351. b = (f.version || f.version0);
  352. b = b ? b.replace(a.splitNumRegx, a.getVersionDelimiter) : b;
  353. return b
  354. }
  355. },
  356. cleanup: function () {
  357. var a = this;
  358. if (a.garbage && a.isDefined(window.CollectGarbage)) {
  359. window.CollectGarbage()
  360. }
  361. },
  362. addWinEvent: function (d, c) {
  363. var e = this,
  364. a = window,
  365. b;
  366. if (e.isFunc(c)) {
  367. if (a.addEventListener) {
  368. a.addEventListener(d, c, false)
  369. } else {
  370. if (a.attachEvent) {
  371. a.attachEvent("on" + d, c)
  372. } else {
  373. b = a["on" + d];
  374. a["on" + d] = e.winHandler(c, b)
  375. }
  376. }
  377. }
  378. },
  379. winHandler: function (d, c) {
  380. return function () {
  381. d();
  382. if (typeof c == "function") {
  383. c()
  384. }
  385. }
  386. },
  387. WLfuncs0: [],
  388. WLfuncs: [],
  389. runWLfuncs: function (a) {
  390. var b = {};
  391. a.winLoaded = true;
  392. a.callArray(a.WLfuncs0);
  393. a.callArray(a.WLfuncs);
  394. if (a.onDoneEmptyDiv) {
  395. a.onDoneEmptyDiv()
  396. }
  397. },
  398. winLoaded: false,
  399. $$onWindowLoaded: function (a) {
  400. return function (b) {
  401. if (a.winLoaded) {
  402. a.call(b)
  403. } else {
  404. a.fPush(b, a.WLfuncs)
  405. }
  406. }
  407. },
  408. $$onDetectionDone: function (a) {
  409. return function (h, g, c, b) {
  410. var d = a.init(h),
  411. k, e, j = {};
  412. if (d.status == -3) {
  413. return -1
  414. }
  415. e = d.plugin;
  416. if (!a.isArray(e.funcs)) {
  417. e.funcs = []
  418. }
  419. if (e.getVersionDone != 1) {
  420. k = a.isMinVersion ? a.isMinVersion(h, "0", c, b) : a.getVersion(h, c, b)
  421. }
  422. if (e.installed != -0.5 && e.installed != 0.5) {
  423. a.call(g);
  424. return 1
  425. }
  426. if (e.NOTF) {
  427. a.fPush(g, e.funcs);
  428. return 0
  429. }
  430. return 1
  431. }
  432. },
  433. div: null,
  434. divID: "plugindetect",
  435. divWidth: 50,
  436. pluginSize: 1,
  437. emptyDiv: function () {
  438. var d = this,
  439. b, h, c, a, f, g;
  440. if (d.div && d.div.childNodes) {
  441. for (b = d.div.childNodes.length - 1; b >= 0; b--) {
  442. c = d.div.childNodes[b];
  443. if (c && c.childNodes) {
  444. for (h = c.childNodes.length - 1; h >= 0; h--) {
  445. g = c.childNodes[h];
  446. try {
  447. c.removeChild(g)
  448. } catch (f) {}
  449. }
  450. }
  451. if (c) {
  452. try {
  453. d.div.removeChild(c)
  454. } catch (f) {}
  455. }
  456. }
  457. }
  458. if (!d.div) {
  459. a = document.getElementById(d.divID);
  460. if (a) {
  461. d.div = a
  462. }
  463. }
  464. if (d.div && d.div.parentNode) {
  465. try {
  466. d.div.parentNode.removeChild(d.div)
  467. } catch (f) {}
  468. d.div = null
  469. }
  470. },
  471. DONEfuncs: [],
  472. onDoneEmptyDiv: function () {
  473. var c = this,
  474. a, b;
  475. if (!c.winLoaded) {
  476. return
  477. }
  478. if (c.WLfuncs && c.WLfuncs.length && c.WLfuncs[c.WLfuncs.length - 1] !== null) {
  479. return
  480. }
  481. for (a in c) {
  482. b = c[a];
  483. if (b && b.funcs) {
  484. if (b.OTF == 3) {
  485. return
  486. }
  487. if (b.funcs.length && b.funcs[b.funcs.length - 1] !== null) {
  488. return
  489. }
  490. }
  491. }
  492. for (a = 0; a < c.DONEfuncs.length; a++) {
  493. c.callArray(c.DONEfuncs)
  494. }
  495. c.emptyDiv()
  496. },
  497. getWidth: function (c) {
  498. if (c) {
  499. var a = c.scrollWidth || c.offsetWidth,
  500. b = this;
  501. if (b.isNum(a)) {
  502. return a
  503. }
  504. }
  505. return -1
  506. },
  507. getTagStatus: function (m, g, a, b) {
  508. var c = this,
  509. f, k = m.span,
  510. l = c.getWidth(k),
  511. h = a.span,
  512. j = c.getWidth(h),
  513. d = g.span,
  514. i = c.getWidth(d);
  515. if (!k || !h || !d || !c.getDOMobj(m)) {
  516. return -2
  517. }
  518. if (j < i || l < 0 || j < 0 || i < 0 || i <= c.pluginSize || c.pluginSize < 1) {
  519. return 0
  520. }
  521. if (l >= i) {
  522. return -1
  523. }
  524. try {
  525. if (l == c.pluginSize && (!c.isIE || c.getDOMobj(m).readyState == 4)) {
  526. if (!m.winLoaded && c.winLoaded) {
  527. return 1
  528. }
  529. if (m.winLoaded && c.isNum(b)) {
  530. if (!c.isNum(m.count)) {
  531. m.count = b
  532. }
  533. if (b - m.count >= 10) {
  534. return 1
  535. }
  536. }
  537. }
  538. } catch (f) {}
  539. return 0
  540. },
  541. getDOMobj: function (g, a) {
  542. var f, d = this,
  543. c = g ? g.span : 0,
  544. b = c && c.firstChild ? 1 : 0;
  545. try {
  546. if (b && a) {
  547. d.div.focus()
  548. }
  549. } catch (f) {}
  550. return b ? c.firstChild : null
  551. },
  552. setStyle: function (b, g) {
  553. var f = b.style,
  554. a, d, c = this;
  555. if (f && g) {
  556. for (a = 0; a < g.length; a = a + 2) {
  557. try {
  558. f[g[a]] = g[a + 1]
  559. } catch (d) {}
  560. }
  561. }
  562. },
  563. insertDivInBody: function (i, g) {
  564. var f, c = this,
  565. h = "pd33993399",
  566. b = null,
  567. d = g ? window.top.document : window.document,
  568. a = d.getElementsByTagName("body")[0] || d.body;
  569. if (!a) {
  570. try {
  571. d.write('<div id="' + h + '">.' + c.openTag + "/div>");
  572. b = d.getElementById(h)
  573. } catch (f) {}
  574. }
  575. a = d.getElementsByTagName("body")[0] || d.body;
  576. if (a) {
  577. a.insertBefore(i, a.firstChild);
  578. if (b) {
  579. a.removeChild(b)
  580. }
  581. }
  582. },
  583. insertHTML: function (f, b, g, a, k) {
  584. var l, m = document,
  585. j = this,
  586. p, o = m.createElement("span"),
  587. n, i;
  588. var c = ["outlineStyle", "none", "borderStyle", "none", "padding", "0px", "margin", "0px", "visibility", "visible"];
  589. var h = "outline-style:none;border-style:none;padding:0px;margin:0px;visibility:visible;";
  590. if (!j.isDefined(a)) {
  591. a = ""
  592. }
  593. if (j.isString(f) && (/[^\s]/).test(f)) {
  594. f = f.toLowerCase().replace(/\s/g, "");
  595. p = j.openTag + f + ' width="' + j.pluginSize + '" height="' + j.pluginSize + '" ';
  596. p += 'style="' + h + 'display:inline;" ';
  597. for (n = 0; n < b.length; n = n + 2) {
  598. if (/[^\s]/.test(b[n + 1])) {
  599. p += b[n] + '="' + b[n + 1] + '" '
  600. }
  601. }
  602. p += ">";
  603. for (n = 0; n < g.length; n = n + 2) {
  604. if (/[^\s]/.test(g[n + 1])) {
  605. p += j.openTag + 'param name="' + g[n] + '" value="' + g[n + 1] + '" />'
  606. }
  607. }
  608. p += a + j.openTag + "/" + f + ">"
  609. } else {
  610. p = a
  611. } if (!j.div) {
  612. i = m.getElementById(j.divID);
  613. if (i) {
  614. j.div = i
  615. } else {
  616. j.div = m.createElement("div");
  617. j.div.id = j.divID
  618. }
  619. j.setStyle(j.div, c.concat(["width", j.divWidth + "px", "height", (j.pluginSize + 3) + "px", "fontSize", (j.pluginSize + 3) + "px", "lineHeight", (j.pluginSize + 3) + "px", "verticalAlign", "baseline", "display", "block"]));
  620. if (!i) {
  621. j.setStyle(j.div, ["position", "absolute", "right", "0px", "top", "0px"]);
  622. j.insertDivInBody(j.div)
  623. }
  624. }
  625. if (j.div && j.div.parentNode) {
  626. j.setStyle(o, c.concat(["fontSize", (j.pluginSize + 3) + "px", "lineHeight", (j.pluginSize + 3) + "px", "verticalAlign", "baseline", "display", "inline"]));
  627. try {
  628. o.innerHTML = p
  629. } catch (l) {};
  630. try {
  631. j.div.appendChild(o)
  632. } catch (l) {};
  633. return {
  634. span: o,
  635. winLoaded: j.winLoaded,
  636. tagName: f,
  637. outerHTML: p
  638. }
  639. }
  640. return {
  641. span: null,
  642. winLoaded: j.winLoaded,
  643. tagName: "",
  644. outerHTML: p
  645. }
  646. },
  647. file: {
  648. $: 1,
  649. any: "fileStorageAny999",
  650. valid: "fileStorageValid999",
  651. save: function (d, f, c) {
  652. var b = this,
  653. e = b.$,
  654. a;
  655. if (d && e.isDefined(c)) {
  656. if (!d[b.any]) {
  657. d[b.any] = []
  658. }
  659. if (!d[b.valid]) {
  660. d[b.valid] = []
  661. }
  662. d[b.any].push(c);
  663. a = b.split(f, c);
  664. if (a) {
  665. d[b.valid].push(a)
  666. }
  667. }
  668. },
  669. getValidLength: function (a) {
  670. return a && a[this.valid] ? a[this.valid].length : 0
  671. },
  672. getAnyLength: function (a) {
  673. return a && a[this.any] ? a[this.any].length : 0
  674. },
  675. getValid: function (c, a) {
  676. var b = this;
  677. return c && c[b.valid] ? b.get(c[b.valid], a) : null
  678. },
  679. getAny: function (c, a) {
  680. var b = this;
  681. return c && c[b.any] ? b.get(c[b.any], a) : null
  682. },
  683. get: function (d, a) {
  684. var c = d.length - 1,
  685. b = this.$.isNum(a) ? a : c;
  686. return (b < 0 || b > c) ? null : d[b]
  687. },
  688. split: function (g, c) {
  689. var b = this,
  690. e = b.$,
  691. f = null,
  692. a, d;
  693. g = g ? g.replace(".", "\.") : "";
  694. d = new RegExp("^(.*[^\/])(" + g + "\s*)$");
  695. if (e.isString(c) && d.test(c)) {
  696. a = (RegExp.$1).split("/");
  697. f = {
  698. name: a[a.length - 1],
  699. ext: RegExp.$2,
  700. full: c
  701. };
  702. a[a.length - 1] = "";
  703. f.path = a.join("/")
  704. }
  705. return f
  706. },
  707. z: 0
  708. },
  709. Plugins: {
  710. java: {
  711. mimeType: ["application/x-java-applet", "application/x-java-vm", "application/x-java-bean"],
  712. classID: "clsid:8AD9C840-044E-11D1-B3E9-00805F499D93",
  713. navigator: {
  714. a: window.navigator.javaEnabled(),
  715. javaEnabled: function () {
  716. return this.a
  717. },
  718. mimeObj: 0,
  719. pluginObj: 0
  720. },
  721. OTF: null,
  722. minIEver: 7,
  723. debug: 0,
  724. debugEnable: function () {
  725. var a = this,
  726. b = a.$;
  727. a.debug = 1
  728. },
  729. isDisabled: {
  730. $: 1,
  731. DTK: function () {
  732. var a = this,
  733. c = a.$,
  734. b = a.$$;
  735. if ((c.isGecko && c.compareNums(c.verGecko, c.formatNum("1.6")) <= 0) || (c.isSafari && c.OS == 1 && (!c.verSafari || c.compareNums(c.verSafari, "5,1,0,0") < 0)) || c.isChrome || (c.isIE && !c.ActiveXEnabled)) {
  736. return 1
  737. }
  738. return 0
  739. },
  740. AXO: function () {
  741. var a = this,
  742. c = a.$,
  743. b = a.$$;
  744. return (!c.isIE || !c.ActiveXEnabled || (!b.debug && b.DTK.query().status !== 0))
  745. },
  746. navMime: function () {
  747. var b = this,
  748. d = b.$,
  749. c = b.$$,
  750. a = c.navigator;
  751. if (d.isIE || !a.mimeObj || !a.pluginObj) {
  752. return 1
  753. }
  754. return 0
  755. },
  756. navPlugin: function () {
  757. var b = this,
  758. d = b.$,
  759. c = b.$$,
  760. a = c.navigator;
  761. if (d.isIE || !a.mimeObj || !a.pluginObj) {
  762. return 1
  763. }
  764. return 0
  765. },
  766. windowDotJava: function () {
  767. var a = this,
  768. c = a.$,
  769. b = a.$$;
  770. if (!window.java) {
  771. return 1
  772. }
  773. if (c.OS == 2 && c.verOpera && c.verOpera < 9.2 && c.verOpera >= 9) {
  774. return 1
  775. }
  776. return 0
  777. },
  778. allApplets: function () {
  779. var b = this,
  780. d = b.$,
  781. c = b.$$,
  782. a = c.navigator;
  783. if (d.OS >= 20) {
  784. return 0
  785. }
  786. if (d.verOpera && d.verOpera < 11 && !a.javaEnabled() && !c.lang.System.getProperty()[0]) {
  787. return 1
  788. }
  789. if ((d.verGecko && d.compareNums(d.verGecko, d.formatNum("2")) < 0) && !a.mimeObj && !c.lang.System.getProperty()[0]) {
  790. return 1
  791. }
  792. return 0
  793. },
  794. AppletTag: function () {
  795. var b = this,
  796. d = b.$,
  797. c = b.$$,
  798. a = c.navigator;
  799. return d.isIE ? !a.javaEnabled() : 0
  800. },
  801. ObjectTag: function () {
  802. var a = this,
  803. c = a.$,
  804. b = a.$$;
  805. return c.isIE ? !c.ActiveXEnabled : 0
  806. },
  807. z: 0
  808. },
  809. getVerifyTagsDefault: function () {
  810. var a = this,
  811. c = a.$,
  812. b = [1, 0, 1];
  813. if (c.OS >= 20) {
  814. return b
  815. }
  816. if ((c.isIE && (c.verIE < 9 || !c.ActiveXEnabled)) || (c.verGecko && c.compareNums(c.verGecko, c.formatNum("2")) < 0) || (c.isSafari && (!c.verSafari || c.compareNums(c.verSafari, c.formatNum("4")) < 0)) || (c.verOpera && c.verOpera < 10)) {
  817. b = [1, 1, 1]
  818. }
  819. return b
  820. },
  821. getVersion: function (j, g, i) {
  822. var b = this,
  823. d = b.$,
  824. e, a = b.applet,
  825. h = b.verify,
  826. k = b.navigator,
  827. f = null,
  828. l = null,
  829. c = null;
  830. if (b.getVersionDone === null) {
  831. b.OTF = 0;
  832. k.mimeObj = d.hasMimeType(b.mimeType);
  833. if (k.mimeObj) {
  834. k.pluginObj = k.mimeObj.enabledPlugin
  835. }
  836. if (h) {
  837. h.begin()
  838. }
  839. }
  840. a.setVerifyTagsArray(i);
  841. d.file.save(b, ".jar", g);
  842. if (b.getVersionDone === 0) {
  843. if (a.should_Insert_Query_Any()) {
  844. e = a.insert_Query_Any();
  845. b.setPluginStatus(e[0], e[1], f)
  846. }
  847. return
  848. }
  849. if ((!f || b.debug) && b.DTK.query().version) {
  850. f = b.DTK.version
  851. }
  852. if ((!f || b.debug) && b.navMime.query().version) {
  853. f = b.navMime.version
  854. }
  855. if ((!f || b.debug) && b.navPlugin.query().version) {
  856. f = b.navPlugin.version
  857. }
  858. if ((!f || b.debug) && b.AXO.query().version) {
  859. f = b.AXO.version
  860. }
  861. if (b.nonAppletDetectionOk(f)) {
  862. c = f
  863. }
  864. if (!c || b.debug || a.VerifyTagsHas(2.2) || a.VerifyTagsHas(2.5)) {
  865. e = b.lang.System.getProperty();
  866. if (e[0]) {
  867. f = e[0];
  868. c = e[0];
  869. l = e[1]
  870. }
  871. }
  872. b.setPluginStatus(c, l, f);
  873. if (a.should_Insert_Query_Any()) {
  874. e = a.insert_Query_Any();
  875. if (e[0]) {
  876. c = e[0];
  877. l = e[1]
  878. }
  879. }
  880. b.setPluginStatus(c, l, f)
  881. },
  882. nonAppletDetectionOk: function (b) {
  883. var d = this,
  884. e = d.$,
  885. a = d.navigator,
  886. c = 1;
  887. if (!b || (!a.javaEnabled() && !d.lang.System.getPropertyHas(b)) || (!e.isIE && !a.mimeObj && !d.lang.System.getPropertyHas(b)) || (e.isIE && !e.ActiveXEnabled)) {
  888. c = 0
  889. } else {
  890. if (e.OS >= 20) {} else {
  891. if (d.info && d.info.getPlugin2Status() < 0 && d.info.BrowserRequiresPlugin2()) {
  892. c = 0
  893. }
  894. }
  895. }
  896. return c
  897. },
  898. setPluginStatus: function (d, f, a) {
  899. var c = this,
  900. e = c.$,
  901. b;
  902. a = a || c.version0;
  903. if (c.OTF > 0) {
  904. d = d || c.lang.System.getProperty()[0]
  905. }
  906. if (c.OTF < 3) {
  907. b = d ? 1 : (a ? -0.2 : -1);
  908. if (c.installed === null || b > c.installed) {
  909. c.installed = b
  910. }
  911. }
  912. if (c.OTF == 2 && c.NOTF && !c.applet.getResult()[0] && !c.lang.System.getProperty()[0]) {
  913. c.installed = a ? -0.2 : -1
  914. };
  915. if (c.OTF == 3 && c.installed != -0.5 && c.installed != 0.5) {
  916. c.installed = (c.NOTF.isJavaActive(1) == 1 || c.lang.System.getProperty()[0]) ? 0.5 : -0.5
  917. }
  918. if (c.OTF == 4 && (c.installed == -0.5 || c.installed == 0.5)) {
  919. if (d) {
  920. c.installed = 1
  921. } else {
  922. if (c.NOTF.isJavaActive(1) == 1) {
  923. if (a) {
  924. c.installed = 1;
  925. d = a
  926. } else {
  927. c.installed = 0
  928. }
  929. } else {
  930. if (a) {
  931. c.installed = -0.2
  932. } else {
  933. c.installed = -1
  934. }
  935. }
  936. }
  937. };
  938. if (a) {
  939. c.version0 = e.formatNum(e.getNum(a))
  940. }
  941. if (d) {
  942. c.version = e.formatNum(e.getNum(d))
  943. }
  944. if (f && e.isString(f)) {
  945. c.vendor = f
  946. }
  947. if (!c.vendor) {
  948. c.vendor = ""
  949. }
  950. if (c.verify && c.verify.isEnabled()) {
  951. c.getVersionDone = 0
  952. } else {
  953. if (c.getVersionDone != 1) {
  954. if (c.OTF < 2) {
  955. c.getVersionDone = 0
  956. } else {
  957. c.getVersionDone = c.applet.can_Insert_Query_Any() ? 0 : 1
  958. }
  959. }
  960. }
  961. },
  962. DTK: {
  963. $: 1,
  964. hasRun: 0,
  965. status: null,
  966. VERSIONS: [],
  967. version: "",
  968. HTML: null,
  969. Plugin2Status: null,
  970. classID: ["clsid:CAFEEFAC-DEC7-0000-0001-ABCDEFFEDCBA", "clsid:CAFEEFAC-DEC7-0000-0000-ABCDEFFEDCBA"],
  971. mimeType: ["application/java-deployment-toolkit", "application/npruntime-scriptable-plugin;DeploymentToolkit"],
  972. disabled: function () {
  973. return this.$$.isDisabled.DTK()
  974. },
  975. query: function () {
  976. var k = this,
  977. g = k.$,
  978. d = k.$$,
  979. j, l, h, m = {}, f = {}, a, c = null,
  980. i = null,
  981. b = (k.hasRun || k.disabled());
  982. k.hasRun = 1;
  983. if (b) {
  984. return k
  985. }
  986. k.status = 0;
  987. if (g.isIE && g.verIE >= 6) {
  988. for (l = 0; l < k.classID.length; l++) {
  989. k.HTML = g.insertHTML("object", ["classid", k.classID[l]], []);
  990. c = g.getDOMobj(k.HTML);
  991. try {
  992. if (c && c.jvms) {
  993. break
  994. }
  995. } catch (j) {}
  996. }
  997. } else {
  998. if (!g.isIE && (h = g.hasMimeType(k.mimeType)) && h.type) {
  999. k.HTML = g.insertHTML("object", ["type", h.type], []);
  1000. c = g.getDOMobj(k.HTML)
  1001. }
  1002. } if (c) {
  1003. try {
  1004. a = c.jvms;
  1005. if (a) {
  1006. i = a.getLength();
  1007. if (g.isNum(i)) {
  1008. k.status = i > 0 ? 1 : -1;
  1009. for (l = 0; l < i; l++) {
  1010. h = g.getNum(a.get(i - 1 - l).version);
  1011. if (h) {
  1012. k.VERSIONS.push(h);
  1013. f["a" + g.formatNum(h)] = 1
  1014. }
  1015. }
  1016. }
  1017. }
  1018. } catch (j) {}
  1019. }
  1020. h = 0;
  1021. for (l in f) {
  1022. h++
  1023. }
  1024. if (h && h !== k.VERSIONS.length) {
  1025. k.VERSIONS = []
  1026. }
  1027. if (k.VERSIONS.length) {
  1028. k.version = g.formatNum(k.VERSIONS[0])
  1029. };
  1030. return k
  1031. }
  1032. },
  1033. AXO: {
  1034. $: 1,
  1035. hasRun: 0,
  1036. VERSIONS: [],
  1037. version: "",
  1038. disabled: function () {
  1039. return this.$$.isDisabled.AXO()
  1040. },
  1041. JavaVersions: [
  1042. [1, 9, 1, 40],
  1043. [1, 8, 1, 40],
  1044. [1, 7, 1, 40],
  1045. [1, 6, 0, 40],
  1046. [1, 5, 0, 30],
  1047. [1, 4, 2, 30],
  1048. [1, 3, 1, 30]
  1049. ],
  1050. query: function () {
  1051. var a = this,
  1052. e = a.$,
  1053. b = a.$$,
  1054. c = (a.hasRun || a.disabled());
  1055. a.hasRun = 1;
  1056. if (c) {
  1057. return a
  1058. }
  1059. var i = [],
  1060. k = [1, 5, 0, 14],
  1061. j = [1, 6, 0, 2],
  1062. h = [1, 3, 1, 0],
  1063. g = [1, 4, 2, 0],
  1064. f = [1, 5, 0, 7],
  1065. d = b.getInfo ? true : false,
  1066. l = {};
  1067. if (e.verIE >= b.minIEver) {
  1068. i = a.search(j, j, d);
  1069. if (i.length > 0 && d) {
  1070. i = a.search(k, k, d)
  1071. }
  1072. } else {
  1073. if (d) {
  1074. i = a.search(f, f, true)
  1075. }
  1076. if (i.length == 0) {
  1077. i = a.search(h, g, false)
  1078. }
  1079. } if (i.length) {
  1080. a.version = i[0];
  1081. a.VERSIONS = [].concat(i)
  1082. };
  1083. return a
  1084. },
  1085. search: function (a, j, p) {
  1086. var h, d, f = this,
  1087. e = f.$,
  1088. k = f.$$,
  1089. n, c, l, q, b, o, r, i = [];
  1090. if (e.compareNums(a.join(","), j.join(",")) > 0) {
  1091. j = a
  1092. }
  1093. j = e.formatNum(j.join(","));
  1094. var m, s = "1,4,2,0",
  1095. g = "JavaPlugin." + a[0] + "" + a[1] + "" + a[2] + "" + (a[3] > 0 ? ("_" + (a[3] < 10 ? "0" : "") + a[3]) : "");
  1096. for (h = 0; h < f.JavaVersions.length; h++) {
  1097. d = f.JavaVersions[h];
  1098. n = "JavaPlugin." + d[0] + "" + d[1];
  1099. b = d[0] + "." + d[1] + ".";
  1100. for (l = d[2]; l >= 0; l--) {
  1101. r = "JavaWebStart.isInstalled." + b + l + ".0";
  1102. if (e.compareNums(d[0] + "," + d[1] + "," + l + ",0", j) >= 0 && !e.getAXO(r)) {
  1103. continue
  1104. }
  1105. m = e.compareNums(d[0] + "," + d[1] + "," + l + ",0", s) < 0 ? true : false;
  1106. for (q = d[3]; q >= 0; q--) {
  1107. c = l + "_" + (q < 10 ? "0" + q : q);
  1108. o = n + c;
  1109. if (e.getAXO(o) && (m || e.getAXO(r))) {
  1110. i.push(b + c);
  1111. if (!p) {
  1112. return i
  1113. }
  1114. }
  1115. if (o == g) {
  1116. return i
  1117. }
  1118. }
  1119. if (e.getAXO(n + l) && (m || e.getAXO(r))) {
  1120. i.push(b + l);
  1121. if (!p) {
  1122. return i
  1123. }
  1124. }
  1125. if (n + l == g) {
  1126. return i
  1127. }
  1128. }
  1129. }
  1130. return i
  1131. }
  1132. },
  1133. navMime: {
  1134. $: 1,
  1135. hasRun: 0,
  1136. mimetype: "",
  1137. version: "",
  1138. length: 0,
  1139. mimeObj: 0,
  1140. pluginObj: 0,
  1141. disabled: function () {
  1142. return this.$$.isDisabled.navMime()
  1143. },
  1144. query: function () {
  1145. var i = this,
  1146. f = i.$,
  1147. a = i.$$,
  1148. b = (i.hasRun || i.disabled());
  1149. i.hasRun = 1;
  1150. if (b) {
  1151. return i
  1152. };
  1153. var n = /^\s*application\/x-java-applet;jpi-version\s*=\s*(\d.*)$/i,
  1154. g, l, j, d = "",
  1155. h = "a",
  1156. o, m, k = {}, c = f.formatNum("0");
  1157. for (l = 0; l < navigator.mimeTypes.length; l++) {
  1158. o = navigator.mimeTypes[l];
  1159. m = o ? o.enabledPlugin : 0;
  1160. g = o && n.test(o.type || d) ? f.formatNum(f.getNum(RegExp.$1)) : 0;
  1161. if (g && m && (m.description || m.name)) {
  1162. if (!k[h + g]) {
  1163. i.length++
  1164. }
  1165. k[h + g] = o.type;
  1166. if (f.compareNums(g, c) > 0) {
  1167. c = g
  1168. }
  1169. }
  1170. }
  1171. g = k[h + c];
  1172. if (g) {
  1173. o = f.hasMimeType(g);
  1174. i.mimeObj = o;
  1175. i.pluginObj = o ? o.enabledPlugin : 0;
  1176. i.mimetype = g;
  1177. i.version = c
  1178. };
  1179. return i
  1180. }
  1181. },
  1182. navPlugin: {
  1183. $: 1,
  1184. hasRun: 0,
  1185. version: "",
  1186. disabled: function () {
  1187. return this.$$.isDisabled.navPlugin()
  1188. },
  1189. query: function () {
  1190. var m = this,
  1191. e = m.$,
  1192. c = m.$$,
  1193. h = c.navigator,
  1194. j, l, k, g, d, a, i, f = 0,
  1195. b = (m.hasRun || m.disabled());
  1196. m.hasRun = 1;
  1197. if (b) {
  1198. return m
  1199. };
  1200. a = h.pluginObj.name || "";
  1201. i = h.pluginObj.description || "";
  1202. if (!f || c.debug) {
  1203. g = /Java.*TM.*Platform[^\d]*(\d+)(?:[\.,_](\d*))?(?:\s*[Update]+\s*(\d*))?/i;
  1204. if ((g.test(a) || g.test(i)) && parseInt(RegExp.$1, 10) >= 5) {
  1205. f = "1," + RegExp.$1 + "," + (RegExp.$2 ? RegExp.$2 : "0") + "," + (RegExp.$3 ? RegExp.$3 : "0")
  1206. }
  1207. }
  1208. if (!f || c.debug) {
  1209. g = /Java[^\d]*Plug-in/i;
  1210. l = g.test(i) ? e.formatNum(e.getNum(i)) : 0;
  1211. k = g.test(a) ? e.formatNum(e.getNum(a)) : 0;
  1212. if (l && (e.compareNums(l, e.formatNum("1,3")) < 0 || e.compareNums(l, e.formatNum("2")) >= 0)) {
  1213. l = 0
  1214. }
  1215. if (k && (e.compareNums(k, e.formatNum("1,3")) < 0 || e.compareNums(k, e.formatNum("2")) >= 0)) {
  1216. k = 0
  1217. }
  1218. d = l && k ? (e.compareNums(l, k) > 0 ? l : k) : (l || k);
  1219. if (d) {
  1220. f = d
  1221. }
  1222. }
  1223. if (!f && e.isSafari && e.OS == 2) {
  1224. j = e.findNavPlugin("Java.*\d.*Plug-in.*Cocoa", 0);
  1225. if (j) {
  1226. l = e.getNum(j.description);
  1227. if (l) {
  1228. f = l
  1229. }
  1230. }
  1231. };
  1232. if (f) {
  1233. m.version = e.formatNum(f)
  1234. };
  1235. return m
  1236. }
  1237. },
  1238. lang: {
  1239. $: 1,
  1240. System: {
  1241. $: 1,
  1242. hasRun: 0,
  1243. result: [null, null],
  1244. disabled: function () {
  1245. return this.$$.isDisabled.windowDotJava()
  1246. },
  1247. getPropertyHas: function (a) {
  1248. var b = this,
  1249. d = b.$,
  1250. c = b.getProperty()[0];
  1251. return (a && c && d.compareNums(d.formatNum(a), d.formatNum(c)) === 0) ? 1 : 0
  1252. },
  1253. getProperty: function () {
  1254. var f = this,
  1255. g = f.$,
  1256. d = f.$$,
  1257. i, h = {}, b = f.hasRun || f.disabled();
  1258. f.hasRun = 1;
  1259. if (!b) {
  1260. var a = "java_qqq990";
  1261. g[a] = null;
  1262. try {
  1263. var c = document.createElement("script");
  1264. c.type = "text/javascript";
  1265. c.appendChild(document.createTextNode('(function(){var e,a;try{a=[window.java.lang.System.getProperty("java.version")+"",window.java.lang.System.getProperty("java.vendor")+""]}catch(e){};' + g.name + "." + a + "=a||0})();"));
  1266. g.head.insertBefore(c, g.head.firstChild);
  1267. g.head.removeChild(c)
  1268. } catch (i) {}
  1269. if (g[a] && g.isArray(g[a])) {
  1270. f.result = [].concat(g[a])
  1271. }
  1272. }
  1273. return f.result
  1274. }
  1275. }
  1276. },
  1277. applet: {
  1278. $: 1,
  1279. results: [
  1280. [null, null],
  1281. [null, null],
  1282. [null, null]
  1283. ],
  1284. getResult: function () {
  1285. var c = this.results,
  1286. a, b = [];
  1287. for (a = 0; a < c.length; a++) {
  1288. b = c[a];
  1289. if (b[0]) {
  1290. break
  1291. }
  1292. }
  1293. return [].concat(b)
  1294. },
  1295. HTML: [0, 0, 0],
  1296. active: [0, 0, 0],
  1297. DummyObjTagHTML: 0,
  1298. DummySpanTagHTML: 0,
  1299. allowed: [1, 1, 1],
  1300. VerifyTagsHas: function (c) {
  1301. var d = this,
  1302. b;
  1303. for (b = 0; b < d.allowed.length; b++) {
  1304. if (d.allowed[b] === c) {
  1305. return 1
  1306. }
  1307. }
  1308. return 0
  1309. },
  1310. saveAsVerifyTagsArray: function (c) {
  1311. var b = this,
  1312. d = b.$,
  1313. a;
  1314. if (d.isArray(c)) {
  1315. for (a = 0; a < b.allowed.length; a++) {
  1316. if (d.isNum(c[a])) {
  1317. if (c[a] < 0) {
  1318. c[a] = 0
  1319. }
  1320. if (c[a] > 3) {
  1321. c[a] = 3
  1322. }
  1323. b.allowed[a] = c[a]
  1324. }
  1325. }
  1326. }
  1327. },
  1328. setVerifyTagsArray: function (d) {
  1329. var b = this,
  1330. c = b.$,
  1331. a = b.$$;
  1332. if (a.getVersionDone === null) {
  1333. b.saveAsVerifyTagsArray(a.getVerifyTagsDefault())
  1334. }
  1335. if (a.debug || (a.verify && a.verify.isEnabled())) {
  1336. b.saveAsVerifyTagsArray([3, 3, 3])
  1337. } else {
  1338. if (d) {
  1339. b.saveAsVerifyTagsArray(d)
  1340. }
  1341. }
  1342. },
  1343. allDisabled: function () {
  1344. return this.$$.isDisabled.allApplets()
  1345. },
  1346. isDisabled: function (d) {
  1347. var b = this,
  1348. c = b.$,
  1349. a = b.$$;
  1350. if (d == 2 && !c.isIE) {
  1351. return 1
  1352. }
  1353. if (d === 0 || d == 2) {
  1354. return a.isDisabled.ObjectTag()
  1355. }
  1356. if (d == 1) {
  1357. return a.isDisabled.AppletTag()
  1358. }
  1359. },
  1360. can_Insert_Query: function (b) {
  1361. var a = this;
  1362. if (a.HTML[b]) {
  1363. return 0
  1364. }
  1365. return !a.isDisabled(b)
  1366. },
  1367. can_Insert_Query_Any: function () {
  1368. var b = this,
  1369. a;
  1370. for (a = 0; a < b.results.length; a++) {
  1371. if (b.can_Insert_Query(a)) {
  1372. return 1
  1373. }
  1374. }
  1375. return 0
  1376. },
  1377. should_Insert_Query: function (d) {
  1378. var b = this,
  1379. e = b.allowed,
  1380. c = b.$,
  1381. a = b.$$;
  1382. if (!b.can_Insert_Query(d)) {
  1383. return 0
  1384. }
  1385. if (e[d] == 3) {
  1386. return 1
  1387. }
  1388. if (e[d] == 2.8 && !b.getResult()[0]) {
  1389. return 1
  1390. }
  1391. if (e[d] == 2.5 && !a.lang.System.getProperty()[0]) {
  1392. return 1
  1393. }
  1394. if (e[d] == 2.2 && !a.lang.System.getProperty()[0] && !b.getResult()[0]) {
  1395. return 1
  1396. }
  1397. if (!a.nonAppletDetectionOk(a.version0)) {
  1398. if (e[d] == 2) {
  1399. return 1
  1400. }
  1401. if (e[d] == 1 && !b.getResult()[0]) {
  1402. return 1
  1403. }
  1404. }
  1405. return 0
  1406. },
  1407. should_Insert_Query_Any: function () {
  1408. var b = this,
  1409. a;
  1410. for (a = 0; a < b.allowed.length; a++) {
  1411. if (b.should_Insert_Query(a)) {
  1412. return 1
  1413. }
  1414. }
  1415. return 0
  1416. },
  1417. query: function (f) {
  1418. var h, a = this,
  1419. g = a.$,
  1420. d = a.$$,
  1421. i = null,
  1422. j = null,
  1423. b = a.results,
  1424. c;
  1425. if ((b[f][0] && b[f][1]) || (d.debug && d.OTF < 3)) {
  1426. return
  1427. }
  1428. c = g.getDOMobj(a.HTML[f], true);
  1429. if (c) {
  1430. try {
  1431. i = g.getNum(c.getVersion() + "");
  1432. j = c.getVendor() + "";
  1433. c.statusbar(g.winLoaded ? "" : "")
  1434. } catch (h) {}
  1435. if (i && g.isStrNum(i)) {
  1436. b[f] = [i, j]
  1437. } else {};
  1438. try {
  1439. if (g.isIE && i && c.readyState != 4) {
  1440. g.garbage = true;
  1441. c.parentNode.removeChild(c)
  1442. }
  1443. } catch (h) {}
  1444. }
  1445. },
  1446. insert_Query_Any: function () {
  1447. var d = this,
  1448. i = d.$,
  1449. e = d.$$,
  1450. l = d.results,
  1451. p = d.HTML,
  1452. a = "&nbsp;&nbsp;&nbsp;&nbsp;",
  1453. g = "A.class",
  1454. m = i.file.getValid(e);
  1455. if (!m) {
  1456. return d.getResult()
  1457. }
  1458. if (e.OTF < 1) {
  1459. e.OTF = 1
  1460. }
  1461. if (d.allDisabled()) {
  1462. return d.getResult()
  1463. }
  1464. if (e.OTF < 1.5) {
  1465. e.OTF = 1.5
  1466. }
  1467. var j = m.name + m.ext,
  1468. h = m.path;
  1469. var f = ["archive", j, "code", g],
  1470. c = ["mayscript", "true"],
  1471. o = ["scriptable", "true"].concat(c),
  1472. n = e.navigator,
  1473. b = !i.isIE && n.mimeObj && n.mimeObj.type ? n.mimeObj.type : e.mimeType[0];
  1474. if (d.should_Insert_Query(0)) {
  1475. if (e.OTF < 2) {
  1476. e.OTF = 2
  1477. };
  1478. p[0] = i.isIE ? i.insertHTML("object", ["type", b], ["codebase", h].concat(f).concat(o), a, e) : i.insertHTML("object", ["type", b], ["codebase", h].concat(f).concat(o), a, e);
  1479. l[0] = [0, 0];
  1480. d.query(0)
  1481. }
  1482. if (d.should_Insert_Query(1)) {
  1483. if (e.OTF < 2) {
  1484. e.OTF = 2
  1485. };
  1486. p[1] = i.isIE ? i.insertHTML("applet", ["alt", a].concat(c).concat(f), ["codebase", h].concat(c), a, e) : i.insertHTML("applet", ["codebase", h, "alt", a].concat(c).concat(f), [].concat(c), a, e);
  1487. l[1] = [0, 0];
  1488. d.query(1)
  1489. }
  1490. if (d.should_Insert_Query(2)) {
  1491. if (e.OTF < 2) {
  1492. e.OTF = 2
  1493. };
  1494. p[2] = i.isIE ? i.insertHTML("object", ["classid", e.classID], ["codebase", h].concat(f).concat(o), a, e) : i.insertHTML();
  1495. l[2] = [0, 0];
  1496. d.query(2)
  1497. }
  1498. if (!d.DummyObjTagHTML && !e.isDisabled.ObjectTag()) {
  1499. d.DummyObjTagHTML = i.insertHTML("object", [], [], a)
  1500. }
  1501. if (!d.DummySpanTagHTML) {
  1502. d.DummySpanTagHTML = i.insertHTML("", [], [], a)
  1503. };
  1504. var k = e.NOTF;
  1505. if (e.OTF < 3 && k.shouldContinueQuery()) {
  1506. e.OTF = 3;
  1507. k.onIntervalQuery = i.handler(k.$$onIntervalQuery, k);
  1508. if (!i.winLoaded) {
  1509. i.WLfuncs0.push([k.winOnLoadQuery, k])
  1510. }
  1511. setTimeout(k.onIntervalQuery, k.intervalLength)
  1512. };
  1513. return d.getResult()
  1514. }
  1515. },
  1516. NOTF: {
  1517. $: 1,
  1518. count: 0,
  1519. countMax: 25,
  1520. intervalLength: 250,
  1521. shouldContinueQuery: function () {
  1522. var e = this,
  1523. d = e.$,
  1524. c = e.$$,
  1525. b = c.applet,
  1526. a;
  1527. for (a = 0; a < b.results.length; a++) {
  1528. if (b.HTML[a] && !b.results[a][0] && (b.allowed[a] >= 2 || (b.allowed[a] == 1 && !b.getResult()[0])) && e.isAppletActive(a) >= 0) {
  1529. return 1
  1530. }
  1531. }
  1532. return 0
  1533. },
  1534. isJavaActive: function (d) {
  1535. var f = this,
  1536. c = f.$$,
  1537. a, b, e = -9;
  1538. for (a = 0; a < c.applet.HTML.length; a++) {
  1539. b = f.isAppletActive(a, d);
  1540. if (b > e) {
  1541. e = b
  1542. }
  1543. }
  1544. return e
  1545. },
  1546. isAppletActive: function (c, a) {
  1547. var d = this,
  1548. b = d.$$.applet.active;
  1549. if (!a) {
  1550. b[c] = d.isAppletActive_(c)
  1551. }
  1552. return b[c]
  1553. },
  1554. isAppletActive_: function (d) {
  1555. var g = this,
  1556. f = g.$,
  1557. b = g.$$,
  1558. l = b.navigator,
  1559. a = b.applet,
  1560. h = a.HTML[d],
  1561. i, k, c = 0,
  1562. j = f.getTagStatus(h, a.DummySpanTagHTML, a.DummyObjTagHTML, g.count);
  1563. if (j == -2) {
  1564. return -2
  1565. }
  1566. try {
  1567. if (f.isIE && f.verIE >= b.minIEver && f.getDOMobj(h).object) {
  1568. return 1
  1569. }
  1570. } catch (i) {}
  1571. for (k = 0; k < a.active.length; k++) {
  1572. if (a.active[k] > 0) {
  1573. c = 1
  1574. }
  1575. }
  1576. if (j == 1 && (f.isIE || ((b.version0 && l.javaEnabled() && l.mimeObj && (h.tagName == "object" || c)) || b.lang.System.getProperty()[0]))) {
  1577. return 1
  1578. }
  1579. if (j < 0) {
  1580. return -1
  1581. }
  1582. return 0
  1583. },
  1584. winOnLoadQuery: function (c, d) {
  1585. var b = d.$$,
  1586. a;
  1587. if (b.OTF == 3) {
  1588. a = d.queryAllApplets();
  1589. d.queryCompleted(a[1], a[2])
  1590. }
  1591. },
  1592. $$onIntervalQuery: function (d) {
  1593. var c = d.$,
  1594. b = d.$$,
  1595. a;
  1596. if (b.OTF == 3) {
  1597. a = d.queryAllApplets();
  1598. if (!d.shouldContinueQuery() || (c.winLoaded && d.count > d.countMax)) {
  1599. d.queryCompleted(a[1], a[2])
  1600. }
  1601. }
  1602. d.count++;
  1603. if (b.OTF == 3) {
  1604. setTimeout(d.onIntervalQuery, d.intervalLength)
  1605. }
  1606. },
  1607. queryAllApplets: function () {
  1608. var g = this,
  1609. f = g.$,
  1610. e = g.$$,
  1611. d = e.applet,
  1612. b, a, c;
  1613. for (b = 0; b < d.results.length; b++) {
  1614. d.query(b)
  1615. }
  1616. a = d.getResult();
  1617. c = a[0] ? true : false;
  1618. return [c, a[0], a[1]]
  1619. },
  1620. queryCompleted: function (c, f) {
  1621. var e = this,
  1622. d = e.$,
  1623. b = e.$$;
  1624. if (b.OTF >= 4) {
  1625. return
  1626. }
  1627. b.OTF = 4;
  1628. var a = e.isJavaActive();
  1629. b.setPluginStatus(c, f, 0);
  1630. if (b.funcs) {
  1631. d.callArray(b.funcs)
  1632. }
  1633. if (d.onDoneEmptyDiv) {
  1634. d.onDoneEmptyDiv()
  1635. }
  1636. }
  1637. },
  1638. zz: 0
  1639. },
  1640. flash: {
  1641. mimeType: "application/x-shockwave-flash",
  1642. progID: "ShockwaveFlash.ShockwaveFlash",
  1643. classID: "clsid:D27CDB6E-AE6D-11CF-96B8-444553540000",
  1644. getVersion: function () {
  1645. var b = function (i) {
  1646. if (!i) {
  1647. return null
  1648. }
  1649. var e = /[\d][\d\,\.\s]*[rRdD]{0,1}[\d\,]*/.exec(i);
  1650. return e ? e[0].replace(/[rRdD\.]/g, ",").replace(/\s/g, "") : null
  1651. };
  1652. var j = this,
  1653. g = j.$,
  1654. k, h, l = null,
  1655. c = null,
  1656. a = null,
  1657. f, m, d;
  1658. if (!g.isIE) {
  1659. m = g.hasMimeType(j.mimeType);
  1660. if (m) {
  1661. f = g.getDOMobj(g.insertHTML("object", ["type", j.mimeType], [], "", j));
  1662. try {
  1663. l = g.getNum(f.GetVariable("$version"))
  1664. } catch (k) {}
  1665. }
  1666. if (!l) {
  1667. d = m ? m.enabledPlugin : null;
  1668. if (d && d.description) {
  1669. l = b(d.description)
  1670. }
  1671. if (l) {
  1672. l = g.getPluginFileVersion(d, l)
  1673. }
  1674. }
  1675. } else {
  1676. for (h = 15; h > 2; h--) {
  1677. c = g.getAXO(j.progID + "." + h);
  1678. if (c) {
  1679. a = h.toString();
  1680. break
  1681. }
  1682. }
  1683. if (!c) {
  1684. c = g.getAXO(j.progID)
  1685. }
  1686. if (a == "6") {
  1687. try {
  1688. c.AllowScriptAccess = "always"
  1689. } catch (k) {
  1690. return "6,0,21,0"
  1691. }
  1692. }
  1693. try {
  1694. l = b(c.GetVariable("$version"))
  1695. } catch (k) {}
  1696. if (!l && a) {
  1697. l = a
  1698. }
  1699. }
  1700. j.installed = l ? 1 : -1;
  1701. j.version = g.formatNum(l);
  1702. return true
  1703. }
  1704. },
  1705. adobereader: {
  1706. mimeType: "application/pdf",
  1707. navPluginObj: null,
  1708. progID: ["AcroPDF.PDF", "PDF.PdfCtrl"],
  1709. classID: "clsid:CA8A9780-280D-11CF-A24D-444553540000",
  1710. INSTALLED: {},
  1711. pluginHasMimeType: function (d, c, f) {
  1712. var b = this,
  1713. e = b.$,
  1714. a;
  1715. for (a in d) {
  1716. if (d[a] && d[a].type && d[a].type == c) {
  1717. return 1
  1718. }
  1719. }
  1720. if (e.getMimeEnabledPlugin(c, f)) {
  1721. return 1
  1722. }
  1723. return 0
  1724. },
  1725. getVersion: function (l, j) {
  1726. var g = this,
  1727. d = g.$,
  1728. i, f, m, n, b = null,
  1729. h = null,
  1730. k = g.mimeType,
  1731. a, c;
  1732. if (d.isString(j)) {
  1733. j = j.replace(/\s/g, "");
  1734. if (j) {
  1735. k = j
  1736. }
  1737. } else {
  1738. j = null
  1739. } if (d.isDefined(g.INSTALLED[k])) {
  1740. g.installed = g.INSTALLED[k];
  1741. return
  1742. }
  1743. if (!d.isIE) {
  1744. a = "Adobe.*PDF.*Plug-?in|Adobe.*Acrobat.*Plug-?in|Adobe.*Reader.*Plug-?in";
  1745. if (g.getVersionDone !== 0) {
  1746. g.getVersionDone = 0;
  1747. b = d.getMimeEnabledPlugin(g.mimeType, a);
  1748. if (!j) {
  1749. n = b
  1750. }
  1751. if (!b && d.hasMimeType(g.mimeType)) {
  1752. b = d.findNavPlugin(a, 0)
  1753. }
  1754. if (b) {
  1755. g.navPluginObj = b;
  1756. h = d.getNum(b.description) || d.getNum(b.name);
  1757. h = d.getPluginFileVersion(b, h);
  1758. if (!h && d.OS == 1) {
  1759. if (g.pluginHasMimeType(b, "application/vnd.adobe.pdfxml", a)) {
  1760. h = "9"
  1761. } else {
  1762. if (g.pluginHasMimeType(b, "application/vnd.adobe.x-mars", a)) {
  1763. h = "8"
  1764. }
  1765. }
  1766. }
  1767. }
  1768. } else {
  1769. h = g.version
  1770. } if (!d.isDefined(n)) {
  1771. n = d.getMimeEnabledPlugin(k, a)
  1772. }
  1773. g.installed = n && h ? 1 : (n ? 0 : (g.navPluginObj ? -0.2 : -1))
  1774. } else {
  1775. b = d.getAXO(g.progID[0]) || d.getAXO(g.progID[1]);
  1776. c = /=\s*([\d\.]+)/g;
  1777. try {
  1778. f = (b || d.getDOMobj(d.insertHTML("object", ["classid", g.classID], ["src", ""], "", g))).GetVersions();
  1779. for (m = 0; m < 5; m++) {
  1780. if (c.test(f) && (!h || RegExp.$1 > h)) {
  1781. h = RegExp.$1
  1782. }
  1783. }
  1784. } catch (i) {}
  1785. g.installed = h ? 1 : (b ? 0 : -1)
  1786. } if (!g.version) {
  1787. g.version = d.formatNum(h)
  1788. }
  1789. g.INSTALLED[k] = g.installed
  1790. }
  1791. },
  1792. zz: 0
  1793. }
  1794. };
  1795. PluginDetect.initScript();
  1796. PluginDetect.getVersion(".");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement