//DNNCORE.JS
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 oF=document.forms[0];if(__dnn_ClientAPIEnabled()&&__dnn_m_bPageLoaded)
oF.ScrollTop.value=document.documentElement.scrollTop?document.documentElement.scrollTop:dnn.dom.getByTagName("body")[0].scrollTop;}
function __dnn_setScrollTop(iTop)
{if(__dnn_ClientAPIEnabled())
{if(iTop==null)
iTop=document.forms[0].ScrollTop.value;var sID=dnn.getVar('ScrollToControl');if(sID!=null&&sID.length>0)
{var oCtl=dnn.dom.getById(sID);if(oCtl!=null)
{iTop=dnn.dom.positioning.elementTop(oCtl);dnn.setVar('ScrollToControl','');}}
window.scrollTo(0,iTop);}}
function __dnn_SetInitialFocus(sID)
{var oCtl=dnn.dom.getById(sID);if(oCtl!=null&&__dnn_CanReceiveFocus(oCtl))
oCtl.focus();}
function __dnn_CanReceiveFocus(e)
{if(e.style.display!='none'&&e.tabIndex>-1&&e.disabled==false&&e.style.visible!='hidden')
{var eParent=e.parentElement;while(eParent!=null&&eParent.tagName!='BODY')
{if(eParent.style.display=='none'||eParent.disabled||eParent.style.visible=='hidden')
return false;eParent=eParent.parentElement;}
return true;}
else
return false;}
function __dnn_ContainerMaxMin_OnClick(oLnk,sContentID)
{var oContent=dnn.dom.getById(sContentID);if(oContent!=null)
{var oBtn=oLnk.childNodes[0];var sContainerID=oLnk.getAttribute('containerid');var sCookieID=oLnk.getAttribute('cookieid');var sCurrentFile=oBtn.src.toLowerCase().substr(oBtn.src.lastIndexOf('/'));var sMaxFile;var sMaxIcon;var sMinIcon;if(dnn.getVar('min_icon_'+sContainerID))
sMinIcon=dnn.getVar('min_icon_'+sContainerID);else
sMinIcon=dnn.getVar('min_icon');if(dnn.getVar('max_icon_'+sContainerID))
sMaxIcon=dnn.getVar('max_icon_'+sContainerID);else
sMaxIcon=dnn.getVar('max_icon');sMaxFile=sMaxIcon.toLowerCase().substr(sMaxIcon.lastIndexOf('/'));var iNum=5;if(oLnk.getAttribute('animf')!=null)
iNum=new Number(oLnk.getAttribute('animf'));if(sCurrentFile==sMaxFile)
{oBtn.src=sMinIcon;dnn.dom.expandElement(oContent,iNum);oBtn.title=dnn.getVar('min_text');if(sCookieID!=null)
{if(dnn.getVar('__dnn_'+sContainerID+':defminimized')=='true')
dnn.dom.setCookie(sCookieID,'true',365);else
dnn.dom.deleteCookie(sCookieID);}
else
dnn.setVar('__dnn_'+sContainerID+'_Visible','true');}
else
{oBtn.src=sMaxIcon;dnn.dom.collapseElement(oContent,iNum);oBtn.title=dnn.getVar('max_text');if(sCookieID!=null)
{if(dnn.getVar('__dnn_'+sContainerID+':defminimized')=='true')
dnn.dom.deleteCookie(sCookieID);else
dnn.dom.setCookie(sCookieID,'false',365);}
else
dnn.setVar('__dnn_'+sContainerID+'_Visible','false');}
return true;}
return false;}
function __dnn_Help_OnClick(sHelpID)
{var oHelp=dnn.dom.getById(sHelpID);if(oHelp!=null)
{if(oHelp.style.display=='none')
oHelp.style.display='';else
oHelp.style.display='none';return true;}
return false;}
function __dnn_SectionMaxMin(oBtn,sContentID)
{var oContent=dnn.dom.getById(sContentID);if(oContent!=null)
{var sMaxIcon=oBtn.getAttribute('max_icon');var sMinIcon=oBtn.getAttribute('min_icon');var bCallback=oBtn.getAttribute('userctr')!=null;var sVal;if(oContent.style.display=='none')
{oBtn.src=sMinIcon;oContent.style.display='';if(bCallback)
sVal='True';else
dnn.setVar(oBtn.id+':exp',1);}
else
{oBtn.src=sMaxIcon;oContent.style.display='none';if(bCallback)
sVal='False';else
dnn.setVar(oBtn.id+':exp',0);}
if(bCallback)
dnncore.setUserProp(oBtn.getAttribute('userctr'),oBtn.getAttribute('userkey'),sVal,null);return true;}
return false;}
function __dnn_enableDragDrop()
{var aryConts=dnn.getVar('__dnn_dragDrop').split(";");var aryTitles;for(var i=0;i<aryConts.length;i++)
{aryTitles=aryConts[i].split(" ");if(aryTitles[0].length>0)
{var oCtr=dnn.dom.getById(aryTitles[0]);var oTitle=dnn.dom.getById(aryTitles[1]);if(oCtr!=null&&oTitle!=null)
{oCtr.setAttribute('moduleid',aryTitles[2]);dnn.dom.positioning.enableDragAndDrop(oCtr,oTitle,'__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 oCont=dnn.dom.getById(dnn.dom.positioning.dragCtr.contID);var oPane=__dnn_getMostSelectedPane(dnn.dom.positioning.dragCtr);if(__dnn_oPrevSelPane!=null)
__dnn_oPrevSelPane.pane.style.border=__dnn_oPrevSelPane.origBorder;if(oPane!=null)
{__dnn_oPrevSelPane=oPane;oPane.pane.style.border='4px double '+DNN_HIGHLIGHT_COLOR;var iIndex=__dnn_getPaneControlIndex(oCont,oPane);var oPrevCtl;var oNextCtl;for(var i=0;i<oPane.controls.length;i++)
{if(iIndex>i&&oPane.controls[i].id!=oCont.id)
oPrevCtl=oPane.controls[i];if(iIndex<=i&&oPane.controls[i].id!=oCont.id)
{oNextCtl=oPane.controls[i];break;}}
if(__dnn_oPrevSelModule!=null)
dnn.dom.getNonTextNode(__dnn_oPrevSelModule.control).style.border=__dnn_oPrevSelModule.origBorder;if(oNextCtl!=null)
{__dnn_oPrevSelModule=oNextCtl;dnn.dom.getNonTextNode(oNextCtl.control).style.borderTop='5px groove '+DNN_HIGHLIGHT_COLOR;}
else if(oPrevCtl!=null)
{__dnn_oPrevSelModule=oPrevCtl;dnn.dom.getNonTextNode(oPrevCtl.control).style.borderBottom='5px groove '+DNN_HIGHLIGHT_COLOR;}}}
function __dnn_dragComplete()
{var oCtl=dnn.dom.getById(dnn.dom.positioning.dragCtr.contID);var sModuleID=oCtl.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 oPane=__dnn_getMostSelectedPane(dnn.dom.positioning.dragCtr);var iIndex;if(oPane==null)
{var oPanes=__dnn_Panes();for(var i=0;i<oPanes.length;i++)
{if(oPanes[i].id==oCtl.parentNode.id)
oPane=oPanes[i];}}
if(oPane!=null)
{iIndex=__dnn_getPaneControlIndex(oCtl,oPane);__dnn_MoveToPane(oPane,oCtl,iIndex);dnn.callPostBack('MoveToPane','moduleid='+sModuleID,'pane='+oPane.paneName,'order='+iIndex*2);}}
function __dnn_MoveToPane(oPane,oCtl,iIndex)
{if(oPane!=null)
{var aryCtls=new Array();for(var i=iIndex;i<oPane.controls.length;i++)
{if(oPane.controls[i].control.id!=oCtl.id)
aryCtls[aryCtls.length]=oPane.controls[i].control;dnn.dom.removeChild(oPane.controls[i].control);}
dnn.dom.appendChild(oPane.pane,oCtl);oCtl.style.top=0;oCtl.style.left=0;oCtl.style.position='relative';for(var i=0;i<aryCtls.length;i++)
{dnn.dom.appendChild(oPane.pane,aryCtls[i]);}
__dnn_RefreshPanes();}
else
{oCtl.style.top=0;oCtl.style.left=0;oCtl.style.position='relative';}}
function __dnn_RefreshPanes()
{var aryPanes=dnn.getVar('__dnn_Panes').split(';');var aryPaneNames=dnn.getVar('__dnn_PaneNames').split(';');__dnn_m_aryPanes=new Array();for(var i=0;i<aryPanes.length;i++)
{if(aryPanes[i].length>0)
__dnn_m_aryPanes[__dnn_m_aryPanes.length]=new __dnn_Pane(dnn.dom.getById(aryPanes[i]),aryPaneNames[i]);}}
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(sModuleID)
{if(__dnn_m_aryModules==null)
__dnn_RefreshPanes();return __dnn_m_aryModules[sModuleID];}
function __dnn_getMostSelectedPane(oContent)
{var oCDims=new dnn.dom.positioning.dims(oContent);var iTopScore=0;var iScore;var oTopPane;for(var i=0;i<__dnn_Panes().length;i++)
{var oPane=__dnn_Panes()[i];var oPDims=new dnn.dom.positioning.dims(oPane.pane);iScore=dnn.dom.positioning.elementOverlapScore(oPDims,oCDims);if(iScore>iTopScore)
{iTopScore=iScore;oTopPane=oPane;}}
return oTopPane;}
function __dnn_getPaneControlIndex(oContent,oPane)
{if(oPane==null)
return;var oCDims=new dnn.dom.positioning.dims(oContent);var oCtl;if(oPane.controls.length==0)
return 0;for(var i=0;i<oPane.controls.length;i++)
{oCtl=oPane.controls[i];var oIDims=new dnn.dom.positioning.dims(oCtl.control);if(oCDims.t<oIDims.t)
return oCtl.index;}
if(oCtl!=null)
return oCtl.index+1;else
return 0;}
function __dnn_Pane(ctl,sPaneName)
{this.pane=ctl;this.id=ctl.id;this.controls=new Array();this.origBorder=ctl.style.border;this.paneName=sPaneName;var iIndex=0;var strModuleOrder='';for(var i=0;i<ctl.childNodes.length;i++)
{var oNode=ctl.childNodes[i];if(dnn.dom.isNonTextNode(oNode))
{if(__dnn_m_aryModules==null)
__dnn_m_aryModules=new Array();var sModuleID=oNode.getAttribute('moduleid');if(sModuleID!=null&&sModuleID.length>0)
{strModuleOrder+=sModuleID+'~';this.controls[this.controls.length]=new __dnn_PaneControl(oNode,iIndex);__dnn_m_aryModules[sModuleID]=oNode.id;iIndex+=1;}}}
this.moduleOrder=strModuleOrder;}
function __dnn_PaneControl(ctl,iIndex)
{this.control=ctl;this.id=ctl.id;this.index=iIndex;this.origBorder=ctl.style.border;}
function __dnncore()
{this.GetUserVal=0;this.SetUserVal=1;}
__dnncore.prototype={getUserProp:function(sNameCtr,sKey,pFunc){this._doUserCallBack(dnncore.GetUserVal,sNameCtr,sKey,null,new dnncore.UserPropArgs(sNameCtr,sKey,pFunc));},setUserProp:function(sNameCtr,sKey,sVal,pFunc){this._doUserCallBack(dnncore.SetUserVal,sNameCtr,sKey,sVal,new dnncore.UserPropArgs(sNameCtr,sKey,pFunc));},_doUserCallBack:function(iType,sNameCtr,sKey,sVal,pFunc){if(dnn&&dnn.xmlhttp)
{var sPack=iType+COL_DELIMITER+sNameCtr+COL_DELIMITER+sKey+COL_DELIMITER+sVal;dnn.xmlhttp.doCallBack('__Page',sPack,dnncore._callBackSuccess,pFunc,dnncore._callBackFail,null,true,null,0);}
else
alert('Client Personalization not enabled');},_callBackSuccess:function(result,ctx,req){if(ctx.pFunc)
ctx.pFunc(ctx.namingCtr,ctx.key,result);},_callBackFail:function(result,ctx){window.status=result;}}
__dnncore.prototype.UserPropArgs=function(sNameCtr,sKey,pFunc)
{this.namingCtr=sNameCtr;this.key=sKey;this.pFunc=pFunc;}
var dnncore=new __dnncore();
//DNN.JS
var dnn;var DNN_HIGHLIGHT_COLOR='#9999FF';var COL_DELIMITER=String.fromCharCode(18);var ROW_DELIMITER=String.fromCharCode(17);var QUOTE_REPLACEMENT=String.fromCharCode(19);var KEY_LEFT_ARROW=37;var KEY_UP_ARROW=38;var KEY_RIGHT_ARROW=39;var KEY_DOWN_ARROW=40;var KEY_RETURN=13;var KEY_ESCAPE=27;if(typeof(__dnn_m_aNamespaces)=='undefined')
var __dnn_m_aNamespaces=new Array();function __dnn()
{this.apiversion=.4;this.pns='';this.ns='dnn';this.diagnostics=null;this.vars=null;this.dependencies=new Array();this.isLoaded=false;this.delay=new Array();}
__dnn.prototype={getVars:function()
{if(this.vars==null)
{this.vars=new Array();var oCtl=dnn.dom.getById('__dnnVariable');if(oCtl!=null)
{if(oCtl.value.indexOf('__scdoff')!=-1)
{COL_DELIMITER='~|~';ROW_DELIMITER='~`~';QUOTE_REPLACEMENT='~!~';}
var aryItems=oCtl.value.split(ROW_DELIMITER);for(var i=0;i<aryItems.length;i++)
{var aryItem=aryItems[i].split(COL_DELIMITER);if(aryItem.length==2)
this.vars[aryItem[0]]=aryItem[1];}}}
return this.vars;},getVar:function(sKey)
{if(this.getVars()[sKey]!=null)
{var re=eval('/'+QUOTE_REPLACEMENT+'/g');return this.getVars()[sKey].replace(re,'"');}},setVar:function(sKey,sVal)
{if(this.vars==null)
this.getVars();this.vars[sKey]=sVal;var oCtl=dnn.dom.getById('__dnnVariable');if(oCtl==null)
{oCtl=dnn.dom.createElement('INPUT');oCtl.type='hidden';oCtl.id='__dnnVariable';dnn.dom.appendChild(dnn.dom.getByTagName("body")[0],oCtl);}
var sVals='';var s;var re=eval('/"/g');for(s in this.vars)
sVals+=ROW_DELIMITER+s+COL_DELIMITER+this.vars[s].toString().replace(re,QUOTE_REPLACEMENT);oCtl.value=sVals;return true;},callPostBack:function(sAction)
{var sPostBack=dnn.getVar('__dnn_postBack');var sData='';if(sPostBack.length>0)
{sData+=sAction;for(var i=1;i<arguments.length;i++)
{var aryParam=arguments[i].split('=');sData+=COL_DELIMITER+aryParam[0]+COL_DELIMITER+aryParam[1];}
eval(sPostBack.replace('[DATA]',sData));return true;}
return false;},createDelegate:function(oThis,pFunc)
{return function(){pFunc.apply(oThis,arguments);};},doDelay:function(sType,iTime,pFunc,oContext)
{if(this.delay[sType]==null)
{this.delay[sType]=new dnn.delayObject(pFunc,oContext,sType);this.delay[sType].num=window.setTimeout(dnn.createDelegate(this.delay[sType],this.delay[sType].complete),iTime);}},cancelDelay:function(sType)
{if(this.delay[sType]!=null)
{window.clearTimeout(this.delay[sType].num);this.delay[sType]=null;}},decodeHTML:function(s)
{return s.toString().replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"');},encode:function(sArg)
{if(encodeURIComponent)
return encodeURIComponent(sArg);else
return escape(sArg);},encodeHTML:function(s)
{return s.toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&apos;").replace(/\"/g,"&quot;");},evalJSON:function(s)
{return eval("("+s+")");},escapeForEval:function(s)
{return s.replace(/\\/g,'\\\\').replace(/\'/g,"\\'").replace(/\r/g,'').replace(/\n/g,'\\n').replace(/\./,'\\.');},extend:function(dest,src)
{for(s in src)
dest[s]=src[s];return dest;},dependenciesLoaded:function()
{return true;},loadNamespace:function()
{if(this.isLoaded==false)
{if(this.dependenciesLoaded())
{dnn=this;this.isLoaded=true;this.loadDependencies(this.pns,this.ns);}}},loadDependencies:function(sPNS,sNS)
{for(var i=0;i<__dnn_m_aNamespaces.length;i++)
{for(var iDep=0;iDep<__dnn_m_aNamespaces[i].dependencies.length;iDep++)
{if(__dnn_m_aNamespaces[i].dependencies[iDep]==sPNS+(sPNS.length>0?'.':'')+sNS)
__dnn_m_aNamespaces[i].loadNamespace();}}}}
__dnn.prototype.delayObject=function(pFunc,oContext,sType)
{this.num=null;this.pfunc=pFunc;this.context=oContext;this.type=sType;}
__dnn.prototype.delayObject.prototype={complete:function()
{dnn.delay[this.type]=null;this.pfunc(this.context);}}
__dnn.prototype.ScriptRequest=function(sSrc,sText,fCallBack)
{this.ctl=null;this.xmlhttp=null;this.src=null;this.text=null;if(sSrc!=null&&sSrc.length>0)
this.src=sSrc;if(sText!=null&&sText.length>0)
this.text=sText;this.callBack=fCallBack;this.status='init';this.timeOut=5000;}
__dnn.prototype.ScriptRequest.prototype={load:function()
{this.status='loading';this.ctl=document.createElement('script');this.ctl.type='text/javascript';if(this.src!=null)
{if(dnn.dom.browser.isType(dnn.dom.browser.Safari))
{this.xmlhttp=new XMLHttpRequest();this.xmlhttp.open('GET',this.src,true);this.xmlhttp.onreadystatechange=dnn.createDelegate(this,this.xmlhttpStatusChange);this.xmlhttp.send(null);return;}
else
{if(dnn.dom.browser.isType(dnn.dom.browser.InternetExplorer))
this.ctl.onreadystatechange=dnn.createDelegate(this,this.statusChange);else if(dnn.dom.browser.isType(dnn.dom.browser.Opera)==false)
this.ctl.onload=dnn.createDelegate(this,this.complete);this.ctl.src=this.src;}}
else
{if(dnn.dom.browser.isType(dnn.dom.browser.Safari))
this.ctl.innerHTML=dnn.encodeHTML(this.text);else
this.ctl.text=this.text;}
var oHeads=dnn.dom.getByTagName('HEAD');if(oHeads)
{if(dnn.dom.browser.isType(dnn.dom.browser.Opera)==false||this.src!=null)
oHeads[0].appendChild(this.ctl);}
else
alert('Cannot load dynamic script, no HEAD tag present.');if(this.src==null||dnn.dom.browser.isType(dnn.dom.browser.Opera))
this.complete();else if(this.timeOut)
dnn.doDelay('loadScript_'+this.src,this.timeOut,dnn.createDelegate(this,this.reload),null);},xmlhttpStatusChange:function()
{if(this.xmlhttp.readyState!=4)
return;this.src=null;this.text=this.xmlhttp.responseText;this.load();},statusChange:function()
{if((this.ctl.readyState=='loaded'||this.ctl.readyState=='complete')&&this.status!='complete')
this.complete();},reload:function()
{if(dnn.dom.scriptStatus(this.src)=='complete')
{this.complete();}
else
{this.load();}},complete:function()
{dnn.cancelDelay('loadScript_'+this.src);this.status='complete';if(typeof(this.callBack)!='undefined')
this.callBack(this);this.dispose();},dispose:function()
{this.callBack=null;if(this.ctl)
{if(this.ctl.onreadystatechange)
this.ctl.onreadystatechange=new function(){};else if(this.ctl.onload)
this.ctl.onload=null;this.ctl=null;}
this.xmlhttp=null;}}
function dnn_dom()
{this.pns='dnn';this.ns='dom';this.dependencies='dnn'.split(',');this.isLoaded=false;this.browser=new this.browserObject();this.__leakEvts=new Array();this.scripts=[];this.scriptElements=[];}
dnn_dom.prototype={appendChild:function(oParent,oChild)
{if(oParent.appendChild)
return oParent.appendChild(oChild);else
return null;},attachEvent:function(oCtl,sType,fHandler)
{if(dnn.dom.browser.isType(dnn.dom.browser.InternetExplorer)==false)
{var sName=sType.substring(2);oCtl.addEventListener(sName,function(evt){dnn.dom.event=new dnn.dom.eventObject(evt,evt.target);return fHandler();},false);}
else
oCtl.attachEvent(sType,function(){dnn.dom.event=new dnn.dom.eventObject(window.event,window.event.srcElement);return fHandler();});return true;},createElement:function(sTagName)
{if(document.createElement)
return document.createElement(sTagName.toLowerCase());else
return null;},cursorPos:function(oCtl)
{if(oCtl.value.length==0)
return 0;var iPos=-1;if(oCtl.selectionStart)
iPos=oCtl.selectionStart;else if(oCtl.createTextRange)
{var oSel=window.document.selection.createRange();var oRange=oCtl.createTextRange();if(oRange==null||oSel==null||((oSel.text!="")&&oRange.inRange(oSel)==false))
return-1;if(oSel.text=="")
{if(oRange.boundingLeft==oSel.boundingLeft)
iPos=0;else
{var sTagName=oCtl.tagName.toLowerCase();if(sTagName=="input")
{var sText=oRange.text;var i=1;while(i<sText.length)
{oRange.findText(sText.substring(i));if(oRange.boundingLeft==oSel.boundingLeft)
break;i++;}}
else if(sTagName=="textarea")
{var i=oCtl.value.length+1;var oCaret=document.selection.createRange().duplicate();while(oCaret.parentElement()==oCtl&&oCaret.move("character",1)==1)
--i;if(i==oCtl.value.length+1)
i=-1;}
iPos=i;}}
else
iPos=oRange.text.indexOf(oSel.text);}
return iPos;},cancelCollapseElement:function(oCtl)
{dnn.cancelDelay(oCtl.id+'col');oCtl.style.display='none';},collapseElement:function(oCtl,iNum,pCallBack)
{if(iNum==null)
iNum=10;oCtl.style.overflow='hidden';var oContext=new Object();oContext.num=iNum;oContext.ctl=oCtl;oContext.pfunc=pCallBack;oCtl.origHeight=oCtl.offsetHeight;dnn.dom.__collapseElement(oContext);},__collapseElement:function(oContext)
{var iNum=oContext.num;var oCtl=oContext.ctl;var iStep=oCtl.origHeight/iNum;if(oCtl.offsetHeight-(iStep*2)>0)
{oCtl.style.height=(oCtl.offsetHeight-iStep).toString()+'px';dnn.doDelay(oCtl.id+'col',10,dnn.dom.__collapseElement,oContext);}
else
{oCtl.style.display='none';if(oContext.pfunc!=null)
oContext.pfunc();}},cancelExpandElement:function(oCtl)
{dnn.cancelDelay(oCtl.id+'exp');oCtl.style.overflow='';oCtl.style.height='';},expandElement:function(oCtl,iNum,pCallBack)
{if(iNum==null)
iNum=10;if(oCtl.style.display=='none'&&oCtl.origHeight==null)
{oCtl.style.display='';oCtl.style.overflow='';oCtl.origHeight=oCtl.offsetHeight;oCtl.style.overflow='hidden';oCtl.style.height='1px';}
oCtl.style.display='';var oContext=new Object();oContext.num=iNum;oContext.ctl=oCtl;oContext.pfunc=pCallBack;dnn.dom.__expandElement(oContext);},__expandElement:function(oContext)
{var iNum=oContext.num;var oCtl=oContext.ctl;var iStep=oCtl.origHeight/iNum;if(oCtl.offsetHeight+iStep<oCtl.origHeight)
{oCtl.style.height=(oCtl.offsetHeight+iStep).toString()+'px';dnn.doDelay(oCtl.id+'exp',10,dnn.dom.__expandElement,oContext);}
else
{oCtl.style.overflow='';oCtl.style.height='';if(oContext.pfunc!=null)
oContext.pfunc();}},deleteCookie:function(sName,sPath,sDomain)
{if(this.getCookie(sName))
{this.setCookie(sName,'',-1,sPath,sDomain);return true;}
return false;},getAttr:function(oNode,sAttr,sDef)
{if(oNode.getAttribute==null)
return sDef;var sVal=oNode.getAttribute(sAttr);if(sVal==null||sVal=='')
return sDef;else
return sVal;},getById:function(sID,oCtl)
{if(oCtl==null)
oCtl=document;if(oCtl.getElementById)
return oCtl.getElementById(sID);else if(oCtl.all)
return oCtl.all(sID);else
return null;},getByTagName:function(sTag,oCtl)
{if(oCtl==null)
oCtl=document;if(oCtl.getElementsByTagName)
return oCtl.getElementsByTagName(sTag);else if(oCtl.all&&oCtl.all.tags)
return oCtl.all.tags(sTag);else
return null;},getParentByTagName:function(oCtl,sTag)
{var oP=oCtl.parentNode;sTag=sTag.toLowerCase();while(oP!=null)
{if(oP.tagName&&oP.tagName.toLowerCase()==sTag)
return oP;oP=oP.parentNode;}
return null;},getCookie:function(sName)
{var sCookie=" "+document.cookie;var sSearch=" "+sName+"=";var sStr=null;var iOffset=0;var iEnd=0;if(sCookie.length>0)
{iOffset=sCookie.indexOf(sSearch);if(iOffset!=-1)
{iOffset+=sSearch.length;iEnd=sCookie.indexOf(";",iOffset)
if(iEnd==-1)
iEnd=sCookie.length;sStr=unescape(sCookie.substring(iOffset,iEnd));}}
return(sStr);},getNonTextNode:function(oNode)
{if(this.isNonTextNode(oNode))
return oNode;while(oNode!=null&&this.isNonTextNode(oNode))
{oNode=this.getSibling(oNode,1);}
return oNode;},__leakEvt:function(sName,oCtl,oPtr)
{this.name=sName;this.ctl=oCtl;this.ptr=oPtr;},addSafeHandler:function(oDOM,sEvent,oObj,sMethod)
{oDOM[sEvent]=this.getObjMethRef(oObj,sMethod);if(dnn.dom.browser.isType(dnn.dom.browser.InternetExplorer))
{if(this.__leakEvts.length==0)
dnn.dom.attachEvent(window,'onunload',dnn.dom.destroyHandlers);this.__leakEvts[this.__leakEvts.length]=new dnn.dom.__leakEvt(sEvent,oDOM,oDOM[sEvent]);}},destroyHandlers:function()
{var iCount=dnn.dom.__leakEvts.length-1;for(var i=iCount;i>=0;i--)
{var oEvt=dnn.dom.__leakEvts[i];oEvt.ctl.detachEvent(oEvt.name,oEvt.ptr);oEvt.ctl[oEvt.name]=null;dnn.dom.__leakEvts.length=dnn.dom.__leakEvts.length-1;}},getObjMethRef:function(obj,methodName)
{return(function(e){e=e||window.event;return obj[methodName](e,this);});},getScript:function(sSrc)
{if(this.scriptElements[sSrc])
return this.scriptElements[sSrc];var oScripts=dnn.dom.getByTagName('SCRIPT');for(var s=0;s<oScripts.length;s++)
{if(oScripts[s].src!=null&&oScripts[s].src.indexOf(sSrc)>-1)
{this.scriptElements[sSrc]=oScripts[s];return oScripts[s];}}},getScriptPath:function()
{var oThisScript=dnn.dom.getScript('dnn.js');if(oThisScript)
return oThisScript.src.replace('dnn.js','');return'';},getSibling:function(oCtl,iOffset)
{if(oCtl!=null&&oCtl.parentNode!=null)
{for(var i=0;i<oCtl.parentNode.childNodes.length;i++)
{if(oCtl.parentNode.childNodes[i].id==oCtl.id)
{if(oCtl.parentNode.childNodes[i+iOffset]!=null)
return oCtl.parentNode.childNodes[i+iOffset];}}}
return null;},isNonTextNode:function(oNode)
{return(oNode.nodeType!=3&&oNode.nodeType!=8);},scriptFile:function(sSrc)
{var ary=sSrc.split('/');return ary[ary.length-1];},loadScript:function(sSrc,sText,callBack)
{var sFile;if(sSrc!=null&&sSrc.length>0)
{sFile=this.scriptFile(sSrc);if(this.scripts[sFile]!=null)
return;}
var oSR=new dnn.ScriptRequest(sSrc,sText,callBack);if(sFile)
this.scripts[sFile]=oSR;oSR.load();return oSR;},loadScripts:function(aSrc,aText,callBack)
{if(dnn.scripts==null)
{var oRef=function(aSrc,aText,callBack)
{return(function(){dnn.dom.loadScripts(aSrc,aText,callBack);});};dnn.dom.loadScript(dnn.dom.getScriptPath()+'dnn.scripts.js',null,oRef(aSrc,aText,callBack));return;}
var oBatch=new dnn.scripts.ScriptBatchRequest(aSrc,aText,callBack);oBatch.load();},scriptStatus:function(sSrc)
{var sFile=this.scriptFile(sSrc);if(this.scripts[sFile])
return this.scripts[sFile].status;var oScript=this.getScript(sSrc);if(oScript!=null)
return'complete';else
return'';},setScriptLoaded:function(sSrc)
{var sFile=this.scriptFile(sSrc);if(this.scripts[sFile]&&dnn.dom.scripts[sFile].status!='complete')
dnn.dom.scripts[sFile].complete();},navigate:function(sURL,sTarget)
{if(sTarget!=null&&sTarget.length>0)
{if(sTarget=='_blank')
window.open(sURL);else
document.frames[sTarget].location.href=sURL;}
else
window.location.href=sURL;return false;},removeChild:function(oChild)
{if(oChild.parentNode.removeChild)
return oChild.parentNode.removeChild(oChild);else
return null;},setCookie:function(sName,sVal,iDays,sPath,sDomain,bSecure)
{var sExpires;if(iDays)
{sExpires=new Date();sExpires.setTime(sExpires.getTime()+(iDays*24*60*60*1000));}
document.cookie=sName+"="+escape(sVal)+((sExpires)?"; expires="+sExpires.toGMTString():"")+
((sPath)?"; path="+sPath:"")+((sDomain)?"; domain="+sDomain:"")+((bSecure)?"; secure":"");if(document.cookie.length>0)
return true;},getCurrentStyle:function(oNode,prop)
{if(document.defaultView)
{if(oNode.nodeType!=oNode.ELEMENT_NODE)return null;return document.defaultView.getComputedStyle(oNode,'').getPropertyValue(prop.split('-').join(''));}
if(oNode.currentStyle)
return oNode.currentStyle[prop.split('-').join('')];if(oNode.style)
return oNode.style.getAttribute(prop.split('-').join(''));return null;},dependenciesLoaded:function()
{return(typeof(dnn)!='undefined');},loadNamespace:function()
{if(this.isLoaded==false)
{if(this.dependenciesLoaded())
{dnn.dom=this;this.isLoaded=true;dnn.loadDependencies(this.pns,this.ns);}}},getFormPostString:function(oCtl)
{var sRet='';if(oCtl!=null)
{if(oCtl.tagName&&oCtl.tagName.toLowerCase()=='form')
{for(var i=0;i<oCtl.elements.length;i++)
sRet+=this.getElementPostString(oCtl.elements[i]);}
else
{sRet=this.getElementPostString(oCtl);for(var i=0;i<oCtl.childNodes.length;i++)
sRet+=this.getFormPostString(oCtl.childNodes[i]);}}
return sRet;},getElementPostString:function(oCtl)
{var sTagName;if(oCtl.tagName)
sTagName=oCtl.tagName.toLowerCase();if(sTagName=='input')
{var sType=oCtl.type.toLowerCase();if(sType=='text'||sType=='password'||sType=='hidden'||((sType=='checkbox'||sType=='radio')&&oCtl.checked))
return oCtl.name+'='+dnn.encode(oCtl.value)+'&';}
else if(sTagName=='select')
{for(var i=0;i<oCtl.options.length;i++)
{if(oCtl.options[i].selected)
return oCtl.name+'='+dnn.encode(oCtl.options[i].value)+'&';}}
else if(sTagName=='textarea')
return oCtl.name+'='+dnn.encode(oCtl.value)+'&';return'';}}
dnn_dom.prototype.eventObject=function(e,srcElement)
{this.object=e;this.srcElement=srcElement;}
dnn_dom.prototype.browserObject=function()
{this.InternetExplorer='ie';this.Netscape='ns';this.Mozilla='mo';this.Opera='op';this.Safari='safari';this.Konqueror='kq';this.MacIE='macie';var sType;var agt=navigator.userAgent.toLowerCase();if(agt.indexOf('konqueror')!=-1)
sType=this.Konqueror;else if(agt.indexOf('opera')!=-1)
sType=this.Opera;else if(agt.indexOf('netscape')!=-1)
sType=this.Netscape;else if(agt.indexOf('msie')!=-1)
{if(agt.indexOf('mac')!=-1)
sType=this.MacIE;else
sType=this.InternetExplorer;}
else if(agt.indexOf('safari')!=-1)
sType='safari';if(sType==null)
sType=this.Mozilla;this.type=sType;this.version=parseFloat(navigator.appVersion);var sAgent=navigator.userAgent.toLowerCase();if(this.type==this.InternetExplorer)
{var temp=navigator.appVersion.split("MSIE");this.version=parseFloat(temp[1]);}
if(this.type==this.Netscape)
{var temp=sAgent.split("netscape");this.version=parseFloat(temp[1].split("/")[1]);}}
dnn_dom.prototype.browserObject.prototype={toString:function()
{return this.type+' '+this.version;},isType:function()
{for(var i=0;i<arguments.length;i++)
{if(dnn.dom.browser.type==arguments[i])
return true;}
return false;}}
function dnn_controls()
{this.pns='dnn';this.ns='controls';this.dependencies='dnn,dnn.dom'.split(',');this.isLoaded=false;this.controls=new Array();this.toolbars=[];this.orient=new Object();this.orient.horizontal=0;this.orient.vertical=1;this.action=new Object();this.action.postback=0;this.action.expand=1;this.action.none=2;this.action.nav=3;}
dnn_controls.prototype={dependenciesLoaded:function()
{return(typeof(dnn)!='undefined'&&typeof(dnn.dom)!='undefined');},loadNamespace:function()
{if(this.isLoaded==false)
{if(this.dependenciesLoaded())
{if(typeof(dnn_control)!='undefined')
dnn.extend(dnn_controls.prototype,new dnn_control);dnn.controls=new dnn_controls();this.isLoaded=true;dnn.loadDependencies(this.pns,this.ns);}}}}
dnn_controls.prototype.DNNNode=function(oNode)
{if(oNode!=null)
{this.node=oNode;this.id=oNode.getAttribute('id','');this.key=oNode.getAttribute('key','');this.text=oNode.getAttribute('txt','');this.url=oNode.getAttribute('url','');this.js=oNode.getAttribute('js','');this.target=oNode.getAttribute('tar','');this.toolTip=oNode.getAttribute('tTip','');this.enabled=oNode.getAttribute('enabled','1')!='0';this.css=oNode.getAttribute('css','');this.cssSel=oNode.getAttribute('cssSel','');this.cssHover=oNode.getAttribute('cssHover','');this.cssIcon=oNode.getAttribute('cssIcon','');this.hasNodes=oNode.childNodeCount()>0;this.hasPendingNodes=(oNode.getAttribute('hasNodes','0')=='1'&&this.hasNodes==false);this.imageIndex=new Number(oNode.getAttribute('imgIdx','-1'));this.image=oNode.getAttribute('img','');this.level=this.getNodeLevel();}}
dnn_controls.prototype.DNNNode.prototype={childNodeCount:function()
{return this.node.childNodes.length;},getNodeLevel:function()
{var i=0;var oNode=this.node;while(oNode!=null)
{oNode=oNode.parentNode();if(oNode==null||oNode.nodeName()=='root')
break;i++;}
return i;},update:function(sProp)
{if(sProp!=null)
{var sType=typeof(this[sProp]);if(sType=='string'||sType=='number'||this[sProp]==null)
this.node.setAttribute(sProp,this[sProp]);else if(sType=='boolean')
this.node.setAttribute(sProp,new Number(this[sProp]));}
else
{for(sProp in this)
this.update(sProp);}}}
function dnn_util()
{this.pns='dnn';this.ns='utilities';this.dependencies='dnn,dnn.dom'.split(',');this.isLoaded=false;}
dnn_util.prototype.dependenciesLoaded=function()
{return(typeof(dnn)!='undefined'&&typeof(dnn.dom)!='undefined');}
dnn_util.prototype.loadNamespace=function()
{if(this.isLoaded==false)
{if(this.dependenciesLoaded())
{if(typeof(dnn_utility)!='undefined')
dnn.extend(dnn_util.prototype,new dnn_utility);dnn.util=new dnn_util();this.isLoaded=true;dnn.loadDependencies(this.pns,this.ns);}}}
function $()
{var ary=new Array();for(var i=0;i<arguments.length;i++)
{var arg=arguments[i];var ctl;if(typeof arg=='string')
ctl=dnn.dom.getById(arg);else
ctl=arg;if(ctl!=null&&typeof(Element)!='undefined'&&typeof(Element.extend)!='undefined')
Element.extend(ctl);if(arguments.length==1)
return ctl;ary[ary.length]=ctl;}
return ary;}
__dnn_m_aNamespaces[__dnn_m_aNamespaces.length]=new dnn_util();__dnn_m_aNamespaces[__dnn_m_aNamespaces.length]=new dnn_controls();__dnn_m_aNamespaces[__dnn_m_aNamespaces.length]=new dnn_dom();__dnn_m_aNamespaces[__dnn_m_aNamespaces.length]=new __dnn();for(var i=__dnn_m_aNamespaces.length-1;i>=0;i--)
__dnn_m_aNamespaces[i].loadNamespace();
//DNN.DOM.POSITIONNING.JS
if(typeof(__dnn_m_aNamespaces)=='undefined')
var __dnn_m_aNamespaces=new Array();function dnn_dom_positioning()
{this.pns='dnn.dom';this.ns='positioning';this.dragCtr=null;this.dragCtrDims=null;this.dependencies='dnn,dnn.dom'.split(',');this.isLoaded=false;}
dnn_dom_positioning.prototype.bodyScrollLeft=function()
{if(window.pageYOffset)
return window.pageYOffset;var oBody=(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body;return oBody.scrollLeft;}
dnn_dom_positioning.prototype.bodyScrollTop=function()
{if(window.pageXOffset)
return window.pageXOffset;var oBody=(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body;return oBody.scrollTop;}
dnn_dom_positioning.prototype.viewPortHeight=function()
{if(window.innerHeight)
return window.innerHeight;var oBody=(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body;return oBody.clientHeight;}
dnn_dom_positioning.prototype.viewPortWidth=function()
{if(window.innerWidth)
return window.innerWidth;var oBody=(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body;return oBody.clientWidth;}

dnn_dom_positioning.prototype.dragContainer = function(oCtl)
{
	var iNewLeft=0;
	var iNewTop=0;
	var e = dnn.dom.event.object;
	var oCont = dnn.dom.getById(oCtl.contID);
	var oTitle = dnn.dom.positioning.dragCtr;
	var iScrollTop = this.bodyScrollTop();
	var iScrollLeft = this.bodyScrollLeft();

	if (oCtl.startLeft == null)
		oCtl.startLeft = e.clientX - this.elementLeft(oCont) + iScrollLeft;

	if (oCtl.startTop == null)
		oCtl.startTop = e.clientY - this.elementTop(oCont) + iScrollTop;

	if (oCont.style.position == 'relative')
		oCont.style.position = 'absolute';
	
	iNewLeft = e.clientX - oCtl.startLeft + iScrollLeft;
	iNewTop = e.clientY - oCtl.startTop + iScrollTop;

	if (iNewLeft > this.elementWidth(document.forms[0]))// this.viewPortWidth() + iScrollLeft)
		iNewLeft = this.elementWidth(document.forms[0]);//this.viewPortWidth() + iScrollLeft;
	
	if (iNewTop > this.elementHeight(document.forms[0])) //this.viewPortHeight() + iScrollTop)
		iNewTop = this.elementHeight(document.forms[0]);//this.viewPortHeight() + iScrollTop;
	
	oCont.style.left = iNewLeft + 'px';
	oCont.style.top = iNewTop + 'px';

	if (oTitle != null && oTitle.dragOver != null)
		eval(oCtl.dragOver);
}

dnn_dom_positioning.prototype.elementHeight = function (eSrc)
{	
	if (eSrc.offsetHeight == null || eSrc.offsetHeight == 0)
	{
		if (eSrc.offsetParent == null)
			return 0;
		if (eSrc.offsetParent.offsetHeight == null || eSrc.offsetParent.offsetHeight == 0)
		{
			if (eSrc.offsetParent.offsetParent != null)
				return eSrc.offsetParent.offsetParent.offsetHeight; //needed for Konqueror
			else
				return 0;
		}
		else
			return eSrc.offsetParent.offsetHeight;
	}
	else
		return eSrc.offsetHeight;
}

dnn_dom_positioning.prototype.elementLeft = function (eSrc)
{	
	return this.elementPos(eSrc).l;
}

dnn_dom_positioning.prototype.elementOverlapScore = function (oDims1, oDims2)
{		
	var iLeftScore = 0;
	var iTopScore = 0;
	if (oDims1.l <= oDims2.l && oDims2.l <= oDims1.r)	//if left of content fits between panel borders
		iLeftScore += (oDims1.r < oDims2.r ? oDims1.r : oDims2.r) - oDims2.l;	//set score based off left of content to closest right border
	if (oDims2.l <= oDims1.l && oDims1.l <= oDims2.r)	//if left of panel fits between content borders
		iLeftScore += (oDims2.r < oDims1.r ? oDims2.r : oDims1.r)  - oDims1.l; //set score based off left of panel to closest right border
	if (oDims1.t <= oDims2.t && oDims2.t <= oDims1.b)	//if top of content fits between panel borders
		iTopScore += (oDims1.b < oDims2.b ? oDims1.b : oDims2.b)  - oDims2.t;	//set score based off top of content to closest bottom border
	if (oDims2.t <= oDims1.t && oDims1.t <= oDims2.b)	//if top of panel fits between content borders
		iTopScore += (oDims2.b < oDims1.b ? oDims2.b : oDims1.b) -  - oDims1.t; //set score based off top of panel to closest bottom border
	
	return iLeftScore * iTopScore;
}
dnn_dom_positioning.prototype.elementTop=function(eSrc)
{return this.elementPos(eSrc).t;}
dnn_dom_positioning.prototype.elementPos=function(eSrc)
{var oPos=new Object();oPos.t=0;oPos.l=0;oPos.at=0;oPos.al=0;var eParent=eSrc;if(eSrc.style.position=='absolute')
{oPos.t=eParent.offsetTop;oPos.l=eParent.offsetLeft;}
while(eParent!=null)
{oPos.at+=eParent.offsetTop;oPos.al+=eParent.offsetLeft;if(eSrc.style.position!='absolute')
{if(eParent.id==eSrc.id||eParent.style.position!='relative')
{oPos.t+=eParent.offsetTop;oPos.l+=eParent.offsetLeft;}}
eParent=eParent.offsetParent;if(eParent==null||(eParent.tagName.toUpperCase()=="BODY"&&dnn.dom.browser.isType(dnn.dom.browser.Konqueror)))
break;}
return oPos;}
dnn_dom_positioning.prototype.elementWidth=function(eSrc)
{if(eSrc.offsetWidth==null||eSrc.offsetWidth==0)
{if(eSrc.offsetParent==null)
return 0;if(eSrc.offsetParent.offsetWidth==null||eSrc.offsetParent.offsetWidth==0)
{if(eSrc.offsetParent.offsetParent!=null)
return eSrc.offsetParent.offsetParent.offsetWidth;else
return 0;}
else
return eSrc.offsetParent.offsetWidth}
else
return eSrc.offsetWidth;}
dnn_dom_positioning.prototype.enableDragAndDrop=function(oContainer,oTitle,sDragCompleteEvent,sDragOverEvent)
{dnn.dom.attachEvent(document.body,'onmousemove',__dnn_bodyMouseMove);dnn.dom.attachEvent(document.body,'onmouseup',__dnn_bodyMouseUp);dnn.dom.attachEvent(oTitle,'onmousedown',__dnn_containerMouseDownDelay);if(dnn.dom.browser.type==dnn.dom.browser.InternetExplorer)
oTitle.style.cursor='hand';else
oTitle.style.cursor='pointer';if(oContainer.id.length==0)
oContainer.id=oTitle.id+'__dnnCtr';oTitle.contID=oContainer.id;if(sDragCompleteEvent!=null)
oTitle.dragComplete=sDragCompleteEvent;if(sDragOverEvent!=null)
oTitle.dragOver=sDragOverEvent;return true;}
dnn_dom_positioning.prototype.placeOnTop=function(oCont,bShow,sSrc)
{if(dnn.dom.browser.isType(dnn.dom.browser.Opera,dnn.dom.browser.Opera,dnn.dom.browser.Mozilla,dnn.dom.browser.Netscape))
return;var oIFR=dnn.dom.getById('ifr'+oCont.id);if(bShow)
{if(oIFR==null)
{var oIFR=document.createElement('iframe');oIFR.id='ifr'+oCont.id;if(sSrc!=null)
oIFR.src=sSrc;oIFR.style.top='0px';oIFR.style.left='0px';oIFR.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=0)";oIFR.scrolling='no';oIFR.frameBorder='no';oIFR.style.display='none';oIFR.style.position='absolute';oCont.parentNode.appendChild(oIFR);}
var oDims=new dnn.dom.positioning.dims(oCont);oIFR.style.width=oDims.w;oIFR.style.height=oDims.h;oIFR.style.top=oDims.t+'px';oIFR.style.left=oDims.l+'px';var iIndex=dnn.dom.getCurrentStyle(oCont,'zIndex');if(iIndex==null||iIndex==0)
oCont.style.zIndex=1;oIFR.style.zIndex=iIndex-1;oIFR.style.display="block";}
else if(oIFR!=null)
oIFR.style.display='none';}
dnn_dom_positioning.prototype.dims=function(eSrc)
{var bHidden=(eSrc.style.display=='none');if(bHidden)
eSrc.style.display="";this.w=dnn.dom.positioning.elementWidth(eSrc);this.h=dnn.dom.positioning.elementHeight(eSrc);var oPos=dnn.dom.positioning.elementPos(eSrc);this.t=oPos.t;this.l=oPos.l;this.at=oPos.at;this.al=oPos.al;this.rot=this.at-this.t;this.rol=this.al-this.l;this.r=this.l+this.w;this.b=this.t+this.h;if(bHidden)
eSrc.style.display="none";}
dnn_dom_positioning.prototype.dependenciesLoaded=function()
{return(typeof(dnn)!='undefined'&&typeof(dnn.dom)!='undefined');}
dnn_dom_positioning.prototype.loadNamespace=function()
{if(this.isLoaded==false)
{if(this.dependenciesLoaded())
{dnn.dom.positioning=this;this.isLoaded=true;dnn.loadDependencies(this.pns,this.ns);}}}
function __dnn_containerMouseDownDelay()
{var oTitle=dnn.dom.event.srcElement;dnn.doDelay('__dnn_dragdrop',500,__dnn_containerMouseDown,oTitle);}
function __dnn_containerMouseDown(oCtl)
{while(oCtl.contID==null)
{oCtl=oCtl.parentNode;if(oCtl.tagName.toUpperCase()=='BODY')
return;}
dnn.dom.positioning.dragCtr=oCtl;oCtl.startTop=null;oCtl.startLeft=null;var oCont=dnn.dom.getById(oCtl.contID);if(oCont.style.position==null||oCont.style.position.length==0)
oCont.style.position='relative';dnn.dom.positioning.dragCtrDims=new dnn.dom.positioning.dims(oCont);if(oCont.getAttribute('_b')==null)
{oCont.setAttribute('_b',oCont.style.backgroundColor);oCont.setAttribute('_z',oCont.style.zIndex);oCont.setAttribute('_w',oCont.style.width);oCont.setAttribute('_d',oCont.style.border);oCont.style.zIndex=9999;oCont.style.backgroundColor=DNN_HIGHLIGHT_COLOR;oCont.style.border='4px outset '+DNN_HIGHLIGHT_COLOR;oCont.style.width=dnn.dom.positioning.elementWidth(oCont);if(dnn.dom.browser.type==dnn.dom.browser.InternetExplorer)
oCont.style.filter='progid:DXImageTransform.Microsoft.Alpha(opacity=80)';}}
function __dnn_bodyMouseUp()
{dnn.cancelDelay('__dnn_dragdrop');var oCtl=dnn.dom.positioning.dragCtr;if(oCtl!=null&&oCtl.dragComplete!=null)
{eval(oCtl.dragComplete);var oCont=dnn.dom.getById(oCtl.contID);oCont.style.backgroundColor=oCont.getAttribute('_b');oCont.style.zIndex=oCont.getAttribute('_z');oCont.style.width=oCont.getAttribute('_w');oCont.style.border=oCont.getAttribute('_d');oCont.setAttribute('_b',null);oCont.setAttribute('_z',null);if(dnn.dom.browser.type==dnn.dom.browser.InternetExplorer)
oCont.style.filter=null;}
dnn.dom.positioning.dragCtr=null;}
function __dnn_bodyMouseMove()
{if(dnn.dom.positioning.dragCtr!=null)
dnn.dom.positioning.dragContainer(dnn.dom.positioning.dragCtr);}
__dnn_m_aNamespaces[__dnn_m_aNamespaces.length]=new dnn_dom_positioning();for(var i=__dnn_m_aNamespaces.length-1;i>=0;i--)
__dnn_m_aNamespaces[i].loadNamespace();
//DNN.XML.JS
if(typeof(__dnn_m_aNamespaces)=='undefined')
var __dnn_m_aNamespaces=new Array();function __dnn_getParser()
{if(dnn.dom.browser.isType(dnn.dom.browser.InternetExplorer))
return'MSXML';else if(dnn.dom.browser.isType(dnn.dom.browser.Netscape,dnn.dom.browser.Mozilla))
return'DOMParser';else
return'JS';}
function dnn_xml()
{this.pns='dnn';this.ns='xml';this.dependencies='dnn,dnn.dom'.split(',');this.isLoaded=false;this.parserName=null;}
dnn_xml.prototype.init=function()
{this.parserName=__dnn_getParser();if(this.parserName=='MSXML')
{dnn_xml.prototype.createDocument=function()
{var o=new ActiveXObject('MSXML.DOMDocument');o.async=false;return new dnn.xml.documentObject(o);}
dnn_xml.prototype.documentObject.prototype.getXml=function(sXml)
{return this._doc.xml;}
dnn_xml.prototype.documentObject.prototype.loadXml=function(sXml)
{return this._doc.loadXML(sXml);}}
else if(this.parserName=='DOMParser')
{dnn_xml.prototype.createDocument=function()
{return new dnn.xml.documentObject(document.implementation.createDocument("","",null));}
dnn_xml.prototype.documentObject.prototype.getXml=function(sXml)
{return this._doc.xml;}
dnn_xml.prototype.documentObject.prototype.loadXml=function(sXml)
{var oDoc=(new DOMParser()).parseFromString(sXml,"text/xml");while(this._doc.hasChildNodes())
this._doc.removeChild(this._doc.lastChild);for(var i=0;i<oDoc.childNodes.length;i++)
this._doc.appendChild(this._doc.importNode(oDoc.childNodes[i],true));}
function __dnn_getNodeXml()
{var oXmlSerializer=new XMLSerializer;var sXml=oXmlSerializer.serializeToString(this);return sXml;}
Node.prototype.__defineGetter__("xml",__dnn_getNodeXml);}
else
{dnn_xml.prototype.createDocument=function()
{return new dnn.xml.documentObject(new dnn.xml.JsDocument());}
dnn_xml.prototype.documentObject.prototype.getXml=function()
{return this._doc.getXml();}
dnn_xml.prototype.documentObject.prototype.loadXml=function(sXml)
{return this._doc.loadXml(sXml);}}}
dnn_xml.prototype.documentObject=function(oDoc)
{this._doc=oDoc;}
dnn_xml.prototype.documentObject.prototype.childNodes=function(iIndex)
{if(this._doc.childNodes[iIndex]!=null)
return new dnn.xml.XmlNode(this._doc.childNodes[iIndex]);}
dnn_xml.prototype.documentObject.prototype.findNode=function(sNodeName,sAttr,sValue)
{return this.childNodes(0).findNode(sNodeName,sAttr,sValue);}
dnn_xml.prototype.documentObject.prototype.childNodeCount=function()
{return this._doc.childNodes.length;}
dnn_xml.prototype.documentObject.prototype.rootNode=function()
{var oNode;for(var i=0;i<this.childNodeCount();i++)
{if(this.childNodes(i).nodeType!=7)
{oNode=this.childNodes(i);break;}}
return oNode;}
dnn_xml.prototype.XmlNode=function(oNode)
{this.node=oNode;this.ownerDocument=this.node.ownerDocument;this.nodeType=this.node.nodeType;}
dnn_xml.prototype.XmlNode.prototype.parentNode=function()
{if(this.node.parentNode!=null)
return new dnn.xml.XmlNode(this.node.parentNode);else
return null;}
dnn_xml.prototype.XmlNode.prototype.childNodes=function(iIndex)
{if(this.node.childNodes[iIndex]!=null)
return new dnn.xml.XmlNode(this.node.childNodes[iIndex]);}
dnn_xml.prototype.XmlNode.prototype.childNodeCount=function()
{return this.node.childNodes.length;}
dnn_xml.prototype.XmlNode.prototype.nodeName=function()
{return this.node.nodeName;}
dnn_xml.prototype.XmlNode.prototype.getAttribute=function(sAttr,sDef)
{var sRet=this.node.getAttribute(sAttr);if(sRet==null)
sRet=sDef;return sRet;}
dnn_xml.prototype.XmlNode.prototype.setAttribute=function(sAttr,sVal)
{if(sVal==null)
return this.node.removeAttribute(sAttr);else
return this.node.setAttribute(sAttr,sVal);}
dnn_xml.prototype.XmlNode.prototype.getXml=function()
{if(this.node.xml!=null)
return this.node.xml;else
return this.node.getXml();}
dnn_xml.prototype.XmlNode.prototype.getDocumentXml=function()
{if(this.node.ownerDocument.xml!=null)
return this.node.ownerDocument.xml;else
return this.node.ownerDocument.getXml();}
dnn_xml.prototype.XmlNode.prototype.appendXml=function(sXml)
{var oDoc=dnn.xml.createDocument();oDoc.loadXml('<___temp>'+sXml+'</___temp>');var aNodes=new Array();for(var i=0;i<oDoc.childNodes(0).childNodeCount();i++)
aNodes[aNodes.length]=oDoc.childNodes(0).childNodes(i).node;for(var i=0;i<aNodes.length;i++)
this.node.appendChild(aNodes[i]);return true;}
dnn_xml.prototype.XmlNode.prototype.getNodeIndex=function(sIDName)
{var oParent=this.parentNode();var sID=this.getAttribute(sIDName);for(var i=0;i<oParent.childNodeCount();i++)
{if(oParent.childNodes(i).getAttribute(sIDName)==sID)
return i;}
return-1;}
dnn_xml.prototype.XmlNode.prototype.findNode=function(sNodeName,sAttr,sValue)
{var sXPath="//"+sNodeName+"[@"+sAttr+"='"+sValue+"']";var oNode;if(typeof(this.node.selectSingleNode)!='undefined')
oNode=this.node.selectSingleNode(sXPath);else if(typeof(this.node.ownerDocument.evaluate)!='undefined')
{var oNodeList=(this.node.ownerDocument.evaluate(sXPath,this.node,null,0,null));if(oNodeList!=null)
oNode=oNodeList.iterateNext();}
else
oNode=this.node.ownerDocument.findNode(this.node,sNodeName,sAttr,sValue);if(oNode!=null)
return new dnn.xml.XmlNode(oNode);}
dnn_xml.prototype.XmlNode.prototype.removeChild=function(oNode)
{return this.node.removeChild(oNode.node);}
dnn_xml.prototype.dependenciesLoaded=function()
{return(typeof(dnn)!='undefined'&&typeof(dnn.dom)!='undefined');}
dnn_xml.prototype.loadNamespace=function()
{if(this.isLoaded==false)
{if(this.dependenciesLoaded())
{dnn.xml=this;this.isLoaded=true;dnn.loadDependencies(this.pns,this.ns);dnn.xml.init();}}}
__dnn_m_aNamespaces[__dnn_m_aNamespaces.length]=new dnn_xml();for(var i=__dnn_m_aNamespaces.length-1;i>=0;i--)
__dnn_m_aNamespaces[i].loadNamespace();
//TOOLBOX.JS
function submitButtonClick(button)
{if(typeof(Page_ClientValidate)=='function')
{if(Page_ClientValidate()==false)
{return false;}}
button.value='...';button.style.display='none';return true;}
var bName=navigator.appName;function taLimit(taObj,maxL){if(taObj.value.length==maxL)return false;return true;}
function taCount(taObj,Cnt,maxL){objCnt=createObject(Cnt);objVal=taObj.value;if(objVal.length>maxL)objVal=objVal.substring(0,maxL);if(objCnt){if(bName=="Netscape"){objCnt.textContent=maxL-objVal.length;}
else{objCnt.innerText=maxL-objVal.length;}}
return true;}
function createObject(objId){if(document.getElementById)return document.getElementById(objId);else if(document.layers)return eval("document."+objId);else if(document.all)return eval("document.all."+objId);else return eval("document."+objId);}
