var DNN_COL_DELIMITER=String.fromCharCode(16),DNN_ROW_DELIMITER=String.fromCharCode(15),__dnn_m_bPageLoaded=false;window.onload=__dnn_Page_OnLoad;function __dnn_ClientAPIEnabled(){return typeof dnn!="undefined"}function __dnn_Page_OnLoad(){if(__dnn_ClientAPIEnabled()){var a=dnn.getVar("__dnn_pageload");a!=null&&eval(a);dnn.dom.attachEvent(window,"onscroll",__dnn_bodyscroll)}__dnn_m_bPageLoaded=true}
function __dnn_KeyDown(a,b,c){if(c==null)c=window.event;if(c.keyCode==a)return eval(unescape(b)),false}function __dnn_bodyscroll(){var a=document.forms[0];if(__dnn_ClientAPIEnabled()&&__dnn_m_bPageLoaded)a.ScrollTop.value=document.documentElement.scrollTop?document.documentElement.scrollTop:dnn.dom.getByTagName("body")[0].scrollTop}
function __dnn_setScrollTop(a){if(__dnn_ClientAPIEnabled()){if(a==null)a=document.forms[0].ScrollTop.value;var b=dnn.getVar("ScrollToControl");b!=null&&b.length>0&&(b=dnn.dom.getById(b),b!=null&&(a=dnn.dom.positioning.elementTop(b),dnn.setVar("ScrollToControl","")));window.scrollTo(0,a)}}function __dnn_SetInitialFocus(a){a=dnn.dom.getById(a);a!=null&&__dnn_CanReceiveFocus(a)&&a.focus()}
function __dnn_CanReceiveFocus(a){if(a.style.display!="none"&&a.tabIndex>-1&&a.disabled==false&&a.style.visible!="hidden"){for(a=a.parentElement;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 __dnn_ContainerMaxMin_OnClick(a,b){var c=dnn.dom.getById(b);if(c!=null){var d=a.childNodes[0],e=a.getAttribute("containerid"),f=a.getAttribute("cookieid"),g=d.src.toLowerCase().substr(d.src.lastIndexOf("/")),j,h,k;k=dnn.getVar("min_icon_"+e)?dnn.getVar("min_icon_"+e):dnn.getVar("min_icon");h=dnn.getVar("max_icon_"+e)?dnn.getVar("max_icon_"+e):dnn.getVar("max_icon");j=h.toLowerCase().substr(h.lastIndexOf("/"));var i=5;a.getAttribute("animf")!=null&&(i=new Number(a.getAttribute("animf")));
g==j?(d.src=k,dnn.dom.expandElement(c,i),d.title=dnn.getVar("min_text"),f!=null?dnn.getVar("__dnn_"+e+":defminimized")=="true"?dnn.dom.setCookie(f,"true",365):dnn.dom.deleteCookie(f):dnn.setVar("__dnn_"+e+"_Visible","true")):(d.src=h,dnn.dom.collapseElement(c,i),d.title=dnn.getVar("max_text"),f!=null?dnn.getVar("__dnn_"+e+":defminimized")=="true"?dnn.dom.deleteCookie(f):dnn.dom.setCookie(f,"false",365):dnn.setVar("__dnn_"+e+"_Visible","false"));return true}return false}
function __dnn_Help_OnClick(a){a=dnn.dom.getById(a);return a!=null?(a.style.display=a.style.display=="none"?"":"none",true):false}
function __dnn_SectionMaxMin(a,b){var c=dnn.dom.getById(b);if(c!=null){var d=a.getAttribute("max_icon"),e=a.getAttribute("min_icon"),f=a.getAttribute("userctr")!=null,g;c.style.display=="none"?(a.src=e,c.style.display="",f?g="True":dnn.setVar(a.id+":exp",1)):(a.src=d,c.style.display="none",f?g="False":dnn.setVar(a.id+":exp",0));f&&dnncore.setUserProp(a.getAttribute("userctr"),a.getAttribute("userkey"),g,null);return true}return false}
function __dnn_enableDragDrop(){for(var a=dnn.getVar("__dnn_dragDrop").split(";"),b,c=0;c<a.length;c++)if(b=a[c].split(" "),b[0].length>0){var d=dnn.dom.getById(b[0]),e=dnn.dom.getById(b[1]);d!=null&&e!=null&&(d.setAttribute("moduleid",b[2]),dnn.dom.positioning.enableDragAndDrop(d,e,"__dnn_dragComplete()","__dnn_dragOver()"))}}var __dnn_oPrevSelPane,__dnn_oPrevSelModule,__dnn_dragEventCount=0;
function __dnn_dragOver(){__dnn_dragEventCount++;if(__dnn_dragEventCount%75==0){var a=dnn.dom.getById(dnn.dom.positioning.dragCtr.contID),b=__dnn_getMostSelectedPane(dnn.dom.positioning.dragCtr);if(__dnn_oPrevSelPane!=null)__dnn_oPrevSelPane.pane.style.border=__dnn_oPrevSelPane.origBorder;if(b!=null){__dnn_oPrevSelPane=b;b.pane.style.border="4px double "+DNN_HIGHLIGHT_COLOR;for(var c=__dnn_getPaneControlIndex(a,b),d,e,f=0;f<b.controls.length;f++)if(c>f&&b.controls[f].id!=a.id&&(d=b.controls[f]),c<=
f&&b.controls[f].id!=a.id){e=b.controls[f];break}if(__dnn_oPrevSelModule!=null)dnn.dom.getNonTextNode(__dnn_oPrevSelModule.control).style.border=__dnn_oPrevSelModule.origBorder;if(e!=null)__dnn_oPrevSelModule=e,dnn.dom.getNonTextNode(e.control).style.borderTop="5px groove "+DNN_HIGHLIGHT_COLOR;else if(d!=null)__dnn_oPrevSelModule=d,dnn.dom.getNonTextNode(d.control).style.borderBottom="5px groove "+DNN_HIGHLIGHT_COLOR}}}
function __dnn_dragComplete(){var a=dnn.dom.getById(dnn.dom.positioning.dragCtr.contID),b=a.getAttribute("moduleid");if(__dnn_oPrevSelPane!=null)__dnn_oPrevSelPane.pane.style.border=__dnn_oPrevSelPane.origBorder;if(__dnn_oPrevSelModule!=null)dnn.dom.getNonTextNode(__dnn_oPrevSelModule.control).style.border=__dnn_oPrevSelModule.origBorder;var c=__dnn_getMostSelectedPane(dnn.dom.positioning.dragCtr),d;if(c==null){d=__dnn_Panes();for(var e=0;e<d.length;e++)d[e].id==a.parentNode.id&&(c=d[e])}c!=null&&
(d=__dnn_getPaneControlIndex(a,c),__dnn_MoveToPane(c,a,d),dnn.callPostBack("MoveToPane","moduleid="+b,"pane="+c.paneName,"order="+d*2))}
function __dnn_MoveToPane(a,b,c){if(a!=null){for(var d=[];c<a.controls.length;c++){if(a.controls[c].control.id!=b.id)d[d.length]=a.controls[c].control;dnn.dom.removeChild(a.controls[c].control)}dnn.dom.appendChild(a.pane,b);b.style.top=0;b.style.left=0;b.style.position="relative";for(c=0;c<d.length;c++)dnn.dom.appendChild(a.pane,d[c]);__dnn_RefreshPanes()}else b.style.top=0,b.style.left=0,b.style.position="relative"}
function __dnn_RefreshPanes(){var a=dnn.getVar("__dnn_Panes").split(";"),b=dnn.getVar("__dnn_PaneNames").split(";");__dnn_m_aryPanes=[];for(var c=0;c<a.length;c++)a[c].length>0&&(__dnn_m_aryPanes[__dnn_m_aryPanes.length]=new __dnn_Pane(dnn.dom.getById(a[c]),b[c]))}var __dnn_m_aryPanes,__dnn_m_aryModules;function __dnn_Panes(){__dnn_m_aryPanes==null&&(__dnn_m_aryPanes=[],__dnn_RefreshPanes());return __dnn_m_aryPanes}
function __dnn_Modules(a){__dnn_m_aryModules==null&&__dnn_RefreshPanes();return __dnn_m_aryModules[a]}function __dnn_getMostSelectedPane(a){for(var a=new dnn.dom.positioning.dims(a),b=0,c,d,e=0;e<__dnn_Panes().length;e++){var f=__dnn_Panes()[e];c=new dnn.dom.positioning.dims(f.pane);c=dnn.dom.positioning.elementOverlapScore(c,a);c>b&&(b=c,d=f)}return d}
function __dnn_getPaneControlIndex(a,b){if(b!=null){var c=new dnn.dom.positioning.dims(a),d;if(b.controls.length==0)return 0;for(var e=0;e<b.controls.length;e++){d=b.controls[e];var f=new dnn.dom.positioning.dims(d.control);if(c.t<f.t)return d.index}return d!=null?d.index+1:0}}
function __dnn_Pane(a,b){this.pane=a;this.id=a.id;this.controls=[];this.origBorder=a.style.border;this.paneName=b;for(var c=0,d="",e=0;e<a.childNodes.length;e++){var f=a.childNodes[e];if(dnn.dom.isNonTextNode(f)){__dnn_m_aryModules==null&&(__dnn_m_aryModules=[]);var g=f.getAttribute("moduleid");if(g!=null&&g.length>0)d+=g+"~",this.controls[this.controls.length]=new __dnn_PaneControl(f,c),__dnn_m_aryModules[g]=f.id,c+=1}}this.moduleOrder=d}
function __dnn_PaneControl(a,b){this.control=a;this.id=a.id;this.index=b;this.origBorder=a.style.border}function __dnncore(){this.GetUserVal=0;this.SetUserVal=1}
__dnncore.prototype={getUserProp:function(a,b,c){this._doUserCallBack(dnncore.GetUserVal,a,b,null,new dnncore.UserPropArgs(a,b,c))},setUserProp:function(a,b,c,d){this._doUserCallBack(dnncore.SetUserVal,a,b,c,new dnncore.UserPropArgs(a,b,d))},_doUserCallBack:function(a,b,c,d,e){dnn&&dnn.xmlhttp?dnn.xmlhttp.doCallBack("__Page",a+COL_DELIMITER+b+COL_DELIMITER+c+COL_DELIMITER+d,dnncore._callBackSuccess,e,dnncore._callBackFail,null,true,null,0):alert("Client Personalization not enabled")},_callBackSuccess:function(a,
b){b.pFunc&&b.pFunc(b.namingCtr,b.key,a)},_callBackFail:function(a){window.status=a}};__dnncore.prototype.UserPropArgs=function(a,b,c){this.namingCtr=a;this.key=b;this.pFunc=c};var dnncore=new __dnncore;
