
if(typeof window.DnnSkinControlsNamespace=="undefined"){
window.DnnSkinControlsNamespace={};}
if(typeof(window.DnnSkinControlsNamespace.Box)=="undefined"||typeof(window.DnnSkinControlsNamespace.Box.Version)==null||window.DnnSkinControlsNamespace.Box.Version<1){
window.DnnSkinControlsNamespace.Box={Version:1,GetOuterWidth:function(_1){
return _1.offsetWidth;},GetOuterHeight:function(_2){
return _2.offsetHeight;},SetOuterHeight:function(_3,_4){
if(_4<=0||_4==""){
_3.style.height="";}else{
_3.style.height=_4+"px";
var _5=_3.offsetHeight-_4;
var _6=_4-_5;
if(_6>0){
_3.style.height=_6+"px";}else{
_3.style.height="";}}},SetOuterWidth:function(_7,_8){
if(_8<=0||_8==""){
_7.style.width="";}else{
_7.style.width=_8+"px";
var _9=_7.offsetWidth-_8;
var _a=_8-_9;
if(_a>0){
_7.style.width=_a+"px";}else{
_7.style.width="";}}},GetPropertyValue:function(_b,_c){
var _d=this.GetStyle(_b);
return this.GetStyleValues(_d,_c);},GetStyle:function(_e){
if(document.defaultView&&document.defaultView.getComputedStyle){
return document.defaultView.getComputedStyle(_e,null);}else{
if(_e.currentStyle){
return _e.currentStyle;}else{
return _e.style;}}}};};if(typeof window.DnnSkinControlsNamespace=="undefined"){
window.DnnSkinControlsNamespace={};}
if(typeof(window.DnnSkinControlsNamespace.Browser)=="undefined"||typeof(window.DnnSkinControlsNamespace.Browser.Version)==null||window.DnnSkinControlsNamespace.Browser.Version<1){
window.DnnSkinControlsNamespace.Browser={Version:1};
window.DnnSkinControlsNamespace.Browser.ParseBrowserInfo=function(){
this.IsMacIE=(navigator.appName=="Microsoft Internet Explorer")&&((navigator.userAgent.toLowerCase().indexOf("mac")!=-1)||(navigator.appVersion.toLowerCase().indexOf("mac")!=-1));
this.IsSafari=(navigator.userAgent.toLowerCase().indexOf("safari")!=-1);
this.IsMozilla=window.netscape&&!window.opera;
this.IsNetscape=/Netscape/.test(navigator.userAgent);
this.IsOpera=window.opera;
this.IsOpera9=window.opera&&(parseInt(window.opera.version())>8);
this.IsIE=!this.IsMacIE&&!this.IsMozilla&&!this.IsOpera&&!this.IsSafari;
this.IsIE7=/MSIE 7/.test(navigator.appVersion);
this.StandardsMode=this.IsSafari||this.IsOpera9||this.IsMozilla||document.compatMode=="CSS1Compat";
this.IsMac=/Mac/.test(navigator.userAgent);};
DnnSkinControlsNamespace.Browser.ParseBrowserInfo();};if(typeof window.DnnSkinControlsNamespace=="undefined"){
window.DnnSkinControlsNamespace={};}
if(typeof(window.DnnSkinControlsNamespace.DomEventMixin)=="undefined"||typeof(window.DnnSkinControlsNamespace.DomEventMixin.Version)==null||window.DnnSkinControlsNamespace.DomEventMixin.Version<2){
DnnSkinControlsNamespace.DomEventMixin={Version:2,Initialize:function(_1){
_1.CreateEventHandler=this.CreateEventHandler;
_1.AttachDomEvent=this.AttachDomEvent;
_1.DetachDomEvent=this.DetachDomEvent;
_1.DisposeDomEventHandlers=this.DisposeDomEventHandlers;
_1._domEventHandlingEnabled=true;
_1.EnableDomEventHandling=this.EnableDomEventHandling;
_1.DisableDomEventHandling=this.DisableDomEventHandling;
_1.RemoveHandlerRegister=this.RemoveHandlerRegister;
_1.GetHandlerRegister=this.GetHandlerRegister;
_1.AddHandlerRegister=this.AddHandlerRegister;
_1.handlerRegisters=[];},EnableDomEventHandling:function(){
this._domEventHandlingEnabled=true;},DisableDomEventHandling:function(){
this._domEventHandlingEnabled=false;},CreateEventHandler:function(_2,_3){
var _4=this;
return function(e){
if(!_4._domEventHandlingEnabled&&!_3){
return false;}
return _4[_2](e||window.event);};},AttachDomEvent:function(_6,_7,_8,_9){
var _a=this.CreateEventHandler(_8,_9);
var _b=this.GetHandlerRegister(_6,_7,_8);
if(_b!=null){
this.DetachDomEvent(_b.Element,_b.EventName,_8);}
var _c={"Element":_6,"EventName":_7,"HandlerName":_8,"Handler":_a};
this.AddHandlerRegister(_c);
if(_6.addEventListener){
_6.addEventListener(_7,_a,false);}else{
if(_6.attachEvent){
_6.attachEvent("on"+_7,_a);}}},DetachDomEvent:function(_d,_e,_f){
var _10=null;
var _11="";
if(typeof _f=="string"){
_11=_f;
_10=this.GetHandlerRegister(_d,_e,_11);
if(_10==null){
return;}
_f=_10.Handler;}
if(!_d){
return;}
if(_d.removeEventListener){
_d.removeEventListener(_e,_f,false);}else{
if(_d.detachEvent){
_d.detachEvent("on"+_e,_f);}}
if(_10!=null&&_11!=""){
this.RemoveHandlerRegister(_10);
_10=null;}},DisposeDomEventHandlers:function(){
for(var i=0;i<this.handlerRegisters.length;i++){
var _13=this.handlerRegisters[i];
if(_13!=null){
this.DetachDomEvent(_13.Element,_13.EventName,_13.Handler);}}
this.handlerRegisters=[];},RemoveHandlerRegister:function(_14){
try{
var _15=_14.index;
for(var i in _14){
_14[i]=null;}
this.handlerRegisters[_15]=null;}
catch(e){}},GetHandlerRegister:function(_17,_18,_19){
for(var i=0;i<this.handlerRegisters.length;i++){
var _1b=this.handlerRegisters[i];
if(_1b!=null&&_1b.Element==_17&&_1b.EventName==_18&&_1b.HandlerName==_19){
return this.handlerRegisters[i];}}
return null;},AddHandlerRegister:function(_1c){
_1c.index=this.handlerRegisters.length;
this.handlerRegisters[this.handlerRegisters.length]=_1c;}};
DnnSkinControlsNamespace.DomEvent={};
DnnSkinControlsNamespace.DomEvent.PreventDefault=function(e){
if(!e){
return true;}
if(e.preventDefault){
e.preventDefault();}
e.returnValue=false;
return false;};
DnnSkinControlsNamespace.DomEvent.StopPropagation=function(e){
if(!e){
return;}
if(e.stopPropagation){
e.stopPropagation();}else{
e.cancelBubble=true;}};
DnnSkinControlsNamespace.DomEvent.GetTarget=function(e){
if(!e){
return null;}
return e.target||e.srcElement;};
DnnSkinControlsNamespace.DomEvent.GetRelatedTarget=function(e){
if(!e){
return null;}
return e.relatedTarget||(e.type=="mouseout"?e.toElement:e.fromElement);};
DnnSkinControlsNamespace.DomEvent.GetKeyCode=function(e){
if(!e){
return 0;}
return e.which||e.keyCode;};};if(typeof window.DnnSkinControlsNamespace=="undefined"){
window.DnnSkinControlsNamespace={};}
if(typeof(window.DnnSkinControlsNamespace.Ease)=="undefined"||typeof(window.DnnSkinControlsNamespace.Ease.Version)==null||window.DnnSkinControlsNamespace.Ease.Version<1.1){
DnnSkinControlsNamespace.Ease=function(_1,_2,_3,_4,_5,_6){
this.Element=_1;
if(_6){
this.Overlay=new DnnSkinControlsNamespace.Overlay(_1);}
this.OffsetX=_3;
this.OffsetY=_4;
this.Invert=false;
var _7=this.Element.parentNode;
this.ExpandConfig=this.MergeConfig(_2.ExpandAnimation);
this.CollapseConfig=this.MergeConfig(_2.CollapseAnimation);
this.Ticker=new DnnSkinControlsNamespace.Ticker(this);
this.Listener=_5;
this.SlideParent=false;};
DnnSkinControlsNamespace.Ease.Version=1.1;
DnnSkinControlsNamespace.Ease.Coef=0;
DnnSkinControlsNamespace.Ease.prototype={SetSide:function(_8){
this.InitialSide=_8.charAt(0).toUpperCase()+_8.substr(1,_8.length-1);
this.Invert=false;
if(_8=="right"){
_8="left";
this.Invert=true;}
if(_8=="bottom"){
_8="top";
this.Invert=true;}
this.Side=_8;
this.Horizontal=_8=="left";},MergeConfig:function(_9){
if(!_9.Type){
_9.Type="OutQuint";}
if(!_9.Duration){
_9.Duration=200;}
return _9;},GetSide:function(){
return this.InitialSide;},ShowElements:function(){
this.Element.parentNode.style.display="block";
this.Element.style.display="block";
this.Element.parentNode.style.overflow="hidden";},Dispose:function(){
this.Ticker.Stop();
this.Element=null;
if(this.Overlay){
this.Overlay.Dispose();}},ResetState:function(_a){
this.ShowElements();
if(_a){
var _b=(this.Horizontal?this.Element.offsetWidth:this.Element.offsetHeight);
if(!this.Invert){
_b=-_b;}
this.SetPosition(_b);}
this.InitialPosition=this.GetPosition();},UpdateContainerSize:function(){
if(!this.Element.parentNode){
return;}
if(!this.Element.offsetWidth||!this.Element.offsetHeight){
return;}
if(this.Invert){
if(this.Side=="left"){
this.Element.parentNode.style.height=this.Element.offsetHeight+"px";}else{
if(this.Side=="top"){
this.Element.parentNode.style.width=this.Element.offsetWidth+"px";}}
return;}
var _c=0;
var _d=0;
if(this.Element.style.top!=""){
_c=Math.max(parseInt(this.Element.style.top),0);}
if(this.Element.style.left!=""){
_d=Math.max(parseInt(this.Element.style.left),0);}
if(this.SlideParent){
_c=parseInt(this.Element.style.top);
if(isNaN(_c)){
_c=0;}}
if(typeof(DnnSkinNavItem)!="undefined"&&this.Listener instanceof DnnSkinNavItem){
if(this.Element.parentNode.style.height!=this.Element.offsetHeight+_c+"px"){
this.Element.parentNode.style.height=Math.max(this.Element.offsetHeight+_c,0)+"px";}
if(this.Element.parentNode.style.width!=(this.Element.offsetWidth+_d)+"px"){
this.Element.parentNode.style.width=Math.max(this.Element.offsetWidth+_d,0)+"px";}}else{
if(this.Element.parentNode.offsetHeight!=this.Element.offsetHeight+_c){
this.Element.parentNode.style.height=Math.max(this.Element.offsetHeight+_c,0)+"px";}
if(this.Element.parentNode.offsetWidth!=(this.Element.offsetWidth+_d)){
this.Element.parentNode.style.width=Math.max(this.Element.offsetWidth+_d,0)+"px";}}},GetSize:function(){
return this.Horizontal?this.Element.offsetWidth:this.Element.offsetHeight;},GetPosition:function(){
if(!this.Element.style[this.Side]){
return 0;}
return parseInt(this.Element.style[this.Side]);},SetPosition:function(_e){
this.Element.style[this.Side]=_e+"px";},Out:function(){
this.ResetState();
this.Direction=-1;
if(this.Invert){
this.Delta=this.GetSize()-this.GetPosition();}else{
this.Delta=this.GetPosition()-this.GetSize();}
this.Start(this.CollapseConfig);},In:function(){
this.ResetState(true);
this.Direction=1;
this.Delta=-this.GetPosition();
this.Start(this.ExpandConfig);},Start:function(_f){
if(_f.Type=="None"){
this.UpdateContainerSize();
this.Ticker.Stop();
this.ChangePosition(this.InitialPosition+this.Delta);
if(this.Overlay){
this.Overlay.Update();}
this.UpdateContainerSize();
this.OnTickEnd();
return;}
this.Tween=_f.Type;
this.Ticker.Configure(_f);
this.Ticker.Start();
this.UpdateContainerSize();},ChangePosition:function(_10){
if(isNaN(_10)){
return;}
var _11,_12,_13;
if(this.Invert){
if(this.Horizontal){
_11=this.Element.offsetWidth;
_12="width";
_13=this.OffsetX;}else{
_11=this.Element.offsetHeight;
_12="height";
_13=this.OffsetY;}
this.SetPosition(0);
var _14=Math.max(1,_11-_10)+"px";
this.Element.parentNode.style[_12]=_14;
this.Element.parentNode.style[this.Side]=((_11-_10+_13)*-1)+"px";}else{
this.Element.style[this.Side]=_10+"px";}},OnTick:function(_15){
var _16=Math.round(Penner[this.Tween](_15,this.InitialPosition,this.Delta,this.Ticker.Duration));
if(_16==this.InitialPosition+this.Delta){
this.Ticker.Stop();
return;}
this.ChangePosition(_16);
this.UpdateContainerSize();
if(this.Overlay){
this.Overlay.Update();}},OnTickEnd:function(){
try{
if(this.Direction==0){
return;}
this.ChangePosition(this.InitialPosition+this.Delta);
if(this.Overlay){
this.Overlay.Update();}
if(this.Direction>0){
this.Element.parentNode.style.overflow="visible";
if(this.Listener&&this.Listener.OnExpandComplete){
this.Listener.OnExpandComplete();}}else{
this.Element.parentNode.style.display="none";
if(this.Listener){
this.Listener.OnCollapseComplete();}}
this.Direction=0;}
catch(e){}}};};var Penner={};
Penner.Linear=function(t,b,c,d){
return c*t/d+b;};
Penner.InQuad=function(t,b,c,d){
return c*(t/=d)*t+b;};
Penner.OutQuad=function(t,b,c,d){
return -c*(t/=d)*(t-2)+b;};
Penner.InOutQuad=function(t,b,c,d){
if((t/=d/2)<1){
return c/2*t*t+b;}
return -c/2*((--t)*(t-2)-1)+b;};
Penner.InCubic=function(t,b,c,d){
return c*(t/=d)*t*t+b;};
Penner.OutCubic=function(t,b,c,d){
return c*((t=t/d-1)*t*t+1)+b;};
Penner.InOutCubic=function(t,b,c,d){
if((t/=d/2)<1){
return c/2*t*t*t+b;}
return c/2*((t-=2)*t*t+2)+b;};
Penner.InQuart=function(t,b,c,d){
return c*(t/=d)*t*t*t+b;};
Penner.OutQuart=function(t,b,c,d){
return -c*((t=t/d-1)*t*t*t-1)+b;};
Penner.InOutQuart=function(t,b,c,d){
if((t/=d/2)<1){
return c/2*t*t*t*t+b;}
return -c/2*((t-=2)*t*t*t-2)+b;};
Penner.InQuint=function(t,b,c,d){
return c*(t/=d)*t*t*t*t+b;};
Penner.OutQuint=function(t,b,c,d){
return c*((t=t/d-1)*t*t*t*t+1)+b;};
Penner.InOutQuint=function(t,b,c,d){
if((t/=d/2)<1){
return c/2*t*t*t*t*t+b;}
return c/2*((t-=2)*t*t*t*t+2)+b;};
Penner.InSine=function(t,b,c,d){
return -c*Math.cos(t/d*(Math.PI/2))+c+b;};
Penner.OutSine=function(t,b,c,d){
return c*Math.sin(t/d*(Math.PI/2))+b;};
Penner.InOutSine=function(t,b,c,d){
return -c/2*(Math.cos(Math.PI*t/d)-1)+b;};
Penner.InExpo=function(t,b,c,d){
return(t==0)?b:c*Math.pow(2,10*(t/d-1))+b;};
Penner.OutExpo=function(t,b,c,d){
return(t==d)?b+c:c*(-Math.pow(2,-10*t/d)+1)+b;};
Penner.InOutExpo=function(t,b,c,d){
if(t==0){
return b;}
if(t==d){
return b+c;}
if((t/=d/2)<1){
return c/2*Math.pow(2,10*(t-1))+b;}
return c/2*(-Math.pow(2,-10*--t)+2)+b;};
Penner.InCirc=function(t,b,c,d){
return -c*(Math.sqrt(1-(t/=d)*t)-1)+b;};
Penner.OutCirc=function(t,b,c,d){
return c*Math.sqrt(1-(t=t/d-1)*t)+b;};
Penner.InOutCirc=function(t,b,c,d){
if((t/=d/2)<1){
return -c/2*(Math.sqrt(1-t*t)-1)+b;}
return c/2*(Math.sqrt(1-(t-=2)*t)+1)+b;};
Penner.InElastic=function(t,b,c,d,a,p){
if(t==0){
return b;}
if((t/=d)==1){
return b+c;}
if(!p){
p=d*0.3;}
if((!a)||a<Math.abs(c)){
a=c;
var s=p/4;}else{
var s=p/(2*Math.PI)*Math.asin(c/a);}
return -(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;};
Penner.OutElastic=function(t,b,c,d,a,p){
if(t==0){
return b;}
if((t/=d)==1){
return b+c;}
if(!p){
p=d*0.3;}
if((!a)||a<Math.abs(c)){
a=c;
var s=p/4;}else{
var s=p/(2*Math.PI)*Math.asin(c/a);}
return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b;};
Penner.InOutElastic=function(t,b,c,d,a,p){
if(t==0){
return b;}
if((t/=d/2)==2){
return b+c;}
if(!p){
p=d*(0.3*1.5);}
if((!a)||a<Math.abs(c)){
a=c;
var s=p/4;}else{
var s=p/(2*Math.PI)*Math.asin(c/a);}
if(t<1){
return -0.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;}
return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*0.5+c+b;};
Penner.InBack=function(t,b,c,d,s){
if(s==undefined){
s=1.70158;}
return c*(t/=d)*t*((s+1)*t-s)+b;};
Penner.OutBack=function(t,b,c,d,s){
if(s==undefined){
s=1.70158;}
return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b;};
Penner.InOutBack=function(t,b,c,d,s){
if(s==undefined){
s=1.70158;}
if((t/=d/2)<1){
return c/2*(t*t*(((s*=(1.525))+1)*t-s))+b;}
return c/2*((t-=2)*t*(((s*=(1.525))+1)*t+s)+2)+b;};
Penner.InBounce=function(t,b,c,d){
return c-Penner.OutBounce(d-t,0,c,d)+b;};
Penner.OutBounce=function(t,b,c,d){
if((t/=d)<(1/2.75)){
return c*(7.5625*t*t)+b;}else{
if(t<(2/2.75)){
return c*(7.5625*(t-=(1.5/2.75))*t+0.75)+b;}else{
if(t<(2.5/2.75)){
return c*(7.5625*(t-=(2.25/2.75))*t+0.9375)+b;}else{
return c*(7.5625*(t-=(2.625/2.75))*t+0.984375)+b;}}}};
Penner.InOutBounce=function(t,b,c,d){
if(t<d/2){
return Penner.InBounce(t*2,0,c,d)*0.5+b;}
return Penner.OutBounce(t*2-d,0,c,d)*0.5+c*0.5+b;};;if(typeof window.DnnSkinControlsNamespace=="undefined"){
window.DnnSkinControlsNamespace={};}
if(typeof(window.DnnSkinControlsNamespace.EventMixin)=="undefined"||typeof(window.DnnSkinControlsNamespace.EventMixin.Version)==null||window.DnnSkinControlsNamespace.EventMixin.Version<2){
DnnSkinControlsNamespace.EventMixin={Version:2,Initialize:function(_1){
_1._listeners={};
_1._eventsEnabled=true;
_1.AttachEvent=this.AttachEvent;
_1.DetachEvent=this.DetachEvent;
_1.RaiseEvent=this.RaiseEvent;
_1.EnableEvents=this.EnableEvents;
_1.DisableEvents=this.DisableEvents;
_1.DisposeEventHandlers=this.DisposeEventHandlers;},DisableEvents:function(){
this._eventsEnabled=false;},EnableEvents:function(){
this._eventsEnabled=true;},AttachEvent:function(_2,_3){
if(!this._listeners[_2]){
this._listeners[_2]=[];}
this._listeners[_2][this._listeners[_2].length]=(DnnSkinControlsNamespace.EventMixin.ResolveFunction(_3));},DetachEvent:function(_4,_5){
var _6=this._listeners[_4];
if(!_6){
return false;}
var _7=DnnSkinControlsNamespace.EventMixin.ResolveFunction(_5);
for(var i=0;i<_6.length;i++){
if(_7==_6[i]){
_6.splice(i,1);
return true;}}
return false;},DisposeEventHandlers:function(){
for(var _9 in this._listeners){
var _a=null;
if(this._listeners.hasOwnProperty(_9)){
_a=this._listeners[_9];
for(var i=0;i<_a.length;i++){
_a[i]=null;}
_a=null;}}},ResolveFunction:function(_c){
if(typeof(_c)=="function"){
return _c;}else{
if(typeof(window[_c])=="function"){
return window[_c];}else{
return new Function("var Sender = arguments[0]; var Arguments = arguments[1];"+_c);}}},RaiseEvent:function(_d,_e){
if(!this._eventsEnabled){
return true;}
var _f=true;
if(this[_d]){
var _10=DnnSkinControlsNamespace.EventMixin.ResolveFunction(this[_d])(this,_e);
if(typeof(_10)=="undefined"){
_10=true;}
_f=_f&&_10;}
if(!this._listeners[_d]){
return _f;}
for(var i=0;i<this._listeners[_d].length;i++){
var _12=this._listeners[_d][i];
var _10=_12(this,_e);
if(typeof(_10)=="undefined"){
_10=true;}
_f=_f&&_10;}
return _f;}};};if(typeof window.DnnSkinControlsNamespace=="undefined"){
window.DnnSkinControlsNamespace={};}
if(typeof(window.DnnSkinControlsNamespace.JSON)=="undefined"||typeof(window.DnnSkinControlsNamespace.JSON.Version)==null||window.DnnSkinControlsNamespace.JSON.Version<1){
window.DnnSkinControlsNamespace.JSON={Version:1,copyright:"(c)2005 JSON.org",license:"http://www.crockford.com/JSON/license.html",stringify:function(v,_2){
var a=[];
var _4=arguments[2]||{};
function e(s){
a[a.length]=s;}
function g(x){
var c,i,l,v;
switch(typeof x){
case"object":
if(x){
if(x instanceof Array){
e("[");
l=a.length;
for(i=0;i<x.length;i+=1){
v=x[i];
if(typeof v!="undefined"&&typeof v!="function"){
if(l<a.length){
e(",");}
g(v);}}
e("]");
return"";}else{
if(typeof x.valueOf=="function"){
e("{");
l=a.length;
for(i in x){
v=x[i];
if(_2&&v==_2[i]){
continue;}
var _a=typeof v;
if(_a=="undefined"||_a=="function"){
continue;}
if(_a=="object"&&!_4[i]){
continue;}
if(l<a.length){
e(",");}
g(i);
e(":");
g(v);}
return e("}");}}}
e("null");
return"";
case"number":
e(isFinite(x)?+x:"null");
return"";
case"string":
l=x.length;
e("\"");
for(i=0;i<l;i+=1){
c=x.charAt(i);
if(c>=" "){
if(c=="\\"||c=="\""){
e("\\");}
e(c);}else{
switch(c){
case"\b":
e("\\b");
break;
case"\f":
e("\\f");
break;
case"\n":
e("\\n");
break;
case"\r":
e("\\r");
break;
case"\t":
e("\\t");
break;
default:
c=c.charCodeAt();
e("\\u00"+Math.floor(c/16).toString(16)+(c%16).toString(16));}}}
e("\"");
return"";
case"boolean":
e(String(x));
return"";
default:
e("null");
return"";}}
g(v,0);
return a.join("");},stringifyHashTable:function(_b,_c,_d){
var a=[];
if(!_d){
_d=[];}
for(var i=0;i<_b.length;i++){
var ser=this.stringify(_b[i],_d[i]);
if(ser=="{}"){
continue;}
a[a.length]="\""+_b[i][_c]+"\":"+ser;}
return"{"+a.join(",")+"}";},parse:function(_11){
return(/^([ \t\r\n,:{}\[\]]|"(\\["\\\/bfnrtu]|[^\x00-\x1f"\\]+)*"|-?\d+(\.\d*)?([eE][+-]?\d+)?|true|false|null)+$/.test(_11))&&eval("("+_11+")");}};};if(typeof window.DnnSkinControlsNamespace=="undefined"){
window.DnnSkinControlsNamespace={};}
if(typeof(window.DnnSkinControlsNamespace.MsAjaxMixin)=="undefined"||typeof(window.DnnSkinControlsNamespace.MsAjaxMixin.Version)==null||window.DnnSkinControlsNamespace.MsAjaxMixin.Version<1){
DnnSkinControlsNamespace.MsAjaxMixin={Version:1,Initialize:function(_1,_2){
if(typeof(_1.registerClass)!="function"){
return;}
_1.inheritsFrom(Sys.UI.Control);
_1.registerClass(_2,Sys.UI.Control,Sys.IDisposable);
_1.prototype.initialize=function(){
Sys.UI.Control.callBaseMethod(this,"initialize");};
_1.prototype.dispose=function(){
Sys.UI.Control.callBaseMethod(this,"dispose");
this.Dispose();};}};};if(typeof window.DnnSkinControlsNamespace=="undefined"){
window.DnnSkinControlsNamespace={};}
if(typeof(window.DnnSkinControlsNamespace.Overlay)=="undefined"||typeof(window.DnnSkinControlsNamespace.Overlay.Version)==null||window.DnnSkinControlsNamespace.Overlay.Version<1.1){
window.DnnSkinControlsNamespace.Overlay=function(_1){
if(!this.SupportsOverlay()){
return;}
this.Element=_1;
this.Shim=document.createElement("IFRAME");
this.Shim.src="javascript:'';";
this.Element.parentNode.insertBefore(this.Shim,this.Element);
if(_1.style.zIndex>0){
this.Shim.style.zIndex=_1.style.zIndex-1;}
this.Shim.style.position="absolute";
this.Shim.style.border="0px";
this.Shim.frameBorder=0;
this.Shim.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)";
this.Shim.disabled="disabled";};
window.DnnSkinControlsNamespace.Overlay.Version=1.1;
DnnSkinControlsNamespace.Overlay.prototype.SupportsOverlay=function(){
return DnnSkinControlsNamespace.Browser.IsIE;};
DnnSkinControlsNamespace.Overlay.prototype.Update=function(){
if(!this.SupportsOverlay()){
return;}
this.Shim.style.top=this.ToUnit(this.Element.style.top);
this.Shim.style.left=this.ToUnit(this.Element.style.left);
this.Shim.style.width=this.Element.offsetWidth+"px";
this.Shim.style.height=this.Element.offsetHeight+"px";};
DnnSkinControlsNamespace.Overlay.prototype.ToUnit=function(_2){
if(!_2){
return"0px";}
return parseInt(_2)+"px";};
DnnSkinControlsNamespace.Overlay.prototype.Dispose=function(){
if(!this.SupportsOverlay()){
return;}
if(this.Shim.parentNode){
this.Shim.parentNode.removeChild(this.Shim);}
this.Element=null;
this.Shim=null;};};if(typeof window.DnnSkinNavNamespace=="undefined"){
window.DnnSkinNavNamespace={};}
if(typeof window.DnnSkinControlsNamespace=="undefined"){
window.DnnSkinControlsNamespace={};}
DnnSkinControlsNamespace.AppendStyleSheet=function(_1,_2,_3){
if(!_3){
return;}
var _4=window.netscape&&!window.opera;
if(!_1&&_4){
document.write("<"+"link"+" rel='stylesheet' type='text/css' href='"+_3+"' />");}else{
var _5=document.createElement("link");
_5.rel="stylesheet";
_5.type="text/css";
_5.href=_3;
document.getElementsByTagName("head")[0].appendChild(_5);}};
DnnSkinNavNamespace.ItemFlow={H:0,Horizontal:1};
DnnSkinNavNamespace.ExpandDirection={Auto:0,Up:1,Down:2,Left:3,Right:4};
DnnSkinNavNamespace.ExpandDirectionPropertyName={"1":"bottom","2":"top","3":"right","4":"left"};
function DnnSkinNav(_6){
this.DomElement=_6;
this.ChildItemList=DnnSkinNav.GetFirstChildByTagName(this.DomElement,"ul");
this.StateField=document.getElementById(_6.id+"_Hidden");
this.Items=[];
this.AllItems=[];
this.OpenedItem=null;
this.LastExpandedItem=null;
this.ExpandAnimation={};
this.CollapseAnimation={};
this.CollapseDelay=500;
this.ExpandDelay=0;
this.ID=_6.id;
this.Skin="Default";
this.RightToLeft=false;
this.EnableScreenBoundaryDetection=true;
this.InUpdate=false;
this.Initialized=false;
this.State={};
this.ItemState={};
this.CausesValidation=true;
this.Flow=DnnSkinNavNamespace.ItemFlow.Horizontal;
this.ClickToOpen=false;
this.Enabled=true;
this.EnableAutoScroll=false;
this.Clicked=false;
this.OriginalZIndex=this.DomElement.style.zIndex;
this.Attributes={};
DnnSkinControlsNamespace.EventMixin.Initialize(this);
DnnSkinControlsNamespace.DomEventMixin.Initialize(this);}
DnnSkinNav.Create=function(){
var _7=arguments[0];
var _8=window[_7];
if(_8!=null&&_8.Dispose){
_8.Dispose();}
var _9=document.getElementById(_7);
return new this(_9);};
DnnSkinNav.JSONIncludeDeep={"Attributes":true};
DnnSkinNav.CreateState=function(_a){
_a.InitialState={};
for(var i in _a){
var _c=typeof _a[i];
if(_c=="number"||_c=="string"||_c=="boolean"){
_a.InitialState[i]=_a[i];}}};
DnnSkinNav.GetFirstChildByTagName=function(_d,_e){
var _f=_d.getElementsByTagName(_e)[0];
if(_f&&_f.parentNode==_d){
return _f;}
return null;};
DnnSkinNav.prototype.RenderInProgress=function(){
return this.DomElement.offsetWidth==0;};
DnnSkinNav.prototype.Detach=function(e){
if(!(DnnSkinControlsNamespace.Browser.IsIE)||document.readyState=="complete"){
document.forms[0].insertBefore(this.DomElement,document.forms[0].firstChild);
this.DomElement.style.position="absolute";
this.Detached=true;}};
DnnSkinNav.prototype.Show=function(e){
if(!this.IsContext){
return;}
if(!this.RaiseEvent("OnClientContextShowing")){
return DnnSkinControlsNamespace.DomEvent.PreventDefault(e);}
for(var i in DnnSkinNavNamespace.ContextMenus){
DnnSkinNavNamespace.ContextMenus[i].Hide();}
var x=this.MouseEventX(e);
var y=this.MouseEventY(e);
if(this.RightToLeft){
this.ShowAt(x,y);
return this.ShowAt(x-this.ChildItemList.offsetWidth,y);}
return this.ShowAt(x,y);};
DnnSkinNav.prototype.ShowAt=function(x,y){
if(!this.IsContext){
return;}
if(!this.Detached){
this.Detach();}
this.ShownAsContext=true;
this.Ease.ShowElements();
this.Ease.UpdateContainerSize();
if(!this.WidthFixed){
this.WidthFixed=true;
this.FixItemWidth(this);}
this.Position(x,y);
this.Ease.In();
this.RaiseEvent("OnClientContextShown",null);
return false;};
DnnSkinNav.prototype.Position=function(x,y){
var _19=DnnSkinControlsNamespace.Screen.GetViewPortSize();
x=Math.min(x,_19.width-this.DomElement.offsetWidth);
y=Math.min(y,_19.height-this.DomElement.offsetHeight);
if(isNaN(x)){
x=0;}
if(isNaN(y)){
y=0;}
this.DomElement.style.left=x+"px";
this.DomElement.style.top=y+"px";};
DnnSkinNav.prototype.MouseEventX=function(e){
if(e.pageX){
return e.pageX;}else{
if(e.clientX){
if(DnnSkinControlsNamespace.Browser.StandardsMode){
return(e.clientX+document.documentElement.scrollLeft);}
return(e.clientX+document.body.scrollLeft);}}};
DnnSkinNav.prototype.MouseEventY=function(e){
if(e.pageY){
return e.pageY;}else{
if(e.clientY){
if(DnnSkinControlsNamespace.Browser.StandardsMode){
return(e.clientY+document.documentElement.scrollTop);}
return(e.clientY+document.body.scrollTop);}}};
DnnSkinNav.prototype.EventSource=function(e){
return DnnSkinControlsNamespace.DomEvent.GetTarget(e);};
DnnSkinNav.prototype.Hide=function(){
if(this.ShownAsContext){
this.Ease.Out();
this.ShownAsContext=false;
this.RaiseEvent("OnClientContextHidden",null);}};
DnnSkinNav.prototype.Initialize=function(_1d,_1e){
this.LoadConfiguration(_1d);
this.ItemData=_1e;
this.DetermineDirection();
this.ApplyRTL();
if(this.IsContext){
this.InitContextMenu();}
this.CreateControlHierarchy(this,0);
if(!this.Enabled){
this.Disable();}
if(this.Flow==DnnSkinNavNamespace.ItemFlow.H){
this.FixRootItemWidth();}
this.AttachEventHandlers();
this.Initialized=true;
DnnSkinNav.CreateState(this);
this.RaiseEvent("OnClientLoad",null);};
DnnSkinNav.prototype.AttachEventHandlers=function(){
var _1f=this;
this.DomElement.DnnSkinShow=function(){
if(_1f.Flow==DnnSkinNavNamespace.ItemFlow.H){
_1f.FixRootItemWidth();}};
this.AttachDomEvent(window,"unload","Dispose");
if(!this.ClickToOpen){
this.AttachDomEvent(document,"mouseout","MouseOutHandler");}
if(this.ClickToOpen){
this.AttachDomEvent(document,"click","CloseOpenedItems");}
this.AttachDomEvent(window,"resize","RefreshPosition");};
DnnSkinNav.prototype.RefreshPosition=function(e){
this.DomElement.style.cssText=this.DomElement.style.cssText;};
DnnSkinNav.prototype.MouseOutHandler=function(e){
var _22=DnnSkinControlsNamespace.DomEvent.GetRelatedTarget(e);
if(!_22){
var _23=this;
setTimeout(function(){
_23.Close();},this.CollapseDelay);}};
DnnSkinNav.prototype.CloseOpenedItems=function(e){
var _25=this.EventSource(e);
if(!this.IsChildOf(this.DomElement,_25)){
this.Close();}};
DnnSkinNav.prototype.DetermineDirection=function(){
var el=this.DomElement;
while(el.tagName.toLowerCase()!="html"){
if(el.dir){
this.RightToLeft=(el.dir.toLowerCase()=="rtl");
return;}
el=el.parentNode;}
this.RightToLeft=false;};
DnnSkinNav.prototype.ApplyRTL=function(){
if(!this.RightToLeft){
return;}
if(this.RenderInProgress()){
this.AttachDomEvent(window,"load","ApplyRTL");
return;}
this.FixItemWidthInRTL();
if(DnnSkinControlsNamespace.Browser.IsIE){
this.DomElement.dir="ltr";}
if(!this.IsContext){
this.DomElement.className+=" rtl DnnSkinNav_"+this.Skin+"_rtl";}else{
this.DomElement.className+=" rtlcontext DnnSkinNav_"+this.Skin+"_rtl";}};
DnnSkinNav.prototype.InitContextMenu=function(){
this.Ease=new DnnSkinControlsNamespace.Ease(this.ChildItemList,this,0,0,null,true);
this.Flow=DnnSkinNavNamespace.ItemFlow.H;
this.Ease.SetSide("top");
if(DnnSkinControlsNamespace.Browser.IsOpera){
this.AttachDomEvent(document,"mousedown","OnContextMenu");}else{
this.AttachDomEvent(document,"contextmenu","OnContextMenu");}
this.AttachDomEvent(document,"click","OnDocumentClick");
if(!DnnSkinNavNamespace.ContextMenus){
DnnSkinNavNamespace.ContextMenus={};}
if(!DnnSkinNavNamespace.ContextElements){
DnnSkinNavNamespace.ContextElements={};}
if(this.ContextMenuElementID){
DnnSkinNavNamespace.ContextElements[this.ContextMenuElementID]=true;}
DnnSkinNavNamespace.ContextMenus[this.ID]=this;};
DnnSkinNav.prototype.OnContextMenu=function(e){
if(DnnSkinControlsNamespace.Browser.IsOpera){
if(e.button!=2){
return;}}
this.ContextElement=document.getElementById(this.ContextMenuElementID);
if(this.ContextMenuElementID&&!this.ContextElement){
return;}
var _28=this.EventSource(e);
if(this.ContextElement){
if(_28==this.ContextElement||this.IsChildOf(this.ContextElement,_28)){
this.Show(e);
DnnSkinControlsNamespace.DomEvent.PreventDefault(e);
DnnSkinControlsNamespace.DomEvent.StopPropagation(e);}}else{
if(!DnnSkinNavNamespace.ContextElements[_28.id]){
this.Show(e);
DnnSkinControlsNamespace.DomEvent.PreventDefault(e);
DnnSkinControlsNamespace.DomEvent.StopPropagation(e);}}};
DnnSkinNav.prototype.IsChildOf=function(_29,_2a){
if(_2a==_29){
return false;}
while(_2a&&(_2a!=document.body)){
if(_2a==_29){
return true;}
try{
_2a=_2a.parentNode;}
catch(e){
return false;}}
return false;};
DnnSkinNav.prototype.OnDocumentClick=function(e){
var _2c=this.EventSource(e);
if(this.IsChildOf(this.DomElement,_2c)){
if(!this.IsChildOfMenuItem(_2c)){
return;}}
this.Hide();};
DnnSkinNav.prototype.IsChildOfMenuItem=function(_2d){
if(_2d.tagName=="SPAN"&&_2d.className.indexOf("text")>-1){
return true;}
if(_2d.tagName=="A"&&_2d.className.indexOf("link")>-1){
return true;}
return false;};
DnnSkinNav.prototype.Enable=function(){
this.Enabled=true;
this.DomElement.disabled="";
for(var i=0;i<this.AllItems.length;i++){
this.AllItems[i].Enable();}};
DnnSkinNav.prototype.Disable=function(){
this.Enabled=false;
this.DomElement.disabled="disabled";
for(var i=0;i<this.AllItems.length;i++){
this.AllItems[i].Disable();}};
DnnSkinNav.prototype.Focus=function(){
this.DomElement.focus();};
DnnSkinNav.prototype.Dispose=function(){
if(this.Disposed){
return;}
this.Disposed=true;
for(var i=0;i<this.AllItems.length;i++){
this.AllItems[i].Dispose();}
if(this.Detached&&this.DomElement){
if(this.DomElement.parentNode){
this.DomElement.parentNode.removeChild(this.DomElement);}}
if(this.DomElement){
this.DomElement.DnnSkinShow=null;}
this.DomElement=null;
this.ChildItemList=null;
this.StateField=null;
this.DisposeDomEventHandlers();
if(this.IsContext&&DnnSkinNavNamespace.ContextMenus){
DnnSkinNavNamespace.ContextMenus[this.ID]=null;}};
DnnSkinNav.prototype.CreateMenuItem=function(_31,_32){
var _33=new DnnSkinNavItem(_32);
this.AddItemToParent(_31,_33);
return _33;};
DnnSkinNav.prototype.AddItemToParent=function(_34,_35){
_35.Index=_34.Items.length;
_34.Items[_34.Items.length]=_35;
_35.GlobalIndex=this.AllItems.length;
this.AllItems[this.AllItems.length]=_35;
_35.Parent=_34;
_35.Menu=this;};
DnnSkinNav.prototype.CreateControlHierarchy=function(_36,_37){
_36.Level=_37;
var _38=_36.ChildItemList;
if(!_38){
return;}
for(var i=0;i<_38.childNodes.length;i++){
var _3a=_38.childNodes[i];
if(_3a.nodeType==3){
continue;}
var _3b=this.CreateMenuItem(_36,_3a);
_3b.Initialize();
if(_37==0){
_3b.PostInitialize();}
this.CreateControlHierarchy(_3b,_37+1);}};
DnnSkinNav.prototype.FixItemWidthInRTL=function(){
var _3c=0;
var _3d=0;
var ul=this.ChildItemList;
for(var i=0;i<ul.childNodes.length;i++){
var li=ul.childNodes[i];
if(li.nodeType==3){
continue;}
var _41=DnnSkinNav.GetFirstChildByTagName(li,"a");
if(!_41){
_41=li;}
if(this.RightToLeft){
var _42=_41.getElementsByTagName("img")[0];
if(_42){
_42.style.styleFloat="left";}}
_3c=Math.max(DnnSkinControlsNamespace.Box.GetOuterWidth(_41),_3c);
if(this.RightToLeft){
var _42=_41.getElementsByTagName("img")[0];
if(_42){
_42.style.styleFloat="right";}}}
for(var i=0;i<ul.childNodes.length;i++){
var li=ul.childNodes[i];
if(li.nodeType==3){
continue;}
if(DnnSkinControlsNamespace.Browser.IsOpera){
li.style.cssFloat="none";}
var a=DnnSkinNav.GetFirstChildByTagName(li,"a");
if(a){
var _44=!DnnSkinNav.GetFirstChildByTagName(a,"span").firstChild;
if(!DnnSkinControlsNamespace.Browser.IsIE||!_44){
DnnSkinControlsNamespace.Box.SetOuterWidth(a,DnnSkinControlsNamespace.Box.GetOuterWidth(a));}}else{
li.style.width=_3c+"px";}}
if(DnnSkinControlsNamespace.Browser.IsSafari){
ul.style.width=DnnSkinNav.GetFirstChildByTagName(ul,"li").offsetWidth+"px";}};
DnnSkinNav.prototype.FixItemWidth=function(_45){
var _46=0;
var ul=_45.ChildItemList;
var _48=null;
for(var i=0;i<ul.childNodes.length;i++){
var li=ul.childNodes[i];
if(li.nodeType==3){
continue;}
var _4b=DnnSkinNav.GetFirstChildByTagName(li,"a");
if(!_4b){
_4b=DnnSkinNav.GetFirstChildByTagName(li,"div");
if(!_4b){
continue;}}
if(this.RightToLeft){
var _4c=_4b.getElementsByTagName("img")[0];
if(_4c){
_4c.style.styleFloat="left";}}
var _4d=DnnSkinControlsNamespace.Box.GetOuterWidth(_4b);
if(isNaN(_4d)){
continue;}
if(_4d>_46){
_46=_4d;
_48=li;}
if(this.RightToLeft){
var _4c=_4b.getElementsByTagName("img")[0];
if(_4c){
_4c.style.styleFloat="right";}}}
for(var i=0;i<ul.childNodes.length;i++){
var li=ul.childNodes[i];
if(li.nodeType==3){
continue;}
if(DnnSkinControlsNamespace.Browser.IsOpera){
li.style.cssFloat="none";}
var a=DnnSkinNav.GetFirstChildByTagName(li,"a");
if(a){
var _4f=!DnnSkinNav.GetFirstChildByTagName(a,"span").firstChild;
if(!DnnSkinControlsNamespace.Browser.IsIE||!_4f){
if(a.style.display!="none"){
DnnSkinControlsNamespace.Box.SetOuterWidth(a,_46);}}}else{
li.style.width=_46+"px";}}
if(DnnSkinControlsNamespace.Browser.IsSafari){
if(_48){
ul.style.width=_48.offsetWidth+"px";}}};
DnnSkinNav.prototype.FixRootItemWidth=function(){
var _50=this;
var _51=function(){
_50.FixItemWidth(_50);};
if(this.RenderInProgress()||DnnSkinControlsNamespace.Browser.IsOpera||DnnSkinControlsNamespace.Browser.IsSafari){
if(window.addEventListener){
window.addEventListener("load",_51,false);}else{
window.attachEvent("onload",_51);}}else{
_51();}};
DnnSkinNav.prototype.FixListWidth=function(_52){
if(this.RightToLeft){
this.FixItemWidth(_52);}
var _53=0;
var ul=_52.ChildItemList;
for(var i=0;i<ul.childNodes.length;i++){
var _56=ul.childNodes[i];
if(_56.nodeType==3){
continue;}
_53+=_56.offsetWidth;
_56.style.clear="none";}
ul.style.width=_53+"px";};
DnnSkinNav.prototype.LoadConfiguration=function(_57){
for(var _58 in _57){
this[_58]=_57[_58];}
if(!this.DefaultGroupSettings){
this.DefaultGroupSettings={};}
if(typeof this.DefaultGroupSettings.Flow=="undefined"){
this.DefaultGroupSettings.Flow=DnnSkinNavNamespace.ItemFlow.H;}
if(typeof this.DefaultGroupSettings.ExpandDirection=="undefined"){
this.DefaultGroupSettings.ExpandDirection=DnnSkinNavNamespace.ExpandDirection.Auto;}
if(typeof this.DefaultGroupSettings.OffsetX=="undefined"){
this.DefaultGroupSettings.OffsetX=0;}
if(typeof this.DefaultGroupSettings.OffsetY=="undefined"){
this.DefaultGroupSettings.OffsetY=0;}};
DnnSkinNav.prototype.Close=function(_59){
if(this.OpenedItem){
this.OpenedItem.Close();}};
DnnSkinNav.prototype.FindItemByText=function(_5a){
for(var i=0;i<this.AllItems.length;i++){
if(this.AllItems[i].Text==_5a){
return this.AllItems[i];}}
return null;};
DnnSkinNav.prototype.FindItemById=function(id){
for(var i=0;i<this.AllItems.length;i++){
if(this.AllItems[i].ID==id){
return this.AllItems[i];}}
return null;};
DnnSkinNav.prototype.FindItemByValue=function(_5e){
for(var i=0;i<this.AllItems.length;i++){
if(this.AllItems[i].Value==_5e){
return this.AllItems[i];}}
return null;};
DnnSkinNav.prototype.FindItemByUrl=function(url){
for(var i=0;i<this.AllItems.length;i++){
if(this.AllItems[i].NavigateUrl==url){
return this.AllItems[i];}}
return null;};
DnnSkinNav.prototype.SetContextElementID=function(id){
if(!DnnSkinNavNamespace.ContextElements){
DnnSkinNavNamespace.ContextElements={};}
if(this.ContextMenuElementID){
DnnSkinNavNamespace.ContextElements[this.ContextMenuElementID]=false;}
this.ContextMenuElementID=id;
DnnSkinNavNamespace.ContextElements[this.ContextMenuElementID]=false;};
DnnSkinNav.prototype.RecordState=function(){
if(this.InUpdate||!this.Initialized){
return;}
var _63=DnnSkinControlsNamespace.JSON.stringify(this,this.InitialState,DnnSkinNav.JSONIncludeDeep);
var _64=[];
for(var i in this.ItemState){
if(this.ItemState[i]==""){
continue;}
if(typeof this.ItemState[i]=="function"){
continue;}
_64[_64.length]=this.ItemState[i];}
this.StateField.value="{\"State\":"+_63+",\"ItemState\":{"+_64.join(",")+"}}";};
DnnSkinNav.prototype.PersistClientSideItems=function(){
for(var i=0;i<this.AllItems.length;i++){
var _67=this.AllItems[i];
if(_67.ClientSide){
_67.RecordState(true);}}};
DnnSkinNav.prototype.SetAttribute=function(_68,_69){
this.Attributes[_68]=_69;
this.RecordState();};
DnnSkinNav.prototype.GetAttribute=function(_6a){
return this.Attributes[_6a];};
DnnSkinNav.CreateChildItemContainer=function(_6b){
var _6c=document.createElement("div");
_6c.className="slide";
_6b.DomElement.appendChild(_6c);
var _6d=document.createElement("ul");
if(_6b.Flow==DnnSkinNavNamespace.ItemFlow.Horizontal){
_6d.className="horizontal group level"+_6b.Level;}else{
_6d.className="H group level"+_6b.Level;}
_6c.appendChild(_6d);};
DnnSkinNav.prototype.AddItem=function(_6e){
var _6f=document.createElement("li");
_6f.className="item last";
var _70=document.createElement("a");
_70.className="link";
var _71=document.createElement("span");
_71.className="text";
_70.appendChild(_71);
_6f.appendChild(_70);
_6e.SetDomElement(_6f);
var _72=this.Menu||this;
if(_72!=this&&this.Items.length==0){
DnnSkinNav.CreateChildItemContainer(this);
this.InitializeDomElements();
this.InitializeAnimation();}
this.ChildItemList.appendChild(_6f);
_72.AddItemToParent(this,_6e);
_6e.Level=this.Level+1;
var _73=_6e.Text;
_6e.Text="";
_6e.ID=this.ID+"_m"+(this.Items.length-1);
_6e.Initialize();
_6e.SetText(_73);
if(this.Menu){
_6e.ParentClientID=this.ID;}
_70.href="#";
if(this.Items.length>1){
var _74=this.Items[this.Items.length-2].DomElement;
_74.className=_74.className.replace(" last","");}};;function DnnSkinNavItem(_1){
if(_1){
this.SetDomElement(_1);}else{
this.ClientSide=true;}
this.IsSeparator=false;
this.AnimationContainer=null;
this.OpenedItem=null;
this.FocusedItem=null;
this.Items=[];
this.Attributes={};
this.Index=-1;
this.Level=-1;
this.Parent=null;
this.Menu=null;
this.GroupSettings={};
this.TimeoutPointer=null;
this.Templated=false;
this.NavigateAfterClick=true;
this.FocusedCssClass="focused";
this.ClickedCssClass="clicked";
this.ExpandedCssClass="expanded";
this.DisabledCssClass="disabled";
this.CssClass="";
this.State=DnnSkinNavItemState.Closed;
this.Focused=false;
this.Clicked=false;
this.Enabled=true;
this.Initialized=false;}
DnnSkinNavItem.prototype.SetDomElement=function(_2){
this.DomElement=_2;
this.LinkElement=DnnSkinNav.GetFirstChildByTagName(this.DomElement,"a");
if(this.LinkElement==null){
this.ID=this.DomElement.id;
this.TextElement=DnnSkinNav.GetFirstChildByTagName(this.DomElement,"span");
this.NavigateUrl="";}else{
this.ID=this.LinkElement.id;
this.TextElement=DnnSkinNav.GetFirstChildByTagName(this.LinkElement,"span");
this.NavigateUrl=this.LinkElement.href;}};
DnnSkinNavItem.prototype.PostInitializeItems=function(){
for(var i=0;i<this.Items.length;i++){
this.Items[i].PostInitialize();}};
DnnSkinNavItem.prototype.SetText=function(_4){
this.PostInitialize();
this.TextElement.innerHTML=_4;
this.Text=_4;
this.RecordState();};
DnnSkinNavItem.prototype.SetNavigateUrl=function(_5){
this.PostInitialize();
this.LinkElement.setAttribute("href",_5);
this.NavigateUrl=_5;
this.RecordState();};
DnnSkinNavItem.prototype.SetValue=function(_6){
this.PostInitialize();
this.Value=_6;
this.RecordState();};
DnnSkinNavItem.prototype.InitializeDomElements=function(){
if(!this.Templated){
this.AnimationContainer=DnnSkinNav.GetFirstChildByTagName(this.DomElement,"div");
this.ImageElement=DnnSkinNav.GetFirstChildByTagName(this.LinkElement||this.DomElement,"img");
if(this.ImageElement){
this.ImageUrl=this.ImageElement.src;}}else{
this.TextElement=DnnSkinNav.GetFirstChildByTagName(this.DomElement,"div");
this.AnimationContainer=this.TextElement.nextSibling;}
if(this.AnimationContainer){
var ul=this.AnimationContainer.getElementsByTagName("ul")[0];
this.ChildItemList=ul;
if(this.ChildItemList.parentNode!=this.AnimationContainer){
this.ScrollWrap=this.ChildItemList.parentNode;}}};
DnnSkinNavItem.prototype.InitializeAnimation=function(){
this.DetermineExpandDirection();
if(!this.AnimationContainer){
return;}
this.Ease=new DnnSkinControlsNamespace.Ease(this.ScrollWrap||this.ChildItemList,this.Menu,this.GroupSettings.OffsetX,this.GroupSettings.OffsetY,this,true);
var _8=this.GroupSettings.ExpandDirection;
var _9=DnnSkinNavNamespace.ExpandDirectionPropertyName[_8];
this.Ease.SetSide(_9);
this.TextElement.className="text expand"+this.Ease.GetSide();
this.AnimationContainer.style.zIndex=this.GlobalIndex+10;
this.ChildItemList.style.zIndex=this.GlobalIndex+10;
if(this.ScrollWrap){
this.CreateScroll();}};
DnnSkinNavItem.prototype.Initialize=function(){
DnnSkinControlsNamespace.DomEventMixin.Initialize(this);
this.LoadConfiguration();
this.InitializeDomElements();
if(this.TextElement&&this.TextElement.firstChild){
this.Text=this.TextElement.firstChild.nodeValue;}
this.OriginalZIndex=Math.max(this.DomElement.style.zIndex,this.Menu.OriginalZIndex);};
DnnSkinNavItem.prototype.PostInitialize=function(){
if(this.Initialized){
return;}
this.InitializeAnimation();
this.AttachEventHandlers();
this.RenderAccessKey();
DnnSkinNav.CreateState(this);
this.UpdateCssClass();
this.Initialized=true;};
DnnSkinNavItem.prototype.RenderAccessKey=function(){
if(this.IsSeparator||this.Templated){
return;}
var _a=this.LinkElement.accessKey.toLowerCase();
if(!_a){
return;}
var _b=this.TextElement.firstChild.nodeValue;
var _c=_b.toLowerCase().indexOf(_a);
if(_c==-1){
return;}
this.TextElement.innerHTML=_b.substr(0,_c)+"<u>"+_b.substr(_c,1)+"</u>"+_b.substr(_c+1,_b.length);};
DnnSkinNavItem.prototype.CreateScroll=function(){
this.ScrollWrap.style.zIndex=this.GlobalIndex+10;
this.BuildScrollObject(false);};
DnnSkinNavItem.prototype.BuildScrollObject=function(_d){
var _e=DnnSkinNavNamespace.ItemFlow.H==this.GroupSettings.Flow;
var _f={PerTabScrolling:false,ScrollButtonsPosition:1,ScrollPosition:0};
this.Scroll=new DnnSkinControlsNamespace.Scroll(this.ChildItemList,_e,_f);
this.Scroll.ScrollOnHover=true;
this.Scroll.LeaveGapsForArrows=false;
this.Scroll.WrapNeeded=_d;
if(this.GroupSettings.Flow==DnnSkinNavNamespace.ItemFlow.H){
this.Scroll.LeftArrowClass="topArrow";
this.Scroll.LeftArrowClassDisabled="topArrowDisabled";
this.Scroll.RightArrowClass="bottomArrow";
this.Scroll.RightArrowClassDisabled="bottomArrowDisabled";}};
DnnSkinNavItem.prototype.CreateRuntimeScroll=function(_10){
if(this.Scroll){
this.Scroll.SetHeight(_10);
return;}
this.BuildScrollObject(true);
this.Scroll.Initialize();
this.ScrollWrap=this.ChildItemList.parentNode;
this.Ease.Element=this.ScrollWrap;
this.Ease.Overlay.Element=this.ScrollWrap;
this.ScrollWrap.className="scrollWrap";
this.Scroll.SetHeight(_10);};
DnnSkinNavItem.prototype.Dispose=function(){
if(!this.Initialized){
return;}
this.DisposeDomEventHandlers();
if(this.Ease){
this.Ease.Dispose();}
this.DomElement=null;
this.LinkElement=null;
this.AnimationContainer=null;};
DnnSkinNavItem.prototype.Focus=function(){
if(!this.CanFocus()){
return;}
this.PostInitializeItems();
if(this.Parent.OpenedItem&&this.Parent.OpenedItem!=this){
this.Parent.OpenedItem.Close();}
if(this.Parent.State!=DnnSkinNavItemState.Open&&this.Parent.Open){
this.Parent.Open();}
this.Parent.FocusedItem=this;
if(!this.Focused&&this.LinkElement){
this.LinkElement.focus();}
this.CancelMenuClose();
this.UpdateCssClass();
this.RaiseEvent("OnClientItemFocus");};
DnnSkinNavItem.prototype.Hide=function(){
if(this.LinkElement){
this.LinkElement.style.display="none";}else{
this.TextElement.style.display="none";}
if(this.Parent.Flow==DnnSkinNavNamespace.ItemFlow.H){
var _11=this.Parent.Items;
for(var i=0;i<_11.length;i++){
if(_11[i]!=this){
if(_11[i].LinkElement){
_11[i].LinkElement.style.width="auto";}}}
if(DnnSkinControlsNamespace.Browser.IsSafari){
this.Parent.ChildItemList.style.width="auto";}
this.Menu.WidthFixed=false;
if(this.Parent.DomElement.offsetWidth>0){
this.Menu.FixItemWidth(this.Parent);}}};
DnnSkinNavItem.prototype.IsVisible=function(){
if(!this.LinkElement){
return this.TextElement.style.display!="none";}
return this.LinkElement.style.display!="none";};
DnnSkinNavItem.prototype.Show=function(){
if(this.LinkElement){
this.LinkElement.style.display="";}else{
this.TextElement.style.display="";}
if(this.Parent.Flow==DnnSkinNavNamespace.ItemFlow.H){
this.Menu.WidthFixed=false;
if(this.Parent.DomElement.offsetWidth>0){
this.Menu.FixItemWidth(this.Parent);}}};
DnnSkinNavItem.prototype.Blur=function(){
if(this.IsSeparator){
return;}
if(this.Focused){
this.LinkElement.blur();}
this.Parent.FocusedItem=null;
this.UpdateCssClass();
this.RaiseEvent("OnClientItemBlur");};
DnnSkinNavItem.prototype.Open=function(){
this.PostInitializeItems();
this.Menu.AboutToCollapse=false;
if(this.Parent!=this.Menu&&this.Parent.State!=DnnSkinNavItemState.Open){
this.Parent.Open();}
this.Parent.OpenedItem=this;
clearTimeout(this.TimeoutPointer);
if(!this.AnimationContainer){
return;}
this.State=DnnSkinNavItemState.Open;
var _13=DnnSkinControlsNamespace.Screen.GetViewPortSize();
this.ChildItemList.style.display="block";
this.Ease.ShowElements();
if(this.GroupSettings.Flow==DnnSkinNavNamespace.ItemFlow.H){
this.Menu.FixItemWidth(this);}else{
this.Menu.FixListWidth(this);}
if(this.Menu.EnableAutoScroll&&this.ChildItemList.offsetHeight>_13.height){
if(!this.ScrollWrap||this.ScrollWrap.offsetHeight>_13.height){
this.CreateRuntimeScroll(_13.height+"px");
this.Ease.ShowElements();
this.Ease.UpdateContainerSize();}}
this.Ease.SetSide(this.GetEaseSide());
this.Ease.UpdateContainerSize();
if(this.Scroll){
this.CalculateScrollWrapSize();
this.Scroll.Initialize();}
this.PositionChildContainer(_13);
this.Ease.In();
this.UpdateCssClass();
this.DomElement.style.zIndex=this.OriginalZIndex+1000;
if(!DnnSkinControlsNamespace.Browser.IsNetscape){
this.Menu.DomElement.style.zIndex=this.Menu.OriginalZIndex+1000;}
this.CancelMenuClose();
this.RaiseEvent("OnClientItemOpen");};
DnnSkinNavItem.prototype.GetEaseSide=function(){
var _14=this.GroupSettings.ExpandDirection;
return DnnSkinNavNamespace.ExpandDirectionPropertyName[_14];};
DnnSkinNavItem.prototype.RaiseEvent=function(_15){
return this.Menu.RaiseEvent(_15,{Item:this});};
DnnSkinNavItem.prototype.UpdateCssClass=function(){
if(this.IsSeparator||this.Templated){
return;}
var _16="link "+this.CssClass;
if(this.Focused){
_16=_16+" "+this.FocusedCssClass;}
if(this.State==DnnSkinNavItemState.Open){
_16=_16+" "+this.ExpandedCssClass;}
if(this.Clicked){
_16=_16+" "+this.ClickedCssClass;}
if(!this.Enabled){
_16=_16+" "+this.DisabledCssClass;}
this.LinkElement.className=_16;
this.UpdateImageUrl();};
DnnSkinNavItem.prototype.UpdateImageUrl=function(){
if(!this.ImageElement){
return;}
var _17=this.ImageUrl;
if(this.Hovered&&this.ImageOverUrl){
_17=this.ImageOverUrl;}
if(this.State==DnnSkinNavItemState.Open&&this.ExpandedImageUrl){
_17=this.ExpandedImageUrl;}
if(!this.Enabled&&this.DisabledImageUrl){
_17=this.DisabledImageUrl;}
if(this.Clicked&&this.ImageClickedUrl){
_17=this.ImageClickedUrl;}
_17=_17.replace(/&amp;/ig,"&");
if(_17!=this.ImageElement.src){
this.ImageElement.src=_17;}};
DnnSkinNavItem.prototype.Enable=function(){
if(this.IsSeparator||this.Templated){
return;}
this.LinkElement.disabled="";
if(this.ImageElement){
this.ImageElement.disabled="";}
this.Enabled=true;
this.EnableDomEventHandling();
this.UpdateCssClass();};
DnnSkinNavItem.prototype.Disable=function(){
if(this.IsSeparator||this.Templated){
return;}
this.LinkElement.disabled="disabled";
if(this.ImageElement){
this.ImageElement.disabled="disabled";}
this.Enabled=false;
this.DisableDomEventHandling();
this.UpdateCssClass();};
DnnSkinNavItem.prototype.Close=function(){
if(this.IsSeparator){
return;}
if(this.State==DnnSkinNavItemState.Closed){
return;}
if(this.OpenedItem){
this.OpenedItem.Close();}
this.Parent.OpenedItem=null;
clearTimeout(this.TimeoutPointer);
if(!this.AnimationContainer){
return;}
this.State=DnnSkinNavItemState.Closed;
if(this.Level==1){
this.Menu.AboutToCollapse=true;}
this.Ease.Out();
this.UpdateCssClass();
this.DomElement.style.zIndex=this.OriginalZIndex;
if(!DnnSkinControlsNamespace.Browser.IsNetscape){
if(this.Level==1){
this.Menu.DomElement.style.zIndex=this.Menu.OriginalZIndex;}}
this.HideChildren();};
DnnSkinNavItem.prototype.OnCollapseComplete=function(){
this.RaiseEvent("OnClientItemClose");};
DnnSkinNavItem.prototype.HideChildren=function(){
for(var i=0;i<this.Items.length;i++){
if(this.Items[i].AnimationContainer){
this.Items[i].AnimationContainer.style.display="none";}}};
DnnSkinNavItem.prototype.CalculateScrollWrapSize=function(){
if(!this.ScrollWrap){
return;}
if(!this.ScrollWrap.style.height){
this.ScrollWrap.style.height=this.ChildItemList.offsetHeight+"px";}
if(!this.ScrollWrap.style.width){
this.ScrollWrap.style.width=this.ChildItemList.offsetWidth+"px";}};
DnnSkinNavItem.prototype.AttachEventHandlers=function(){
this.AttachDomEvent(this.DomElement,"mouseover","MouseOverHandler");
this.AttachDomEvent(this.DomElement,"mouseout","MouseOutHandler");
if(this.IsSeparator||this.Templated){
return;}
this.AttachDomEvent(this.LinkElement,"click","ClickHandler",true);
this.AttachDomEvent(this.LinkElement,"mouseout","HRefMouseOutHandler");
this.AttachDomEvent(this.LinkElement,"mouseover","HRefMouseOverHandler");
this.AttachDomEvent(this.LinkElement,"mousedown","MouseDownHandler");
this.AttachDomEvent(this.LinkElement,"mouseup","MouseUpHandler");
this.AttachDomEvent(this.LinkElement,"blur","BlurHandler");
this.AttachDomEvent(this.LinkElement,"focus","FocusHandler");
this.AttachDomEvent(this.LinkElement,"keydown","KeyDownHandler");};
DnnSkinNavItem.prototype.MouseDownHandler=function(e){
this.Clicked=true;
this.UpdateCssClass();};
DnnSkinNavItem.prototype.MouseUpHandler=function(e){
this.Clicked=false;
this.UpdateCssClass();};
DnnSkinNavItem.prototype.HRefMouseOutHandler=function(e){
var to=DnnSkinControlsNamespace.DomEvent.GetRelatedTarget(e);
if(this.Menu.IsChildOf(this.LinkElement,to)||to==this.LinkElement){
return;}
this.Hovered=false;
this.UpdateImageUrl();
this.RaiseEvent("OnClientMouseOut");};
DnnSkinNavItem.prototype.HRefMouseOverHandler=function(e){
var _1e=DnnSkinControlsNamespace.DomEvent.GetRelatedTarget(e);
if(this.Menu.IsChildOf(this.LinkElement,_1e)||this.LinkElement==_1e){
return;}
this.Hovered=true;
this.UpdateImageUrl();
this.RaiseEvent("OnClientMouseOver");};
DnnSkinNavItem.prototype.KeyDownHandler=function(e){
var _20={left:37,up:38,right:39,down:40,esc:27};
var _21=DnnSkinControlsNamespace.DomEvent.GetKeyCode(e);
if(_21==_20.right){
if(this.Menu.RightToLeft){
this.HandleLeftArrow();}else{
this.HandleRightArrow();}}else{
if(_21==_20.left){
if(this.Menu.RightToLeft){
this.HandleRightArrow();}else{
this.HandleLeftArrow();}}else{
if(_21==_20.up){
this.HandleUpArrow();}else{
if(_21==_20.down){
this.HandleDownArrow();}else{
if(_21==_20.esc){
if(this.Parent==this.Menu){
this.Blur();}else{
this.Parent.Close();
this.Parent.Focus();}}else{
return;}}}}}
DnnSkinControlsNamespace.DomEvent.PreventDefault(e);};
DnnSkinNavItem.prototype.FocusHandler=function(e){
this.Focused=true;
this.Focus();};
DnnSkinNavItem.prototype.ScheduleMenuClose=function(_23){
var _24=this.Menu;
clearTimeout(this.Menu.CloseTimeout);
this.Menu.CloseTimeout=setTimeout(function(){
_24.Close();
_24.Clicked=false;},_23);};
DnnSkinNavItem.prototype.CancelMenuClose=function(){
clearTimeout(this.Menu.CloseTimeout);};
DnnSkinNavItem.prototype.BlurHandler=function(e){
this.Focused=false;
this.Blur();};
DnnSkinNavItem.prototype.NavigatesToURL=function(){
if(location.href+"#"==this.NavigateUrl||location.href==this.NavigateUrl){
return false;}
return(new RegExp("//")).test(this.LinkElement.href);};
DnnSkinNavItem.prototype.Validate=function(){
if(!this.Menu.CausesValidation||this.NavigatesToURL()){
return true;}
if(typeof(Page_ClientValidate)!="function"){
return true;}
return Page_ClientValidate(this.Menu.ValidationGroup);};
DnnSkinNavItem.prototype.ClickHandler=function(e){
if(!this.Enabled){
return DnnSkinControlsNamespace.DomEvent.PreventDefault(e);}
if(!this.RaiseEvent("OnClientItemClicking")){
return DnnSkinControlsNamespace.DomEvent.PreventDefault(e);}
if(!this.Validate()){
return DnnSkinControlsNamespace.DomEvent.PreventDefault(e);}
var _27=true;
if(!this.Menu.ClickToOpen){
_27=true;}else{
if(this.Level>1){
_27=true;}else{
if(!this.Menu.Clicked){
this.Open();}else{
this.Close();}
this.Menu.Clicked=!this.Menu.Clicked;}}
this.RaiseEvent("OnClientItemClicked");
if(!this.NavigateAfterClick||!_27){
DnnSkinControlsNamespace.DomEvent.PreventDefault(e);}};
DnnSkinNavItem.prototype.MouseOverHandler=function(e){
var _29=DnnSkinControlsNamespace.DomEvent.GetRelatedTarget(e);
if(this.Menu.IsChildOf(this.DomElement,_29)||this.DomElement==_29){
return;}
if(this.Menu.ClickToOpen&&!this.Menu.Clicked){
return;}
if(this.State==DnnSkinNavItemState.Open||this.State==DnnSkinNavItemState.AboutToOpen){
return;}
this.Menu.LastOpenedItem=this;
if(this.State==DnnSkinNavItemState.AboutToClose){
clearTimeout(this.TimeoutPointer);
this.State=DnnSkinNavItemState.Open;
return;}
if(this.Parent.OpenedItem){
this.Parent.OpenedItem.Close();}
this.Parent.OpenedItem=this;
this.State=DnnSkinNavItemState.AboutToOpen;
var _2a=this;
var _2b=function(){
_2a.Open();};
this.TimeoutPointer=setTimeout(_2b,this.Menu.ExpandDelay);};
DnnSkinNavItem.prototype.MouseOutHandler=function(e){
var to=DnnSkinControlsNamespace.DomEvent.GetRelatedTarget(e);
if((!to)||this.Menu.IsChildOf(this.DomElement,to)||to==this.DomElement){
return;}else{
try{
var _2e=to.parentNode;}
catch(e){
return;}}
if(this.State==DnnSkinNavItemState.Closed||this.State==DnnSkinNavItemState.AboutToClose){
return;}
if(this.State==DnnSkinNavItemState.AboutToOpen){
clearTimeout(this.TimeoutPointer);
this.State=DnnSkinNavItemState.Closed;
this.Parent.OpenedItem=null;
return;}
if(this.Menu.ClickToOpen){
return;}
this.State=DnnSkinNavItemState.AboutToClose;
var _2f=this;
var _30=function(){
_2f.Close();};
this.TimeoutPointer=setTimeout(_30,this.Menu.CollapseDelay);};
DnnSkinNavItem.prototype.PositionChildContainer=function(_31){
var top=0;
var _33=0;
var _34=this.GroupSettings.ExpandDirection;
var _35=DnnSkinNavNamespace.ExpandDirectionPropertyName[_34];
var _36=this.DomElement;
var _37=DnnSkinControlsNamespace.Box.GetOuterHeight(_36);
var _38=DnnSkinControlsNamespace.Box.GetOuterWidth(_36);
var _39=this.AnimationContainer;
var _3a=DnnSkinControlsNamespace.Box.GetOuterHeight(_39);
var _3b=DnnSkinControlsNamespace.Box.GetOuterWidth(_39);
if(_34==DnnSkinNavNamespace.ExpandDirection.Down){
top=_37;}else{
if(_34==DnnSkinNavNamespace.ExpandDirection.Right){
_33=_38;}}
this.SetContainerPosition(_33,top);
var _3c=DnnSkinControlsNamespace.Screen.GetElementPosition(_39);
if(this.Menu.RightToLeft){
_33=_38-_3b;}
if(!this.Menu.EnableScreenBoundaryDetection){
this.Ease.SetSide(_35);
this.TextElement.className="text expand"+this.Ease.GetSide();
return;}
if(DnnSkinControlsNamespace.Screen.ElementOverflowsRight(_31,_39)&&_34==DnnSkinNavNamespace.ExpandDirection.Right){
_34=DnnSkinNavNamespace.ExpandDirection.Left;
_35="right";
_33=0;}else{
if(_3c.x-_3b<0&&_34==DnnSkinNavNamespace.ExpandDirection.Left){
_34=DnnSkinNavNamespace.ExpandDirection.Right;
_35="left";
_33=_38;}else{
if(_3c.y-_3a<0&&_34==DnnSkinNavNamespace.ExpandDirection.Up){
_34=DnnSkinNavNamespace.ExpandDirection.Down;
_35="top";
top=_37;}else{
if(DnnSkinControlsNamespace.Screen.ElementOverflowsBottom(_31,_39)&&_34==DnnSkinNavNamespace.ExpandDirection.Down){
var _39=DnnSkinControlsNamespace.Screen.GetElementPosition(this.DomElement);
if(_39.y>this.AnimationContainer.offsetHeight){
_34=DnnSkinNavNamespace.ExpandDirection.Up;
_35="bottom";
top=_37;}}}}}
if(DnnSkinControlsNamespace.Screen.ElementOverflowsRight(_31,_39)&&(_34==DnnSkinNavNamespace.ExpandDirection.Down||_34==DnnSkinNavNamespace.ExpandDirection.Up)){
if(!this.Menu.RightToLeft){
_33=_31.width-(_3c.x+_3b);}}else{
if(DnnSkinControlsNamespace.Screen.ElementOverflowsBottom(_31,_39)){
if(_34==DnnSkinNavNamespace.ExpandDirection.Left||_34==DnnSkinNavNamespace.ExpandDirection.Right){
top=_31.height-(_3c.y+_3a);}}}
this.SetContainerPosition(_33,top);
this.Ease.SetSide(_35);
this.TextElement.className="text expand"+this.Ease.GetSide();};
DnnSkinNavItem.prototype.SetContainerPosition=function(_3d,top){
var y=top+this.GroupSettings.OffsetY;
this.AnimationContainer.style.top=y+"px";
this.AnimationContainer.style.left=(_3d+this.GroupSettings.OffsetX)+"px";};
DnnSkinNavItem.prototype.SetAttribute=function(_40,_41){
this.PostInitialize();
this.Attributes[_40]=_41;
this.RecordState();};
DnnSkinNavItem.prototype.SetImageUrl=function(src){
this.PostInitialize();
this.ImageUrl=src;
this.ImageElement.src=src;
this.RecordState();};
DnnSkinNavItem.prototype.SetImageOverUrl=function(src){
this.PostInitialize();
this.ImageOverUrl=src;
this.RecordState();};
DnnSkinNavItem.prototype.GetAttribute=function(_44){
return this.Attributes[_44];};
DnnSkinNavItem.prototype.DetermineExpandDirection=function(){
if(this.GroupSettings.ExpandDirection!=DnnSkinNavNamespace.ExpandDirection.Auto){
return;}
if(this.Parent.Flow==DnnSkinNavNamespace.ItemFlow.H){
if(this.Menu.RightToLeft){
this.GroupSettings.ExpandDirection=DnnSkinNavNamespace.ExpandDirection.Left;}else{
this.GroupSettings.ExpandDirection=DnnSkinNavNamespace.ExpandDirection.Right;}}else{
this.GroupSettings.ExpandDirection=DnnSkinNavNamespace.ExpandDirection.Down;}};
DnnSkinNavItem.prototype.LoadConfiguration=function(){
if(this.Menu.ItemData[this.ID]){
for(var _45 in this.Menu.ItemData[this.ID]){
this[_45]=this.Menu.ItemData[this.ID][_45];}}
var _46=this.Menu.DefaultGroupSettings;
if(typeof this.GroupSettings.Flow=="undefined"){
this.GroupSettings.Flow=_46.Flow;}
this.Flow=this.GroupSettings.Flow;
if(typeof this.GroupSettings.ExpandDirection=="undefined"){
this.GroupSettings.ExpandDirection=_46.ExpandDirection;}
if(typeof this.GroupSettings.OffsetX=="undefined"){
this.GroupSettings.OffsetX=_46.OffsetX;}
if(typeof this.GroupSettings.OffsetY=="undefined"){
this.GroupSettings.OffsetY=_46.OffsetY;}
if(!this.Enabled){
this.Disable();}};
DnnSkinNavItem.prototype.HandleRightArrow=function(){
if(this.Parent.Flow==DnnSkinNavNamespace.ItemFlow.Horizontal){
this.FocusNextItem();}else{
if(this.Items.length&&this.GroupSettings.ExpandDirection==DnnSkinNavNamespace.ExpandDirection.Right){
this.FocusFirstChild();}else{
if(this.Parent.GroupSettings&&this.Parent.GroupSettings.ExpandDirection==DnnSkinNavNamespace.ExpandDirection.Left){
this.Parent.Focus();}else{
if(this.Menu.OpenedItem){
this.Menu.OpenedItem.GetNextItem().Focus();}}}}};
DnnSkinNavItem.prototype.HandleLeftArrow=function(){
if(this.Parent.Flow==DnnSkinNavNamespace.ItemFlow.Horizontal){
this.FocusPreviousItem();}else{
if(this.Items.length&&this.GroupSettings.ExpandDirection==DnnSkinNavNamespace.ExpandDirection.Left){
this.FocusFirstChild();}else{
if(this.Parent.GroupSettings&&this.Parent.GroupSettings.ExpandDirection==DnnSkinNavNamespace.ExpandDirection.Right){
this.Parent.Focus();}else{
if(this.Menu.OpenedItem){
this.Menu.OpenedItem.GetPreviousItem().Focus();}}}}};
DnnSkinNavItem.prototype.HandleUpArrow=function(){
if(this.Parent.Flow==DnnSkinNavNamespace.ItemFlow.H){
this.FocusPreviousItem();}else{
this.FocusLastChild();}};
DnnSkinNavItem.prototype.HandleDownArrow=function(){
if(this.Parent.Flow==DnnSkinNavNamespace.ItemFlow.H){
this.FocusNextItem();}else{
this.FocusFirstChild();}};
DnnSkinNavItem.prototype.GetNextItem=function(){
if(this.Index==this.Parent.Items.length-1){
return this.Parent.Items[0];}
return this.Parent.Items[this.Index+1];};
DnnSkinNavItem.prototype.GetPreviousItem=function(){
if(this.Index==0){
return this.Parent.Items[this.Parent.Items.length-1];}
return this.Parent.Items[this.Index-1];};
DnnSkinNavItem.prototype.CanFocus=function(){
return(!this.IsSeparator)&&this.Enabled;};
DnnSkinNavItem.prototype.FocusFirstChild=function(){
if(!this.Items.length){
return;}
var _47=this.Items[0];
while(!_47.CanFocus()){
_47=_47.GetNextItem();
if(_47==this.Items[0]){
return;}}
_47.Focus();};
DnnSkinNavItem.prototype.FocusLastChild=function(){
if(!this.Items.length){
return;}
var _48=this.Items[this.Items.length-1];
while(!_48.CanFocus()){
_48=_48.GetPreviousItem();
if(this.Items.length-1){
return;}}
_48.Focus();};
DnnSkinNavItem.prototype.FocusNextItem=function(){
var _49=this.GetNextItem();
while(!_49.CanFocus()){
_49=_49.GetNextItem();}
_49.Focus();};
DnnSkinNavItem.prototype.FocusPreviousItem=function(){
var _4a=this.GetPreviousItem();
while(!_4a.CanFocus()){
_4a=_4a.GetPreviousItem();}
_4a.Focus();};
DnnSkinNavItem.prototype.RecordState=function(_4b){
if(this.ClientSide&&!_4b){
return;}
var _4c=DnnSkinControlsNamespace.JSON.stringify(this,this.InitialState,DnnSkinNav.JSONIncludeDeep);
if(_4c=="{}"){
this.Menu.ItemState[this.ID]="";}else{
this.Menu.ItemState[this.ID]="\""+this.ID+"\":"+_4c;}
this.Menu.RecordState();};
DnnSkinNavItem.prototype.AddItem=function(){
this.Menu.AddItem.apply(this,arguments);
this.Menu.FixItemWidth(this);};;function DnnSkinNavItemState(){}
DnnSkinNavItemState={Closed:0,Open:1,AboutToClose:2,AboutToOpen:3};;if(typeof window.DnnSkinControlsNamespace=="undefined"){
window.DnnSkinControlsNamespace={};}
if(typeof(window.DnnSkinControlsNamespace.Screen)=="undefined"||typeof(window.DnnSkinControlsNamespace.Screen.Version)==null||window.DnnSkinControlsNamespace.Screen.Version<1.1){
window.DnnSkinControlsNamespace.Screen={Version:1.1,GetViewPortSize:function(){
var _1=0;
var _2=0;
var _3=document.body;
if(DnnSkinControlsNamespace.Browser.StandardsMode&&!DnnSkinControlsNamespace.Browser.IsSafari){
_3=document.documentElement;}
if(DnnSkinControlsNamespace.Browser.IsMozilla&&document.compatMode!="CSS1Compat"){
_3=document.body;}
if(window.innerWidth){
_1=window.innerWidth;
_2=window.innerHeight;}else{
_1=_3.clientWidth;
_2=_3.clientHeight;}
_1+=_3.scrollLeft;
_2+=_3.scrollTop;
return{width:_1-6,height:_2-6};},GetElementPosition:function(el){
var _5=null;
var _6={x:0,y:0};
var _7;
if(el.getBoundingClientRect){
_7=el.getBoundingClientRect();
var _8=document.documentElement.scrollTop||document.body.scrollTop;
var _9=document.documentElement.scrollLeft||document.body.scrollLeft;
_6.x=_7.left+_9-2;
_6.y=_7.top+_8-2;
return _6;}else{
if(document.getBoxObjectFor){
try{
_7=document.getBoxObjectFor(el);
_6.x=_7.x-2;
_6.y=_7.y-2;}
catch(e){}}else{
_6.x=el.offsetLeft;
_6.y=el.offsetTop;
_5=el.offsetParent;
if(_5!=el){
while(_5){
_6.x+=_5.offsetLeft;
_6.y+=_5.offsetTop;
_5=_5.offsetParent;}}}}
if(window.opera){
_5=el.offsetParent;
while(_5&&_5.tagName!="BODY"&&_5.tagName!="HTML"){
_6.x-=_5.scrollLeft;
_6.y-=_5.scrollTop;
_5=_5.offsetParent;}}else{
_5=el.parentNode;
while(_5&&_5.tagName!="BODY"&&_5.tagName!="HTML"){
_6.x-=_5.scrollLeft;
_6.y-=_5.scrollTop;
_5=_5.parentNode;}}
return _6;},ElementOverflowsTop:function(_a){
return this.GetElementPosition(_a).y<0;},ElementOverflowsLeft:function(_b){
return this.GetElementPosition(_b).x<0;},ElementOverflowsBottom:function(_c,_d){
var _e=this.GetElementPosition(_d).y+DnnSkinControlsNamespace.Box.GetOuterHeight(_d);
return _e>_c.height;},ElementOverflowsRight:function(_f,_10){
var _11=this.GetElementPosition(_10).x+DnnSkinControlsNamespace.Box.GetOuterWidth(_10);
return _11>_f.width;}};};if(typeof window.DnnSkinControlsNamespace=="undefined"){
window.DnnSkinControlsNamespace={};}
DnnSkinControlsNamespace.ScrollButtonsPosition={Left:0,Middle:1,Right:2};
DnnSkinControlsNamespace.Scroll=function(_1,_2,_3){
this.Owner=_3;
this.Element=_1;
this.IsH=_2;
this.ScrollButtonsPosition=_3.ScrollButtonsPosition;
this.ScrollPosition=_3.ScrollPosition;
this.PerTabScrolling=_3.PerTabScrolling;
this.ScrollOnHover=false;
this.WrapNeeded=false;
this.LeaveGapsForArrows=true;
this.LeftArrowClass="leftArrow";
this.LeftArrowClassDisabled="leftArrowDisabled";
this.RightArrowClass="rightArrow";
this.RightArrowClassDisabled="rightArrowDisabled";
this.Initialized=false;};
DnnSkinControlsNamespace.Scroll.Create=function(_4,_5,_6){
return new DnnSkinControlsNamespace.Scroll(_4,_5,_6);};
DnnSkinControlsNamespace.Scroll.prototype.Initialize=function(){
if(this.Initialized){
this.ApplyOverflow();
this.CalculateMinMaxPosition();
this.EvaluateArrowStatus();
return false;}
if((this.Element.offsetWidth==0&&!this.IsH)||(this.Element.offsetHeight==0&&this.IsH)){
return false;}
this.Initialized=true;
this.ScrollAmount=2;
this.Direction=0;
if(this.WrapNeeded){
var _7=this.CreateScrollWrap();}
this.ApplyOverflow();
this.Element.style.position="relative";
this.AttachArrows();
this.CalculateMinMaxPosition();
if(this.PerTabScrolling){
this.CalculateInitialTab();}
this.AttachScrollMethods();
this.EvaluateArrowStatus();
this.AttachEventHandlers();
this.ScrollTo(this.ScrollPosition);
this.ApplyOverflow();
return _7;};
DnnSkinControlsNamespace.Scroll.prototype.ApplyOverflow=function(){
if(DnnSkinControlsNamespace.Browser.IsIE){
this.Element.parentNode.style.overflow="visible";
if(this.IsH){
this.Element.parentNode.style.overflowX="";
this.Element.parentNode.style.overflowY="hidden";}else{
this.Element.parentNode.style.overflowX="hidden";
this.Element.parentNode.style.overflowY="hidden";}}else{
this.Element.parentNode.style.overflow="hidden";}
if(!this.ScrollNeeded()){
this.Element.parentNode.style.overflow="visible";
this.Element.parentNode.style.overflowX="visible";
this.Element.parentNode.style.overflowY="visible";}};
DnnSkinControlsNamespace.Scroll.prototype.ResizeHandler=function(){
if(this.Disposed){
return;}
if(!this.Initialized){
this.Initialize();}
if(!this.Initialized){
return;}
if(!this.Element.offsetHeight||!this.Element.offsetWidth){
return;}
this.CalculateMinMaxPosition();
if(this.Element.offsetWidth<this.Element.parentNode.offsetWidth){
this.ScrollTo(0);}
var _8=parseInt(this.IsH?this.Element.style.top:this.Element.style.left);
if(isNaN(_8)){
_8=0;}
var _9=this;};
DnnSkinControlsNamespace.Scroll.prototype.AttachEventHandlers=function(){
var _a=this.Element;
var _b=this;
this.resizeClosure=function(){
_b.ResizeHandler();};
if(window.addEventListener){
window.addEventListener("resize",this.resizeClosure,false);}else{
window.attachEvent("onresize",this.resizeClosure);}};
DnnSkinControlsNamespace.Scroll.prototype.Dispose=function(){
this.Disposed=true;
this.Element=null;
clearTimeout(this.intervalPointer);
if(window.removeEventListener){
window.removeEventListener("resize",this.resizeClosure,false);}else{
window.detachEvent("onresize",this.resizeClosure);}};
DnnSkinControlsNamespace.Scroll.prototype.AttachArrows=function(){
var _c=this.CreateArrow("&laquo;",1,this.LeftArrowClass);
var _d=this.CreateArrow("&raquo;",-1,this.RightArrowClass);
this.LeftArrow=_c;
this.RightArrow=_d;
if(this.IsH){
_c.style.left="0px";
_d.style.left="0px";
if(this.ScrollButtonsPosition==DnnSkinControlsNamespace.ScrollButtonsPosition.Middle){
_c.style.top="0px";
_d.style.bottom="0px";}else{
if(this.ScrollButtonsPosition==DnnSkinControlsNamespace.ScrollButtonsPosition.Left){
_c.style.top="0px";
_d.style.top=_c.offsetHeight+"px";}else{
_d.style.bottom="0px";
_c.style.bottom=_c.offsetHeight+"px";}}}else{
_c.style.top="0px";
_d.style.top="0px";
if(this.ScrollButtonsPosition==DnnSkinControlsNamespace.ScrollButtonsPosition.Middle){
_c.style.left="-1px";
_d.style.right="-1px";}else{
if(this.ScrollButtonsPosition==DnnSkinControlsNamespace.ScrollButtonsPosition.Left){
_c.style.left="-1px";
_d.style.left=(_c.offsetWidth-1)+"px";}else{
_d.style.right="-1px";
_c.style.right=(_d.offsetWidth-1)+"px";}}}};
DnnSkinControlsNamespace.Scroll.prototype.CreateArrow=function(_e,_f,_10){
var _11=document.createElement("a");
_11.href="#";
_11.className=_10;
_11.innerHTML="&nbsp;";
_11.style.zIndex="2000";
this.Element.parentNode.appendChild(_11);
var _12=this;
_11.ScrollDirection=_f;
if(this.ScrollOnHover){
_11.onmousedown=function(){
if(this.disabled){
return false;}
_12.ScrollAmount=3;
return true;};
_11.onmouseup=function(){
_12.ScrollAmount=1;};
_11.onmouseover=function(){
if(this.disabled){
return false;}
_12.ScrollAmount=1;
_12.Scroll(this.ScrollDirection);
return true;};
_11.onmouseout=function(){
_12.scrollAmount=0;
_12.Stop();
return false;};}else{
_11.onmousedown=function(){
_12.Scroll(this.ScrollDirection);};
_11.onmouseup=function(){
_12.Stop();};}
_11.onclick=function(){
return false;};
return _11;};
DnnSkinControlsNamespace.Scroll.prototype.SetHeight=function(_13){
if(parseInt(_13)==0){
return;}
this.Element.parentNode.style.height=_13;
this.Initialize();};
DnnSkinControlsNamespace.Scroll.prototype.SetWidth=function(_14){
if(parseInt(_14)==0){
return;}
this.Element.parentNode.style.width=_14;
this.Initialize();};
DnnSkinControlsNamespace.Scroll.prototype.CreateScrollWrap=function(){
var _15=document.createElement("div");
var _16=this.Element.parentNode;
_15.appendChild(this.Element);
_15.style.position="relative";
_15.align="left";
_16.appendChild(_15);
if(this.IsH){
_15.style.styleFloat="left";
_15.style.cssFloat="left";
this.Element.style.display="none";
_15.style.height=_15.parentNode.parentNode.offsetHeight+"px";
this.Element.style.display="block";}else{
var _17=0;
for(var i=0;i<this.Element.childNodes.length;i++){
var _19=this.Element.childNodes[i];
if(!_19.tagName){
continue;}
_17+=_19.offsetWidth;}
this.Element.style.width=(_17+3)+"px";}
return _15;};
DnnSkinControlsNamespace.Scroll.prototype.CalculateMinMaxPosition=function(){
if(!this.Initialized){
return;}
if(this.IsH){
var _1a=this.Element.parentNode.offsetHeight-this.Element.offsetHeight;
var _1b=this.LeftArrow.offsetHeight;
var _1c=this.RightArrow.offsetHeight;}else{
var _1a=this.Element.parentNode.offsetWidth-this.Element.offsetWidth;
var _1b=this.LeftArrow.offsetWidth;
var _1c=this.RightArrow.offsetWidth;}
if(!this.LeaveGapsForArrows){
_1b=0;
_1c=0;}
this.MaxScrollPosition=0;
this.MinScrollPosition=_1a-_1c-_1b;
if(this.ScrollButtonsPosition==DnnSkinControlsNamespace.ScrollButtonsPosition.Middle){
this.Offset=_1b;}else{
if(this.ScrollButtonsPosition==DnnSkinControlsNamespace.ScrollButtonsPosition.Left){
this.Offset=_1b+_1c;}else{
this.Offset=0;}}};
DnnSkinControlsNamespace.Scroll.prototype.CalculateInitialTab=function(){
var lis=this.Element.getElementsByTagName("li");
if(lis.length>0){
var i=0;
while(this.ScrollPosition<-(this.IsH?lis[i].offsetTop:lis[i].offsetLeft)){
i++;}
this.CurrentTab=i;}};
DnnSkinControlsNamespace.Scroll.prototype.AttachScrollMethods=function(){
if(this.PerTabScrolling){
this.Scroll=DnnSkinControlsNamespace.Scroll.StartPerTabScroll;
this.Stop=DnnSkinControlsNamespace.Scroll.StopPerTabScroll;}else{
this.Scroll=DnnSkinControlsNamespace.Scroll.StartSmoothScroll;
this.Stop=DnnSkinControlsNamespace.Scroll.StopSmoothScroll;}};
DnnSkinControlsNamespace.Scroll.prototype.EvaluateArrowStatus=function(){
var _1f=!(this.ScrollPosition>this.MinScrollPosition);
var _20=!(this.ScrollPosition<this.MaxScrollPosition);
this.RightArrow.disabled=_1f;
this.LeftArrow.disabled=_20;
if(_20){
if(this.LeftArrow.className!=this.LeftArrowClassDisabled){
this.LeftArrow.className=this.LeftArrowClassDisabled;}}else{
if(this.LeftArrow.className!=this.LeftArrowClass){
this.LeftArrow.className=this.LeftArrowClass;}}
if(_1f){
if(this.RightArrow.className!=this.RightArrowClassDisabled){
this.RightArrow.className=this.RightArrowClassDisabled;}}else{
if(this.RightArrow.className!=this.RightArrowClass){
this.RightArrow.className=this.RightArrowClass;}}};
DnnSkinControlsNamespace.Scroll.StartSmoothScroll=function(_21){
this.Stop();
this.Direction=_21;
var _22=this;
var _23=function(){
_22.ScrollBy(_22.Direction*_22.ScrollAmount);};
_23();
this.scrollInterval=setInterval(_23,10);};
DnnSkinControlsNamespace.Scroll.prototype.ScrollTo=function(_24){
_24=Math.max(_24,this.MinScrollPosition);
_24=Math.min(_24,this.MaxScrollPosition);
_24+=this.Offset;
if(this.IsH){
this.Element.style.top=_24+"px";}else{
this.Element.style.left=_24+"px";}
this.Owner.ScrollPosition=this.ScrollPosition=_24-this.Offset;
this.EvaluateArrowStatus();};
DnnSkinControlsNamespace.Scroll.prototype.ScrollBy=function(_25){
var _26=this.ScrollPosition;
this.ScrollTo(_26+_25);};
DnnSkinControlsNamespace.Scroll.StartPerTabScroll=function(_27){
this.Stop();
var lis=this.Element.getElementsByTagName("li");
var _29=this.CurrentTab-_27;
if(_29<0||_29>lis.length){
return;}
var _2a=_27==-1?this.CurrentTab:_29;
this.CurrentTab=_29;
if(this.IsH){
var _2b=lis[_2a].offsetHeight;}else{
var _2b=lis[_2a].offsetWidth;}
this.ScrollBy(_2b*_27);
this.EvaluateArrowStatus();};
DnnSkinControlsNamespace.Scroll.prototype.ScrollNeeded=function(){
return true;
if(this.IsH){
return this.Element.offsetHeight>this.Element.parentNode.offsetHeight;}
return this.Element.offsetWidth>this.Element.parentNode.offsetWidth;};
DnnSkinControlsNamespace.Scroll.StopSmoothScroll=function(_2c){
if(this.OnScrollStop){
this.OnScrollStop();}
clearInterval(this.scrollInterval);};
DnnSkinControlsNamespace.Scroll.StopPerTabScroll=function(_2d){
if(this.OnScrollStop){
this.OnScrollStop();}};;if(typeof window.DnnSkinControlsNamespace=="undefined"){
window.DnnSkinControlsNamespace={};}
DnnSkinControlsNamespace.Ticker=function(_1){
this.Listener=_1;
this.IntervalPointer=null;};
DnnSkinControlsNamespace.Ticker.prototype={Configure:function(_2){
this.Duration=_2.Duration;
this.Interval=16;},Start:function(){
clearInterval(this.IntervalPointer);
this.TimeElapsed=0;
var _3=this;
var _4=function(){
_3.Tick();};
this.Tick();
this.IntervalPointer=setInterval(_4,this.Interval);},Tick:function(){
this.TimeElapsed+=this.Interval;
this.Listener.OnTick(this.TimeElapsed);
if(this.TimeElapsed>=this.Duration){
this.Stop();}},Stop:function(){
if(this.IntervalPointer){
this.Listener.OnTickEnd();
clearInterval(this.IntervalPointer);
this.IntervalPointer=null;}}};;
function ieHoverFix(menuId,adminMode){
var oMenu=document.getElementById(menuId);
var ieULs=oMenu.getElementsByTagName('ul');
for(j=0;j<ieULs.length;j++){
ieULs[j].innerHTML=('<iframe src="javascript:false;" scrolling="no" frameborder="0"></iframe>'+ ieULs[j].innerHTML);
var oShim=ieULs[j].firstChild;
oShim.style.width=ieULs[j].offsetWidth+"px";
oShim.style.height=ieULs[j].offsetHeight+"px";}
var ieLIs=oMenu.getElementsByTagName('li');
for(var i=0;i<ieLIs.length;i++)if(ieLIs[i]){
ieLIs[i].onmouseover=function(){this.className+=" sfhover";}
ieLIs[i].onmouseout=function(){this.className=this.className.replace(new RegExp("( ?|^)sfhover\\b"),'');}}}
function placeObject(obj,adminMode){
var x=findPosX(obj.parentElement);
var y=findPosY(obj.parentElement);
var w=obj.parentElement.offsetWidth;
if(adminMode=="True"){obj.parentElement.removeChild(obj);}
obj.style.left=x;
obj.style.top=y;
obj.style.width=w;
if(adminMode=="True"){document.body.appendChild(obj);}}
function findPosX(obj){
var curleft=0;
if(obj.offsetParent){
while(obj.offsetParent){
curleft +=obj.offsetLeft;
obj=obj.offsetParent;}}else if(obj.x){
curleft +=obj.x}
return curleft;}
function findPosY(obj){
var curtop=0;
if(obj.offsetParent){
while(obj.offsetParent){
curtop +=obj.offsetTop;
obj=obj.offsetParent;}}else if(obj.y){
curtop +=obj.y;}
return curtop;}