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