if (typeof window.RadControlsNamespace == "undefine\x64") { window.RadControlsNamespace = {}; } RadControlsNamespace.Alpha = function(O, o, Y, I, A) { this.Element = O; this.StartValue = o; this.EndValue = Y; this.Ticker = new RadControlsNamespace.Ticker(this); this.Ticker.Configure({ Duration: I, FramesCount: A }); this.Amount = Math.round((Y - o) / A); }; RadControlsNamespace.Alpha.prototype.Show = function() { this.Coef = 1; this.Ticker.Start(); this.Value = this.StartValue; this.UpdateOpacity(); }; RadControlsNamespace.Alpha.prototype.Hide = function() { this.Coef = -1; this.Ticker.Start(); this.Value = this.EndValue; this.UpdateOpacity(); }; RadControlsNamespace.Alpha.prototype.OnTick = function() { this.Value += this.Coef * this.Amount; this.UpdateOpacity(); }; RadControlsNamespace.Alpha.prototype.OnTickEnd = function() { this.Element.style.filter = ""; }; RadControlsNamespace.Alpha.prototype.UpdateOpacity = function() { var U = this.Element; U.style.filter = "\x61lpha\x28\x6fpaci\x74\x79=" + (this.Value) + ")"; var Z = this.Value / 100; U.style.z = Z; U.style["-\x6d\x6fz-opac\x69\x74y"] = Z; U.style["-khtml-o\x70\x61cit\x79"] = Z; }; ; if (typeof window.RadControlsNamespace == "\x75\x6edefined") { window.RadControlsNamespace = {}; } window.RadControlsNamespace.Box = { GetOuterWidth: function(O) { return O.offsetWidth; }, GetOuterHeight: function(O) { return O.offsetHeight; }, SetOuterHeight: function(O, height) { O.style.height = height + "p\x78"; var X = O.offsetHeight - height; O.style.height = (height - X) + "\x70x"; }, SetOuterWidth: function(O, width) { if (width == 0) { O.style.width = ""; } else { O.style.width = width + "p\x78"; var X = O.offsetWidth - width; O.style.width = (width - X) + "\x70x"; } }, GetPropertyValue: function(O, W) { var computedStyle = this.GetStyle(O); return this.GetStyleValues(computedStyle, W); }, GetStyle: function(O) { if (document.defaultView && document.defaultView.getComputedStyle) { return document.defaultView.getComputedStyle(O, null); } else if (O.currentStyle) { return O.currentStyle; } else { return O.style; } } }; ; if (typeof window.RadControlsNamespace == "un\x64\x65\x66ine\x64") { window.RadControlsNamespace = {}; } window.RadControlsNamespace.Browser = {}; window.RadControlsNamespace.Browser.ParseBrowserInfo = function() { this.IsMacIE = (navigator.appName == "\x4dicro\x73\x6fft In\x74\x65rne\x74 Explo\x72\x65r") && ((navigator.userAgent.toLowerCase().indexOf("m\x61c") != -1) || (navigator.appVersion.toLowerCase().indexOf("mac") != -1)); this.IsSafari = (navigator.userAgent.toLowerCase().indexOf("saf\x61\x72i") != -1); this.IsMozilla = window.netscape && !window.opera; this.IsOpera = window.opera; this.IsOpera9 = window.opera && (parseInt(window.opera.version()) > 8); this.IsIE = !this.IsMacIE && !this.IsMozilla && !this.IsOpera && !this.IsSafari; this.StandardsMode = this.IsSafari || this.IsOpera9 || this.IsMozilla || document.compatMode == "\x43\x53S1Compa\x74"; this.IsMac = /\x4d\x61\x63/.test(navigator.userAgent); }; RadControlsNamespace.Browser.ParseBrowserInfo(); ; if (typeof window.RadControlsNamespace == "\x75ndefined") { window.RadControlsNamespace = {}; } RadControlsNamespace.DomEventMixin = { Initialize: function(w) { w.CreateEventHandler = this.CreateEventHandler; w.AttachDomEvent = this.AttachDomEvent; w.DetachDomEvent = this.DetachDomEvent; w.DisposeDomEventHandlers = this.DisposeDomEventHandlers; w.DomEventHandlers = []; w._domEventHandlingEnabled = true; w.EnableDomEventHandling = this.EnableDomEventHandling; w.DisableDomEventHandling = this.DisableDomEventHandling; }, EnableDomEventHandling: function() { this._domEventHandlingEnabled = true; }, DisableDomEventHandling: function() { this._domEventHandlingEnabled = false; }, CreateEventHandler: function(V) { var T = this; return function(e) { if (!T._domEventHandlingEnabled) { return false; } var t = new RadControlsNamespace.DomEvent(e || window.event); return T[V](t); }; }, AttachDomEvent: function(O, S, R) { var eventHandler = this.CreateEventHandler(R); this.DomEventHandlers[this.DomEventHandlers.length] = { "\x45\x6c\x65ment": O, "\x4e\x61me": S, "\x48andler": eventHandler }; if (O.addEventListener) { O.addEventListener(S, eventHandler, false); } else if (O.attachEvent) { O.attachEvent("on" + S, eventHandler); } }, DetachDomEvent: function(O, S, eventHandler) { if (!O) { return; } if (O.removeEventListener) { O.removeEventListener(S, eventHandler, false); } else if (O.detachEvent) { O.detachEvent("\x6f\x6e" + S, eventHandler); } }, DisposeDomEventHandlers: function() { for (var i = 0; i < this.DomEventHandlers.length; i++) { this.DetachDomEvent(this.DomEventHandlers[i].Element, this.DomEventHandlers[i].Name, this.DomEventHandlers[i].Handler); this.DomEventHandlers[i].Element = null; } } }; RadControlsNamespace.DomEvent = function(e) { this.Event = e; for (var i in e) { if (!this[i]) this[i] = e[i]; } if (!e.target) { this.target = e.srcElement; this.relatedTarget = e.type == "mouseout" ? e.toElement : e.fromElement; this.which = e.keyCode; } }; RadControlsNamespace.DomEvent.prototype.preventDefault = function() { if (this.Event.preventDefault) { this.Event.preventDefault(); } else { this.Event.returnValue = false; } }; RadControlsNamespace.DomEvent.prototype.stopPropagation = function() { if (this.Event.stopPropagation) { this.Event.stopPropagation(); } else { this.Event.cancelBubble = true; } }; ; if (typeof window.RadControlsNamespace == "u\x6e\x64efined") { window.RadControlsNamespace = {}; } RadControlsNamespace.Ease = function(O, r, offsetX, offsetY, Q) { this.Element = O; this.Overlay = new RadControlsNamespace.Overlay(O); this.OffsetX = offsetX; this.OffsetY = offsetY; this.Invert = false; var parent = this.Element.parentNode; this.ExpandConfig = this.MergeConfig(r.ExpandAnimation); this.CollapseConfig = this.MergeConfig(r.CollapseAnimation); this.Ticker = new RadControlsNamespace.Ticker(this); this.Listener = Q; }; RadControlsNamespace.Ease.Coef = 0; RadControlsNamespace.Ease.prototype = { SetSide: function(P) { this.InitialSide = P.charAt(0).toUpperCase() + P.substr(1, P.length - 1); this.Invert = false; if (P == "\x72\x69\x67ht") { P = "left"; this.Invert = true; } if (P == "botto\x6d") { P = "top"; this.Invert = true; } this.Side = P; this.Horizontal = P == "\x6ceft"; }, MergeConfig: function(N) { if (!N.Type) { N.Type = "OutQui\x6e\x74"; } if (!N.Duration) { N.Duration = 200; } return N; }, GetSide: function() { return this.InitialSide; }, ShowElements: function() { this.Element.parentNode.style.display = "\142\x6c\x6fck"; this.Element.style.display = "\x62lock"; this.Element.parentNode.style.overflow = "hidden"; }, Dispose: function() { this.Ticker.Stop(); this.Element = null; this.Overlay.Dispose(); }, ResetState: function(n) { this.ShowElements(); if (n) { var M = (this.Horizontal ? this.Element.offsetWidth : this.Element.offsetHeight); if (!this.Invert) { M = -M; } this.SetPosition(M); } this.InitialPosition = this.GetPosition(); }, UpdateContainerSize: function() { if (!this.Element.parentNode) { return; } if (this.Invert) { if (this.Side == "left") { this.Element.parentNode.style.height = this.Element.offsetHeight + "px"; } else if (this.Side == "\x74op") { this.Element.parentNode.style.width = this.Element.offsetWidth + "\x70x"; } return; } var top = 0; var left = 0; if (this.Element.style.top != "") { top = Math.max(parseInt(this.Element.style.top), 0); } if (this.Element.style.left != "") { left = Math.max(parseInt(this.Element.style.left), 0); } if (this.Element.parentNode.style.height != this.Element.offsetHeight + top + "\160\x78") { this.Element.parentNode.style.height = (this.Element.offsetHeight + top) + "\x70x"; } if (this.Element.parentNode.style.width != (this.Element.offsetWidth + left) + "px") { this.Element.parentNode.style.width = (this.Element.offsetWidth + left) + "\x70\170"; } }, GetSize: function() { return this.Horizontal ? this.Element.offsetWidth : this.Element.offsetHeight; }, GetPosition: function() { if (!this.Element.style[this.Side]) { return 0; } return parseInt(this.Element.style[this.Side]); }, SetPosition: function(value) { this.Element.style[this.Side] = value + "p\x78"; }, Out: function() { this.ResetState(); this.Direction = -1; if (this.Invert) { this.Delta = this.GetSize() - this.GetPosition(); } else { this.Delta = this.GetPosition() - this.GetSize(); } this.Start(this.CollapseConfig); }, In: function() { this.ResetState(true); this.Direction = 1; this.Delta = -this.GetPosition(); this.Start(this.ExpandConfig); }, Start: function(m) { if (m.Type == "\x4eone") { this.Ticker.Stop(); this.ChangePosition(this.InitialPosition + this.Delta); this.Overlay.Update(); return; } this.Tween = m.Type; this.Ticker.Configure(m); this.Ticker.Start(); this.UpdateContainerSize(); }, ChangePosition: function(L) { if (isNaN(L)) return; var l, K, k; if (this.Invert) { if (this.Horizontal) { l = this.Element.offsetWidth; K = "\x77\x69\x64th"; k = this.OffsetX; } else { l = this.Element.offsetHeight; K = "\x68eight"; k = this.OffsetY; } this.SetPosition(0); var J = Math.max(1, l - L) + "\x70\170"; this.Element.parentNode.style[K] = J; this.Element.parentNode.style[this.Side] = ((l - L + k) * -1) + "px"; } else { this.Element.style[this.Side] = L + "p\x78"; } }, OnTick: function(time) { var L = Math.round(Penner[this.Tween](time, this.InitialPosition, this.Delta, this.Ticker.Duration)); if (L == this.InitialPosition + this.Delta) { this.Ticker.Stop(); } this.ChangePosition(L); this.UpdateContainerSize(); this.Overlay.Update(); }, OnTickEnd: function() { try { if (this.Direction == 0) { return; } if (this.Direction > 0) { this.Element.parentNode.style.overflow = "visible"; } else { this.Element.parentNode.style.display = "\x6eone"; if (this.Listener) { this.Listener.OnCollapseComplete(); } } this.ChangePosition(this.InitialPosition + this.Delta); this.Direction = 0; } catch (e) { } } }; ; var Penner = {}; Penner.Linear = function(j, b, H, h) { return H * j / h + b; }; Penner.InQuad = function(j, b, H, h) { return H * (j /= h) * j + b; }; Penner.OutQuad = function(j, b, H, h) { return -H * (j /= h) * (j - 2) + b; }; Penner.InOutQuad = function(j, b, H, h) { if ((j /= h / 2) < 1) return H / 2 * j * j + b; return -H / 2 * ((--j) * (j - 2) - 1) + b; }; Penner.InCubic = function(j, b, H, h) { return H * (j /= h) * j * j + b; }; Penner.OutCubic = function(j, b, H, h) { return H * ((j = j / h - 1) * j * j + 1) + b; }; Penner.InOutCubic = function(j, b, H, h) { if ((j /= h / 2) < 1) return H / 2 * j * j * j + b; return H / 2 * ((j -= 2) * j * j + 2) + b; }; Penner.InQuart = function(j, b, H, h) { return H * (j /= h) * j * j * j + b; }; Penner.OutQuart = function(j, b, H, h) { return -H * ((j = j / h - 1) * j * j * j - 1) + b; }; Penner.InOutQuart = function(j, b, H, h) { if ((j /= h / 2) < 1) return H / 2 * j * j * j * j + b; return -H / 2 * ((j -= 2) * j * j * j - 2) + b; }; Penner.InQuint = function(j, b, H, h) { return H * (j /= h) * j * j * j * j + b; }; Penner.OutQuint = function(j, b, H, h) { return H * ((j = j / h - 1) * j * j * j * j + 1) + b; }; Penner.InOutQuint = function(j, b, H, h) { if ((j /= h / 2) < 1) return H / 2 * j * j * j * j * j + b; return H / 2 * ((j -= 2) * j * j * j * j + 2) + b; }; Penner.InSine = function(j, b, H, h) { return -H * Math.cos(j / h * (Math.PI / 2)) + H + b; }; Penner.OutSine = function(j, b, H, h) { return H * Math.sin(j / h * (Math.PI / 2)) + b; }; Penner.InOutSine = function(j, b, H, h) { return -H / 2 * (Math.cos(Math.PI * j / h) - 1) + b; }; Penner.InExpo = function(j, b, H, h) { return (j == 0) ? b : H * Math.pow(2, 10 * (j / h - 1)) + b; }; Penner.OutExpo = function(j, b, H, h) { return (j == h) ? b + H : H * (-Math.pow(2, -10 * j / h) + 1) + b; }; Penner.InOutExpo = function(j, b, H, h) { if (j == 0) return b; if (j == h) return b + H; if ((j /= h / 2) < 1) return H / 2 * Math.pow(2, 10 * (j - 1)) + b; return H / 2 * (-Math.pow(2, -10 * --j) + 2) + b; }; Penner.InCirc = function(j, b, H, h) { return -H * (Math.sqrt(1 - (j /= h) * j) - 1) + b; }; Penner.OutCirc = function(j, b, H, h) { return H * Math.sqrt(1 - (j = j / h - 1) * j) + b; }; Penner.InOutCirc = function(j, b, H, h) { if ((j /= h / 2) < 1) return -H / 2 * (Math.sqrt(1 - j * j) - 1) + b; return H / 2 * (Math.sqrt(1 - (j -= 2) * j) + 1) + b; }; Penner.InElastic = function(j, b, H, h, a, p) { if (j == 0) return b; if ((j /= h) == 1) return b + H; if (!p) p = h * .3; if ((!a) || a < Math.abs(H)) { a = H; var s = p / 4; } else var s = p / (2 * Math.PI) * Math.asin(H / a); return -(a * Math.pow(2, 10 * (j -= 1)) * Math.sin((j * h - s) * (2 * Math.PI) / p)) + b; }; Penner.OutElastic = function(j, b, H, h, a, p) { if (j == 0) return b; if ((j /= h) == 1) return b + H; if (!p) p = h * .3; if ((!a) || a < Math.abs(H)) { a = H; var s = p / 4; } else var s = p / (2 * Math.PI) * Math.asin(H / a); return a * Math.pow(2, -10 * j) * Math.sin((j * h - s) * (2 * Math.PI) / p) + H + b; }; Penner.InOutElastic = function(j, b, H, h, a, p) { if (j == 0) return b; if ((j /= h / 2) == 2) return b + H; if (!p) p = h * (.3 * .15e1); if ((!a) || a < Math.abs(H)) { a = H; var s = p / 4; } else var s = p / (2 * Math.PI) * Math.asin(H / a); if (j < 1) return -.5 * (a * Math.pow(2, 10 * (j -= 1)) * Math.sin((j * h - s) * (2 * Math.PI) / p)) + b; return a * Math.pow(2, -10 * (j -= 1)) * Math.sin((j * h - s) * (2 * Math.PI) / p) * .5 + H + b; }; Penner.InBack = function(j, b, H, h, s) { if (s == undefined) s = .170158e1; return H * (j /= h) * j * ((s + 1) * j - s) + b; }; Penner.OutBack = function(j, b, H, h, s) { if (s == undefined) s = .170158e1; return H * ((j = j / h - 1) * j * ((s + 1) * j + s) + 1) + b; }; Penner.InOutBack = function(j, b, H, h, s) { if (s == undefined) s = .170158e1; if ((j /= h / 2) < 1) return H / 2 * (j * j * (((s *= (.1525e1)) + 1) * j - s)) + b; return H / 2 * ((j -= 2) * j * (((s *= (.1525e1)) + 1) * j + s) + 2) + b; }; Penner.InBounce = function(j, b, H, h) { return H - Penner.OutBounce(h - j, 0, H, h) + b; }; Penner.OutBounce = function(j, b, H, h) { if ((j /= h) < (1 / .275e1)) { return H * (.75625e1 * j * j) + b; } else if (j < (2 / .275e1)) { return H * (.75625e1 * (j -= (.15e1 / .275e1)) * j + .75) + b; } else if (j < (.25e1 / .275e1)) { return H * (.75625e1 * (j -= (.225e1 / .275e1)) * j + .9375) + b; } else { return H * (.75625e1 * (j -= (.2625e1 / .275e1)) * j + .984375) + b; } }; Penner.InOutBounce = function(j, b, H, h) { if (j < h / 2) return Penner.InBounce(j * 2, 0, H, h) * .5 + b; return Penner.OutBounce(j * 2 - h, 0, H, h) * .5 + H * .5 + b; }; ; if (typeof window.RadControlsNamespace == "\x75\x6edefine\x64") { window.RadControlsNamespace = {}; } RadControlsNamespace.EventMixin = { Initialize: function(w) { w._listeners = {}; w._eventsEnabled = true; w.AttachEvent = this.AttachEvent; w.DetachEvent = this.DetachEvent; w.RaiseEvent = this.RaiseEvent; w.EnableEvents = this.EnableEvents; w.DisableEvents = this.DisableEvents; }, DisableEvents: function() { this._eventsEnabled = false; }, EnableEvents: function() { this._eventsEnabled = true; }, AttachEvent: function(S, G) { if (!this._listeners[S]) { this._listeners[S] = []; } this._listeners[S][this._listeners[S].length] = (RadControlsNamespace.EventMixin.ResolveFunction(G)); }, DetachEvent: function(S, G) { var g = this._listeners[S]; if (!g) { return false; } var F = RadControlsNamespace.EventMixin.ResolveFunction(G); for (var i = 0; i < g.length; i++) { if (F == g[i]) { g.splice(i, 1); return true; } } return false; }, ResolveFunction: function(f) { if (typeof (f) == "functi\x6fn") { return f; } else if (typeof (window[f]) == "function") { return window[f]; } else { return new Function("\x76ar Sende\x72\x20= \x61\x72gum\x65\x6ets[\x30\135\x3b var A\x72gume\x6ets = \x61\162g\x75ments\x5b\061\x5d;" + f); } }, RaiseEvent: function(S, D) { if (!this._eventsEnabled) { return true; } var C = true; if (this[S]) { var B = RadControlsNamespace.EventMixin.ResolveFunction(this[S])(this, D); if (typeof (B) == "\x75ndefin\x65\x64") { B = true; } C = C && B; } if (!this._listeners[S]) return C; for (var i = 0; i < this._listeners[S].length; i++) { var G = this._listeners[S][i]; var B = G(this, D); if (typeof (B) == "\x75ndefined") { B = true; } C = C && B; } return C; } }; ; var JSON = { copyright: "(\x63\x292005 JSO\x4e.org", license: "http://www.\x63\x72ockf\x6f\x72d.\x63\157\x6d\x2fJS\x4f\x4e/li\x63ense\x2ehtml", stringify: function(Z, o0) { var a = []; var O0 = arguments[2] || {}; function e(s) { a[a.length] = s; } function l0(x) { var H, i, i0, Z; switch (typeof x) { case "\x6fbject": if (x) { if (x instanceof Array) { e("\x5b"); i0 = a.length; for (i = 0; i < x.length; i += 1) { Z = x[i]; if (typeof Z != "\165\x6e\x64efin\x65\144" && typeof Z != "\x66unction") { if (i0 < a.length) { e(","); } l0(Z); } } e("]"); return ""; } else if (typeof x.valueOf == "funct\x69\x6fn") { e("\x7b"); i0 = a.length; for (i in x) { Z = x[i]; if (o0 && Z == o0[i]) { continue; } var type = typeof Z; if (type == "undefine\x64" || type == "\x66unction") { continue; } if (type == "\x6f\x62ject" && !O0[i]) { continue; } if (i0 < a.length) { e(","); } l0(i); e("\072"); l0(Z); } return e("}"); } } e("null"); return ""; case "n\x75\x6dber": e(isFinite(x) ? +x : "\x6e\x75ll"); return ""; case "strin\x67": i0 = x.length; e("\042"); for (i = 0; i < i0; i += 1) { H = x.charAt(i); if (H >= " ") { if (H == "\x5c" || H == "\042") { e("\x5c"); } e(H); } else { switch (H) { case "\010": e("\x5c\x62"); break; case "\x0c": e("\134f"); break; case "\012": e("\134n"); break; case "\015": e("\134\x72"); break; case "\x09": e("\134t"); break; default: H = H.charCodeAt(); e("\134\x7500" + Math.floor(H / 16).toString(16) + (H % 16).toString(16)); } } } e("\x22"); return ""; case "\x62\x6folean": e(String(x)); return ""; default: e("null"); return ""; } } l0(Z, 0); return a.join(""); }, stringifyHashTable: function(hash, I0, o1) { var a = []; if (!o1) o1 = []; for (var i = 0; i < hash.length; i++) { var O1 = this.stringify(hash[i], o1[i]); if (O1 == "{}") continue; a[a.length] = "\042" + hash[i][I0] + "\042\x3a" + O1; } return "\x7b" + a.join("\x2c") + "}"; }, parse: function(text) { return (/^([\x20\x09\x0d\x0a\x2c\x3a\x7b\x7d\x5b\x5d]|\x22(\x5c[\x22\x5c\x2f\x62\x66\x6e\x72\x74\x75]|[^\x00-\x1f\x22\x5c]+)*\x22|\x2d?\d+(\x2e\d*)?([\x65\x45][\x2b-]?\d+)?|\x74\x72\x75\x65|\x66\x61\x6c\x73\x65|\x6e\x75\x6c\x6c)+$/.test(text)) && eval("(" + text + ")"); } }; ; if (typeof window.RadControlsNamespace == "\x75ndefined") { window.RadControlsNamespace = {}; } window.RadControlsNamespace.Overlay = function(O) { if (!this.SupportsOverlay()) { return; } this.Element = O; this.Shim = document.createElement("\x49\x46\x52AME"); this.Shim.src = "\x6aavascript:\x27\x27;"; this.Element.parentNode.appendChild(this.Shim); this.Shim.style.zIndex = "-1"; this.Shim.style.position = "absolute"; this.Shim.style.border = "0px"; this.Shim.frameBorder = 0; this.Shim.style.filter = "pro\x67\x69d:DXI\x6d\x61geT\x72\x61n\x73\146\x6f\x72m.\x4d\x69cr\x6fsof\x74\056\x41lpha(s\x74yle=0\x2c\157\x70\141c\x69ty=0\x29"; this.Shim.disabled = "disabled"; }; RadControlsNamespace.Overlay.prototype.SupportsOverlay = function() { return RadControlsNamespace.Browser.IsIE || (RadControlsNamespace.Browser.IsMozilla && RadControlsNamespace.Browser.IsMac); }; RadControlsNamespace.Overlay.prototype.Update = function() { if (!this.SupportsOverlay()) { return; } this.Shim.style.top = this.ToUnit(this.Element.style.top); this.Shim.style.left = this.ToUnit(this.Element.style.left); this.Shim.style.width = this.Element.offsetWidth + "px"; this.Shim.style.height = this.Element.offsetHeight + "px"; }; RadControlsNamespace.Overlay.prototype.ToUnit = function(value) { if (!value) return "\x30px"; return parseInt(value) + "px"; }; RadControlsNamespace.Overlay.prototype.Dispose = function() { this.Element = null; this.Shim = null; }; ; if (typeof window.RadMenuNamespace == "\x75\x6edefin\x65d") { window.RadMenuNamespace = {}; } if (typeof window.RadControlsNamespace == "undefined") { window.RadControlsNamespace = {}; } RadControlsNamespace.AppendStyleSheet = function(l1, i1, I1) { if (!I1) { return; } if (!l1) { document.write("<" + "\x6cink" + " rel=\047stylesh\x65\x65t\047\x20ty\x70\145=\x27\x74ex\x74\x2fcs\x73\047\x20hre\x66\075\x27" + I1 + "\x27 />"); } else { var o2 = document.createElement("LINK"); o2.rel = "\x73tylesheet"; o2.type = "\x74ext/css"; o2.href = I1; document.getElementById(i1 + "\x53tyleSheet\x48\157l\x64\x65r").appendChild(o2); } }; RadMenuNamespace.ItemFlow = { Vertical: 0, Horizontal: 1 }; RadMenuNamespace.ExpandDirection = { Auto: 0, Up: 1, Down: 2, Left: 3, Right: 4 }; RadMenuNamespace.ExpandDirectionPropertyName = { "1": "\x62ottom", "\062": "top", "3": "\x72ight", "\064": "\x6ceft" }; function NPMenu(i1) { var O2 = window[i1]; if (O2 != null && !O2.tagName) { O2.Dispose(); } this.DomElement = document.getElementById(i1); this.ChildItemList = NPMenu.GetFirstChildByTagName(this.DomElement, "ul"); this.StateField = document.getElementById(i1 + "_H\x69\144den"); this.Items = []; this.AllItems = []; this.OpenedItem = null; this.LastExpandedItem = null; this.ExpandAnimation = {}; this.CollapseAnimation = {}; this.CollapseDelay = 500; this.ExpandDelay = 0; this.ID = i1; this.Skin = "\x4futlook"; this.RightToLeft = false; this.EnableScreenBoundaryDetection = true; this.InUpdate = false; this.Initialized = false; this.State = {}; this.ItemState = {}; this.CausesValidation = true; this.Flow = RadMenuNamespace.ItemFlow.Horizontal; this.ClickToOpen = false; this.Enabled = true; this.Clicked = false; this.OriginalZIndex = this.DomElement.style.zIndex; RadControlsNamespace.EventMixin.Initialize(this); RadControlsNamespace.DomEventMixin.Initialize(this); } NPMenu.JSONIncludeDeep = { "Attributes": true }; NPMenu.CreateState = function(T) { T.InitialState = {}; for (var i in T) { var type = typeof T[i]; if (type == "numb\x65r" || type == "s\x74\x72ing" || type == "\x62\x6folean") T.InitialState[i] = T[i]; } }; NPMenu.GetFirstChildByTagName = function(parentNode, tagName) { var l2 = parentNode.getElementsByTagName(tagName)[0]; if (l2 && l2.parentNode == parentNode) { return l2; } return null; }; NPMenu.prototype.RenderInProgress = function() { return this.DomElement.offsetWidth == 0; }; NPMenu.prototype.Detach = function(e) { if (!(RadControlsNamespace.Browser.IsIE) || document.readyState == "\x63omplete") { document.forms[0].appendChild(this.DomElement); this.DomElement.style.position = "absolute"; this.Detached = true; } }; NPMenu.prototype.Show = function(e) { for (var i in RadMenuNamespace.ContextMenus) { RadMenuNamespace.ContextMenus[i].Hide(); } var x = this.MouseEventX(e); var y = this.MouseEventY(e); return this.ShowAt(x, y); }; NPMenu.prototype.ShowAt = function(x, y) { if (!this.Detached) { this.Detach(); } this.ShownAsContext = true; this.Ease.ShowElements(); this.Ease.UpdateContainerSize(); this.FixRootItemWidth(); this.Position(x, y); this.Ease.In(); return false; }; NPMenu.prototype.Position = function(x, y) { var i2 = RadControlsNamespace.Screen.GetViewPortSize(); x = Math.min(x, i2.width - this.DomElement.offsetWidth); y = Math.min(y, i2.height - this.DomElement.offsetHeight); if (isNaN(x)) x = 0; if (isNaN(y)) y = 0; this.DomElement.style.left = x + "\x70x"; this.DomElement.style.top = y + "\x70x"; }; NPMenu.prototype.MouseEventX = function(e) { if (e.pageX) { return e.pageX; } else if (e.clientX) { if (RadControlsNamespace.Browser.StandardsMode) { return (e.clientX + document.documentElement.scrollLeft); } return (e.clientX + document.body.scrollLeft); } }; NPMenu.prototype.MouseEventY = function(e) { if (e.pageY) { return e.pageY; } else if (e.clientY) { if (RadControlsNamespace.Browser.StandardsMode) { return (e.clientY + document.documentElement.scrollTop); } return (e.clientY + document.body.scrollTop); } }; NPMenu.prototype.EventSource = function(e) { if (e.srcElement) { return e.srcElement; } else if (e.target) { return e.target; } return null; }; NPMenu.prototype.Hide = function() { if (this.ShownAsContext) { this.Ease.Out(); this.ShownAsContext = false; } }; NPMenu.prototype.Initialize = function(r, I2) { this.LoadConfiguration(r); this.BuildInitialState(r); this.ItemData = I2; this.DetermineDirection(); this.ApplyRTL(); if (this.IsContext) { this.InitContextMenu(); } this.CreateControlHierarchy(this, 0); if (!this.Enabled) { this.Disable(); } if (this.Flow == RadMenuNamespace.ItemFlow.Vertical) { this.FixRootItemWidth(); } this.RegisterDisposeOnUnload(); this.Initialized = true; NPMenu.CreateState(this); this.RaiseEvent("OnCl\x69entLoad", null); }; NPMenu.prototype.DetermineDirection = function() { var U = this.DomElement; while (U.tagName.toLowerCase() != "html") { if (U.dir) { this.RightToLeft = (U.dir.toLowerCase() == "rtl"); return; } U = U.parentNode; } this.RightToLeft = false; }; NPMenu.prototype.ApplyRTL = function() { if (!this.RightToLeft) return; this.DomElement.dir = "ltr"; if (!this.IsContext) { this.DomElement.className += "\x20rtl\x20\x52adMe\x6e\x75_" + this.Skin + "_rtl"; } else { this.DomElement.className += "\x20rtlc\x6f\x6etext \x52\x61dMe\x6eu_" + this.Skin + "_rtl"; } }; NPMenu.prototype.InitContextMenu = function() { this.Ease = new RadControlsNamespace.Ease(this.ChildItemList, this, 0, 0, null); this.Flow = RadMenuNamespace.ItemFlow.Vertical; this.Ease.SetSide("\x74\x6fp"); this.AttachDomEvent(document, "\x63ontextmenu", "\x4fnContextMenu"); this.AttachDomEvent(document, "\x63lick", "OnDocu\x6d\x65ntCli\x63\x6b"); this.AttachDomEvent(window, "\x62lur", "\x4f\x6eWindo\x77\x42lur"); if (!RadMenuNamespace.ContextMenus) { RadMenuNamespace.ContextMenus = {}; } if (!RadMenuNamespace.ContextElements) { RadMenuNamespace.ContextElements = {}; } if (this.ContextMenuElementID) { RadMenuNamespace.ContextElements[this.ContextMenuElementID] = true; } RadMenuNamespace.ContextMenus[this.ID] = this; }; NPMenu.prototype.OnWindowBlur = function(e) { if (this.IsContext) { this.Hide(); } }; NPMenu.prototype.OnContextMenu = function(e) { this.ContextElement = document.getElementById(this.ContextMenuElementID); if (this.ContextMenuElementID && !this.ContextElement) { return; } var o3 = this.EventSource(e); if (this.ContextElement) { if (o3 == this.ContextElement || this.IsChildOf(this.ContextElement, o3)) { this.Show(e); e.preventDefault(); e.stopPropagation(); } } else if (!RadMenuNamespace.ContextElements[o3.id]) { this.Show(e); e.preventDefault(); e.stopPropagation(); } }; NPMenu.prototype.IsChildOf = function(parent, l2) { if (l2 == parent) { return false; } while (l2 && (l2 != document.body)) { if (l2 == parent) { return true; } try { l2 = l2.parentNode; } catch (e) { return false; } } return false; }; NPMenu.prototype.OnDocumentClick = function(e) { this.Hide(); }; NPMenu.prototype.Enable = function() { this.Enabled = true; this.DomElement.disabled = ""; for (var i = 0; i < this.AllItems.length; i++) { this.AllItems[i].Enable(); } }; NPMenu.prototype.Disable = function() { this.Enabled = false; this.DomElement.disabled = "\x64\x69sabled"; for (var i = 0; i < this.AllItems.length; i++) { this.AllItems[i].Disable(); } }; NPMenu.prototype.Focus = function() { this.DomElement.focus(); }; NPMenu.prototype.RegisterDisposeOnUnload = function() { if (!window.attachEvent) return; var T = this; var O3 = function() { T.Dispose(); }; window.attachEvent("\x6fnun\x6c\x6fad", O3); }; NPMenu.prototype.Dispose = function() { for (var i = 0; i < this.AllItems.length; i++) { this.AllItems[i].Dispose(); } if (this.Detached && this.DomElement) { if (this.DomElement.parentNode) { this.DomElement.parentNode.removeChild(this.DomElement); } } this.DomElement = null; this.ChildItemList = null; this.DisposeDomEventHandlers(); if (this.IsContext && RadMenuNamespace.ContextMenus) { RadMenuNamespace.ContextMenus[this.ID] = null; } }; NPMenu.prototype.CreateMenuItem = function(parent, l3) { var item = new RadMenuItem(l3); item.Index = parent.Items.length; parent.Items[parent.Items.length] = item; item.GlobalIndex = this.AllItems.length; this.AllItems[this.AllItems.length] = item; item.Parent = parent; item.Menu = this; return item; }; NPMenu.prototype.CreateControlHierarchy = function(parent, i3) { parent.Level = i3; var O = parent.ChildItemList; if (!O) { return; } for (var i = 0; i < O.childNodes.length; i++) { var I3 = O.childNodes[i]; if (I3.nodeType == 3) continue; var item = this.CreateMenuItem(parent, I3); item.Initialize(); if (i3 == 0) { item.PostInitialize(); } this.CreateControlHierarchy(item, i3 + 1); } }; NPMenu.prototype.FixItemWidth = function(item) { var o4 = 0; var O4 = 0; var ul = item.ChildItemList; for (var i = 0; i < ul.childNodes.length; i++) { var li = ul.childNodes[i]; if (li.nodeType == 3) continue; var O = NPMenu.GetFirstChildByTagName(li, "\x61"); if (!O) { O = li; } o4 = Math.max(RadControlsNamespace.Box.GetOuterWidth(O), o4); } for (var i = 0; i < ul.childNodes.length; i++) { var li = ul.childNodes[i]; if (li.nodeType == 3) continue; if (RadControlsNamespace.Browser.IsOpera) { li.style.cssFloat = "\x6eone"; } var a = NPMenu.GetFirstChildByTagName(li, "a"); if (a) { var l4 = !NPMenu.GetFirstChildByTagName(a, "\x73pan").firstChild; if (!RadControlsNamespace.Browser.IsIE || !l4) { RadControlsNamespace.Box.SetOuterWidth(a, o4); } } else { li.style.width = o4 + "px"; } } if (RadControlsNamespace.Browser.IsSafari) { ul.style.width = NPMenu.GetFirstChildByTagName(ul, "li").offsetWidth + "px"; } }; NPMenu.prototype.FixRootItemWidth = function() { var T = this; var i4 = function() { T.FixItemWidth(T); }; if (this.RenderInProgress() || RadControlsNamespace.Browser.IsOpera || RadControlsNamespace.Browser.IsSafari) { if (window.addEventListener) { window.addEventListener("lo\x61\x64", i4, false); } else { window.attachEvent("onload", i4); } } else { i4(); } }; NPMenu.prototype.FixListWidth = function(item) { var I4 = 0; var ul = item.ChildItemList; for (var i = 0; i < ul.childNodes.length; i++) { var node = ul.childNodes[i]; if (node.nodeType == 3) continue; I4 += node.offsetWidth; node.style.clear = "n\x6f\x6ee"; } ul.style.width = I4 + "\x70x"; }; NPMenu.prototype.LoadConfiguration = function(r) { for (var o5 in r) { this[o5] = r[o5]; } }; NPMenu.prototype.BuildInitialState = function(r) { }; NPMenu.prototype.Close = function(r) { if (this.OpenedItem) { this.OpenedItem.Close(); } }; NPMenu.prototype.FindItemByText = function(text) { for (var i = 0; i < this.AllItems.length; i++) { if (this.AllItems[i].Text == text) { return this.AllItems[i]; } } return null; }; NPMenu.prototype.FindItemById = function(id) { for (var i = 0; i < this.AllItems.length; i++) { if (this.AllItems[i].ID == id) { return this.AllItems[i]; } } return null; }; NPMenu.prototype.FindItemByValue = function(value) { for (var i = 0; i < this.AllItems.length; i++) { if (this.AllItems[i].Value == value) { return this.AllItems[i]; } } return null; }; NPMenu.prototype.FindItemByUrl = function(O5) { for (var i = 0; i < this.AllItems.length; i++) { if (this.AllItems[i].NavigateUrl == O5) { return this.AllItems[i]; } } return null; }; NPMenu.prototype.SetContextElementID = function(id) { if (!RadMenuNamespace.ContextElements) { RadMenuNamespace.ContextElements = {}; } if (this.ContextMenuElementID) { RadMenuNamespace.ContextElements[this.ContextMenuElementID] = false; } this.ContextMenuElementID = id; RadMenuNamespace.ContextElements[this.ContextMenuElementID] = false; }; NPMenu.prototype.RecordState = function() { if (this.InUpdate || !this.Initialized) { return; } var l5 = JSON.stringify(this, this.InitialState, NPMenu.JSONIncludeDeep); var i5 = []; for (var i in this.ItemState) { if (this.ItemState[i] == "") continue; i5[i5.length] = this.ItemState[i]; } this.StateField.value = "{\042\x53\x74ate\x22\x3a" + l5 + ",\042\x49temState\x22\x3a{" + i5.join("\x2c") + "}}"; }; NPMenu.prototype.SetAttribute = function(name, value) { this.Attributes[name] = value; this.RecordState(); }; NPMenu.prototype.GetAttribute = function(name) { return this.Attributes[name]; }; function I5(o6) { document.body.appendChild(document.createTextNode(o6)); document.body.appendChild(document.createElement("HR")); }; function RadMenuItem(l3) { this.DomElement = l3; this.LinkElement = NPMenu.GetFirstChildByTagName(this.DomElement, "\x61"); if (this.LinkElement == null) { this.ID = this.DomElement.id; this.TextElement = NPMenu.GetFirstChildByTagName(this.DomElement, "\x73pan"); this.NavigateUrl = ""; } else { this.ID = this.LinkElement.id; this.TextElement = NPMenu.GetFirstChildByTagName(this.LinkElement, "\x73\x70an"); this.NavigateUrl = this.LinkElement.href; } this.IsSeparator = false; this.AnimationContainer = null; this.OpenedItem = null; this.FocusedItem = null; this.Items = []; this.Attributes = {}; this.Index = -1; this.Level = -1; this.Parent = null; this.Menu = null; this.GroupSettings = {}; this.TimeoutPointer = null; this.Templated = false; this.FocusedCssClass = "\x66ocused"; this.ClickedCssClass = "\x63licked"; this.ExpandedCssClass = "\x65xpanded"; this.DisabledCssClass = "disabled"; this.CssClass = ""; this.State = RadMenuItemState.Closed; this.Focused = false; this.Clicked = false; this.Enabled = true; this.Initialized = false; } RadMenuItem.prototype.PostInitializeItems = function() { for (var i = 0; i < this.Items.length; i++) { this.Items[i].PostInitialize(); } }; RadMenuItem.prototype.SetText = function(text) { this.PostInitialize(); this.TextElement.innerHTML = text; this.Text = text; this.RecordState(); }; RadMenuItem.prototype.SetValue = function(value) { this.PostInitialize(); this.Value = value; this.RecordState(); }; RadMenuItem.prototype.InitializeDomElements = function() { if (!this.Templated) { this.AnimationContainer = NPMenu.GetFirstChildByTagName(this.DomElement, "div"); this.ImageElement = NPMenu.GetFirstChildByTagName(this.LinkElement || this.DomElement, "\x69mg"); if (this.ImageElement) { this.ImageUrl = this.ImageElement.src; } } else { this.TextElement = NPMenu.GetFirstChildByTagName(this.DomElement, "\x64iv"); this.AnimationContainer = this.TextElement.nextSibling; } if (this.AnimationContainer) { var ul = this.AnimationContainer.getElementsByTagName("ul")[0]; this.ChildItemList = ul; if (this.ChildItemList.parentNode != this.AnimationContainer) { this.ScrollWrap = this.ChildItemList.parentNode; } } }; RadMenuItem.prototype.Initialize = function() { RadControlsNamespace.DomEventMixin.Initialize(this); this.LoadConfiguration(); this.InitializeDomElements(); this.DetermineExpandDirection(); if (this.AnimationContainer) { this.Ease = new RadControlsNamespace.Ease(this.ScrollWrap || this.ChildItemList, this.Menu, this.GroupSettings.OffsetX, this.GroupSettings.OffsetY, this); var O6 = this.GroupSettings.ExpandDirection; var l6 = RadMenuNamespace.ExpandDirectionPropertyName[O6]; this.Ease.SetSide(l6); this.TextElement.className = "text expa\x6ed" + this.Ease.GetSide(); this.AnimationContainer.style.zIndex = this.GlobalIndex + 10; this.ChildItemList.style.zIndex = this.GlobalIndex + 10; if (this.ScrollWrap) { this.CreateScroll(); } } if (this.TextElement && this.TextElement.firstChild) { this.Text = this.TextElement.firstChild.nodeValue; } this.OriginalZIndex = this.DomElement.style.zIndex; }; RadMenuItem.prototype.PostInitialize = function() { if (this.Initialized) { return; } this.AttachEventHandlers(); this.RenderAccessKey(); NPMenu.CreateState(this); this.Initialized = true; }; RadMenuItem.prototype.RenderAccessKey = function() { if (this.IsSeparator || this.Templated) { return; } var accessKey = this.LinkElement.accessKey.toLowerCase(); if (!accessKey) { return; } var text = this.TextElement.firstChild.nodeValue; var i6 = text.toLowerCase().indexOf(accessKey); if (i6 == -1) { return; } this.TextElement.innerHTML = text.substr(0, i6) + "<u>" + text.substr(i6, 1) + "</u>" + text.substr(i6 + 1, text.length); }; RadMenuItem.prototype.CreateScroll = function() { this.ScrollWrap.style.zIndex = this.GlobalIndex + 10; var I6 = RadMenuNamespace.ItemFlow.Vertical == this.GroupSettings.Flow; var options = { PerTabScrolling: false, ScrollButtonsPosition: 1, ScrollPosition: 0 }; this.Scroll = new RadControlsNamespace.Scroll(this.ChildItemList, I6, options); this.Scroll.ScrollOnHover = true; this.Scroll.LeaveGapsForArrows = false; if (this.GroupSettings.Flow == RadMenuNamespace.ItemFlow.Vertical) { this.Scroll.LeftArrowClass = "topArrow"; this.Scroll.LeftArrowClassDisabled = "topArrowDi\x73able\x64"; this.Scroll.RightArrowClass = "\x62\x6fttomA\x72\x72ow"; this.Scroll.RightArrowClassDisabled = "\x62\157\x74\x74omAr\x72\x6fwDi\x73abled"; } }; RadMenuItem.prototype.Dispose = function() { if (!this.Initialized) return; this.DisposeDomEventHandlers(); if (this.Ease) { this.Ease.Dispose(); } this.DomElement = null; this.LinkElement = null; this.AnimationContainer = null; }; RadMenuItem.prototype.Focus = function() { if (!this.CanFocus()) { return; } this.PostInitializeItems(); if (this.Parent.OpenedItem) { this.Parent.OpenedItem.Close(); } if (this.Parent.State != RadMenuItemState.Open && this.Parent.Open) { this.Parent.Open(); } this.Parent.FocusedItem = this; if (!this.Focused && this.LinkElement) { this.LinkElement.focus(); } this.CancelMenuClose(); this.UpdateCssClass(); this.RaiseEvent("OnClient\x49\164\x65\x6dFoc\x75\x73"); }; RadMenuItem.prototype.Blur = function() { if (this.IsSeparator) { return; } if (this.Focused) { this.LinkElement.blur(); } this.Parent.FocusedItem = null; this.UpdateCssClass(); this.RaiseEvent("OnClient\x49\x74emBl\x75\x72"); }; RadMenuItem.prototype.Open = function() { this.PostInitializeItems(); this.Menu.AboutToCollapse = false; if (this.Parent != this.Menu && this.Parent.State != RadMenuItemState.Open) { this.Parent.Open(); } this.Parent.OpenedItem = this; clearTimeout(this.TimeoutPointer); this.State = RadMenuItemState.Open; if (!this.AnimationContainer) return; var o7 = RadControlsNamespace.Screen.GetViewPortSize(); this.ChildItemList.style.display = "block"; this.Ease.ShowElements(); if (this.GroupSettings.Flow == RadMenuNamespace.ItemFlow.Vertical) { this.Menu.FixItemWidth(this); } else { this.Menu.FixListWidth(this); } this.Ease.SetSide(this.GetEaseSide()); this.Ease.UpdateContainerSize(); if (this.ScrollWrap) { this.CalculateScrollWrapSize(); this.Scroll.Initialize(); } this.PositionChildContainer(o7); this.Ease.In(); this.UpdateCssClass(); this.DomElement.style.zIndex = 1000; this.Menu.DomElement.style.zIndex = 1000; this.CancelMenuClose(); this.RaiseEvent("\117nClien\x74\111t\x65\x6dOpe\x6e"); }; RadMenuItem.prototype.GetEaseSide = function() { var O6 = this.GroupSettings.ExpandDirection; return RadMenuNamespace.ExpandDirectionPropertyName[O6]; }; RadMenuItem.prototype.RaiseEvent = function(S) { return this.Menu.RaiseEvent(S, { Item: this }); }; RadMenuItem.prototype.UpdateCssClass = function() { if (this.IsSeparator || this.Templated) { return; } var cssClass = "\x6cink " + this.CssClass; if (this.Focused) { cssClass = cssClass + "\x20" + this.FocusedCssClass; } if (this.State == RadMenuItemState.Open) { cssClass = cssClass + "\x20" + this.ExpandedCssClass; } if (this.Clicked) { cssClass = cssClass + "\x20" + this.ClickedCssClass; } if (!this.Enabled) { cssClass = cssClass + "\x20" + this.DisabledCssClass; } this.LinkElement.className = cssClass; }; RadMenuItem.prototype.Enable = function() { if (this.IsSeparator || this.Templated) { return; } this.LinkElement.disabled = ""; this.Enabled = true; this.EnableDomEventHandling(); this.UpdateCssClass(); }; RadMenuItem.prototype.Disable = function() { if (this.IsSeparator || this.Templated) { return; } this.LinkElement.disabled = "disabled"; this.Enabled = false; this.DisableDomEventHandling(); this.UpdateCssClass(); }; RadMenuItem.prototype.Close = function() { if (this.IsSeparator) { return; } if (this.State == RadMenuItemState.Closed) { return; } this.RaiseEvent("\x4fnClientIte\x6d\x43los\x65"); if (this.OpenedItem) { this.OpenedItem.Close(); } this.Parent.OpenedItem = null; clearTimeout(this.TimeoutPointer); this.State = RadMenuItemState.Closed; if (!this.AnimationContainer) return; if (this.Level == 1) { this.Menu.AboutToCollapse = true; } this.Ease.Out(); this.UpdateCssClass(); this.DomElement.style.zIndex = this.OriginalZIndex; this.HideChildren(); }; RadMenuItem.prototype.OnCollapseComplete = function() { if (this.Menu.AboutToCollapse) { if (this.Level == 1) { this.Menu.DomElement.style.zIndex = this.Menu.OriginalZIndex; } } }; RadMenuItem.prototype.HideChildren = function() { for (var i = 0; i < this.Items.length; i++) { if (this.Items[i].AnimationContainer) { this.Items[i].AnimationContainer.style.display = "\x6eo\x6e\x65"; } } }; RadMenuItem.prototype.CalculateScrollWrapSize = function() { if (!this.ScrollWrap.style.height) { this.ScrollWrap.style.height = this.ChildItemList.offsetHeight + "\x70x"; } if (!this.ScrollWrap.style.width) { this.ScrollWrap.style.width = this.ChildItemList.offsetWidth + "\x70x"; } }; RadMenuItem.prototype.AttachEventHandlers = function() { this.AttachDomEvent(this.DomElement, "\x6douseo\x76\x65r", "Mou\x73\x65OverHa\x6e\x64ler"); this.AttachDomEvent(this.DomElement, "\x6douseout", "MouseOutHand\x6c\145\x72"); if (this.IsSeparator || this.Templated) { return; } this.AttachDomEvent(this.LinkElement, "\143l\x69\x63k", "\x43lickHand\x6c\x65r"); this.AttachDomEvent(this.LinkElement, "mouseo\x75\x74", "\x48RefMouseOutH\x61\x6edle\x72"); this.AttachDomEvent(this.LinkElement, "\x6douseover", "\x48RefMo\x75\x73eOve\x72\x48and\x6c\145r"); this.AttachDomEvent(this.LinkElement, "mou\x73\x65down", "\x4douseDownHa\x6e\x64ler"); this.AttachDomEvent(this.LinkElement, "\x6douseup", "M\x6f\x75seUpHan\x64\x6cer"); this.AttachDomEvent(this.LinkElement, "blur", "\x42lurHandl\x65\x72"); this.AttachDomEvent(this.LinkElement, "\x66ocus", "Foc\x75\x73Handle\x72"); this.AttachDomEvent(this.LinkElement, "keydown", "KeyDown\x48\x61ndler"); this.AttachDomEvent(window, "\x62\x6cur", "\x57indowBl\x75\x72Hand\x6c\x65r"); }; RadMenuItem.prototype.MouseDownHandler = function(e) { this.Clicked = true; this.UpdateCssClass(); }; RadMenuItem.prototype.MouseUpHandler = function(e) { this.Clicked = false; this.UpdateCssClass(); }; RadMenuItem.prototype.HRefMouseOutHandler = function(e) { var O7 = e.relatedTarget; if (this.Menu.IsChildOf(this.LinkElement, O7) || O7 == this.LinkElement) { return; } if (this.ImageOverUrl && this.ImageElement) { this.ImageElement.src = this.ImageUrl; } this.RaiseEvent("\x4fnClientM\x6f\x75seOu\x74"); }; RadMenuItem.prototype.HRefMouseOverHandler = function(e) { var l7 = e.relatedTarget; if (this.Menu.IsChildOf(this.LinkElement, l7) || this.LinkElement == l7) { return; } if (this.ImageOverUrl && this.ImageElement) { this.ImageElement.src = this.ImageOverUrl; } this.RaiseEvent("O\x6e\x43lientM\x6f\x75seOv\x65\162"); }; RadMenuItem.prototype.KeyDownHandler = function(e) { var i7 = { left: 37, I7: 38, right: 39, o8: 40, O8: 27 }; var keyCode = e.which; if (keyCode == i7.right) { if (this.Menu.RightToLeft) { this.HandleLeftArrow(); } else { this.HandleRightArrow(); } } else if (keyCode == i7.left) { if (this.Menu.RightToLeft) { this.HandleRightArrow(); } else { this.HandleLeftArrow(); } } else if (keyCode == i7.I7) { this.HandleUpArrow(); } else if (keyCode == i7.o8) { this.HandleDownArrow(); } else if (keyCode == i7.O8) { this.Parent.Focus(); } else { return; } e.preventDefault(); }; RadMenuItem.prototype.FocusHandler = function(e) { this.Focused = true; this.Focus(); }; RadMenuItem.prototype.WindowBlurHandler = function(e) { this.ScheduleMenuClose(1000); }; RadMenuItem.prototype.ScheduleMenuClose = function(l8) { var menu = this.Menu; clearTimeout(this.Menu.CloseTimeout); this.Menu.CloseTimeout = setTimeout(function() { menu.Close(); menu.Clicked = false; }, l8); }; RadMenuItem.prototype.CancelMenuClose = function() { clearTimeout(this.Menu.CloseTimeout); }; RadMenuItem.prototype.BlurHandler = function(e) { if (this.LinkElement.offsetWidth) { this.ScheduleMenuClose(100); } this.Focused = false; this.Menu.Clicked = false; this.Blur(); }; RadMenuItem.prototype.NavigatesToURL = function() { if (location.href + "#" == this.NavigateUrl) { return false; } return (new RegExp("\x2f/")).test(this.LinkElement.href); }; RadMenuItem.prototype.Validate = function() { if (!this.Menu.CausesValidation || this.NavigatesToURL()) { return true; } if (typeof (Page_ClientValidate) != "function") { return true; } return Page_ClientValidate(this.Menu.ValidationGroup); }; RadMenuItem.prototype.ClickHandler = function(e) { if (!this.RaiseEvent("\x4fnClientI\x74\x65mCl\x69\x63ki\x6e\147")) { return false; } if (!this.Validate()) { return false; } var returnValue = true; if (!this.Menu.ClickToOpen) { returnValue = true; } else if (this.Level > 1) { returnValue = true; } else { if (!this.Menu.Clicked) { this.Open(); } else { this.Close(); } this.Menu.Clicked = !this.Menu.Clicked; } this.RaiseEvent("OnCli\x65\x6etIte\x6d\x43lic\x6b\145d"); if (!this.NavigateAfterClick) { return true; } return returnValue; }; RadMenuItem.prototype.MouseOverHandler = function(e) { var l7 = e.relatedTarget ? e.relatedTarget : e.fromElement; if (this.Menu.IsChildOf(this.DomElement, l7) || this.DomElement == l7) { return; } if (this.Menu.ClickToOpen && !this.Menu.Clicked) { return; } if (this.State == RadMenuItemState.Open || this.State == RadMenuItemState.AboutToOpen) { return; } this.Menu.LastOpenedItem = this; if (this.State == RadMenuItemState.AboutToClose) { clearTimeout(this.TimeoutPointer); this.State = RadMenuItemState.Open; return; } if (this.Parent.OpenedItem) { this.Parent.OpenedItem.Close(); } this.Parent.OpenedItem = this; this.State = RadMenuItemState.AboutToOpen; var T = this; var i8 = function() { T.Open(); }; this.TimeoutPointer = setTimeout(i8, this.Menu.ExpandDelay); }; RadMenuItem.prototype.MouseOutHandler = function(e) { var O7 = e.toElement ? e.toElement : e.relatedTarget; if ((!O7) || this.Menu.IsChildOf(this.DomElement, O7) || O7 == this.DomElement) { return; } if (this.Menu.ClickToOpen) { return; } if (this.State == RadMenuItemState.Closed || this.State == RadMenuItemState.AboutToClose) { return; } if (this.State == RadMenuItemState.AboutToOpen) { clearTimeout(this.TimeoutPointer); this.State = RadMenuItemState.Closed; this.Parent.OpenedItem = null; return; } this.State = RadMenuItemState.AboutToClose; var T = this; var i8 = function() { T.Close(); }; this.TimeoutPointer = setTimeout(i8, this.Menu.CollapseDelay); }; RadMenuItem.prototype.PositionChildContainer = function(o7) { var top = 0; var left = 0; var O6 = this.GroupSettings.ExpandDirection; var l6 = RadMenuNamespace.ExpandDirectionPropertyName[O6]; var I8 = this.DomElement; var o9 = RadControlsNamespace.Box.GetOuterHeight(I8); var O9 = RadControlsNamespace.Box.GetOuterWidth(I8); var l9 = this.ScrollWrap ? this.ScrollWrap : this.ChildItemList; l9 = l9.parentNode; var i9 = RadControlsNamespace.Box.GetOuterHeight(l9); var I9 = RadControlsNamespace.Box.GetOuterWidth(l9); if (O6 == RadMenuNamespace.ExpandDirection.Down) { top = o9; } else if (O6 == RadMenuNamespace.ExpandDirection.Right) { left = O9; } this.SetContainerPosition(left, top); var oa = RadControlsNamespace.Screen.GetElementPosition(l9); if (this.Menu.RightToLeft) { left = O9 - I9; } if (this.Menu.EnableScreenBoundaryDetection) { if (RadControlsNamespace.Screen.ElementOverflowsRight(o7, l9) && O6 == RadMenuNamespace.ExpandDirection.Right) { O6 = RadMenuNamespace.ExpandDirection.Left; l6 = "right"; left = 0; } else if (oa.x - I9 < 0 && O6 == RadMenuNamespace.ExpandDirection.Left) { O6 = RadMenuNamespace.ExpandDirection.Right; l6 = "\x6c\x65\x66t"; left = O9; } else if (oa.y - i9 < 0 && O6 == RadMenuNamespace.ExpandDirection.Up) { O6 = RadMenuNamespace.ExpandDirection.Down; l6 = "\x74\x6fp"; top = o9; } else if (RadControlsNamespace.Screen.ElementOverflowsBottom(o7, l9) && O6 == RadMenuNamespace.ExpandDirection.Down) { O6 = RadMenuNamespace.ExpandDirection.Up; l6 = "\x62ottom"; top = o9; } if (RadControlsNamespace.Screen.ElementOverflowsRight(o7, l9) && (O6 == RadMenuNamespace.ExpandDirection.Down || O6 == RadMenuNamespace.ExpandDirection.Up)) { left = o7.width - (oa.x + I9); } else if (RadControlsNamespace.Screen.ElementOverflowsBottom(o7, l9)) { if (O6 == RadMenuNamespace.ExpandDirection.Left || O6 == RadMenuNamespace.ExpandDirection.Right) { top = o7.height - (oa.y + i9); } } this.SetContainerPosition(left, top); } this.Ease.SetSide(l6); this.TextElement.className = "\164\x65xt expa\x6e\x64" + this.Ease.GetSide(); }; RadMenuItem.prototype.SetContainerPosition = function(left, top) { this.AnimationContainer.style.top = (top + this.GroupSettings.OffsetY) + "\x70\170"; this.AnimationContainer.style.left = (left + this.GroupSettings.OffsetX) + "\x70x"; }; RadMenuItem.prototype.SetAttribute = function(name, value) { this.PostInitialize(); this.Attributes[name] = value; this.RecordState(); }; RadMenuItem.prototype.SetImageUrl = function(src) { this.PostInitialize(); this.ImageUrl = src; this.ImageElement.src = src; this.RecordState(); }; RadMenuItem.prototype.SetImageOverUrl = function(src) { this.PostInitialize(); this.ImageOverUrl = src; this.RecordState(); }; RadMenuItem.prototype.GetAttribute = function(name) { return this.Attributes[name]; }; RadMenuItem.prototype.DetermineExpandDirection = function() { if (this.GroupSettings.ExpandDirection != RadMenuNamespace.ExpandDirection.Auto) { return; } if (this.Parent.Flow == RadMenuNamespace.ItemFlow.Vertical) { if (this.Menu.RightToLeft) { this.GroupSettings.ExpandDirection = RadMenuNamespace.ExpandDirection.Left; } else { this.GroupSettings.ExpandDirection = RadMenuNamespace.ExpandDirection.Right; } } else { this.GroupSettings.ExpandDirection = RadMenuNamespace.ExpandDirection.Down; } }; RadMenuItem.prototype.LoadConfiguration = function() { if (this.Menu.ItemData[this.ID]) { for (var o5 in this.Menu.ItemData[this.ID]) { this[o5] = this.Menu.ItemData[this.ID][o5]; } } if (typeof this.GroupSettings.Flow == "u\x6edefine\x64") { this.GroupSettings.Flow = RadMenuNamespace.ItemFlow.Vertical; } this.Flow = this.GroupSettings.Flow; if (typeof this.GroupSettings.ExpandDirection == "undefined") { this.GroupSettings.ExpandDirection = RadMenuNamespace.ExpandDirection.Auto; } if (typeof this.GroupSettings.OffsetX == "\x75ndefined") { this.GroupSettings.OffsetX = 0; } if (typeof this.GroupSettings.OffsetY == "undef\x69\x6eed") { this.GroupSettings.OffsetY = 0; } if (!this.Enabled) { this.Disable(); } }; RadMenuItem.prototype.HandleRightArrow = function() { if (this.Parent.Flow == RadMenuNamespace.ItemFlow.Horizontal) { this.FocusNextItem(); } else { if (this.Items.length && this.GroupSettings.ExpandDirection == RadMenuNamespace.ExpandDirection.Right) { this.FocusFirstChild(); } else if (this.Parent.GroupSettings && this.Parent.GroupSettings.ExpandDirection == RadMenuNamespace.ExpandDirection.Left) { this.Parent.Focus(); } else { if (this.Menu.OpenedItem) { this.Menu.OpenedItem.GetNextItem().Focus(); } } } }; RadMenuItem.prototype.HandleLeftArrow = function() { if (this.Parent.Flow == RadMenuNamespace.ItemFlow.Horizontal) { this.FocusPreviousItem(); } else { if (this.Items.length && this.GroupSettings.ExpandDirection == RadMenuNamespace.ExpandDirection.Left) { this.FocusFirstChild(); } else if (this.Parent.GroupSettings && this.Parent.GroupSettings.ExpandDirection == RadMenuNamespace.ExpandDirection.Right) { this.Parent.Focus(); } else { if (this.Menu.OpenedItem) { this.Menu.OpenedItem.GetPreviousItem().Focus(); } } } }; RadMenuItem.prototype.HandleUpArrow = function() { if (this.Parent.Flow == RadMenuNamespace.ItemFlow.Vertical) { this.FocusPreviousItem(); } else { this.FocusLastChild(); } }; RadMenuItem.prototype.HandleDownArrow = function() { if (this.Parent.Flow == RadMenuNamespace.ItemFlow.Vertical) { this.FocusNextItem(); } else { this.FocusFirstChild(); } }; RadMenuItem.prototype.GetNextItem = function() { if (this.Index == this.Parent.Items.length - 1) { return this.Parent.Items[0]; } return this.Parent.Items[this.Index + 1]; }; RadMenuItem.prototype.GetPreviousItem = function() { if (this.Index == 0) { return this.Parent.Items[this.Parent.Items.length - 1]; } return this.Parent.Items[this.Index - 1]; }; RadMenuItem.prototype.CanFocus = function() { return (!this.IsSeparator) && this.Enabled; }; RadMenuItem.prototype.FocusFirstChild = function() { if (!this.Items.length) { return; } var item = this.Items[0]; while (!item.CanFocus()) { item = item.GetNextItem(); if (item == this.Items[0]) { return; } } item.Focus(); }; RadMenuItem.prototype.FocusLastChild = function() { if (!this.Items.length) { return; } var item = this.Items[this.Items.length - 1]; while (!item.CanFocus()) { item = item.GetPreviousItem(); if (this.Items.length - 1) { return; } } item.Focus(); }; RadMenuItem.prototype.FocusNextItem = function() { var item = this.GetNextItem(); while (!item.CanFocus()) { item = item.GetNextItem(); } item.Focus(); }; RadMenuItem.prototype.FocusPreviousItem = function() { var item = this.GetPreviousItem(); while (!item.CanFocus()) { item = item.GetPreviousItem(); } item.Focus(); }; RadMenuItem.prototype.RecordState = function() { var Oa = JSON.stringify(this, this.InitialState, NPMenu.JSONIncludeDeep); if (Oa == "\x7b\x7d") { this.Menu.ItemState[this.ID] = ""; } else { this.Menu.ItemState[this.ID] = "\042" + this.ID + "\042\x3a" + Oa; } this.Menu.RecordState(); }; ; function RadMenuItemState() { } RadMenuItemState = { Closed: 0, Open: 1, AboutToClose: 2, AboutToOpen: 3 }; ; if (typeof window.RadControlsNamespace == "unde\x66\x69\x6eed") { window.RadControlsNamespace = {}; } window.RadControlsNamespace.Screen = { GetViewPortSize: function() { var width = 0; var height = 0; var la = document.body; if (window.innerWidth) { width = window.innerWidth; height = window.innerHeight; } else { if (RadControlsNamespace.Browser.StandardsMode) { la = document.documentElement; } width = la.clientWidth; height = la.clientHeight; } width += la.scrollLeft; height += la.scrollTop; return { width: width - 6, height: height - 6 }; }, GetElementPosition: function(U) { var parent = null; var ia = { x: 0, y: 0 }; var box; if (U.getBoundingClientRect) { box = U.getBoundingClientRect(); var scrollTop = document.documentElement.scrollTop || document.body.scrollTop; var scrollLeft = document.documentElement.scrollLeft || document.body.scrollLeft; ia.x = box.left + scrollLeft - 2; ia.y = box.top + scrollTop - 2; return ia; } else if (document.getBoxObjectFor) { box = document.getBoxObjectFor(U); ia.x = box.x - 2; ia.y = box.y - 2; } else { ia.x = U.offsetLeft; ia.y = U.offsetTop; parent = U.offsetParent; if (parent != U) { while (parent) { ia.x += parent.offsetLeft; ia.y += parent.offsetTop; parent = parent.offsetParent; } } } if (window.opera) { parent = U.offsetParent; while (parent && parent.tagName != "B\x4fD\x59" && parent.tagName != "\x48TML") { ia.x -= parent.scrollLeft; ia.y -= parent.scrollTop; parent = parent.offsetParent; } } else { parent = U.parentNode; while (parent && parent.tagName != "BODY" && parent.tagName != "HTML") { ia.x -= parent.scrollLeft; ia.y -= parent.scrollTop; parent = parent.parentNode; } } return ia; }, ElementOverflowsTop: function(O) { return this.GetElementPosition(O).y < 0; }, ElementOverflowsLeft: function(O) { return this.GetElementPosition(O).x < 0; }, ElementOverflowsBottom: function(Ia, O) { var ob = this.GetElementPosition(O).y + RadControlsNamespace.Box.GetOuterHeight(O); return ob > Ia.height; }, ElementOverflowsRight: function(Ia, O) { var Ob = this.GetElementPosition(O).x + RadControlsNamespace.Box.GetOuterWidth(O); return Ob > Ia.width; } }; ; if (typeof window.RadControlsNamespace == "\x75\x6edefined") { window.RadControlsNamespace = {}; } RadControlsNamespace.ScrollButtonsPosition = { Left: 0, Middle: 1, Right: 2 }; RadControlsNamespace.Scroll = function(O, lb, ib) { this.Element = O; this.IsVertical = lb; this.ScrollButtonsPosition = ib.ScrollButtonsPosition; this.ScrollPosition = ib.ScrollPosition; this.PerTabScrolling = ib.PerTabScrolling; this.ScrollOnHover = false; this.WrapNeeded = false; this.LeaveGapsForArrows = true; this.LeftArrowClass = "\x6ce\x66\x74Arrow"; this.LeftArrowClassDisabled = "leftArrowD\x69\x73abl\x65\x64"; this.RightArrowClass = "\x72\x69ghtAr\x72\x6fw"; this.RightArrowClassDisabled = "\x72\x69ghtArr\x6f\x77Disa\x62\x6ced"; }; RadControlsNamespace.Scroll.Create = function(O, lb, ib) { return new RadControlsNamespace.Scroll(O, lb, ib); }; RadControlsNamespace.Scroll.prototype.Initialize = function() { if (this.Element.Ib) return; this.Element.Ib = true; this.ScrollAmount = 2; this.Direction = 0; if (this.WrapNeeded) { this.CreateScrollWrap(); } this.ApplyOverflow(); this.Element.style.position = "r\x65lative"; this.AttachArrows(); this.CalculateMinMaxPosition(); if (this.PerTabScrolling) { this.CalculateInitialTab(); } this.AttachScrollMethods(); this.EvaluateArrowStatus(); this.HandleResize(); this.ScrollTo(this.ScrollPosition); }; RadControlsNamespace.Scroll.prototype.ApplyOverflow = function() { if (RadControlsNamespace.Browser.IsIE) { if (this.IsVertical) { this.Element.parentNode.style.overflowX = ""; this.Element.parentNode.style.overflowY = "\x68idden"; } else { this.Element.parentNode.style.overflowX = "\150\x69dden"; this.Element.parentNode.style.overflowY = ""; } } else { this.Element.parentNode.style.overflow = "hidden"; } }; RadControlsNamespace.Scroll.prototype.HandleResize = function() { var O = this.Element; var T = this; var oc = function() { if (!T.Element.offsetHeight || !T.Element.offsetWidth) { return; } T.CalculateMinMaxPosition(); if (O.offsetWidth < O.parentNode.offsetWidth) { T.ScrollTo(0); } var Oc = parseInt(T.IsVertical ? O.style.top : O.style.left); setTimeout(function() { T.ScrollTo(Oc); T.EvaluateArrowStatus(); }, 100); }; if (window.addEventListener) { window.addEventListener("r\x65size", oc, false); } else { window.attachEvent("\x6fnresize", oc); } }; RadControlsNamespace.Scroll.prototype.AttachArrows = function() { var lc = this.CreateArrow("\x26laq\x75\x6f;", 1, this.LeftArrowClass); var ic = this.CreateArrow("\x26\162a\x71\x75o;", -1, this.RightArrowClass); this.LeftArrow = lc; this.RightArrow = ic; if (this.IsVertical) { lc.style.left = "\x30px"; ic.style.left = "0p\x78"; if (this.ScrollButtonsPosition == RadControlsNamespace.ScrollButtonsPosition.Middle) { lc.style.top = "0px"; ic.style.bottom = "0px"; } else if (this.ScrollButtonsPosition == RadControlsNamespace.ScrollButtonsPosition.Left) { lc.style.top = "0px"; ic.style.top = lc.offsetHeight + "px"; } else { ic.style.bottom = "\x30px"; lc.style.bottom = lc.offsetHeight + "\x70x"; } } else { lc.style.top = "\x30px"; ic.style.top = "0px"; if (this.ScrollButtonsPosition == RadControlsNamespace.ScrollButtonsPosition.Middle) { lc.style.left = "-1px"; ic.style.right = "\x2d1px"; } else if (this.ScrollButtonsPosition == RadControlsNamespace.ScrollButtonsPosition.Left) { lc.style.left = "\x2d1px"; ic.style.left = (lc.offsetWidth - 1) + "px"; } else { ic.style.right = "-1px"; lc.style.right = (ic.offsetWidth - 1) + "px"; } } }; RadControlsNamespace.Scroll.prototype.CreateArrow = function(Ic, od, cssClass) { var Od = document.createElement("\x61"); Od.href = "#"; Od.className = cssClass; Od.innerHTML = "&nbsp;"; Od.style.zIndex = "\x32\x3000"; this.Element.parentNode.appendChild(Od); var T = this; Od.ScrollDirection = od; if (this.ScrollOnHover) { Od.onmousedown = function() { if (this.disabled) { return false; } T.ScrollAmount = 3; return true; }; Od.onmouseup = function() { T.ScrollAmount = 1; }; Od.onmouseover = function() { if (this.disabled) { return false; } T.ScrollAmount = 1; T.Scroll(this.ScrollDirection); return true; }; Od.onmouseout = function() { T.ld = 0; T.Stop(); return false; }; } else { Od.onmousedown = function() { T.Scroll(this.ScrollDirection); }; Od.onmouseup = function() { T.Stop(); }; } Od.onclick = function() { return false; }; return Od; }; RadControlsNamespace.Scroll.prototype.CreateScrollWrap = function() { var oe = document.createElement("\x64iv"); var Oe = this.Element.parentNode; oe.appendChild(this.Element); oe.style.position = "\x72elative"; oe.align = "\x6ceft"; Oe.appendChild(oe); if (this.IsVertical) { oe.style.styleFloat = "\x6c\x65ft"; this.Element.style.display = "\x6eone"; oe.style.height = oe.parentNode.parentNode.offsetHeight + "p\x78"; this.Element.style.display = "\x62lock"; } else { var le = 0; for (var i = 0; i < this.Element.childNodes.length; i++) { var node = this.Element.childNodes[i]; if (!node.tagName) continue; le += node.offsetWidth; } this.Element.style.width = (le + 3) + "\x70\x78"; } }; RadControlsNamespace.Scroll.prototype.CalculateMinMaxPosition = function() { if (this.IsVertical) { var ie = this.Element.parentNode.offsetHeight - this.Element.offsetHeight; var Ie = this.LeftArrow.offsetHeight; var of = this.RightArrow.offsetHeight; } else { var ie = this.Element.parentNode.offsetWidth - this.Element.offsetWidth; var Ie = this.LeftArrow.offsetWidth; var of = this.RightArrow.offsetWidth; } if (!this.LeaveGapsForArrows) { Ie = 0; of = 0; } this.MaxScrollPosition = 0; this.MinScrollPosition = ie - of - Ie; if (this.ScrollButtonsPosition == RadControlsNamespace.ScrollButtonsPosition.Middle) { this.Offset = Ie; } else if (this.ScrollButtonsPosition == RadControlsNamespace.ScrollButtonsPosition.Left) { this.Offset = Ie + of; } else { this.Offset = 0; } }; RadControlsNamespace.Scroll.prototype.CalculateInitialTab = function() { var Of = this.Element.getElementsByTagName("\x6ci"); if (Of.length > 0) { var i = 0; while (this.ScrollPosition < -(this.IsVertical ? Of[i].offsetTop : Of[i].offsetLeft)) { i++; } this.CurrentTab = i; } }; RadControlsNamespace.Scroll.prototype.AttachScrollMethods = function() { if (this.PerTabScrolling) { this.Scroll = RadControlsNamespace.Scroll.StartPerTabScroll; this.Stop = RadControlsNamespace.Scroll.StopPerTabScroll; } else { this.Scroll = RadControlsNamespace.Scroll.StartSmoothScroll; this.Stop = RadControlsNamespace.Scroll.StopSmoothScroll; } }; RadControlsNamespace.Scroll.prototype.EvaluateArrowStatus = function() { var If = !(this.ScrollPosition > this.MinScrollPosition); var og = !(this.ScrollPosition < this.MaxScrollPosition); this.RightArrow.disabled = If; this.LeftArrow.disabled = og; if (og) { if (this.LeftArrow.className != this.LeftArrowClassDisabled) { this.LeftArrow.className = this.LeftArrowClassDisabled; } } else { if (this.LeftArrow.className != this.LeftArrowClass) { this.LeftArrow.className = this.LeftArrowClass; } } if (If) { if (this.RightArrow.className != this.RightArrowClassDisabled) { this.RightArrow.className = this.RightArrowClassDisabled; } } else { if (this.RightArrow.className != this.RightArrowClass) { this.RightArrow.className = this.RightArrowClass; } } }; RadControlsNamespace.Scroll.StartSmoothScroll = function(direction) { this.Stop(); this.Direction = direction; var T = this; var Og = function() { T.ScrollBy(T.Direction * T.ScrollAmount); }; Og(); this.lg = setInterval(Og, 10); }; RadControlsNamespace.Scroll.prototype.ScrollTo = function(position) { position = Math.max(position, this.MinScrollPosition); position = Math.min(position, this.MaxScrollPosition); position += this.Offset; if (this.IsVertical) { this.Element.style.top = position + "px"; } else { this.Element.style.left = position + "px"; } this.ScrollPosition = position - this.Offset; this.EvaluateArrowStatus(); }; RadControlsNamespace.Scroll.prototype.ScrollBy = function(ig) { var Ig = this.ScrollPosition; this.ScrollTo(Ig + ig); }; RadControlsNamespace.Scroll.StartPerTabScroll = function(direction) { this.Stop(); var Of = this.Element.getElementsByTagName("\x6ci"); var oh = this.CurrentTab - direction; if (oh < 0 || oh > Of.length) { return; } var Oh = direction == -1 ? this.CurrentTab : oh; this.CurrentTab = oh; if (this.IsVertical) { var lh = Of[Oh].offsetHeight; } else { var lh = Of[Oh].offsetWidth; } this.ScrollBy(lh * direction); this.EvaluateArrowStatus(); }; RadControlsNamespace.Scroll.StopSmoothScroll = function(direction) { if (this.OnScrollStop) { this.OnScrollStop(); } clearInterval(this.lg); }; RadControlsNamespace.Scroll.StopPerTabScroll = function(direction) { if (this.OnScrollStop) { this.OnScrollStop(); } }; ; if (typeof window.RadControlsNamespace == "u\x6e\x64\145f\x69\x6eed") { window.RadControlsNamespace = {}; } RadControlsNamespace.Ticker = function(Q) { this.Listener = Q; this.IntervalPointer = null; }; RadControlsNamespace.Ticker.prototype = { Configure: function(N) { this.Duration = N.Duration; this.Interval = 16; }, Start: function() { clearInterval(this.IntervalPointer); this.TimeElapsed = 0; var T = this; var i8 = function() { T.Tick(); }; this.IntervalPointer = setInterval(i8, this.Interval); }, Tick: function() { this.TimeElapsed += this.Interval; this.Listener.OnTick(this.TimeElapsed); if (this.TimeElapsed >= this.Duration) { this.Stop(); } }, Stop: function() { this.Listener.OnTickEnd(); if (this.IntervalPointer) { clearInterval(this.IntervalPointer); this.IntervalPointer = null; } } }; ;
