﻿var TOP_COL_DELIMITER = String.fromCharCode(16); var TOP_ROW_DELIMITER = String.fromCharCode(15); var __top_m_bPageLoaded = false; window.onload = __top_Page_OnLoad; function __top_ClientAPIEnabled() { return typeof (top) != "undefined" && !!top.getVar } function __top_Page_OnLoad() { if (__top_ClientAPIEnabled()) { var sLoadHandlers = top.getVar("__top_pageload"); if (sLoadHandlers != null) { eval(sLoadHandlers) } top.dom.attachEvent(window, "onscroll", __top_bodyscroll) } __top_m_bPageLoaded = true } function __top_KeyDown(iKeyCode, sFunc, e) { if (e == null) { e = window.event } if (e.keyCode == iKeyCode) { eval(unescape(sFunc)); return false } } function __top_bodyscroll() { var B = document.forms[0]; if (__top_ClientAPIEnabled() && __top_m_bPageLoaded) { B.ScrollTop.value = document.documentElement.scrollTop ? document.documentElement.scrollTop : top.dom.getByTagName("body")[0].scrollTop } } function __top_setScrollTop(E) { if (__top_ClientAPIEnabled()) { if (E == null) { E = document.forms[0].ScrollTop.value } var F = top.getVar("ScrollToControl"); if (F != null && F.length > 0) { var D = top.dom.getById(F); if (D != null) { E = top.dom.positioning.elementTop(D); top.setVar("ScrollToControl", "") } } window.scrollTo(0, E) } } function __top_SetInitialFocus(D) { var C = top.dom.getById(D); if (C != null && __top_CanReceiveFocus(C)) { C.focus() } } function __top_CanReceiveFocus(C) { if (C.style.display != "none" && C.tabIndex > -1 && C.disabled == false && C.style.visible != "hidden") { var D = C.parentElement; while (D != null && D.tagName != "BODY") { if (D.style.display == "none" || D.disabled || D.style.visible == "hidden") { return false } D = D.parentElement } return true } else { return false } } function __top_ContainerMaxMin_OnClick(Q, M) { var P = top.dom.getById(M); if (P != null) { var O = Q.childNodes[0]; var N = Q.getAttribute("containerid"); var S = Q.getAttribute("cookieid"); var V = O.src.toLowerCase().substr(O.src.lastIndexOf("/")); var L; var T; var U; if (top.getVar("min_icon_" + N)) { U = top.getVar("min_icon_" + N) } else { U = top.getVar("min_icon") } if (top.getVar("max_icon_" + N)) { T = top.getVar("max_icon_" + N) } else { T = top.getVar("max_icon") } L = T.toLowerCase().substr(T.lastIndexOf("/")); var R = 5; if (Q.getAttribute("animf") != null) { R = new Number(Q.getAttribute("animf")) } if (V == L) { O.src = U; top.dom.expandElement(P, R); O.title = top.getVar("min_text"); if (S != null) { if (top.getVar("__top_" + N + ":defminimized") == "true") { top.dom.setCookie(S, "true", 365) } else { top.dom.deleteCookie(S) } } else { top.setVar("__top_" + N + "_Visible", "true") } } else { O.src = T; top.dom.collapseElement(P, R); O.title = top.getVar("max_text"); if (S != null) { if (top.getVar("__top_" + N + ":defminimized") == "true") { top.dom.deleteCookie(S) } else { top.dom.setCookie(S, "false", 365) } } else { top.setVar("__top_" + N + "_Visible", "false") } } return true } return false } function __top_Help_OnClick(D) { var C = top.dom.getById(D); if (C != null) { if (C.style.display == "none") { C.style.display = "" } else { C.style.display = "none" } return true } return false } function __top_SectionMaxMin(M, I) { var K = top.dom.getById(I); if (K != null) { var J = M.getAttribute("max_icon"); var H = M.getAttribute("min_icon"); var N = M.getAttribute("userctr") != null; var L; if (K.style.display == "none") { M.src = H; K.style.display = ""; if (N) { L = "True" } else { top.setVar(M.id + ":exp", 1) } } else { M.src = J; K.style.display = "none"; if (N) { L = "False" } else { top.setVar(M.id + ":exp", 0) } } if (N) { topcore.setUserProp(M.getAttribute("userctr"), M.getAttribute("userkey"), L, null) } return true } return false } function __top_enableDragDrop() { var J = top.getVar("__top_dragDrop").split(";"); var G; for (var H = 0; H < J.length; H++) { G = J[H].split(" "); if (G[0].length > 0) { var I = top.dom.getById(G[0]); var F = top.dom.getById(G[1]); if (I != null && F != null) { I.setAttribute("moduleid", G[2]); top.dom.positioning.enableDragAndDrop(I, F, "__top_dragComplete()", "__top_dragOver()") } } } } var __top_oPrevSelPane; var __top_oPrevSelModule; var __top_dragEventCount = 0; function __top_dragOver() { __top_dragEventCount++; if (__top_dragEventCount % 75 != 0) { return } var I = top.dom.getById(top.dom.positioning.dragCtr.contID); var K = __top_getMostSelectedPane(top.dom.positioning.dragCtr); if (__top_oPrevSelPane != null) { __top_oPrevSelPane.pane.style.border = __top_oPrevSelPane.origBorder } if (K != null) { __top_oPrevSelPane = K; K.pane.style.border = "4px double " + TOP_HIGHLIGHT_COLOR; var L = __top_getPaneControlIndex(I, K); var G; var H; for (var J = 0; J < K.controls.length; J++) { if (L > J && K.controls[J].id != I.id) { G = K.controls[J] } if (L <= J && K.controls[J].id != I.id) { H = K.controls[J]; break } } if (__top_oPrevSelModule != null) { top.dom.getNonTextNode(__top_oPrevSelModule.control).style.border = __top_oPrevSelModule.origBorder } if (H != null) { __top_oPrevSelModule = H; top.dom.getNonTextNode(H.control).style.borderTop = "5px groove " + TOP_HIGHLIGHT_COLOR } else { if (G != null) { __top_oPrevSelModule = G; top.dom.getNonTextNode(G.control).style.borderBottom = "5px groove " + TOP_HIGHLIGHT_COLOR } } } } function __top_dragComplete() { var I = top.dom.getById(top.dom.positioning.dragCtr.contID); var G = I.getAttribute("moduleid"); if (__top_oPrevSelPane != null) { __top_oPrevSelPane.pane.style.border = __top_oPrevSelPane.origBorder } if (__top_oPrevSelModule != null) { top.dom.getNonTextNode(__top_oPrevSelModule.control).style.border = __top_oPrevSelModule.origBorder } var K = __top_getMostSelectedPane(top.dom.positioning.dragCtr); var L; if (K == null) { var H = __top_Panes(); for (var J = 0; J < H.length; J++) { if (H[J].id == I.parentNode.id) { K = H[J] } } } if (K != null) { L = __top_getPaneControlIndex(I, K); __top_MoveToPane(K, I, L); top.callPostBack("MoveToPane", "moduleid=" + G, "pane=" + K.paneName, "order=" + L * 2) } } function __top_MoveToPane(F, G, J) { if (F != null) { var H = new Array(); for (var I = J; I < F.controls.length; I++) { if (F.controls[I].control.id != G.id) { H[H.length] = F.controls[I].control } top.dom.removeChild(F.controls[I].control) } top.dom.appendChild(F.pane, G); G.style.top = 0; G.style.left = 0; G.style.position = "relative"; for (var I = 0; I < H.length; I++) { top.dom.appendChild(F.pane, H[I]) } __top_RefreshPanes() } else { G.style.top = 0; G.style.left = 0; G.style.position = "relative" } } function __top_RefreshPanes() { var F = top.getVar("__top_Panes").split(";"); var E = top.getVar("__top_PaneNames").split(";"); __top_m_aryPanes = new Array(); for (var D = 0; D < F.length; D++) { if (F[D].length > 0) { __top_m_aryPanes[__top_m_aryPanes.length] = new __top_Pane(top.dom.getById(F[D]), E[D]) } } } var __top_m_aryPanes; var __top_m_aryModules; function __top_Panes() { if (__top_m_aryPanes == null) { __top_m_aryPanes = new Array(); __top_RefreshPanes() } return __top_m_aryPanes } function __top_Modules(B) { if (__top_m_aryModules == null) { __top_RefreshPanes() } return __top_m_aryModules[B] } function __top_getMostSelectedPane(J) { var O = new top.dom.positioning.dims(J); var K = 0; var I; var P; for (var M = 0; M < __top_Panes().length; M++) { var L = __top_Panes()[M]; var N = new top.dom.positioning.dims(L.pane); I = top.dom.positioning.elementOverlapScore(N, O); if (I > K) { K = I; P = L } } return P } function __top_getPaneControlIndex(I, K) { if (K == null) { return } var J = new top.dom.positioning.dims(I); var G; if (K.controls.length == 0) { return 0 } for (var L = 0; L < K.controls.length; L++) { G = K.controls[L]; var H = new top.dom.positioning.dims(G.control); if (J.t < H.t) { return G.index } } if (G != null) { return G.index + 1 } else { return 0 } } function __top_Pane(K, H) { this.pane = K; this.id = K.id; this.controls = new Array(); this.origBorder = K.style.border; this.paneName = H; var N = 0; var J = ""; for (var L = 0; L < K.childNodes.length; L++) { var I = K.childNodes[L]; if (top.dom.isNonTextNode(I)) { if (__top_m_aryModules == null) { __top_m_aryModules = new Array() } var M = I.getAttribute("moduleid"); if (M != null && M.length > 0) { J += M + "~"; this.controls[this.controls.length] = new __top_PaneControl(I, N); __top_m_aryModules[M] = I.id; N += 1 } } } this.moduleOrder = J } function __top_PaneControl(C, D) { this.control = C; this.id = C.id; this.index = D; this.origBorder = C.style.border } function __topcore() { this.GetUserVal = 0; this.SetUserVal = 1 } __topcore.prototype = { getUserProp: function(E, D, F) { this._doUserCallBack(topcore.GetUserVal, E, D, null, new topcore.UserPropArgs(E, D, F)) }, setUserProp: function(E, G, H, F) { this._doUserCallBack(topcore.SetUserVal, E, G, H, new topcore.UserPropArgs(E, G, F)) }, _doUserCallBack: function(H, G, I, K, L) { if (top && top.xmlhttp) { var J = H + COL_DELIMITER + G + COL_DELIMITER + I + COL_DELIMITER + K; top.xmlhttp.doCallBack("__Page", J, topcore._callBackSuccess, L, topcore._callBackFail, null, true, null, 0) } else { alert("Client Personalization not enabled") } }, _callBackSuccess: function(F, E, D) { if (E.pFunc) { E.pFunc(E.namingCtr, E.key, F) } }, _callBackFail: function(D, C) { window.status = D } }; __topcore.prototype.UserPropArgs = function(E, D, F) { this.namingCtr = E; this.key = D; this.pFunc = F }; var topcore = new __topcore();