﻿Type.registerNamespace('dnn.xmlhttp');dnn.xmlhttp.callbackType=function(){};dnn.xmlhttp.callbackType.prototype={simple:0,processPage:1,callBackMethod:2,processPageCallbackMethod:3}
dnn.xmlhttp.callbackType.registerEnum("dnn.xmlhttp.callbackType");dnn.xmlhttp.callbackStatus=function(){};dnn.xmlhttp.callbackStatus.prototype={ok:200,genericFailure:400,controlNotFound:404,interfactNotSupported:501}
dnn.xmlhttp.callbackStatus.registerEnum("dnn.xmlhttp.callbackStatus");dnn.extend(dnn.xmlhttp,{pns:'dnn',ns:'xmlhttp',parserName:null,contextId:0,requests:[],cleanUpTimer:null,callBackMethods:null,init:function()
{this.parserName=this._getParser();},onload:function()
{dnn.xmlhttp._fillCallBackMethods();},doCallBack:function(sControlId,sArg,pSuccessFunc,sContext,pFailureFunc,pStatusFunc,bAsync,sPostChildrenId,iType)
{var oReq=dnn.xmlhttp.createRequestObject();var sURL=document.location.href;oReq.successFunc=pSuccessFunc;oReq.failureFunc=pFailureFunc;oReq.statusFunc=pStatusFunc;oReq.context=sContext;if(bAsync==null)
bAsync=true;if(sURL.indexOf('#')!=-1)
sURL=sURL.substring(0,sURL.indexOf('#'));oReq.open('POST',sURL,bAsync);if(this.parserName=='JS')
sArg=dnn.encode(sArg,false);else
sArg=dnn.encode(sArg,true);if(sPostChildrenId)
sArg+='&'+dnn.dom.getFormPostString($get(sPostChildrenId));if(iType!=0)
sArg+='&__DNNCAPISCT='+iType;oReq.send('__DNNCAPISCI='+sControlId+'&__DNNCAPISCP='+sArg);return oReq;},callControlMethod:function(ns,method,args,successFunc,failFunc,context,type)
{if(this.callBackMethods==null)
this._fillCallBackMethods();if(type==null)
type=dnn.xmlhttp.callbackType.callBackMethod;if(this.callBackMethods[ns])
{if(args==null)
args={};var callContext={context:context,success:successFunc,fail:failFunc};var payload=Sys.Serialization.JavaScriptSerializer.serialize({method:method,args:args});dnn.xmlhttp.doCallBack(this.callBackMethods[ns],payload,dnn.xmlhttp.callBackMethodComplete,callContext,dnn.xmlhttp.callBackMethodError,null,true,null,type);}
else
{alert('Namespace not registered');}},callBackMethodComplete:function(result,context,req)
{result=Sys.Serialization.JavaScriptSerializer.deserialize(result);if(context.success)
context.success(result.result,context.context,req);},callBackMethodError:function(message,context,req)
{if(context.fail)
context.fail(message,context.context,req);},createRequestObject:function()
{if(this.parserName=='ActiveX')
{var o=new ActiveXObject('Microsoft.XMLHTTP');dnn.xmlhttp.requests[dnn.xmlhttp.requests.length]=new dnn.xmlhttp.XmlHttpRequest(o);return dnn.xmlhttp.requests[dnn.xmlhttp.requests.length-1];}
else if(this.parserName=='Native')
{return new dnn.xmlhttp.XmlHttpRequest(new XMLHttpRequest());}
else
{var oReq=new dnn.xmlhttp.XmlHttpRequest(new dnn.xmlhttp.JsXmlHttpRequest());dnn.xmlhttp.requests[oReq._request.contextId]=oReq;return oReq;}},_getParser:function()
{if(dnn.xmlhttp.JsXmlHttpRequest!=null)
return'JS';if(dnn.dom.browser.isType(dnn.dom.browser.InternetExplorer))
return'ActiveX';else if(typeof(XMLHttpRequest)!="undefined")
return'Native';else
return'JS';},_fillCallBackMethods:function()
{this.callBackMethods=[];var methods=dnn.getVar('__dnncbm','').split(' ');var pair;if(methods)
{for(var i=0;i<methods.length;i++)
{if(methods[i].length>0)
{pair=methods[i].split('=');this.callBackMethods[pair[0]]=pair[1];}}}},_cleanupxmlhttp:function()
{for(var i=0;i<dnn.xmlhttp.requests.length;i++)
{if(dnn.xmlhttp.requests[i]!=null)
{if(dnn.xmlhttp.requests[i].completed)
{dnn.xmlhttp.requests[i].dispose();if(dnn.xmlhttp.requests.length==1)
dnn.xmlhttp.requests=new Array();else
dnn.xmlhttp.requests.splice(i,i);}}}}});dnn.xmlhttp.XmlHttpRequest=function(o)
{this._request=o;this.successFunc=null;this.failureFunc=null;this.statusFunc=null;this._request.onreadystatechange=dnn.dom.getObjMethRef(this,'onreadystatechange');this.context=null;this.completed=false;}
dnn.xmlhttp.XmlHttpRequest.prototype={dispose:function()
{if(this._request!=null)
{this._request.onreadystatechange=new function(){};this._request.abort();this._request=null;this.successFunc=null;this.failureFunc=null;this.statusFunc=null;this.context=null;this.completed=null;this.postData=null;}},open:function(sMethod,sURL,bAsync)
{this._request.open(sMethod,sURL,bAsync);if(typeof(this._request.setRequestHeader)!='undefined')
this._request.setRequestHeader("Content-type","application/x-www-form-urlencoded; charset=UTF-8");return true;},send:function(postData)
{this.postData=postData;if(dnn.xmlhttp.parserName=='ActiveX')
this._request.send(postData);else
this._request.send(postData);return true;},onreadystatechange:function()
{if(this.statusFunc!=null)
this.statusFunc(this._request.readyState,this.context,this);if(this._request.readyState=='4')
{this.complete(this._request.responseText);if(dnn.xmlhttp.parserName=='ActiveX')
window.setTimeout(dnn.xmlhttp._cleanupxmlhttp,1);}},complete:function(res)
{var statusCode=this.getResponseHeader('__DNNCAPISCSI');this.completed=true;if(new Number(statusCode)==dnn.xmlhttp.callbackStatus.ok)
{var ret=Sys.Serialization.JavaScriptSerializer.deserialize(res);this.successFunc(ret.d,this.context,this);}
else
{var statusDesc=this.getResponseHeader('__DNNCAPISCSDI');if(this.failureFunc!=null)
this.failureFunc(statusCode+' - '+statusDesc,this.context,this);else
alert(statusCode+' - '+statusDesc);}},getResponseHeader:function(key)
{return this._request.getResponseHeader(key);}}
dnn.xmlhttp.XmlHttpRequest.registerClass('dnn.xmlhttp.XmlHttpRequest');dnn.xmlhttp.init();Sys.Application.add_load(dnn.xmlhttp.onload);
;;;dnn.xmlhttp.parserName='JS';dnn.xmlhttp.JsXmlHttpRequest=function()
{dnn.xmlhttp.contextId+=1;this.contextId=dnn.xmlhttp.contextId;this.method=null;this.url=null;this.async=true;this.doc=null;this.iframe=document.createElement('IFRAME');this.iframe.name='dnniframe'+this.contextId;this.iframe.id='dnniframe'+this.contextId;this.iframe.src='';this.iframe.height=0;this.iframe.width=0;this.iframe.style.visibility='hidden';document.body.appendChild(this.iframe);}
dnn.xmlhttp.JsXmlHttpRequest.prototype={open:function(sMethod,sURL,bAsync)
{this.method=sMethod;this.url=sURL;this.async=bAsync;},send:function(postData)
{this.assignIFrameDoc();if(this.doc==null)
{window.setTimeout(dnn.dom.getObjMethRef(this,'send'),1000);return;}
this.doc.open();this.doc.write('<html><body>');this.doc.write('<form name="TheForm" method="post" target="" ');var sSep='?';if(this.url.indexOf('?')>-1)
sSep='&';this.doc.write(' action="'+this.url+sSep+'__U='+this.getUnique()+'">');this.doc.write('<input type="hidden" name="ctx" value="'+this.contextId+'">');if(postData&&postData.length>0)
{var aryData=postData.split('&');for(var i=0;i<aryData.length;i++)
this.doc.write('<input type="hidden" name="'+aryData[i].split('=')[0]+'" value="'+aryData[i].split('=')[1]+'">');}
this.doc.write('</form></body></html>');this.doc.close();this.assignIFrameDoc();this.doc.forms[0].submit();},assignIFrameDoc:function()
{if(this.iframe.contentDocument)
this.doc=this.iframe.contentDocument;else if(this.iframe.contentWindow)
this.doc=this.iframe.contentWindow.document;else if(window.frames[this.iframe.name])
this.doc=window.frames[this.iframe.name].document;},getResponseHeader:function(sKey)
{this.assignIFrameDoc();var oCtl=dnn.dom.getById(sKey,this.doc);if(oCtl!=null)
return oCtl.value;else
return'WARNING:  response header not found';},getUnique:function()
{return new Date().getTime();}}
dnn.xmlhttp.JsXmlHttpRequest.registerClass('dnn.xmlhttp.JsXmlHttpRequest');
;;;Type.registerNamespace('dnn.controls');dnn.controls.orient=function(){};dnn.controls.orient.prototype={horizontal:0,vertical:1}
dnn.controls.orient.registerEnum("dnn.controls.orient");dnn.controls.action=function(){};dnn.controls.action.prototype={postback:0,expand:1,none:2,nav:3}
dnn.controls.action.registerEnum("dnn.controls.action");dnn.extend(dnn.controls,{version:new Number('02.03'),pns:'dnn',ns:'controls',isLoaded:false,controls:[],toolbars:[],_behaviorIDs:[],find:function(behaviorID)
{return this.controls[this._behaviorIDs[behaviorID]];}});dnn.controls.control=function(ctl)
{dnn.controls.control.initializeBase(this,[ctl]);dnn.controls.controls[ctl.id]=this;this.behaviorID='';this.ns=ctl.id;this.container=ctl;this._props=null;this._childControls=[];this._childControlIDs=[];this._handlerControls=[];}
dnn.controls.control.prototype={initialize:function(behaviorID)
{dnn.controls.control.callBaseMethod(this,'initialize');if(behaviorID)
this.behaviorID=behaviorID;else
this.behaviorID=this.getProp('bid','');if(this.behaviorID.length>0)
dnn.controls._behaviorIDs[this.behaviorID]=this.ns;},getProp:function(name,defVal)
{if(this._props==null)
{this._props={};var p=dnn.getVar(this.ns+'_p');if(p)
{this._props=dnn.evalJSON(p);if(dnn.dom.browser.isType(dnn.dom.browser.Mozilla)==false)
dnn.setVar(this.ns+'_p','');}}
var val=this._props[name];if(val==undefined||val=='')
return defVal;else
return val;},addHandlers:function(element,events,handlerOwner)
{this._handlerControls.push(element);$addHandlers(element,events,handlerOwner);},getChildControlId:function(id,prefix)
{return this.ns+prefix+id;},createChildControl:function(tag,id,prefix)
{var ctl=dnn.dom.createElement(tag);ctl.ns=this.ns;ctl.id=this.getChildControlId(id,prefix);this.registerChildControl(ctl,id);return ctl;},registerChildControl:function(ctl,id)
{this._childControlIDs[ctl.id]=id;this._childControls[ctl.id]=ctl;},getChildControl:function(id,prefix)
{var newId=this.ns+prefix+id;if(this._childControls[newId]!=null)
return this._childControls[newId];else
return $get(newId);},getChildControlBaseId:function(ctl)
{while(ctl.id.length==0&&ctl.parentNode)
{ctl=ctl.parentNode;}
return this._childControlIDs[ctl.id];},add_handler:function(name,handler)
{this.get_events().addHandler(name,handler);},remove_handler:function(name,handler)
{this.get_events().removeHandler(name,handler);},invoke_handler:function(name,args)
{var h=this.get_events().getHandler(name);if(args==null)
args=Sys.EventArgs.Empty;if(h)
h(this,args);},invoke_compatHandler:function(name)
{var ret=true;var h;var evts=this.get_events()._getEvent(name);if(evts)
{var argString='';for(var i=1;i<arguments.length;i++)
{if(i>1)
argString+=',';argString+='arguments['+i+']';}
for(var i=0;i<evts.length;i++)
{h=evts[i];ret=(eval('h('+argString+')')!=false);if(ret==false)
return ret;}}
return true;},getDynamicEventObject:function(name,handler)
{var eh={};eh[name]=handler;return eh;},callBackFail:function(result,ctx,req)
{this.invoke_handler('callBackFail',new dnn.controls.DNNCallbackEventArgs(result,ctx,req));alert(result);},dispose:function()
{this._childControls=null;this._childControlIDs=null;for(var i=0;i<this._handlerControls.length;i++)
{$clearHandlers(this._handlerControls[i]);this._handlerControls[i]=null;}
this.container=null;this._handlerControls=null;dnn.controls.control.callBaseMethod(this,'dispose');},_getEventName:function(s)
{if(s.indexOf('on')==0)
return s.substring(2);return s;}}
dnn.controls.control.registerClass('dnn.controls.control',Sys.UI.Control);dnn.controls.DNNNode=function(node)
{this._abbr={target:'tar',toolTip:'tTip',imageIndex:'imgIdx',image:'img'};if(node!=null)
{this.node=node;this.id=node.getAttribute('id','');this.key=node.getAttribute('key','');this.text=node.getAttribute('txt','');this.url=node.getAttribute('url','');this.js=node.getAttribute('js','');this.target=node.getAttribute('tar','');this.toolTip=node.getAttribute('tTip','');this.enabled=node.getAttribute('enabled','1')!='0';this.css=node.getAttribute('css','');this.cssSel=node.getAttribute('cssSel','');this.cssHover=node.getAttribute('cssHover','');this.cssIcon=node.getAttribute('cssIcon','');this.hasNodes=node.childNodeCount()>0;this.hasPendingNodes=(node.getAttribute('hasNodes','0')=='1'&&this.hasNodes==false);this.imageIndex=new Number(node.getAttribute('imgIdx','-1'));this.image=node.getAttribute('img','');this.level=this.getNodeLevel();this.isBreak=node.getAttribute('isBreak','0')=='1'?true:false;}}
dnn.controls.DNNNode.prototype={_getAbbr:function(name)
{if(this._abbr[name])
return this._abbr[name];return name;},_addAbbr:function(dict)
{for(var prop in dict)
this._abbr[prop]=dict[prop];},childNodeCount:function()
{return this.node.childNodeCount();},getNodeLevel:function()
{return this.getParentNodes().length;},getParentNodes:function()
{var nodes=[];var node=this.node;while(node!=null)
{node=node.parentNode();if(node==null||node.nodeName()=='root')
break;nodes.push(node);}
return nodes;},update:function(prop)
{if(prop!=null)
{var type=typeof(this[prop]);var key=prop;if(this._abbr[prop])
key=this._abbr[prop];if(type=='string'||type=='number'||this[prop]==null)
this.node.setAttribute(prop,this[prop]);else if(type=='boolean')
this.node.setAttribute(prop,new Number(this[prop]));}
else
{for(prop in this)
this.update(prop);}}}
dnn.controls.DNNNode.registerClass('dnn.controls.DNNNode');dnn.controls.JSONNode=function(node,nodeName,nodeIndex,path)
{dnn.extend(this,node);this._nodeName=nodeName;this._nodeDictionary=null;this._nodeIndex=nodeIndex;this._nodePath=nodeIndex.toString();if(path==null)
this._nodePath='';else if(path.length>0)
this._nodePath=path+'-'+nodeIndex;if(nodeName=='root')
{this._nodeDictionary=[];this.setupJSONNodes(this,this,node.nodes);}}
dnn.controls.JSONNode.prototype={getAttribute:function(name,def)
{def=(def)?def:'';return this[name]==null?def:this[name];},setAttribute:function(name,val)
{this[name]=val;},parentNode:function()
{return this._parentNode;},hasChildNodes:function()
{return this.nodes.length>0;},getNodeIndex:function()
{return this._nodeIndex;},getNodePath:function()
{return this._nodePath;},childNodeCount:function()
{return this.nodes.length;},childNodes:function(idx)
{return this.nodes[idx];},nodeName:function()
{return this._nodeName;},rootNode:function()
{return this._parentNode==null?this:this._parentNode.rootNode();},findNode:function(id)
{if(arguments.length==3)
id=arguments[2];return this.rootNode()._nodeDictionary[id];},getJSON:function(node)
{if(node==null)
node=this;var json='{';json+=this.getJSONAttributes(node,':',',')+',nodes:[';for(var i=0;i<node.childNodeCount();i++)
{if(i>0)
json+=',';json+=this.getJSON(node.childNodes(i));}
json+=']}';return json;},getXml:function(node)
{if(node==null)
node=this;var xml='';xml='<'+node.nodeName()+this.getXmlAttributes(node)+'>';for(var i=0;i<node.childNodeCount();i++)
{xml+=this.getXml(node.childNodes(i));}
xml=xml+'</'+node.nodeName()+'>';return xml;},getJSONAttributes:function(node)
{var ret='';for(var attr in node)
{if(typeof(node[attr])!='function'&&attr.substring(0,1)!='_'&&attr!='nodes')
{if(ret.length>0)
ret+=',';ret+=' '+attr+':"'+dnn.encodeJSON(node.getAttribute(attr).toString())+'"';}}
return ret;},getXmlAttributes:function(node)
{var ret='';for(var attr in node)
{if(typeof(node[attr])!='function'&&attr.substring(0,1)!='_'&&attr!='nodes')
{if(ret.length>0)
ret+=' ';ret+=' '+attr+'="'+dnn.encodeHTML(node.getAttribute(attr))+'"';}}
return ret;},setupJSONNodes:function(root,parent,nodes)
{var jnode;for(var i=0;i<nodes.length;i++)
{jnode=new dnn.controls.JSONNode(nodes[i],'n',i,parent.getNodePath());jnode._parentNode=parent;root._nodeDictionary[jnode.id]=jnode;nodes[i]=jnode;this.setupJSONNodes(root,jnode,jnode.nodes);}}}
dnn.controls.JSONNode.registerClass('dnn.controls.JSONNode');dnn.controls.DNNNodeEventArgs=function(node)
{dnn.controls.DNNNodeEventArgs.initializeBase(this);this._node=node;}
dnn.controls.DNNNodeEventArgs.prototype={get_node:function()
{return this._node;}}
dnn.controls.DNNNodeEventArgs.registerClass('dnn.controls.DNNNodeEventArgs',Sys.CancelEventArgs);dnn.controls.DNNTabStripEventArgs=function(tab)
{dnn.controls.DNNTabStripEventArgs.initializeBase(this);this._tab=tab;}
dnn.controls.DNNTabStripEventArgs.prototype={get_tab:function()
{return this._tab;}}
dnn.controls.DNNTabStripEventArgs.registerClass('dnn.controls.DNNTabStripEventArgs',Sys.CancelEventArgs);dnn.controls.DNNToolBarEventArgs=function(btn)
{dnn.controls.DNNToolBarEventArgs.initializeBase(this);this._btn=btn;}
dnn.controls.DNNToolBarEventArgs.prototype={get_button:function()
{return this._btn;}}
dnn.controls.DNNToolBarEventArgs.registerClass('dnn.controls.DNNToolBarEventArgs',Sys.CancelEventArgs);dnn.controls.DNNCallbackEventArgs=function(result,ctx,req)
{dnn.controls.DNNCallbackEventArgs.initializeBase(this);this._result=result;this._context=ctx;this._req=req;}
dnn.controls.DNNCallbackEventArgs.prototype={get_result:function()
{return this._result;},get_context:function()
{return this._context;},get_request:function()
{return this._req;}}
dnn.controls.DNNCallbackEventArgs.registerClass('dnn.controls.DNNCallbackEventArgs',Sys.EventArgs);dnn.controls._submitComponent=function()
{dnn.controls._submitComponent.initializeBase(this);}
dnn.controls._submitComponent.prototype={onsubmit:function()
{var h=this.get_events().getHandler('submit');if(h)
h(this,Sys.EventArgs.Empty);},add_handler:function(handler)
{this.get_events().addHandler('submit',handler);},remove_handler:function(handler)
{this.get_events().removeHandler('submit',handler);},dispose:function()
{dnn.controls._submitComponent.callBaseMethod(this,'dispose');}}
dnn.controls._submitComponent.registerClass('dnn.controls._submitComponent',Sys.Component);if(dnn.controls.submitComp==null)
dnn.controls.submitComp=new dnn.controls._submitComponent();
;;;var DNN_COL_DELIMITER=String.fromCharCode(16);var DNN_ROW_DELIMITER=String.fromCharCode(15);var __dnn_m_bPageLoaded=false;if(window.addEventListener){window.addEventListener("load",__dnn_Page_OnLoad,false)}else{window.attachEvent("onload",__dnn_Page_OnLoad)}function __dnn_ClientAPIEnabled(){return typeof(dnn)!="undefined"&&typeof(dnn.dom)!="undefined"}function __dnn_Page_OnLoad(){if(__dnn_ClientAPIEnabled()){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&&typeof(a.ScrollTop)!="undefined"){a.ScrollTop.value=document.documentElement.scrollTop?document.documentElement.scrollTop:dnn.dom.getByTagName("body")[0].scrollTop}}function __dnn_setScrollTop(c){if(__dnn_ClientAPIEnabled()){if(c==null){c=document.forms[0].ScrollTop.value}var a=dnn.getVar("ScrollToControl");if(a!=null&&a.length>0){var b=dnn.dom.getById(a);if(b!=null){c=dnn.dom.positioning.elementTop(b);dnn.setVar("ScrollToControl","")}}if(document.getElementsByTagName("html")[0].style.overflow!="hidden"){window.scrollTo(0,c)}}}function __dnn_SetInitialFocus(a){var b=dnn.dom.getById(a);if(b!=null&&__dnn_CanReceiveFocus(b)){b.focus()}}function __dnn_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 __dnn_ContainerMaxMin_OnClick(i,b){var g=dnn.dom.getById(b);if(g!=null){var e=i.childNodes[0];var l=dnn.getVar("containerid_"+b);var j=dnn.getVar("cookieid_"+b);var d=e.src.toLowerCase().substr(e.src.lastIndexOf("/"));var a;var h;var k;if(dnn.getVar("min_icon_"+l)){k=dnn.getVar("min_icon_"+l)}else{k=dnn.getVar("min_icon")}if(dnn.getVar("max_icon_"+l)){h=dnn.getVar("max_icon_"+l)}else{h=dnn.getVar("max_icon")}a=h.toLowerCase().substr(h.lastIndexOf("/"));var c=5;var f=dnn.getVar("animf_"+b);if(f!=null){c=new Number(f)}if(d==a){e.src=k;dnn.dom.expandElement(g,c);e.title=dnn.getVar("min_text");if(j!=null){if(dnn.getVar("__dnn_"+l+":defminimized")=="true"){dnn.dom.setCookie(j,"true",365)}else{dnn.dom.deleteCookie(j)}}else{dnn.setVar("__dnn_"+l+"_Visible","true")}}else{e.src=h;dnn.dom.collapseElement(g,c);e.title=dnn.getVar("max_text");if(j!=null){if(dnn.getVar("__dnn_"+l+":defminimized")=="true"){dnn.dom.deleteCookie(j)}else{dnn.dom.setCookie(j,"false",365)}}else{dnn.setVar("__dnn_"+l+"_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(f,c){var d=dnn.dom.getById(c);if(d!=null){var g=f.getAttribute("max_icon");var e=f.getAttribute("min_icon");var a=f.getAttribute("userctr")!=null;var b;if(d.style.display=="none"){f.src=e;d.style.display="";if(a){b="True"}else{dnn.setVar(f.id+":exp",1)}}else{f.src=g;d.style.display="none";if(a){b="False"}else{dnn.setVar(f.id+":exp",0)}}if(a){dnncore.setUserProp(f.getAttribute("userctr"),f.getAttribute("userkey"),b,null)}return true}return false}function __dnn_enableDragDrop(){var b=dnn.getVar("__dnn_dragDrop").split(";");var e;for(var c=0;c<b.length;c++){e=b[c].split(" ");if(e[0].length>0){var a=dnn.dom.getById(e[0]);var d=dnn.dom.getById(e[1]);if(a!=null&&d!=null){a.setAttribute("moduleid",e[2]);dnn.dom.positioning.enableDragAndDrop(a,d,"__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 c=dnn.dom.getById(dnn.dom.positioning.dragCtr.contID);var a=__dnn_getMostSelectedPane(dnn.dom.positioning.dragCtr);if(__dnn_oPrevSelPane!=null){__dnn_oPrevSelPane.pane.style.border=__dnn_oPrevSelPane.origBorder}if(a!=null){__dnn_oPrevSelPane=a;a.pane.style.border="4px double "+DNN_HIGHLIGHT_COLOR;var e=__dnn_getPaneControlIndex(c,a);var b;var f;for(var d=0;d<a.controls.length;d++){if(e>d&&a.controls[d].id!=c.id){b=a.controls[d]}if(e<=d&&a.controls[d].id!=c.id){f=a.controls[d];break}}if(__dnn_oPrevSelModule!=null){dnn.dom.getNonTextNode(__dnn_oPrevSelModule.control).style.border=__dnn_oPrevSelModule.origBorder}if(f!=null){__dnn_oPrevSelModule=f;dnn.dom.getNonTextNode(f.control).style.borderTop="5px groove "+DNN_HIGHLIGHT_COLOR}else{if(b!=null){__dnn_oPrevSelModule=b;dnn.dom.getNonTextNode(b.control).style.borderBottom="5px groove "+DNN_HIGHLIGHT_COLOR}}}}function __dnn_dragComplete(){var f=dnn.dom.getById(dnn.dom.positioning.dragCtr.contID);var d=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 b=__dnn_getMostSelectedPane(dnn.dom.positioning.dragCtr);var e;if(b==null){var a=__dnn_Panes();for(var c=0;c<a.length;c++){if(a[c].id==f.parentNode.id){b=a[c]}}}if(b!=null){e=__dnn_getPaneControlIndex(f,b);__dnn_MoveToPane(b,f,e);dnn.callPostBack("MoveToPane","moduleid="+d,"pane="+b.paneName,"order="+e*2)}}function __dnn_MoveToPane(a,e,d){if(a!=null){var c=new Array();for(var b=d;b<a.controls.length;b++){if(a.controls[b].control.id!=e.id){c[c.length]=a.controls[b].control}dnn.dom.removeChild(a.controls[b].control)}dnn.dom.appendChild(a.pane,e);e.style.top=0;e.style.left=0;e.style.position="relative";for(var b=0;b<c.length;b++){dnn.dom.appendChild(a.pane,c[b])}__dnn_RefreshPanes()}else{e.style.top=0;e.style.left=0;e.style.position="relative"}}function __dnn_RefreshPanes(){var b=dnn.getVar("__dnn_Panes").split(";");var a=dnn.getVar("__dnn_PaneNames").split(";");__dnn_m_aryPanes=new Array();for(var c=0;c<b.length;c++){if(b[c].length>0){__dnn_m_aryPanes[__dnn_m_aryPanes.length]=new __dnn_Pane(dnn.dom.getById(b[c]),a[c])}}}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(g){var c=new dnn.dom.positioning.dims(g);var f=0;var a;var h;for(var e=0;e<__dnn_Panes().length;e++){var b=__dnn_Panes()[e];var d=new dnn.dom.positioning.dims(b.pane);a=dnn.dom.positioning.elementOverlapScore(d,c);if(a>f){f=a;h=b}}return h}function __dnn_getPaneControlIndex(f,b){if(b==null){return}var a=new dnn.dom.positioning.dims(f);var e;if(b.controls.length==0){return 0}for(var c=0;c<b.controls.length;c++){e=b.controls[c];var d=new dnn.dom.positioning.dims(e.control);if(a.t<d.t){return e.index}}if(e!=null){return e.index+1}else{return 0}}function __dnn_Pane(a,b){this.pane=a;this.id=a.id;this.controls=new Array();this.origBorder=a.style.border;this.paneName=b;var f=0;var e="";for(var d=0;d<a.childNodes.length;d++){var g=a.childNodes[d];if(dnn.dom.isNonTextNode(g)){if(__dnn_m_aryModules==null){__dnn_m_aryModules=new Array()}var c=g.getAttribute("moduleid");if(c!=null&&c.length>0){e+=c+"~";this.controls[this.controls.length]=new __dnn_PaneControl(g,f);__dnn_m_aryModules[c]=g.id;f+=1}}}this.moduleOrder=e}function __dnn_PaneControl(a,b){this.control=a;this.id=a.id;this.index=b;this.origBorder=a.style.border}function __dnn_ShowModalPage(a){dnnModal.show(a,true,550,950,true,"")}function __dnncore(){this.GetUserVal=0;this.SetUserVal=1}__dnncore.prototype={getUserProp:function(b,c,a){this._doUserCallBack(dnncore.GetUserVal,b,c,null,new dnncore.UserPropArgs(b,c,a))},setUserProp:function(c,d,a,b){this._doUserCallBack(dnncore.SetUserVal,c,d,a,new dnncore.UserPropArgs(c,d,b))},_doUserCallBack:function(c,d,e,a,b){if(dnn&&dnn.xmlhttp){var f=c+COL_DELIMITER+d+COL_DELIMITER+e+COL_DELIMITER+a;dnn.xmlhttp.doCallBack("__Page",f,dnncore._callBackSuccess,b,dnncore._callBackFail,null,true,null,0)}else{alert("Client Personalization not enabled")}},_callBackSuccess:function(a,b,c){if(b.pFunc){b.pFunc(b.namingCtr,b.key,a)}},_callBackFail:function(a,b){window.status=a}};__dnncore.prototype.UserPropArgs=function(b,c,a){this.namingCtr=b;this.key=c;this.pFunc=a};var dnncore=new __dnncore();
;;;Type.registerNamespace('dnn.dom.positioning');dnn.extend(dnn.dom.positioning,{pns:'dnn.dom',ns:'positioning',dragCtr:null,dragCtrDims:null,bodyScrollLeft:function()
{if(window.pageYOffset)
return window.pageYOffset;var oBody=(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body;return oBody.scrollLeft;},bodyScrollTop:function()
{if(window.pageXOffset)
return window.pageXOffset;var oBody=(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body;return oBody.scrollTop;},viewPortHeight:function()
{if(window.innerHeight)
return window.innerHeight;var oBody=(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body;return oBody.clientHeight;},viewPortWidth:function()
{if(window.innerWidth)
return window.innerWidth;var oBody=(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body;return oBody.clientWidth;},dragContainer:function(oCtl,e)
{var iNewLeft=0;var iNewTop=0;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]))
iNewLeft=this.elementWidth(document.forms[0]);if(iNewTop>this.elementHeight(document.forms[0]))
iNewTop=this.elementHeight(document.forms[0]);oCont.style.left=iNewLeft+'px';oCont.style.top=iNewTop+'px';if(oTitle!=null&&oTitle.dragOver!=null)
eval(oCtl.dragOver);},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;else
return 0;}
else
return eSrc.offsetParent.offsetHeight;}
else
return eSrc.offsetHeight;},elementLeft:function(eSrc)
{return this.elementPos(eSrc).l;},elementOverlapScore:function(oDims1,oDims2)
{var iLeftScore=0;var iTopScore=0;if(oDims1.l<=oDims2.l&&oDims2.l<=oDims1.r)
iLeftScore+=(oDims1.r<oDims2.r?oDims1.r:oDims2.r)-oDims2.l;if(oDims2.l<=oDims1.l&&oDims1.l<=oDims2.r)
iLeftScore+=(oDims2.r<oDims1.r?oDims2.r:oDims1.r)-oDims1.l;if(oDims1.t<=oDims2.t&&oDims2.t<=oDims1.b)
iTopScore+=(oDims1.b<oDims2.b?oDims1.b:oDims2.b)-oDims2.t;if(oDims2.t<=oDims1.t&&oDims1.t<=oDims2.b)
iTopScore+=(oDims2.b<oDims1.b?oDims2.b:oDims1.b)-oDims1.t;return iLeftScore*iTopScore;},elementTop:function(eSrc)
{return this.elementPos(eSrc).t;},elementPos:function(eSrc)
{var oPos=new Object();oPos.t=0;oPos.l=0;oPos.at=0;oPos.al=0;var eParent=eSrc;var style;var srcId=eSrc.id;if(srcId!=null&&srcId.length==0)
srcId=null;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.currentStyle)
style=eParent.currentStyle;else
style=Sys.UI.DomElement._getCurrentStyle(eParent);if(eParent.id==srcId||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;},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;},enableDragAndDrop:function(oContainer,oTitle,sDragCompleteEvent,sDragOverEvent)
{dnn.dom.addSafeHandler(document.body,'onmousemove',dnn.dom.positioning,'__dnn_bodyMouseMove');dnn.dom.addSafeHandler(document.body,'onmouseup',dnn.dom.positioning,'__dnn_bodyMouseUp');dnn.dom.addSafeHandler(oTitle,'onmousedown',dnn.dom.positioning,'__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;},placeOnTop:function(oCont,bShow,sSrc)
{if(dnn.dom.browser.isType(dnn.dom.browser.Opera,dnn.dom.browser.Mozilla,dnn.dom.browser.Netscape,dnn.dom.browser.Safari)||(dnn.dom.browser.isType(dnn.dom.browser.InternetExplorer)&&dnn.dom.browser.version>=7))
return;var oIFR=dnn.dom.getById('ifr'+oCont.id);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||isNaN(iIndex))
iIndex=1;oCont.style.zIndex=iIndex;oIFR.style.zIndex=iIndex-1;if(bShow)
oIFR.style.display="block";else if(oIFR!=null)
oIFR.style.display='none';},__dnn_containerMouseDown:function(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)';}},__dnn_containerMouseDownDelay:function(e)
{var oTitle=e.srcElement;if(oTitle==null)
oTitle=e.target;dnn.doDelay('__dnn_dragdrop',500,this.__dnn_containerMouseDown,oTitle);},__dnn_bodyMouseUp:function()
{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;},__dnn_bodyMouseMove:function(e)
{if(this.dragCtr!=null)
this.dragContainer(this.dragCtr,e);}});dnn.dom.positioning.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.dims.registerClass('dnn.dom.positioning.dims');
;;;Type.registerNamespace('dnn.controls');dnn.extend(dnn.controls,{initMenu:function(ctl)
{if(ctl&&dnn.controls.controls[ctl.id]==null)
{var menu=new dnn.controls.DNNMenu(ctl);menu.initialize();return menu;}}});dnn.controls.DNNMenu=function(o)
{dnn.controls.DNNMenu.initializeBase(this,[o]);this.rootNode=null;this.nodes=[];this._loadNodes();this.mbcss=this.getProp('mbcss','');this.mcss=this.getProp('mcss','');this.css=this.getProp('css','');this.cssChild=this.getProp('csschild','');this.cssHover=this.getProp('csshover','');this.cssSel=this.getProp('csssel','');this.cssIcon=this.getProp('cssicon','');this.sysImgPath=this.getProp('sysimgpath','images/');this.imagePaths=this.getProp('imagepaths','').split(',');this.imageList=this.getProp('imagelist','').split(',');for(var i=0;i<this.imageList.length;i++)
{var index=this.imageList[i].indexOf(']');if(index>-1)
this.imageList[i]=this.imagePaths[this.imageList[i].substring(1,index)]+this.imageList[i].substring(index+1);}
this.urlList=this.getProp('urllist','').split(',');this.workImg=this.getProp('workimg','dnnanim.gif');this.rootArrow=this.getProp('rarrowimg','');this.childArrow=this.getProp('carrowimg','');this.target=this.getProp('target','');this.defaultJS=this.getProp('js','');this.postBack=this.getProp('postback','');this.callBack=this.getProp('callback','');this.callBackStatFunc=this.getProp('callbacksf','');if(this.callBackStatFunc.length>0)
this.add_handler('callBackStatus',eval(this.callBackStatFunc));this.orient=new Number(this.getProp('orient',dnn.controls.orient.horizontal));this.suborient=new Number(this.getProp('suborient',dnn.controls.orient.vertical));this.openMenus=[];this.moutDelay=this.getProp('moutdelay',500);this.minDelay=new Number(this.getProp('mindelay',250));this.renderMode=new Number(this.getProp('rmode',0));this.useTables=(this.renderMode==dnn.controls.menuRenderMode.normal);this.enablePostbackState=(this.getProp('enablepbstate','0')=='1');this.podInProgress=false;this.keyboardAccess=(this.getProp('kbaccess','1')=='1');this.hoverMNode=null;this.selMNode=null;this.animation=new Number(this.getProp('anim','0'));this.easingType=new Number(this.getProp('easeType','3'));this.easingDir=new Number(this.getProp('easeDir','1'));;this.animationLen=new Number(this.getProp('animLen','1'));this.animationInterval=new Number(this.getProp('animInt','10'));this._attachedHandlers=[];this._onsubmitDelegate=null;this._hideMenusDelegate=null;this._expandNodeDelegate=null;}
dnn.controls.DNNMenu.prototype={initialize:function()
{dnn.controls.DNNMenu.callBaseMethod(this,'initialize');if(this.keyboardAccess)
{this._setupKeyHandling();}
this.generateMenuHTML();if(this.enablePostbackState)
{this._onsubmitDelegate=Function.createDelegate(this,this._onsubmit);dnn.controls.submitComp.add_handler(this._onsubmitDelegate);}
this._hideMenusDelegate=dnn.createDelegate(this,this.hideMenus);this._expandNodeDelegate=dnn.createDelegate(this,this.__expandNode);},generateMenuHTML:function()
{this.container.className=this.mbcss;dnn.dom.disableTextSelect(this.container);if(this.rootNode!==null){for(var i=0;i<this.rootNode.childNodeCount();i++)this.renderNode(this.rootNode.childNodes(i),this.container);this.addHandlers(document.body,{"click":this._bodyClick},this);}dnn.setVar(this.ns+'_json','');},renderNode:function(node,ctr)
{var mNode=new dnn.controls.DNNMenuNode(node);if(mNode.selected)
this.selMNode=mNode;var menuBuilder=this._getMenuBuilder(mNode,ctr);if(menuBuilder.alreadyRendered==false)
{if(this.isNodeVertical(mNode))
menuBuilder.newRow();menuBuilder.newCont();if(mNode.lhtml.length>0)
menuBuilder.appendChild(this.renderCustomHTML(mNode.lhtml));var icon=this.renderIcon(mNode);menuBuilder.appendChild(icon);if(this.useTables==false||mNode.level==0)
icon.className='icn '+(mNode.cssIcon.length>0?mNode.cssIcon:this.cssIcon);else
menuBuilder.subcont.className='icn '+(mNode.cssIcon.length>0?mNode.cssIcon:this.cssIcon);if(mNode.isBreak==false)
menuBuilder.appendChild(this.renderText(mNode),true);menuBuilder.newCell();this.renderArrow(mNode,menuBuilder.subcont);if(mNode.rhtml.length>0)
menuBuilder.appendChild(this.renderCustomHTML(mNode.rhtml));if(mNode.toolTip.length>0)
menuBuilder.row.title=mNode.toolTip;}
this.assignCss(mNode);if(mNode.enabled)
this.addHandlers(menuBuilder.row,{"click":this._nodeTextClick},this);if(this._attachedHandlers[menuBuilder.container.id]!='mouseover')
{this._attachedHandlers[menuBuilder.container.id]='mouseover';this.addHandlers(menuBuilder.container,{"mouseover":this._nodeMOver,"mouseout":this._nodeMOut},this);}
if(mNode.hasNodes||mNode.hasPendingNodes)
{var subMenu=this.renderSubMenu(mNode);this.container.appendChild(subMenu);dnn.dom.positioning.placeOnTop(subMenu,false,this.sysImgPath+'spacer.gif');for(var i=0;i<node.childNodeCount();i++)
this.renderNode(node.childNodes(i),subMenu);}},renderCustomHTML:function(sHTML)
{var ctl=dnn.dom.createElement('span');ctl.innerHTML=sHTML;return ctl;},renderIcon:function(mNode)
{var ctl=dnn.dom.createElement('span');if(mNode.imageIndex>-1||mNode.image!='')
{var img=this.createChildControl('img',mNode.id,'icn');img.src=(mNode.image.length>0?mNode.image:this.imageList[mNode.imageIndex]);ctl.appendChild(img);}
return ctl;},renderArrow:function(mNode,ctr)
{if(mNode.hasNodes||mNode.hasPendingNodes)
{var imgSrc=(mNode.level==0?this.rootArrow:this.childArrow);if(imgSrc.trim().length>0)
{if(this.useTables&&mNode.level>0)
{var img=dnn.dom.createElement('img');img.src=imgSrc;ctr.appendChild(img);}
else
{ctr.style.backgroundImage='url('+imgSrc+')';ctr.style.backgroundRepeat='no-repeat';ctr.style.backgroundPosition='right';}}}},renderText:function(mNode)
{var ctl=this.createChildControl('span',mNode.id,'t');ctl.className='txt';ctl.innerHTML=mNode.text;ctl.style.cursor='pointer';return ctl;},renderSubMenu:function(mNode)
{var menuBuilder=this._getMenuBuilder(mNode,null);var subMenu=menuBuilder.createSubMenu();subMenu.style.position='absolute';subMenu.style.display='none';var css=this.mcss;css+=' m m'+mNode.level;css+=' mid'+mNode.id;subMenu.className=css;return subMenu;},_getMenuBuilder:function(mNode,ctr)
{var menuBuilder;if(ctr)
{if(this.renderMode==dnn.controls.menuRenderMode.normal&&mNode.level>0&&this.isNodeVertical(mNode))
menuBuilder=new dnn.controls.DNNMenuTableBuilder(this,mNode,ctr);else if(this.renderMode==dnn.controls.menuRenderMode.unorderdlist)
menuBuilder=new dnn.controls.DNNMenuListBuilder(this,mNode,ctr);else
menuBuilder=new dnn.controls.DNNMenuBuilder(this,mNode,ctr);}
else
{if(this.renderMode==dnn.controls.menuRenderMode.normal&&this.suborient==dnn.controls.orient.vertical)
menuBuilder=new dnn.controls.DNNMenuTableBuilder(this,mNode);else if(this.renderMode==dnn.controls.menuRenderMode.unorderdlist)
menuBuilder=new dnn.controls.DNNMenuListBuilder(this,mNode);else
menuBuilder=new dnn.controls.DNNMenuBuilder(this,mNode);}
return menuBuilder;},hoverNode:function(mNode)
{if(this.hoverMNode!=null)
{this.hoverMNode.hover=false;this.assignCss(this.hoverMNode);}
if(mNode!=null)
{mNode.hover=true;this.assignCss(mNode);}
this.hoverMNode=mNode;},__expandNode:function(ctx)
{this.expandNode(ctx,true);},expandNode:function(mNode,force)
{dnn.cancelDelay(this.ns+'min');if(mNode.hasPendingNodes)
{if(this.podInProgress==false)
{this.podInProgress=true;this.showWorkImage(mNode,true);mNode.menu=this;if(this.callBack.indexOf('[NODEXML]')>-1)
eval(this.callBack.replace('[NODEXML]',dnn.escapeForEval(mNode.node.getXml())));else
eval(this.callBack.replace('[NODEID]',mNode.id));}}
else
{if(this.openMenus.length>0&&this.openMenus[this.openMenus.length-1].id==mNode.id)
return;if(this.minDelay==0||force)
{this.hideMenus(new dnn.controls.DNNMenuNode(mNode.node.parentNode()));var subMenu=this.getChildControl(mNode.id,'sub');if(subMenu!=null)
{this.positionMenu(mNode,subMenu);this.showSubMenu(subMenu,true,mNode);this.openMenus[this.openMenus.length]=mNode;mNode.expanded=true;mNode.update();}}
else
dnn.doDelay(this.ns+'min',this.minDelay,this._expandNodeDelegate,mNode);}
return true;},showSubMenu:function(subMenu,show,mNode)
{dnn.dom.positioning.placeOnTop(subMenu,show,this.sysImgPath+'spacer.gif');subMenu.style.clip='rect(auto,auto,auto,auto)';if(this.animation!=0)
{subMenu.style.display='';var dir;if(this.isNodeVertical(mNode))
dir=(show?dnn.motion.animationDir.Right:dnn.motion.animationDir.Left);else
dir=(show?dnn.motion.animationDir.Down:dnn.motion.animationDir.Up);dnn.dom.animate(subMenu,this.animation,dir,this.easingType,this.easingDir,this.animationLen,this.animationInterval);}
else
subMenu.style.display=(show?'':'none');},showWorkImage:function(mNode,show)
{if(this.workImg!=null)
{var icon=this.getChildControl(mNode.id,'icn');if(icon!=null)
{if(show)
icon.src=this.sysImgPath+this.workImg;else
icon.src=(mNode.image.length>0?mNode.image:this.imageList[mNode.imageIndex]);}}},isNodeVertical:function(mNode)
{return((mNode.level==0&&this.orient==dnn.controls.orient.vertical)||(mNode.level>0&&this.suborient==dnn.controls.orient.vertical));},hideMenus:function(mNode)
{for(var i=this.openMenus.length-1;i>=0;i--)
{if(mNode!=null&&this.openMenus[i].id==mNode.id)
break;this.collapseNode(this.openMenus[i]);this.openMenus.length=this.openMenus.length-1;}},collapseNode:function(mNode)
{var subMenu=this.getChildControl(mNode.id,'sub');if(subMenu!=null)
{this.positionMenu(mNode,subMenu);this.showSubMenu(subMenu,false,mNode);mNode.expanded=null;mNode.update();return true;}},positionMenu:function(mNode,menu)
{var oPCtl=this.getChildControl(mNode.id,'ctr');if(dnn.dom.browser.isType(dnn.dom.browser.Safari,dnn.dom.browser.Opera))
{if(oPCtl.tagName=='TR'&&oPCtl.childNodes.length>0)
oPCtl=oPCtl.childNodes[oPCtl.childNodes.length-1];}
var oPDims=new dnn.dom.positioning.dims(oPCtl);var oMDims=new dnn.dom.positioning.dims(menu);var iScrollLeft=dnn.dom.positioning.bodyScrollLeft();var iScrollTop=dnn.dom.positioning.bodyScrollTop()
var iMaxTop=dnn.dom.positioning.viewPortHeight()+iScrollTop-oPDims.rot;var iMaxLeft=dnn.dom.positioning.viewPortWidth()+iScrollLeft-oPDims.rol;var iNewTop=oPDims.t;var iNewLeft=oPDims.l;var iStartTop=oPDims.t;var iStartLeft=oPDims.l;if(this.isNodeVertical(mNode))
{iNewLeft=oPDims.l+oPDims.w;iStartTop=iMaxTop;}
else
{iNewTop=oPDims.t+oPDims.h;iStartLeft=iMaxLeft;}
if(iNewTop+oMDims.h>=iMaxTop)
{if(oPDims.rot+iStartTop-oMDims.h>iScrollTop)
iNewTop=iStartTop-oMDims.h;}
if(iNewLeft+oMDims.w>iMaxLeft)
{if(oPDims.rol+iStartLeft-oMDims.w>iScrollLeft)
iNewLeft=iStartLeft-oMDims.w;}
if(this.suborient==dnn.controls.orient.horizontal&&this.isNodeVertical(mNode)==false)
{var oRDims=new dnn.dom.positioning.dims(this.container);iNewLeft=oRDims.l;}
menu.style.top=iNewTop+'px';menu.style.left=iNewLeft+'px';},selectNode:function(mNode)
{var arg=new dnn.controls.DNNNodeEventArgs(mNode);this.invoke_handler('click',arg);if(arg.get_cancel())
return;if(this.selMNode!=null)
{this.selMNode.selected=null;this.selMNode.update('selected');this.assignCss(this.selMNode);}
mNode.selected=true;mNode.update('selected');this.assignCss(mNode);this.selMNode=mNode;if(mNode.hasNodes||mNode.hasPendingNodes)
this.expandNode(mNode,true);if(mNode.selected)
{var sJS=this.defaultJS;if(mNode.js.length>0)
sJS=mNode.js;if(sJS.length>0)
{this.update(true);if(eval(sJS)==false)
return;}
if(mNode.clickAction==dnn.controls.action.postback)
{this.update(true);eval(this.postBack.replace('[NODEID]',mNode.id));}
else if(mNode.clickAction==dnn.controls.action.nav)
dnn.dom.navigate(mNode.getUrl(this),mNode.target.length>0?mNode.target:this.target);}
return true;},assignCss:function(mNode)
{var ctr=this.getChildControl(mNode.id,'ctr');var css=this.css;if(mNode.level>0&&this.cssChild.length>0)
css=this.cssChild;if(mNode.css.length>0)
css=mNode.css;if(mNode.hover)
css+=' hov '+(mNode.cssHover.length>0?mNode.cssHover:this.cssHover);if(mNode.selected)
css+=' sel '+(mNode.cssSel.length>0?mNode.cssSel:this.cssSel);if(mNode.breadcrumb)
css+=' bc';if(mNode.isBreak)
css+=' break';css+=' mi mi'+mNode.node.getNodePath();css+=' id'+mNode.id;if(mNode.level==0)
css+=' root';if(mNode.node.getNodeIndex()==0)
css+=' first';if(mNode.node.getNodeIndex()==mNode.node.parentNode().childNodeCount()-1)
css+=' last';if((mNode.node.getNodeIndex()==0)&&(mNode.node.getNodeIndex()==mNode.node.parentNode().childNodeCount()-1))
css+=' firstlast';ctr.className=css;},update:function()
{dnn.setVar(this.ns+'_json',this.rootNode.getJSON());},_onsubmit:function()
{this.update(true);},_bodyClick:function()
{this.hideMenus();},focusHandler:function(e)
{var mNode=this.hoverMNode;if(mNode==null)
mNode=this.selMNode;if(mNode==null)
mNode=new dnn.controls.DNNMenuNode(this.nodes[0]);this.hoverNode(mNode);this.container.onfocus=null;},blurHandler:function(e)
{if(this.hoverMNode!=null)
this.hoverNode(null);dnn.cancelDelay(this.ns+'min');if(this.moutDelay>0)
dnn.doDelay(this.ns+'mout',this.moutDelay,this._hideMenusDelegate);else
this.hideMenus();},safariKeyHandler:function(e)
{if(e.charCode==KEY_RETURN)
{if(this.hoverMNode!=null&&this.hoverMNode.enabled)
this.selectNode(this.hoverMNode);return false;}},keyboardHandler:function(e)
{var code=e.keyCode;if(code==null)
code=e.charCode;if(code==KEY_RETURN)
{if(this.hoverMNode!=null&&this.hoverMNode.enabled)
this.selectNode(this.hoverMNode);return false;}
if(code==KEY_ESCAPE)
{this.blurHandler();return false;}
if(code>=KEY_LEFT_ARROW&&code<=KEY_DOWN_ARROW)
{var iDir=(code==KEY_UP_ARROW||code==KEY_LEFT_ARROW)?-1:1;var sAxis=(code==KEY_UP_ARROW||code==KEY_DOWN_ARROW)?'y':'x';var mNode=this.hoverMNode;var oNewMNode;if(mNode==null)
mNode=new dnn.controls.DNNMenuNode(this.nodes[0]);var bHor=!this.isNodeVertical(mNode);if((sAxis=='y'&&!bHor)||(bHor&&sAxis=='x'))
{this.hideMenus(new dnn.controls.DNNMenuNode(mNode.node.parentNode()));oNewMNode=this.__getNextNode(mNode,iDir);}
else
{if(iDir==-1)
{oNewMNode=new dnn.controls.DNNMenuNode(mNode.node.parentNode());if(oNewMNode.level==0&&this.orient==dnn.controls.orient.horizontal)
oNewMNode=this.__getNextNode(new dnn.controls.DNNMenuNode(mNode.node.parentNode()),iDir);this.hideMenus(oNewMNode);}
else if(iDir==1)
{if(mNode.hasNodes||mNode.hasPendingNodes)
{if(mNode.expanded!=true)
{this.expandNode(mNode);if(this.podInProgress==false)
oNewMNode=new dnn.controls.DNNMenuNode(mNode.node.nodes[0]);}}
else
{var node=mNode.node;while(node.parentNode().nodeName()!='root')
node=node.parentNode();oNewMNode=new dnn.controls.DNNMenuNode(node);oNewMNode=this.__getNextNode(oNewMNode,iDir);this.hideMenus(new dnn.controls.DNNMenuNode(oNewMNode.node.parentNode()));}}}
if(oNewMNode!=null&&oNewMNode.node.nodeName()!='root')
this.hoverNode(oNewMNode);return false;}},dispose:function()
{this._onsubmitDelegate=null;this._hideMenusDelegate=null;this._expandNodeDelegate=null;dnn.controls.DNNMenu.callBaseMethod(this,'dispose');},__getNextNode:function(mNode,iDir)
{var node;var parentNode=mNode.node.parentNode();var nodeIndex=mNode.node.getNodeIndex('id');if(nodeIndex+iDir<0)
node=parentNode.nodes[parentNode.childNodeCount()-1];else if(nodeIndex+iDir>parentNode.childNodeCount()-1)
node=parentNode.nodes[0];else
node=parentNode.nodes[nodeIndex+iDir];var oRetNode=new dnn.controls.DNNMenuNode(node);if(oRetNode.isBreak)
{nodeIndex+=iDir;if(nodeIndex+iDir<0)
node=parentNode.childNodes(parentNode.childNodeCount()-1);else if(nodeIndex+iDir>parentNode.childNodeCount()-1)
node=parentNode.childNodes(0);else
node=parentNode.childNodes(nodeIndex+iDir);return new dnn.controls.DNNMenuNode(node);}
else
return oRetNode;},callBackFail:function(result,ctx,req)
{var mNode=ctx;var menu=mNode.menu;menu.invoke_handler('callBackFail',new dnn.controls.DNNCallbackEventArgs(result,ctx,req));},callBackStatus:function(result,ctx,req)
{var mNode=ctx;var menu=mNode.menu;menu.invoke_compatHandler('callBackStatus',result,ctx,req);},callBackSuccess:function(result,ctx,req)
{var mNode=ctx;var node=mNode.node;var menu=mNode.menu;menu.showWorkImage(mNode,false);var json=dnn.evalJSON("{"+result+"}");node.nodes=json.nodes;node.setupJSONNodes(node.rootNode(),node,node.nodes);var subMenu=menu.getChildControl(mNode.id,'sub');for(var i=0;i<node.childNodeCount();i++)
menu.renderNode(node.childNodes(i),subMenu);mNode=new dnn.controls.DNNMenuNode(node);mNode.hasPendingNodes=false;mNode.hasNodes=true;subMenu=menu.getChildControl(mNode.id,'sub');menu.expandNode(mNode);menu.callBackStatus(result,ctx,req);menu.podInProgress=false;menu.invoke_handler('callBackSuccess',new dnn.controls.DNNCallbackEventArgs(result,ctx,req));},_nodeTextClick:function(evt)
{var node=this._findEventNode(evt);var mNode;if(node!=null)
{mNode=new dnn.controls.DNNMenuNode(node);this.selectNode(mNode);}
evt.stopPropagation();},_menuMOver:function(evt,element)
{dnn.cancelDelay(this.ns+'mout');},_menuMOut:function(evt,element)
{dnn.cancelDelay(this.ns+'min');if(this.moutDelay>0)
dnn.doDelay(this.ns+'mout',this.moutDelay,dnn.createDelegate(this,this.hideMenus));else
this.hideMenus();},_nodeMOver:function(evt,element)
{var node=this._findEventNode(evt);if(node!=null)
{var mNode=new dnn.controls.DNNMenuNode(node);mNode.hover=true;this.assignCss(mNode);if(mNode.expanded!=true)
this.expandNode(mNode);evt.stopPropagation();}
this._menuMOver(evt,element);},_nodeMOut:function(evt,element)
{var node=this._findEventNode(evt);if(node!=null)
{var mNode=new dnn.controls.DNNMenuNode(node);this.assignCss(mNode);this._menuMOut(evt,element);evt.stopPropagation();}},getXml:function()
{return this.rootNode.getXml();},_findEventNode:function(evt)
{if(dnn.dom.isNonTextNode(evt.target))
return this.rootNode.findNode(this.getChildControlBaseId(evt.target));},_loadNodes:function()
{if(dnn.getVar(this.ns+'_json').length>0){var json=dnn.evalJSON(dnn.getVar(this.ns+'_json'));}if(json)
{this.nodes=json.nodes;this.rootNode={};this.rootNode.nodes=this.nodes;this.rootNode.id=this.ns;this.rootNode=new dnn.controls.JSONNode(this.rootNode,'root',0);}},_setupKeyHandling:function()
{if(this.container.tabIndex<=0)
{this.container.tabIndex=0;this.addHandlers(this.container,{"keydown":this.keyboardHandler,"focus":this.focusHandler,"blur":this.blurHandler},this);}
else
{var txt=document.createElement('input');txt.type='text';txt.style.width=0;txt.style.height=0;txt.style.background='transparent';txt.style.border=0;txt.style.positioning='absolute';if(dnn.dom.browser.isType(dnn.dom.browser.Safari))
{txt.style.width='1px';txt.style.height='1px';txt.style.left='-999em';this.addHandlers(txt,{"keydown":this.keyboardHandler},this);this.addHandlers(this.container.parentNode,{"keypress":this.safariKeyHandler},this);}
else
this.addHandlers(txt,{"keypress":this.keyboardHandler},this);this.addHandlers(txt,{"focus":this.focusHandler,"blur":this.blurHandler},this);this.container.parentNode.appendChild(txt);}}}
dnn.controls.DNNMenu.registerClass('dnn.controls.DNNMenu',dnn.controls.control);dnn.controls.DNNMenuBuilder=function(menu,mNode,ctr)
{this.menu=menu;this.mNode=mNode;this.isVertical=menu.isNodeVertical(mNode);this.container=ctr;this.row=null;this.subcont=null;this.alreadyRendered=false;}
dnn.controls.DNNMenuBuilder.prototype={appendChild:function(ctl,isNewCell)
{this.subcont.appendChild(ctl);},newCell:function(){},newCont:function()
{if(this.isVertical)
this.row=this.menu.createChildControl('div',this.mNode.id,'ctr');else
this.row=this.menu.createChildControl('span',this.mNode.id,'ctr');this.subcont=this.row;this.container.appendChild(this.subcont);},newRow:function()
{},createSubMenu:function()
{return this.menu.createChildControl('DIV',this.mNode.id,'sub');}}
dnn.controls.DNNMenuBuilder.registerClass('dnn.controls.DNNMenuBuilder');dnn.controls.DNNMenuTableBuilder=function(menu,node,cont)
{dnn.controls.DNNMenuTableBuilder.initializeBase(this,[menu,node,cont]);}
dnn.controls.DNNMenuTableBuilder.prototype={appendChild:function(ctl,isNewCell)
{if(isNewCell)
this.newCell();this.subcont.appendChild(ctl);},newCont:function()
{this.subcont=this.newCell();},newCell:function()
{var td=dnn.dom.createElement('td');this.row.appendChild(td);this.subcont=td;return td;},newRow:function()
{this.row=this.menu.createChildControl('tr',this.mNode.id,'ctr');var tb=dnn.dom.getByTagName('TBODY',this.container);tb[0].appendChild(this.row);},createSubMenu:function()
{var subMenu=this.menu.createChildControl('table',this.mNode.id,'sub');subMenu.border=0;subMenu.cellPadding=0;subMenu.cellSpacing=0;subMenu.appendChild(dnn.dom.createElement('tbody'));return subMenu;}}
dnn.controls.DNNMenuTableBuilder.registerClass('dnn.controls.DNNMenuTableBuilder',dnn.controls.DNNMenuBuilder);dnn.controls.DNNMenuListBuilder=function(menu,node,cont)
{dnn.controls.DNNMenuListBuilder.initializeBase(this,[menu,node,cont]);this.alreadyRendered=true;this.row=dnn.dom.getById(this.menu.getChildControlId(this.mNode.id,'ctr'),this.menu.container);this.menu.registerChildControl(this.row,this.mNode.id);this._setStyles(this.row);this.subcont=this.row;this.subMenu=dnn.dom.getById(this.menu.getChildControlId(this.mNode.id,'sub'),this.menu.container);if(this.subMenu)
{this.menu.registerChildControl(this.subMenu,this.mNode.id);this._setStyles(this.subMenu);}}
dnn.controls.DNNMenuListBuilder.prototype={appendChild:function(ctl,isNewCell){},newCont:function(){},createSubMenu:function()
{return this.subMenu;},_setStyles:function(ctl)
{if(this.menu.isNodeVertical(this.mNode)==false)
ctl.style.display='inline';ctl.style.listStyle='none';}}
dnn.controls.DNNMenuListBuilder.registerClass('dnn.controls.DNNMenuListBuilder',dnn.controls.DNNMenuBuilder);dnn.controls.DNNMenuNode=function(node)
{dnn.controls.DNNMenuNode.initializeBase(this,[node]);this._addAbbr({breadcrumb:'bcrumb',clickAction:'ca',imageIndex:'iIdx',urlIndex:'uIdx'});this.hover=false;this.expanded=null;this.selected=node.getAttribute('selected','0')=='1'?true:null;this.breadcrumb=node.getAttribute('bcrumb','0')=='1'?true:null;this.clickAction=node.getAttribute('ca',dnn.controls.action.postback);this.imageIndex=new Number(node.getAttribute('iIdx','-1'));this.urlIndex=new Number(node.getAttribute('uIdx','-1'));this.lhtml=node.getAttribute('lhtml','');this.rhtml=node.getAttribute('rhtml','');}
dnn.controls.DNNMenuNode.prototype={childNodes:function(iIndex)
{if(this.node.nodes(iIndex)!=null)
return new dnn.controls.DNNMenuNode(this.node.nodes(iIndex));},getUrl:function(menu)
{if(this.urlIndex>-1)
return menu.urlList[this.urlIndex]+this.url;else
return this.url;}}
dnn.controls.DNNMenuNode.registerClass('dnn.controls.DNNMenuNode',dnn.controls.DNNNode);Type.registerNamespace('dnn.controls');dnn.controls.menuRenderMode=function(){};dnn.controls.menuRenderMode.prototype={normal:0,notables:1,unorderdlist:2,downlevel:3}
dnn.controls.menuRenderMode.registerEnum("dnn.controls.menuRenderMode");
;;;