var cbeVersion = "v4b10", cbeDocumentId = "idDocument", cbeWindowId = "idWindow", cbeAll = new Array(); /*window.onload = function () { //cbeInitialize(); if (window.windowOnload) { window.windowOnload(); } }; */ window.onunload = function () { if (window.windowOnunload) { window.windowOnunload(); } if (window.cbeDebugObj) { window.cbeDebugObj = null; } for (var A = 0; A < cbeAll.length; A++) { cbeAll[A].ele.cbe = null; cbeAll[A].ele = null; cbeAll[A] = null; } }; function CrossBrowserNode() { this.parentNode = null; this.childNodes = 0; this.firstChild = null; this.lastChild = null; this.previousSibling = null; this.nextSibling = null; } CrossBrowserNode.prototype.appendNode = function (A) { if (A) { if (!this.firstChild) { this.firstChild = A; } else { A.previousSibling = this.lastChild; this.lastChild.nextSibling = A; } A.parentNode = this; this.lastChild = A; ++this.childNodes; } return A; }; CrossBrowserElement.prototype = new CrossBrowserNode; function CrossBrowserElement(A) { this.left = domLeft; this.top = domTop; this.width = domWidth; this.height = domHeight; this.offsetLeft = domOffsetLeft; this.offsetTop = domOffsetTop; this.pageX = domPageX; this.pageY = domPageY; this.zIndex = domZIndex; this.innerHtml = domInnerHtml; this.visibility = domVisibility; this.color = domColor; this.background = domBackground; this.clip = domClip; if (is.ie) { this.left = ieLeft; this.top = ieTop; if (is.ie6up && document.compatMode == "CSS1Compat") { this.width = domWidth; this.height = domHeight; } else { this.width = ieWidth; this.height = ieHeight; } } else { if (is.opera) { this.left = ieLeft; this.top = ieTop; this.width = ieWidth; this.height = ieHeight; this.clip = cbeReturnVoid; if (!(is.opera || is.opera8)) { this.innerHtml = cbeReturnVoid; } } else { if (is.nav4) { this.left = nnLeft; this.top = nnTop; this.pageX = nnPageX; this.pageY = nnPageY; this.width = nnWidth; this.height = nnHeight; this.offsetLeft = nnOffsetLeft; this.offsetTop = nnOffsetTop; this.visibility = nnVisibility; this.zIndex = nnZIndex; this.background = nnBackground; this.color = cbeReturnZero; this.clip = nnClip; this.innerHtml = nnInnerHtml; } } } this.index = cbeAll.length; cbeAll[this.index] = this; this.w = this.h = this.x = this.y = 0; if (window.cbeEventJsLoaded) { this.listeners = new Array(); } if (A) { cbeBindElement(this, A); } } function cbeBindElement(A, B) { if (!A || !B) { return; } if (B == window) { A.id = B.id = cbeWindowId; } else { if (B == document) { A.id = B.id = cbeDocumentId; } else { A.id = B.id; } } A.ele = B; A.ele.cbe = A; A.parentElement = cbeGetParentElement(B); if (A.index > 1) { if (is.nav4) { A.w = B.clip.width; A.h = B.clip.height; } else { if (is.opera) { A.w = B.style.pixelWidth; A.h = B.style.pixelHeight; } else { A.w = B.offsetWidth; A.h = B.offsetHeight; } } } } function cbeInitialize() { var i, ele, divArray, cbe; if (!document.getElementById) { document.getElementById = cbeGetElementById; } cbe = new CrossBrowserElement(window); cbe = new CrossBrowserElement(document); divArray = cbeGetElementsByTagName("DIV"); for (i = 0; i < divArray.length; i++) { ele = divArray[i]; if (ele.id != "") { cbe = new CrossBrowserElement(ele); } } if (!is.nav4) { divArray = cbeGetElementsByTagName("SPAN"); for (i = 0; i < divArray.length; i++) { ele = divArray[i]; if (ele.id != "") { cbe = new CrossBrowserElement(ele); } } } cbeCreateTree(); if (window.cbeEventJsLoaded && (is.nav4 || is.opera)) { window.cbe.addEventListener("resize", cbeDefaultResizeListener); } with (window.cbe) { left = top = pageX = pageY = offsetLeft = offsetTop = zIndex = cbeReturnZero; visibility = color = background = cbeReturnNull; } with (document.cbe) { left = top = pageX = pageY = offsetLeft = offsetTop = zIndex = cbeReturnZero; visibility = color = background = cbeReturnNull; } } function cbeCreateTree(){ var B; for(var A=1;A= A + F && D <= A + this.width() - E && B >= H + G && B <= H + this.height() - C); }; CrossBrowserElement.prototype.moveTo = function (B, C, D, A) { if (isFinite(B)) { this.left(B); this.top(C); } else { this.cardinalPosition(B, C, D); this.left(this.x); this.top(this.y); } if (A) { cbeEval(A, this); } }; CrossBrowserElement.prototype.moveBy = function (B, A, C) { if (B) { this.left(this.left() + B); } if (A) { this.top(this.top() + A); } if (C) { cbeEval(C, this); } }; function domLeft(A) { if (arguments.length) { this.ele.style.left = A + "px"; } else { return parseInt(this.ele.style.left); } } function ieLeft(A) { if (arguments.length) { this.ele.style.pixelLeft = A; } else { return this.ele.style.pixelLeft; } } function nnLeft(A) { if (arguments.length) { this.ele.left = A; } else { return this.ele.left; } } function domTop(A) { if (arguments.length) { this.ele.style.top = A + "px"; } else { return parseInt(this.ele.style.top); } } function ieTop(A) { if (arguments.length) { this.ele.style.pixelTop = A; } else { return this.ele.style.pixelTop; } } function nnTop(A) { if (arguments.length) { this.ele.top = A; } else { return this.ele.top; } } function nnOffsetLeft() { var B = this.parentElement; var A = this.ele.pageX - B.pageX; if (isNaN(A)) { A = this.ele.pageX; } return A; } function nnOffsetTop() { var A = this.parentElement; var B = this.ele.pageY - A.pageY; if (isNaN(B)) { B = this.ele.pageY; } return B; } function domOffsetLeft() { var A = this.ele.offsetLeft; var B = this.ele.offsetParent; while (B && !B.cbe) { A += B.offsetLeft; B = B.offsetParent; } return A; } function domOffsetTop() { var B = this.ele.offsetTop; var A = this.ele.offsetParent; while (A && !A.cbe) { B += A.offsetTop; A = A.offsetParent; } return B; } function nnPageX() { return this.ele.pageX; } function nnPageY() { return this.ele.pageY; } function domPageX() { var A = this.offsetLeft(); var B = this.parentNode; if (B) { while (B.index > 1) { A += B.offsetLeft(); B = B.parentNode; } } return A; } function domPageY() { var B = this.offsetTop(); var A = this.parentNode; if (A) { while (A.index > 1) { B += A.offsetTop(); A = A.parentNode; } } return B; } CrossBrowserElement.prototype.sizeTo = function (B, A) { this.width(B); this.height(A); }; CrossBrowserElement.prototype.sizeBy = function (A, B) { this.width(this.width() + A); this.height(this.height() + B); }; CrossBrowserElement.prototype.resizeTo = function (C, A, B) { this.sizeTo(C, A); this.clip("auto"); cbeEval(B, this); }; CrossBrowserElement.prototype.resizeBy = function (B, C, A) { this.sizeBy(B, C); this.clip("auto"); cbeEval(A, this); }; function domWidth(A) { if (arguments.length) { A = Math.round(A); if (is.ie6up || (is.gecko && !is.konq)) { css1SetWidth(this.ele, A); } else { this.ele.style.width = A + "px"; } this.w = A; } else { if (this.index <= 1) { this.w = cbeInnerWidth(); } } return this.w; } function ieWidth(A) { if (arguments.length) { this.w = Math.round(A); this.ele.style.pixelWidth = A; } else { if (this.index <= 1) { this.w = cbeInnerWidth(); } } return this.w; } function nnWidth(A) { if (arguments.length) { this.w = Math.round(A); } else { if (this.index <= 1) { this.w = cbeInnerWidth(); } } return this.w; } function domHeight(A) { if (arguments.length) { A = Math.round(A); if (is.ie6up || (is.gecko && !is.konq)) { css1SetHeight(this.ele, A); } else { this.ele.style.height = A + "px"; } this.h = A; } else { if (this.index <= 1) { this.h = cbeInnerHeight(); } } return this.h; } function ieHeight(A) { if (arguments.length) { this.h = Math.round(A); this.ele.style.pixelHeight = A; } else { if (this.index <= 1) { this.h = cbeInnerHeight(); } } return this.h; } function nnHeight(A) { if (arguments.length) { this.h = Math.round(A); } else { if (this.index <= 1) { this.h = cbeInnerHeight(); } } return this.h; } function css1SetWidth(D, B) { var A, C; if (is.gecko) { A = document.defaultView.getComputedStyle(D, "").getPropertyValue("width"); } else { A = D.currentStyle.width; } A = parseInt(A); if (!isNaN(A)) { C = D.offsetWidth - A; B -= C; } D.style.width = B + "px"; } function css1SetHeight(D, C) { var B, A; if (is.gecko) { B = document.defaultView.getComputedStyle(D, "").getPropertyValue("height"); } else { B = D.currentStyle.height; } B = parseInt(B); if (!isNaN(B)) { A = D.offsetHeight - B; C -= A; } D.style.height = C + "px"; } CrossBrowserElement.prototype.scrollLeft = function () { var A = 0; if (this.ele.scrollLeft) { A = this.ele.scrollLeft; } else { if (this.index <= 1) { A = cbePageXOffset(); } } return A; }; CrossBrowserElement.prototype.scrollTop = function () { var A = 0; if (this.ele.scrollTop) { A = this.ele.scrollTop; } else { if (this.index <= 1) { A = cbePageYOffset(); } } return A; }; CrossBrowserElement.prototype.show = function () { this.visibility(1); }; CrossBrowserElement.prototype.hide = function () { this.visibility(0); }; function domVisibility(A) { if (arguments.length) { if (A) { this.ele.style.visibility = is.opera ? "visible" : "inherit"; } else { this.ele.style.visibility = "hidden"; } } else { return (this.ele.style.visibility == "visible" || this.ele.style.visibility == "inherit" || this.ele.style.visibility == ""); } } function nnVisibility(A) { if (arguments.length) { if (A) { this.ele.visibility = "inherit"; } else { this.ele.visibility = "hide"; } } else { return (this.ele.visibility == "show" || this.ele.visibility == "inherit" || this.ele.visibility == ""); } } function domZIndex(A) { if (arguments.length) { this.ele.style.zIndex = A; } else { return this.ele.style.zIndex; } } function nnZIndex(A) { if (arguments.length) { this.ele.zIndex = A; } else { return this.ele.zIndex; } } function domBackground(A, B) { if (arguments.length) { if (!A) { A = "transparent"; } if (!is.opera) { this.ele.style.backgroundColor = A; } else { this.ele.style.background = A; } if (arguments.length == 2) { this.ele.style.backgroundImage = "url(" + B + ")"; } } else { if (!is.opera) { return this.ele.style.backgroundColor; } else { return this.ele.style.background; } } } function nnBackground(B, C) { if (arguments.length) { if (B == "transparent") { B = null; } this.ele.bgColor = B; if (arguments.length == 2) { this.ele.background.src = C || null; } } else { var A = this.ele.bgColor; if (window.cbeUtilJsLoaded) { A = cbeHexString(A, 6, "#"); } return A; } } function domColor(A) { if (arguments.length) { this.ele.style.color = A; } else { return this.ele.style.color; } } function domClip(E, C, A, D) { if (arguments.length == 4) { var B = "rect(" + E + "px " + C + "px " + A + "px " + D + "px)"; this.ele.style.clip = B; } else { this.clip(0, this.ele.offsetWidth, this.ele.offsetHeight, 0); } } function nnClip(D, B, A, C) { if (arguments.length == 4) { this.ele.clip.top = D; this.ele.clip.right = B; this.ele.clip.bottom = A; this.ele.clip.left = C; } else { this.clip(0, this.width(), this.height(), 0); } } function domInnerHtml(A) { if (arguments.length) { this.ele.innerHTML = A; } else { return this.ele.innerHTML; } } function nnInnerHtml(A) { if (arguments.length) { if (A == "") { A = " "; } this.ele.document.open(); this.ele.document.write(A); this.ele.document.close(); } else { return ""; } } CrossBrowserElement.prototype.cardinalPosition = function (F, B, G) { if (typeof (F) != "string") { window.status = "cardinalPosition() error: cp = " + F + ", id = " + this.id; return; } var L = this.left(); var I = this.top(); var M = this.width(); var C = this.height(); var O = this.parentNode.width(); var D = this.parentNode.height(); var K = this.parentNode.scrollLeft(); var H = this.parentNode.scrollTop(); var N = K + O; var A = H + D; var J = K + Math.floor((O - M) / 2); var E = H + Math.floor((D - C) / 2); if (!B) { B = 0; } else { if (G) { B = -B; } K += B; H += B; N -= B; A -= B; } switch (F.toLowerCase()) { case "n": L = J; if (G) { I = H - C; } else { I = H; } break; case "ne": if (G) { L = N; I = H - C; } else { L = N - M; I = H; } break; case "e": I = E; if (G) { L = N; } else { L = N - M; } break; case "se": if (G) { L = N; I = A; } else { L = N - M; I = A - C; } break; case "s": L = J; if (G) { I = H - C; } else { I = A - C; } break; case "sw": if (G) { L = K - M; I = A; } else { L = K; I = A - C; } break; case "w": I = E; if (G) { L = K - M; } else { L = K; } break; case "nw": if (G) { L = K - M; I = H - C; } else { L = K; I = H; } break; case "cen": case "center": L = J; I = E; break; case "cenh": L = J; break; case "cenv": I = E; break; } this.x = L; this.y = I; }; function cbeInnerWidth() { var A = 0; if (is.nav4up) { A = window.innerWidth; if (document.height > window.innerHeight) { A -= 16; } } else { if (is.ie6up) { A = (document.compatMode == "CSS1Compat") ? document.documentElement.clientWidth : document.body.clientWidth; } else { if (is.ie4up) { A = document.body.clientWidth; } else { if (is.opera) { A = window.innerWidth; } } } } return A; } function cbeInnerHeight() { var A = 0; if (is.nav4up) { A = window.innerHeight; if (document.width > window.innerWidth) { A -= 16; } } else { if (is.ie6up) { A = (document.compatMode == "CSS1Compat") ? document.documentElement.clientHeight : document.body.clientHeight; } else { if (is.ie4up) { A = document.body.clientHeight; } else { if (is.opera) { A = window.innerHeight; } } } } return A; } function cbePageXOffset() { var A = 0; if (is.nav4up || is.opera) { A = window.pageXOffset; } else { if (is.ie6up) { A = (document.compatMode == "CSS1Compat") ? document.documentElement.scrollLeft : document.body.scrollLeft; } else { if (is.ie4up) { A = document.body.scrollLeft; } } } return A; } function cbePageYOffset() { var A = 0; if (is.nav4up || is.opera) { A = window.pageYOffset; } else { if (is.ie6up) { A = (document.compatMode == "CSS1Compat") ? document.documentElement.scrollTop : document.body.scrollTop; } else { if (is.ie4up) { A = document.body.scrollTop; } } } return A; } function cbeReturnZero() { return 0; } function cbeReturnNull() { return null; } function cbeReturnVoid() { } function cbeEval(exp, arg1, arg2, arg3, arg4, arg5, arg6) { if (exp) { if (typeof (exp) == "string") { eval(exp); } else { exp(arg1, arg2, arg3, arg4, arg5, arg6); } } } function ClientSnifferJr() { this.ua = navigator.userAgent.toLowerCase(); this.major = parseInt(navigator.appVersion); this.minor = parseFloat(navigator.appVersion); if (document.addEventListener && document.removeEventListener) { this.dom2events = true; } if (document.getElementById) { this.dom1getbyid = true; } this.opera = this.ua.indexOf("opera") != -1; if (this.opera) { this.opera5 = (this.ua.indexOf("opera 5") != -1 || this.ua.indexOf("opera/5") != -1); this.opera6 = (this.ua.indexOf("opera 6") != -1 || this.ua.indexOf("opera/6") != -1); this.opera7 = (this.ua.indexOf("opera 7") != -1 || this.ua.indexOf("opera/7") != -1); this.opera8 = (this.ua.indexOf("opera 8") != -1 || this.ua.indexOf("opera/8") != -1); this.operaupto7 = (this.opera5 || this.opera6 || this.opera8) && (!this.opera8); return; } this.konq = this.ua.indexOf("konqueror") != -1; this.ie = this.ua.indexOf("msie") != -1; if (this.ie) { this.ie3 = this.major < 4; this.ie4 = (this.major == 4 && this.ua.indexOf("msie 5") == -1 && this.ua.indexOf("msie 6") == -1); this.ie4up = this.major >= 4; this.ie5 = (this.major == 4 && this.ua.indexOf("msie 5.0") != -1); this.ie5up = !this.ie3 && !this.ie4; this.ie6 = (this.major == 4 && this.ua.indexOf("msie 6.0") != -1); this.ie7 = (this.major == 4 && this.ua.indexOf("msie 7.0") != -1); this.ie6up = (!this.ie3 && !this.ie4 && !this.ie5 && this.ua.indexOf("msie 5.5") == -1); this.ie6sp = (this.major == 4 && this.ua.indexOf("msie 6.0") != -1 && navigator.appMinorVersion.indexOf("SP") != -1); return; } this.hotjava = this.ua.indexOf("hotjava") != -1; this.webtv = this.ua.indexOf("webtv") != -1; this.aol = this.ua.indexOf("aol") != -1; if (this.hotjava || this.webtv || this.aol) { return; } this.gecko = this.ua.indexOf("gecko") != -1; this.nav = (this.ua.indexOf("mozilla") != -1 && this.ua.indexOf("spoofer") == -1 && this.ua.indexOf("compatible") == -1); if (this.nav) { this.nav4 = this.major == 4; this.nav4up = this.major >= 4; this.nav5up = this.major >= 5; this.nav6 = this.major == 5; this.nav7 = (this.ua.indexOf("7.") != -1); this.nav6up = this.nav5up; } } window.is = new ClientSnifferJr(); if (is.konq) { is.gecko = true; } if (is.aol) { is.ie = true; }