1var dnnJscriptVersion = "6.0.0"; 2if (typeof Sys.Browser.Chrome == "undefined") { 3 Sys.Browser.Chrome = {}; 4 if (navigator.userAgent.indexOf(" Chrome/") > -1) { 5 Sys.Browser.agent = Sys.Browser.Chrome; 6 Sys.Browser.version = parseFloat( 7 navigator.userAgent.match(/Chrome\/(\d+\.\d+)/)[1], 8 ); 9 Sys.Browser.name = "Chrome"; 10 Sys.Browser.hasDebuggerStatement = true; 11 } 12} else { 13 if ( 14 Sys.Browser.agent === Sys.Browser.InternetExplorer && 15 Sys.Browser.version > 10 16 ) { 17 HTMLAnchorElement.prototype.attachEvent = function (a, b) { 18 if (a.substr(0, 2) == "on") { 19 a = a.substr(2); 20 } 21 this.addEventListener(a, b, false); 22 }; 23 HTMLAnchorElement.prototype.detachEvent = function (a, b) { 24 if (a.substr(0, 2) == "on") { 25 a = a.substr(2); 26 } 27 this.removeEventListener(a, b, false); 28 }; 29 } 30} 31var DNN_HIGHLIGHT_COLOR = "#9999FF"; 32var COL_DELIMITER = String.fromCharCode(18); 33var ROW_DELIMITER = String.fromCharCode(17); 34var QUOTE_REPLACEMENT = String.fromCharCode(19); 35var KEY_LEFT_ARROW = 37; 36var KEY_UP_ARROW = 38; 37var KEY_RIGHT_ARROW = 39; 38var KEY_DOWN_ARROW = 40; 39var KEY_RETURN = 13; 40var KEY_ESCAPE = 27; 41Type.registerNamespace("dnn"); 42dnn.extend = function (a, b) { 43 for (s in b) { 44 a[s] = b[s]; 45 } 46 return a; 47}; 48dnn.extend(dnn, { 49 apiversion: new Number("04.02"), 50 pns: "", 51 ns: "dnn", 52 diagnostics: null, 53 vars: null, 54 dependencies: new Array(), 55 isLoaded: false, 56 delay: [], 57 _delayedSet: null, 58 getVars: function () { 59 if (this.vars == null) { 60 var a = dnn.dom.getById("__dnnVariable"); 61 if (a != null) { 62 if (a.value.indexOf("`") == 0) { 63 a.value = a.value.substring(1).replace(/`/g, '"'); 64 } 65 if (a.value.indexOf("__scdoff") != -1) { 66 COL_DELIMITER = "~|~"; 67 ROW_DELIMITER = "~`~"; 68 QUOTE_REPLACEMENT = "~!~"; 69 } 70 } 71 if (a != null && a.value.length > 0) { 72 this.vars = Sys.Serialization.JavaScriptSerializer.deserialize(a.value); 73 } else { 74 this.vars = []; 75 } 76 } 77 return this.vars; 78 }, 79 getVar: function (key, def) { 80 if (this.getVars()[key] != null) { 81 var re = new RegExp(QUOTE_REPLACEMENT, "g"); 82 return this.getVars()[key].replace(re, '"'); 83 } 84 return def; 85 }, 86 setVar: function (b, c) { 87 if (this.vars == null) { 88 this.getVars(); 89 } 90 this.vars[b] = c; 91 var a = dnn.dom.getById("__dnnVariable"); 92 if (a == null) { 93 a = dnn.dom.createElement("INPUT"); 94 a.type = "hidden"; 95 a.id = "__dnnVariable"; 96 dnn.dom.appendChild(dnn.dom.getByTagName("body")[0], a); 97 } 98 if (dnn.isLoaded) { 99 a.value = Sys.Serialization.JavaScriptSerializer.serialize(this.vars); 100 } else { 101 dnn._delayedSet = { key: b, val: c }; 102 } 103 return true; 104 }, 105 callPostBack: function (action) { 106 var postBack = dnn.getVar("__dnn_postBack"); 107 var data = ""; 108 if (postBack.length > 0) { 109 data += action; 110 for (var i = 1; i < arguments.length; i++) { 111 var aryParam = arguments[i].split("="); 112 data += COL_DELIMITER + aryParam[0] + COL_DELIMITER + aryParam[1]; 113 } 114 eval(postBack.replace("[DATA]", data)); 115 return true; 116 } 117 return false; 118 }, 119 createDelegate: function (a, b) { 120 return Function.createDelegate(a, b); 121 }, 122 doDelay: function (b, c, d, a) { 123 if (this.delay[b] == null) { 124 this.delay[b] = new dnn.delayObject(d, a, b); 125 this.delay[b].num = window.setTimeout( 126 dnn.createDelegate(this.delay[b], this.delay[b].complete), 127 c, 128 ); 129 } 130 }, 131 cancelDelay: function (a) { 132 if (this.delay[a] != null) { 133 window.clearTimeout(this.delay[a].num); 134 this.delay[a] = null; 135 } 136 }, 137 decodeHTML: function (a) { 138 return a 139 .toString() 140 .replace(/&/g, "&") 141 .replace(/</g, "<") 142 .replace(/>/g, ">") 143 .replace(/"/g, '"'); 144 }, 145 encode: function (a, c) { 146 var b = a; 147 if (encodeURIComponent) { 148 b = encodeURIComponent(b); 149 } else { 150 b = escape(b); 151 } 152 if (c == false) { 153 return b; 154 } 155 return b.replace(/%/g, "%25"); 156 }, 157 encodeHTML: function (a) { 158 return a 159 .toString() 160 .replace(/&/g, "&") 161 .replace(/</g, "<") 162 .replace(/>/g, ">") 163 .replace(/'/g, "'") 164 .replace(/\"/g, """); 165 }, 166 encodeJSON: function (a) { 167 return a 168 .toString() 169 .replace(/&/g, "&") 170 .replace(/</g, "<") 171 .replace(/>/g, ">") 172 .replace(/'/g, "\u0027") 173 .replace(/\"/g, """) 174 .replace(/\\/g, "\\\\"); 175 }, 176 evalJSON: function (a) { 177 return Sys.Serialization.JavaScriptSerializer.deserialize(a); 178 }, 179 escapeForEval: function (a) { 180 return a 181 .replace(/\\/g, "\\\\") 182 .replace(/\'/g, "\\'") 183 .replace(/\r/g, "") 184 .replace(/\n/g, "\\n") 185 .replace(/\./, "\\."); 186 }, 187 getEnumByValue: function (a, b) { 188 for (var c in a) { 189 if (typeof a[c] == "number" && a[c] == b) { 190 return c; 191 } 192 } 193 }, 194 _onload: function () { 195 dnn.isLoaded = true; 196 if (dnn._delayedSet) { 197 dnn.setVar(dnn._delayedSet.key, dnn._delayedSet.val); 198 } 199 }, 200 addIframeMask: function (c) { 201 if ( 202 dnn.dom.browser.isType("ie") && 203 (c.previousSibling == null || 204 c.previousSibling.nodeName.toLowerCase() != "iframe") 205 ) { 206 var a = document.createElement("iframe"); 207 c.parentNode.insertBefore(a, c); 208 var b = c.getBoundingClientRect(); 209 a.style.position = "absolute"; 210 a.style.left = c.offsetLeft + "px"; 211 a.style.top = c.offsetTop + "px"; 212 a.style.width = b.right - b.left + "px"; 213 a.style.height = b.bottom - b.top + "px"; 214 a.style.opacity = "0"; 215 a.style.filter = "progid:DXImageTransform.Microsoft.Alpha(opacity=0)"; 216 a.style.zIndex = "-1"; 217 return a; 218 } 219 return null; 220 }, 221 removeIframeMask: function (a) { 222 if ( 223 dnn.dom.browser.isType("ie") && 224 a.previousSibling != null && 225 a.previousSibling.nodeName.toLowerCase() == "iframe" 226 ) { 227 a.parentNode.removeChild(a.previousSibling); 228 } 229 }, 230}); 231dnn.delayObject = function (c, a, b) { 232 this.num = null; 233 this.pfunc = c; 234 this.context = a; 235 this.type = b; 236}; 237dnn.delayObject.prototype = { 238 complete: function () { 239 dnn.delay[this.type] = null; 240 this.pfunc(this.context); 241 }, 242}; 243dnn.delayObject.registerClass("dnn.delayObject");
244dnn.ScriptRequest = function (e, d, c) { 245 this.ctl = null; 246 this.xmlhttp = null; 247 this.src = null; 248 this.text = null; 249 if (e != null && e.length > 0) { 250 var b = dnn.dom.scriptFile(e); 251 var a = dnn.getVar(b + ".resx", ""); 252 if (a.length > 0) { 253 this.src = a; 254 } else { 255 this.src = e; 256 } 257 } 258 if (d != null && d.length > 0) { 259 this.text = d; 260 } 261 this.callBack = c; 262 this.status = "init"; 263 this.timeOut = 5000; 264 this._xmlhttpStatusChangeDelegate = dnn.createDelegate( 265 this, 266 this.xmlhttpStatusChange, 267 ); 268 this._statusChangeDelegate = dnn.createDelegate(this, this.statusChange); 269 this._completeDelegate = dnn.createDelegate(this, this.complete); 270 this._reloadDelegate = dnn.createDelegate(this, this.reload); 271}; 272dnn.ScriptRequest.prototype = { 273 load: function () { 274 this.status = "loading"; 275 this.ctl = document.createElement("script"); 276 this.ctl.type = "text/javascript"; 277 if (this.src != null) { 278 if (dnn.dom.browser.isType(dnn.dom.browser.Safari)) { 279 this.xmlhttp = new XMLHttpRequest(); 280 this.xmlhttp.open("GET", this.src, true); 281 this.xmlhttp.onreadystatechange = this._xmlhttpStatusChangeDelegate; 282 this.xmlhttp.send(null); 283 return; 284 } else { 285 if (dnn.dom.browser.isType(dnn.dom.browser.InternetExplorer)) { 286 this.ctl.onreadystatechange = this._statusChangeDelegate; 287 } else { 288 if (dnn.dom.browser.isType(dnn.dom.browser.Opera) == false) { 289 this.ctl.onload = this._completeDelegate; 290 } 291 } 292 this.ctl.src = this.src; 293 } 294 dnn.dom.scriptElements[this.src] = this.ctl; 295 } else { 296 if (dnn.dom.browser.isType(dnn.dom.browser.Safari)) { 297 this.ctl.innerHTML = dnn.encodeHTML(this.text); 298 } else { 299 this.ctl.text = this.text; 300 } 301 } 302 var a = dnn.dom.getByTagName("HEAD"); 303 if (a) { 304 if ( 305 dnn.dom.browser.isType(dnn.dom.browser.Opera) == false || 306 this.src != null 307 ) { 308 a[0].appendChild(this.ctl); 309 } 310 } else { 311 alert("Cannot load dynamic script, no HEAD tag present."); 312 } 313 if (this.src == null || dnn.dom.browser.isType(dnn.dom.browser.Opera)) { 314 this.complete(); 315 } else { 316 if (this.timeOut) { 317 dnn.doDelay( 318 "loadScript_" + this.src, 319 this.timeOut, 320 this._reloadDelegate, 321 null, 322 ); 323 } 324 } 325 }, 326 xmlhttpStatusChange: function () { 327 if (this.xmlhttp.readyState != 4) { 328 return; 329 } 330 this.src = null; 331 this.text = this.xmlhttp.responseText; 332 this.load(); 333 }, 334 statusChange: function () { 335 if ( 336 (this.ctl.readyState == "loaded" || this.ctl.readyState == "complete") && 337 this.status != "complete" 338 ) { 339 this.complete(); 340 } 341 }, 342 reload: function () { 343 if (dnn.dom.scriptStatus(this.src) == "complete") { 344 this.complete(); 345 } else { 346 this.load(); 347 } 348 }, 349 complete: function () { 350 dnn.cancelDelay("loadScript_" + this.src); 351 this.status = "complete"; 352 if (typeof this.callBack != "undefined") { 353 this.callBack(this); 354 } 355 this.dispose(); 356 }, 357 dispose: function () { 358 this.callBack = null; 359 if (this.ctl) { 360 if (this.ctl.onreadystatechange) { 361 this.ctl.onreadystatechange = new (function () {})(); 362 } else { 363 if (this.ctl.onload) { 364 this.ctl.onload = null; 365 } 366 } 367 this.ctl = null; 368 } 369 this.xmlhttp = null; 370 this._xmlhttpStatusChangeDelegate = null; 371 this._statusChangeDelegate = null; 372 this._completeDelegate = null; 373 this._reloadDelegate = null; 374 }, 375}; 376dnn.ScriptRequest.registerClass("dnn.ScriptRequest"); 377Type.registerNamespace("dnn.dom"); 378dnn.extend(dnn.dom, { 379 pns: "dnn", 380 ns: "dom", 381 browser: null, 382 __leakEvts: [], 383 scripts: [], 384 scriptElements: [], 385 tweens: [], 386 attachEvent: function (a, c, d) { 387 if (a.addEventListener) { 388 var b = c.substring(2); 389 a.addEventListener( 390 b, 391 function (e) { 392 dnn.dom.event = new dnn.dom.eventObject(e, e.target); 393 return d(); 394 }, 395 false, 396 ); 397 } else { 398 a.attachEvent(c, function () { 399 dnn.dom.event = new dnn.dom.eventObject( 400 window.event, 401 window.event.srcElement, 402 ); 403 return d(); 404 }); 405 } 406 return true; 407 }, 408 cursorPos: function (b) { 409 if (b.value.length == 0) { 410 return 0; 411 } 412 var h = -1; 413 if (b.selectionStart) { 414 h = b.selectionStart; 415 } else { 416 if (b.createTextRange) { 417 var f = window.document.selection.createRange(); 418 var a = b.createTextRange(); 419 if (a == null || f == null || (f.text != "" && a.inRange(f) == false)) { 420 return -1; 421 } 422 if (f.text == "") { 423 if (a.boundingLeft == f.boundingLeft) { 424 h = 0; 425 } else { 426 var d = b.tagName.toLowerCase(); 427 if (d == "input") { 428 var g = a.text; 429 var c = 1; 430 while (c < g.length) {
431 a.findText(g.substring(c)); 432 if (a.boundingLeft == f.boundingLeft) { 433 break; 434 } 435 c++; 436 } 437 } else { 438 if (d == "textarea") { 439 var c = b.value.length + 1; 440 var e = document.selection.createRange().duplicate(); 441 while (e.parentElement() == b && e.move("character", 1) == 1) { 442 --c; 443 } 444 if (c == b.value.length + 1) { 445 c = -1; 446 } 447 } 448 } 449 h = c; 450 } 451 } else { 452 h = a.text.indexOf(f.text); 453 } 454 } 455 } 456 return h; 457 }, 458 cancelCollapseElement: function (a) { 459 dnn.cancelDelay(a.id + "col"); 460 a.style.display = "none"; 461 }, 462 collapseElement: function (b, c, d) { 463 if (c == null) { 464 c = 10; 465 } 466 b.style.overflow = "hidden"; 467 var a = new Object(); 468 a.num = c; 469 a.ctl = b; 470 a.pfunc = d; 471 b.origHeight = b.offsetHeight; 472 dnn.dom.__collapseElement(a); 473 }, 474 __collapseElement: function (a) { 475 var c = a.num; 476 var b = a.ctl; 477 var d = b.origHeight / c; 478 if (b.offsetHeight - d * 2 > 0) { 479 b.style.height = (b.offsetHeight - d).toString() + "px"; 480 dnn.doDelay(b.id + "col", 10, dnn.dom.__collapseElement, a); 481 } else { 482 b.style.display = "none"; 483 if (a.pfunc != null) { 484 a.pfunc(); 485 } 486 } 487 }, 488 cancelExpandElement: function (a) { 489 dnn.cancelDelay(a.id + "exp"); 490 a.style.overflow = ""; 491 a.style.height = ""; 492 }, 493 disableTextSelect: function (a) { 494 if (typeof a.onselectstart != "undefined") { 495 a.onselectstart = function () { 496 return false; 497 }; 498 } else { 499 if (typeof a.style.MozUserSelect != "undefined") { 500 a.style.MozUserSelect = "none"; 501 } else { 502 a.onmousedown = function () { 503 return false; 504 }; 505 } 506 } 507 }, 508 expandElement: function (b, c, d) { 509 if (c == null) { 510 c = 10; 511 } 512 if (b.style.display == "none" && b.origHeight == null) { 513 b.style.display = ""; 514 b.style.overflow = ""; 515 b.origHeight = b.offsetHeight; 516 b.style.overflow = "hidden"; 517 b.style.height = "1px"; 518 } 519 b.style.display = ""; 520 var a = new Object(); 521 a.num = c; 522 a.ctl = b; 523 a.pfunc = d; 524 dnn.dom.__expandElement(a); 525 }, 526 __expandElement: function (a) { 527 var c = a.num; 528 var b = a.ctl; 529 var d = b.origHeight / c; 530 if (b.offsetHeight + d < b.origHeight) { 531 b.style.height = (b.offsetHeight + d).toString() + "px"; 532 dnn.doDelay(b.id + "exp", 10, dnn.dom.__expandElement, a); 533 } else { 534 b.style.overflow = ""; 535 b.style.height = ""; 536 if (a.pfunc != null) { 537 a.pfunc(); 538 } 539 } 540 }, 541 deleteCookie: function (a, c, b) { 542 if (this.getCookie(a)) { 543 this.setCookie(a, "", -1, c, b); 544 return true; 545 } 546 return false; 547 }, 548 getAttr: function (b, a, c) { 549 if (b.getAttribute == null) { 550 return c; 551 } 552 var d = b.getAttribute(a); 553 if (d == null || d == "") { 554 return c; 555 } else { 556 return d; 557 } 558 }, 559 getById: function (b, a) { 560 return $get(b, a); 561 }, 562 getByTagName: function (a, b) { 563 if (b == null) { 564 b = document; 565 } 566 if (b.getElementsByTagName) { 567 return b.getElementsByTagName(a); 568 } else { 569 if (b.all && b.all.tags) { 570 return b.all.tags(a); 571 } else { 572 return null; 573 } 574 } 575 }, 576 getParentByTagName: function (b, a) { 577 var c = b.parentNode; 578 a = a.toLowerCase(); 579 while (c != null) { 580 if (c.tagName && c.tagName.toLowerCase() == a) { 581 return c; 582 } 583 c = c.parentNode; 584 } 585 return null; 586 }, 587 getCookie: function (c) { 588 var e = " " + document.cookie; 589 var d = " " + c + "="; 590 var b = null; 591 var f = 0; 592 var a = 0; 593 if (e.length > 0) { 594 f = e.indexOf(d); 595 if (f != -1) { 596 f += d.length; 597 a = e.indexOf(";", f); 598 if (a == -1) { 599 a = e.length; 600 } 601 b = unescape(e.substring(f, a)); 602 } 603 } 604 return b; 605 }, 606 getNonTextNode: function (a) { 607 if (this.isNonTextNode(a)) { 608 return a; 609 } 610 while (a != null && this.isNonTextNode(a)) {
611 a = this.getSibling(a, 1); 612 } 613 return a; 614 }, 615 addSafeHandler: function (b, a, c, d) { 616 b[a] = this.getObjMethRef(c, d); 617 if (dnn.dom.browser.isType(dnn.dom.browser.InternetExplorer)) { 618 if (this.__leakEvts.length == 0) { 619 dnn.dom.attachEvent(window, "onunload", dnn.dom.destroyHandlers); 620 } 621 this.__leakEvts[this.__leakEvts.length] = new dnn.dom.leakEvt(a, b, b[a]); 622 } 623 }, 624 destroyHandlers: function () { 625 var c = dnn.dom.__leakEvts.length - 1; 626 for (var a = c; a >= 0; a--) { 627 var b = dnn.dom.__leakEvts[a]; 628 b.ctl.detachEvent(b.name, b.ptr); 629 b.ctl[b.name] = null; 630 dnn.dom.__leakEvts.length = dnn.dom.__leakEvts.length - 1; 631 } 632 }, 633 getObjMethRef: function (b, a) { 634 return function (c) { 635 c = c || window.event; 636 return b[a](c, this); 637 }; 638 }, 639 getSibling: function (a, c) { 640 if (a != null && a.parentNode != null) { 641 for (var b = 0; b < a.parentNode.childNodes.length; b++) { 642 if (a.parentNode.childNodes[b].id == a.id) { 643 if (a.parentNode.childNodes[b + c] != null) { 644 return a.parentNode.childNodes[b + c]; 645 } 646 } 647 } 648 } 649 return null; 650 }, 651 isNonTextNode: function (a) { 652 return a.nodeType != 3 && a.nodeType != 8; 653 }, 654 getScript: function (c) { 655 if (this.scriptElements[c]) { 656 return this.scriptElements[c]; 657 } 658 var a = dnn.dom.getByTagName("SCRIPT"); 659 for (var b = 0; b < a.length; b++) { 660 if (a[b].src != null && a[b].src.indexOf(c) > -1) { 661 this.scriptElements[c] = a[b]; 662 return a[b]; 663 } 664 } 665 }, 666 getScriptSrc: function (b) { 667 var a = dnn.getVar(b + ".resx", ""); 668 if (a.length > 0) { 669 return a; 670 } 671 return b; 672 }, 673 getScriptPath: function () { 674 var a = dnn.dom.getScript("dnn.js"); 675 if (a) { 676 var b = a.src; 677 if (b.indexOf("?") > -1) { 678 b = b.substr(0, b.indexOf("?")); 679 } 680 return b.replace("dnn.js", ""); 681 } 682 var c = dnn.getVar("__sp"); 683 if (c) { 684 return c; 685 } 686 return ""; 687 }, 688 scriptFile: function (b) { 689 var a = b.split("/"); 690 return a[a.length - 1]; 691 }, 692 loadScript: function (e, d, b) { 693 var c; 694 if (e != null && e.length > 0) { 695 c = this.scriptFile(e); 696 if (this.scripts[c] != null) { 697 return; 698 } 699 } 700 var a = new dnn.ScriptRequest(e, d, b); 701 if (c) { 702 this.scripts[c] = a; 703 } 704 a.load(); 705 return a; 706 }, 707 loadScripts: function (a, b, c) { 708 if (dnn.scripts == null) { 709 var e = function (f, g, h) { 710 return function () { 711 dnn.dom.loadScripts(f, g, h); 712 }; 713 }; 714 dnn.dom.loadScript( 715 dnn.dom.getScriptPath() + "dnn.scripts.js", 716 null, 717 e(a, b, c), 718 ); 719 return; 720 } 721 var d = new dnn.scripts.ScriptBatchRequest(a, b, c); 722 d.load(); 723 }, 724 scriptStatus: function (c) { 725 var b = this.scriptFile(c); 726 if (this.scripts[b]) { 727 return this.scripts[b].status; 728 } 729 var a = this.getScript(c); 730 if (a != null) { 731 return "complete"; 732 } else { 733 return ""; 734 } 735 }, 736 setScriptLoaded: function (b) { 737 var a = this.scriptFile(b); 738 if (this.scripts[a] && dnn.dom.scripts[a].status != "complete") { 739 dnn.dom.scripts[a].complete(); 740 } 741 }, 742 navigate: function (b, a) { 743 if (a != null && a.length > 0) { 744 if (a == "_blank" || a == "_new") { 745 window.open(b); 746 } else { 747 document.frames[a].location.href = b; 748 } 749 } else { 750 if (Sys.Browser.agent === Sys.Browser.InternetExplorer) { 751 window.navigate(b); 752 } else { 753 window.location.href = b; 754 } 755 } 756 return false; 757 }, 758 setCookie: function (b, f, h, e, d, c, a) { 759 var g; 760 if (h) { 761 g = new Date(); 762 g.setTime(g.getTime() + h * 24 * 60 * 60 * 1000); 763 } 764 if (a) { 765 g = new Date(); 766 g.setTime(g.getTime() + a); 767 } 768 document.cookie = 769 b + 770 "=" + 771 escape(f) + 772 (g ? "; expires=" + g.toGMTString() : "") + 773 (e ? "; path=" + e : "") + 774 (d ? "; domain=" + d : "") + 775 (c ? "; secure" : ""); 776 if (document.cookie.length > 0) { 777 return true; 778 } 779 }, 780 getCurrentStyle: function (b, c) { 781 var a = Sys.UI.DomElement._getCurrentStyle(b); 782 if (a) { 783 return a[c]; 784 } 785 return ""; 786 }, 787 getFormPostString: function (a) { 788 var c = ""; 789 if (a != null) { 790 if (a.tagName && a.tagName.toLowerCase() == "form") { 791 for (var b = 0; b < a.elements.length; b++) { 792 c += this.getElementPostString(a.elements[b]); 793 } 794 } else { 795 c = this.getElementPostString(a); 796 for (var b = 0; b < a.childNodes.length; b++) { 797 c += this.getFormPostString(a.childNodes[b]); 798 } 799 } 800 } 801 return c; 802 }, 803 getElementPostString: function (a) { 804 var c; 805 if (a.tagName) { 806 c = a.tagName.toLowerCase(); 807 } 808 if (c == "input") { 809 var d = a.type.toLowerCase(); 810 if ( 811 d == "text" || 812 d == "password" || 813 d == "hidden" || 814 ((d == "checkbox" || d == "radio") && a.checked) 815 ) { 816 return a.name + "=" + dnn.encode(a.value, false) + "&"; 817 } 818 } else { 819 if (c == "select") { 820 for (var b = 0; b < a.options.length; b++) { 821 if (a.options[b].selected) { 822 return a.name + "=" + dnn.encode(a.options[b].value, false) + "&"; 823 } 824 } 825 } else { 826 if (c == "textarea") { 827 return a.name + "=" + dnn.encode(a.value, false) + "&"; 828 } 829 } 830 } 831 return ""; 832 }, 833 appendChild: function (b, a) { 834 return b.appendChild(a); 835 }, 836 removeChild: function (a) { 837 return a.parentNode.removeChild(a); 838 }, 839 createElement: function (a) { 840 return document.createElement(a.toLowerCase()); 841 }, 842}); 843dnn.dom.leakEvt = function (c, a, b) { 844 this.name = c; 845 this.ctl = a; 846 this.ptr = b; 847}; 848dnn.dom.leakEvt.registerClass("dnn.dom.leakEvt"); 849dnn.dom.eventObject = function (b, a) { 850 this.object = b; 851 this.srcElement = a; 852};
853dnn.dom.eventObject.registerClass("dnn.dom.eventObject"); 854dnn.dom.browserObject = function () { 855 this.InternetExplorer = "ie"; 856 this.Netscape = "ns"; 857 this.Mozilla = "mo"; 858 this.Opera = "op"; 859 this.Safari = "safari"; 860 this.Konqueror = "kq"; 861 this.MacIE = "macie"; 862 var b; 863 var d = navigator.userAgent.toLowerCase(); 864 if (d.indexOf("konqueror") != -1) { 865 b = this.Konqueror; 866 } else { 867 if (d.indexOf("msie") != -1 && d.indexOf("mac") != -1) { 868 b = this.MacIE; 869 } else { 870 if (Sys.Browser.agent === Sys.Browser.InternetExplorer) { 871 b = this.InternetExplorer; 872 } else { 873 if (Sys.Browser.agent === Sys.Browser.FireFox) { 874 b = this.Mozilla; 875 } else { 876 if (Sys.Browser.agent === Sys.Browser.Safari) { 877 b = this.Safari; 878 } else { 879 if (Sys.Browser.agent === Sys.Browser.Opera) { 880 b = this.Opera; 881 } else { 882 b = this.Mozilla; 883 } 884 } 885 } 886 } 887 } 888 } 889 this.type = b; 890 this.version = Sys.Browser.version; 891 var c = navigator.userAgent.toLowerCase(); 892 if (this.type == this.InternetExplorer) { 893 var a = navigator.appVersion.split("MSIE"); 894 this.version = parseFloat(a[1]); 895 } 896 if (this.type == this.Netscape) { 897 var a = c.split("netscape"); 898 this.version = parseFloat(a[1].split("/")[1]); 899 } 900}; 901dnn.dom.browserObject.prototype = { 902 toString: function () { 903 return this.type + " " + this.version; 904 }, 905 isType: function () { 906 for (var a = 0; a < arguments.length; a++) { 907 if (dnn.dom.browser.type == arguments[a]) { 908 return true; 909 } 910 } 911 return false; 912 }, 913}; 914dnn.dom.browserObject.registerClass("dnn.dom.browserObject"); 915dnn.dom.browser = new dnn.dom.browserObject(); 916if (typeof $ == "undefined") { 917 window.$ = function $() { 918 var ary = new Array(); 919 for (var i = 0; i < arguments.length; i++) { 920 var arg = arguments[i]; 921 var ctl; 922 if (typeof arg == "string") ctl = dnn.dom.getById(arg); 923 else ctl = arg; 924 if ( 925 ctl != null && 926 typeof Element != "undefined" && 927 typeof Element.extend != "undefined" 928 ) 929 Element.extend(ctl); 930 if (arguments.length == 1) return ctl; 931 ary[ary.length] = ctl; 932 } 933 return ary; 934 }; 935} 936try { 937 document.execCommand("BackgroundImageCache", false, true); 938} catch (err) {} 939Sys.Application.add_load(dnn._onload);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.