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 A=document.forms[0];if(__top_ClientAPIEnabled()&&__top_m_bPageLoaded){A.ScrollTop.value=document.documentElement.scrollTop?document.documentElement.scrollTop:top.dom.getByTagName("body")[0].scrollTop}}function __top_setScrollTop(C){if(__top_ClientAPIEnabled()){if(C==null){C=document.forms[0].ScrollTop.value}var A=top.getVar("ScrollToControl");if(A!=null&&A.length>0){var B=top.dom.getById(A);if(B!=null){C=top.dom.positioning.elementTop(B);top.setVar("ScrollToControl","")}}window.scrollTo(0,C)}}function __top_SetInitialFocus(A){var B=top.dom.getById(A);if(B!=null&&__top_CanReceiveFocus(B)){B.focus()}}function __top_CanReceiveFocus(B){if(B.style.display!="none"&&B.tabIndex>-1&&B.disabled==false&&B.style.visible!="hidden"){var A=B.parentElement;while(A!=null&&A.tagName!="BODY"){if(A.style.display=="none"||A.disabled||A.style.visible=="hidden"){return false}A=A.parentElement}return true}else{return false}}function __top_ContainerMaxMin_OnClick(A,H){var C=top.dom.getById(H);if(C!=null){var B=A.childNodes[0];var I=A.getAttribute("containerid");var G=A.getAttribute("cookieid");var J=B.src.toLowerCase().substr(B.src.lastIndexOf("/"));var K;var D;var E;if(top.getVar("min_icon_"+I)){E=top.getVar("min_icon_"+I)}else{E=top.getVar("min_icon")}if(top.getVar("max_icon_"+I)){D=top.getVar("max_icon_"+I)}else{D=top.getVar("max_icon")}K=D.toLowerCase().substr(D.lastIndexOf("/"));var F=5;if(A.getAttribute("animf")!=null){F=new Number(A.getAttribute("animf"))}if(J==K){B.src=E;top.dom.expandElement(C,F);B.title=top.getVar("min_text");if(G!=null){if(top.getVar("__top_"+I+":defminimized")=="true"){top.dom.setCookie(G,"true",365)}else{top.dom.deleteCookie(G)}}else{top.setVar("__top_"+I+"_Visible","true")}}else{B.src=D;top.dom.collapseElement(C,F);B.title=top.getVar("max_text");if(G!=null){if(top.getVar("__top_"+I+":defminimized")=="true"){top.dom.deleteCookie(G)}else{top.dom.setCookie(G,"false",365)}}else{top.setVar("__top_"+I+"_Visible","false")}}return true}return false}function __top_Help_OnClick(A){var B=top.dom.getById(A);if(B!=null){if(B.style.display=="none"){B.style.display=""}else{B.style.display="none"}return true}return false}function __top_SectionMaxMin(C,G){var E=top.dom.getById(G);if(E!=null){var D=C.getAttribute("max_icon");var F=C.getAttribute("min_icon");var A=C.getAttribute("userctr")!=null;var B;if(E.style.display=="none"){C.src=F;E.style.display="";if(A){B="True"}else{top.setVar(C.id+":exp",1)}}else{C.src=D;E.style.display="none";if(A){B="False"}else{top.setVar(C.id+":exp",0)}}if(A){topcore.setUserProp(C.getAttribute("userctr"),C.getAttribute("userkey"),B,null)}return true}return false}function __top_enableDragDrop(){var A=top.getVar("__top_dragDrop").split(";");var E;for(var B=0;B<A.length;B++){E=A[B].split(" ");if(E[0].length>0){var C=top.dom.getById(E[0]);var D=top.dom.getById(E[1]);if(C!=null&&D!=null){C.setAttribute("moduleid",E[2]);top.dom.positioning.enableDragAndDrop(C,D,"__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 E=top.dom.getById(top.dom.positioning.dragCtr.contID);var C=__top_getMostSelectedPane(top.dom.positioning.dragCtr);if(__top_oPrevSelPane!=null){__top_oPrevSelPane.pane.style.border=__top_oPrevSelPane.origBorder}if(C!=null){__top_oPrevSelPane=C;C.pane.style.border="4px double "+TOP_HIGHLIGHT_COLOR;var A=__top_getPaneControlIndex(E,C);var F;var D;for(var B=0;B<C.controls.length;B++){if(A>B&&C.controls[B].id!=E.id){F=C.controls[B]}if(A<=B&&C.controls[B].id!=E.id){D=C.controls[B];break}}if(__top_oPrevSelModule!=null){top.dom.getNonTextNode(__top_oPrevSelModule.control).style.border=__top_oPrevSelModule.origBorder}if(D!=null){__top_oPrevSelModule=D;top.dom.getNonTextNode(D.control).style.borderTop="5px groove "+TOP_HIGHLIGHT_COLOR}else{if(F!=null){__top_oPrevSelModule=F;top.dom.getNonTextNode(F.control).style.borderBottom="5px groove "+TOP_HIGHLIGHT_COLOR}}}}function __top_dragComplete(){var E=top.dom.getById(top.dom.positioning.dragCtr.contID);var F=E.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 C=__top_getMostSelectedPane(top.dom.positioning.dragCtr);var A;if(C==null){var D=__top_Panes();for(var B=0;B<D.length;B++){if(D[B].id==E.parentNode.id){C=D[B]}}}if(C!=null){A=__top_getPaneControlIndex(E,C);__top_MoveToPane(C,E,A);top.callPostBack("MoveToPane","moduleid="+F,"pane="+C.paneName,"order="+A*2)}}function __top_MoveToPane(D,E,A){if(D!=null){var B=new Array();for(var C=A;C<D.controls.length;C++){if(D.controls[C].control.id!=E.id){B[B.length]=D.controls[C].control}top.dom.removeChild(D.controls[C].control)}top.dom.appendChild(D.pane,E);E.style.top=0;E.style.left=0;E.style.position="relative";for(var C=0;C<B.length;C++){top.dom.appendChild(D.pane,B[C])}__top_RefreshPanes()}else{E.style.top=0;E.style.left=0;E.style.position="relative"}}function __top_RefreshPanes(){var A=top.getVar("__top_Panes").split(";");var C=top.getVar("__top_PaneNames").split(";");__top_m_aryPanes=new Array();for(var B=0;B<A.length;B++){if(A[B].length>0){__top_m_aryPanes[__top_m_aryPanes.length]=new __top_Pane(top.dom.getById(A[B]),C[B])}}}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(A){if(__top_m_aryModules==null){__top_RefreshPanes()}return __top_m_aryModules[A]}function __top_getMostSelectedPane(B){var D=new top.dom.positioning.dims(B);var C=0;var H;var E;for(var F=0;F<__top_Panes().length;F++){var A=__top_Panes()[F];var G=new top.dom.positioning.dims(A.pane);H=top.dom.positioning.elementOverlapScore(G,D);if(H>C){C=H;E=A}}return E}function __top_getPaneControlIndex(E,C){if(C==null){return}var B=new top.dom.positioning.dims(E);var F;if(C.controls.length==0){return 0}for(var A=0;A<C.controls.length;A++){F=C.controls[A];var D=new top.dom.positioning.dims(F.control);if(B.t<D.t){return F.index}}if(F!=null){return F.index+1}else{return 0}}function __top_Pane(E,F){this.pane=E;this.id=E.id;this.controls=new Array();this.origBorder=E.style.border;this.paneName=F;var A=0;var D="";for(var B=0;B<E.childNodes.length;B++){var G=E.childNodes[B];if(top.dom.isNonTextNode(G)){if(__top_m_aryModules==null){__top_m_aryModules=new Array()}var C=G.getAttribute("moduleid");if(C!=null&&C.length>0){D+=C+"~";this.controls[this.controls.length]=new __top_PaneControl(G,A);__top_m_aryModules[C]=G.id;A+=1}}}this.moduleOrder=D}function __top_PaneControl(B,A){this.control=B;this.id=B.id;this.index=A;this.origBorder=B.style.border}function __topcore(){this.GetUserVal=0;this.SetUserVal=1}__topcore.prototype={getUserProp:function(C,B,A){this._doUserCallBack(topcore.GetUserVal,C,B,null,new topcore.UserPropArgs(C,B,A))},setUserProp:function(D,C,A,B){this._doUserCallBack(topcore.SetUserVal,D,C,A,new topcore.UserPropArgs(D,C,B))},_doUserCallBack:function(D,F,E,C,A){if(top&&top.xmlhttp){var B=D+COL_DELIMITER+F+COL_DELIMITER+E+COL_DELIMITER+C;top.xmlhttp.doCallBack("__Page",B,topcore._callBackSuccess,A,topcore._callBackFail,null,true,null,0)}else{alert("Client Personalization not enabled")}},_callBackSuccess:function(A,C,B){if(C.pFunc){C.pFunc(C.namingCtr,C.key,A)}},_callBackFail:function(A,B){window.status=A}};__topcore.prototype.UserPropArgs=function(C,B,A){this.namingCtr=C;this.key=B;this.pFunc=A};var topcore=new __topcore();

  window.confirm=window.__confirm;
   window.alert= window.__alert;

