if(typeof window.RadControlsNamespace=="undefined"){ window.RadControlsNamespace={}; } if(typeof (window.RadControlsNamespace.Box)=="undefined"||typeof (window.RadControlsNamespace.Box.Version)==null||window.RadControlsNamespace.Box.Version<1){ window.RadControlsNamespace.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.RadControlsNamespace=="undefined"){ window.RadControlsNamespace={}; } if(typeof (window.RadControlsNamespace.Browser)=="undefined"||typeof (window.RadControlsNamespace.Browser.Version)==null||window.RadControlsNamespace.Browser.Version<1){ window.RadControlsNamespace.Browser={Version:1}; window.RadControlsNamespace.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); }; RadControlsNamespace.Browser.ParseBrowserInfo(); };if(typeof window.RadControlsNamespace=="undefined"){ window.RadControlsNamespace={}; } if(typeof (window.RadControlsNamespace.DomEventMixin)=="undefined"||typeof (window.RadControlsNamespace.DomEventMixin.Version)==null||window.RadControlsNamespace.DomEventMixin.Version<2){ RadControlsNamespace.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;i0){ 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=" "){ 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.RadControlsNamespace=="undefined"){ window.RadControlsNamespace={}; } if(typeof (window.RadControlsNamespace.MsAjaxMixin)=="undefined"||typeof (window.RadControlsNamespace.MsAjaxMixin.Version)==null||window.RadControlsNamespace.MsAjaxMixin.Version<1){ RadControlsNamespace.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.RadControlsNamespace=="undefined"){ window.RadControlsNamespace={}; } if(typeof (window.RadControlsNamespace.Overlay)=="undefined"||typeof (window.RadControlsNamespace.Overlay.Version)==null||window.RadControlsNamespace.Overlay.Version<1.1){ window.RadControlsNamespace.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.RadControlsNamespace.Overlay.Version=1.1; RadControlsNamespace.Overlay.prototype.SupportsOverlay=function(){ return RadControlsNamespace.Browser.IsIE; }; RadControlsNamespace.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"; }; RadControlsNamespace.Overlay.prototype.ToUnit=function(_2){ if(!_2){ return "0px"; } return parseInt(_2)+"px"; }; RadControlsNamespace.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.RadMenuNamespace=="undefined"){ window.RadMenuNamespace={}; } if(typeof window.RadControlsNamespace=="undefined"){ window.RadControlsNamespace={}; } RadControlsNamespace.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); } }; RadMenuNamespace.ItemFlow={Vertical:0,Horizontal:1}; RadMenuNamespace.ExpandDirection={Auto:0,Up:1,Down:2,Left:3,Right:4}; RadMenuNamespace.ExpandDirectionPropertyName={"1":"bottom","2":"top","3":"right","4":"left"}; function RadMenu(_6){ this.DomElement=_6; this.ChildItemList=RadMenu.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=RadMenuNamespace.ItemFlow.Horizontal; this.ClickToOpen=false; this.Enabled=true; this.EnableAutoScroll=false; this.Clicked=false; this.OriginalZIndex=this.DomElement.style.zIndex; this.Attributes={}; RadControlsNamespace.EventMixin.Initialize(this); RadControlsNamespace.DomEventMixin.Initialize(this); } RadMenu.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); }; RadMenu.JSONIncludeDeep={"Attributes":true}; RadMenu.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]; } } }; RadMenu.GetFirstChildByTagName=function(_d,_e){ var _f=_d.getElementsByTagName(_e)[0]; if(_f&&_f.parentNode==_d){ return _f; } return null; }; RadMenu.prototype.RenderInProgress=function(){ return this.DomElement.offsetWidth==0; }; RadMenu.prototype.Detach=function(e){ if(!(RadControlsNamespace.Browser.IsIE)||document.readyState=="complete"){ document.forms[0].insertBefore(this.DomElement,document.forms[0].firstChild); this.DomElement.style.position="absolute"; this.Detached=true; } }; RadMenu.prototype.Show=function(e){ if(!this.IsContext){ return; } if(!this.RaiseEvent("OnClientContextShowing")){ return RadControlsNamespace.DomEvent.PreventDefault(e); } for(var i in RadMenuNamespace.ContextMenus){ RadMenuNamespace.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); }; RadMenu.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; }; RadMenu.prototype.Position=function(x,y){ var _19=RadControlsNamespace.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"; }; RadMenu.prototype.MouseEventX=function(e){ if(e.pageX){ return e.pageX; }else{ if(e.clientX){ if(RadControlsNamespace.Browser.StandardsMode){ return (e.clientX+document.documentElement.scrollLeft); } return (e.clientX+document.body.scrollLeft); } } }; RadMenu.prototype.MouseEventY=function(e){ if(e.pageY){ return e.pageY; }else{ if(e.clientY){ if(RadControlsNamespace.Browser.StandardsMode){ return (e.clientY+document.documentElement.scrollTop); } return (e.clientY+document.body.scrollTop); } } }; RadMenu.prototype.EventSource=function(e){ return RadControlsNamespace.DomEvent.GetTarget(e); }; RadMenu.prototype.Hide=function(){ if(this.ShownAsContext){ this.Ease.Out(); this.ShownAsContext=false; this.RaiseEvent("OnClientContextHidden",null); } }; RadMenu.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==RadMenuNamespace.ItemFlow.Vertical){ this.FixRootItemWidth(); } this.AttachEventHandlers(); this.Initialized=true; RadMenu.CreateState(this); this.RaiseEvent("OnClientLoad",null); }; RadMenu.prototype.AttachEventHandlers=function(){ var _1f=this; this.DomElement.RadShow=function(){ if(_1f.Flow==RadMenuNamespace.ItemFlow.Vertical){ _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"); }; RadMenu.prototype.RefreshPosition=function(e){ this.DomElement.style.cssText=this.DomElement.style.cssText; }; RadMenu.prototype.MouseOutHandler=function(e){ var _22=RadControlsNamespace.DomEvent.GetRelatedTarget(e); if(!_22){ var _23=this; setTimeout(function(){ _23.Close(); },this.CollapseDelay); } }; RadMenu.prototype.CloseOpenedItems=function(e){ var _25=this.EventSource(e); if(!this.IsChildOf(this.DomElement,_25)){ this.Close(); } }; RadMenu.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; }; RadMenu.prototype.ApplyRTL=function(){ if(!this.RightToLeft){ return; } if(this.RenderInProgress()){ this.AttachDomEvent(window,"load","ApplyRTL"); return; } this.FixItemWidthInRTL(); if(RadControlsNamespace.Browser.IsIE){ this.DomElement.dir="ltr"; } if(!this.IsContext){ this.DomElement.className+=" rtl RadMenu_"+this.Skin+"_rtl"; }else{ this.DomElement.className+=" rtlcontext RadMenu_"+this.Skin+"_rtl"; } }; RadMenu.prototype.InitContextMenu=function(){ this.Ease=new RadControlsNamespace.Ease(this.ChildItemList,this,0,0,null,true); if(this.Ease.Overlay.Shim){ this.Ease.Overlay.Shim.id=this.DomElement.id+"IframeOverlay"; } this.Flow=RadMenuNamespace.ItemFlow.Vertical; this.Ease.SetSide("top"); if(RadControlsNamespace.Browser.IsOpera){ this.AttachDomEvent(document,"mousedown","OnContextMenu"); }else{ this.AttachDomEvent(document,"contextmenu","OnContextMenu"); } this.AttachDomEvent(document,"click","OnDocumentClick"); if(!RadMenuNamespace.ContextMenus){ RadMenuNamespace.ContextMenus={}; } if(!RadMenuNamespace.ContextElements){ RadMenuNamespace.ContextElements={}; } if(this.ContextMenuElementID){ RadMenuNamespace.ContextElements[this.ContextMenuElementID]=true; } RadMenuNamespace.ContextMenus[this.ID]=this; }; RadMenu.prototype.OnContextMenu=function(e){ if(RadControlsNamespace.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); RadControlsNamespace.DomEvent.PreventDefault(e); RadControlsNamespace.DomEvent.StopPropagation(e); } }else{ if(!RadMenuNamespace.ContextElements[_28.id]){ this.Show(e); RadControlsNamespace.DomEvent.PreventDefault(e); RadControlsNamespace.DomEvent.StopPropagation(e); } } }; RadMenu.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; }; RadMenu.prototype.OnDocumentClick=function(e){ var _2c=this.EventSource(e); if(this.IsChildOf(this.DomElement,_2c)){ if(!this.IsChildOfMenuItem(_2c)){ return; } } this.Hide(); }; RadMenu.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; }; RadMenu.prototype.Enable=function(){ this.Enabled=true; this.DomElement.disabled=""; for(var i=0;i_46){ _46=_4d; _48=li; } if(this.RightToLeft){ var _4c=_4b.getElementsByTagName("img")[0]; if(_4c){ _4c.style.styleFloat="right"; } } } for(var i=0;i1){ var _74=this.Items[this.Items.length-2].DomElement; _74.className=_74.className.replace(" last",""); } };;function RadMenuItem(_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=RadMenuItemState.Closed; this.Focused=false; this.Clicked=false; this.Enabled=true; this.Initialized=false; } RadMenuItem.prototype.SetDomElement=function(_2){ this.DomElement=_2; this.LinkElement=RadMenu.GetFirstChildByTagName(this.DomElement,"a"); if(this.LinkElement==null){ this.ID=this.DomElement.id; this.TextElement=RadMenu.GetFirstChildByTagName(this.DomElement,"span"); this.NavigateUrl=""; }else{ this.ID=this.LinkElement.id; this.TextElement=RadMenu.GetFirstChildByTagName(this.LinkElement,"span"); this.NavigateUrl=this.LinkElement.href; } }; RadMenuItem.prototype.PostInitializeItems=function(){ for(var i=0;i"+_b.substr(_c,1)+""+_b.substr(_c+1,_b.length); }; RadMenuItem.prototype.CreateScroll=function(){ this.ScrollWrap.style.zIndex=this.GlobalIndex+10; this.BuildScrollObject(false); }; RadMenuItem.prototype.BuildScrollObject=function(_d){ var _e=RadMenuNamespace.ItemFlow.Vertical==this.GroupSettings.Flow; var _f={PerTabScrolling:false,ScrollButtonsPosition:1,ScrollPosition:0}; this.Scroll=new RadControlsNamespace.Scroll(this.ChildItemList,_e,_f); this.Scroll.ScrollOnHover=true; this.Scroll.LeaveGapsForArrows=false; this.Scroll.WrapNeeded=_d; if(this.GroupSettings.Flow==RadMenuNamespace.ItemFlow.Vertical){ this.Scroll.LeftArrowClass="topArrow"; this.Scroll.LeftArrowClassDisabled="topArrowDisabled"; this.Scroll.RightArrowClass="bottomArrow"; this.Scroll.RightArrowClassDisabled="bottomArrowDisabled"; } }; RadMenuItem.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); }; RadMenuItem.prototype.Dispose=function(){ if(!this.Initialized){ return; } this.DisposeDomEventHandlers(); if(this.Ease){ this.Ease.Dispose(); } this.DomElement=null; this.LinkElement=null; this.AnimationContainer=null; }; RadMenuItem.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!=RadMenuItemState.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"); }; RadMenuItem.prototype.Hide=function(){ if(this.LinkElement){ this.LinkElement.style.display="none"; }else{ this.TextElement.style.display="none"; } if(this.Parent.Flow==RadMenuNamespace.ItemFlow.Vertical){ 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(RadControlsNamespace.Browser.IsSafari){ this.Parent.ChildItemList.style.width="auto"; } this.Menu.WidthFixed=false; if(this.Parent.DomElement.offsetWidth>0){ this.Menu.FixItemWidth(this.Parent); } } }; RadMenuItem.prototype.IsVisible=function(){ if(!this.LinkElement){ return this.TextElement.style.display!="none"; } return this.LinkElement.style.display!="none"; }; RadMenuItem.prototype.Show=function(){ if(this.LinkElement){ this.LinkElement.style.display=""; }else{ this.TextElement.style.display=""; } if(this.Parent.Flow==RadMenuNamespace.ItemFlow.Vertical){ this.Menu.WidthFixed=false; if(this.Parent.DomElement.offsetWidth>0){ this.Menu.FixItemWidth(this.Parent); } } }; RadMenuItem.prototype.Blur=function(){ if(this.IsSeparator){ return; } if(this.Focused){ this.LinkElement.blur(); } this.Parent.FocusedItem=null; this.UpdateCssClass(); this.RaiseEvent("OnClientItemBlur"); }; RadMenuItem.prototype.Open=function(){ this.PostInitializeItems(); this.Menu.AboutToCollapse=false; if(this.Parent!=this.Menu&&this.Parent.State!=RadMenuItemState.Open){ this.Parent.Open(); } this.Parent.OpenedItem=this; clearTimeout(this.TimeoutPointer); if(!this.AnimationContainer){ return; } this.State=RadMenuItemState.Open; var _13=RadControlsNamespace.Screen.GetViewPortSize(); this.ChildItemList.style.display="block"; this.Ease.ShowElements(); if(this.GroupSettings.Flow==RadMenuNamespace.ItemFlow.Vertical){ 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(!RadControlsNamespace.Browser.IsNetscape){ this.Menu.DomElement.style.zIndex=this.Menu.OriginalZIndex+1000; } this.CancelMenuClose(); this.RaiseEvent("OnClientItemOpen"); }; RadMenuItem.prototype.GetEaseSide=function(){ var _14=this.GroupSettings.ExpandDirection; return RadMenuNamespace.ExpandDirectionPropertyName[_14]; }; RadMenuItem.prototype.RaiseEvent=function(_15){ return this.Menu.RaiseEvent(_15,{Item:this}); }; RadMenuItem.prototype.UpdateCssClass=function(){ if(this.IsSeparator||this.Templated){ return; } var _16="link "+this.CssClass; if(this.Focused){ _16=_16+" "+this.FocusedCssClass; } if(this.State==RadMenuItemState.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(); }; RadMenuItem.prototype.UpdateImageUrl=function(){ if(!this.ImageElement){ return; } var _17=this.ImageUrl; if(this.Hovered&&this.ImageOverUrl){ _17=this.ImageOverUrl; } if(this.State==RadMenuItemState.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(/&/ig,"&"); if(_17!=this.ImageElement.src){ this.ImageElement.src=_17; } }; RadMenuItem.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(); }; RadMenuItem.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(); }; RadMenuItem.prototype.Close=function(){ if(this.IsSeparator){ return; } if(this.State==RadMenuItemState.Closed){ return; } if(this.OpenedItem){ this.OpenedItem.Close(); } this.Parent.OpenedItem=null; clearTimeout(this.TimeoutPointer); if(!this.AnimationContainer){ return; } this.State=RadMenuItemState.Closed; if(this.Level==1){ this.Menu.AboutToCollapse=true; } this.Ease.Out(); this.UpdateCssClass(); this.DomElement.style.zIndex=this.OriginalZIndex; if(!RadControlsNamespace.Browser.IsNetscape){ if(this.Level==1){ this.Menu.DomElement.style.zIndex=this.Menu.OriginalZIndex; } } this.HideChildren(); }; RadMenuItem.prototype.OnCollapseComplete=function(){ this.RaiseEvent("OnClientItemClose"); }; RadMenuItem.prototype.HideChildren=function(){ for(var i=0;i1){ _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){ RadControlsNamespace.DomEvent.PreventDefault(e); } }; RadMenuItem.prototype.MouseOverHandler=function(e){ var _29=RadControlsNamespace.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==RadMenuItemState.Open||this.State==RadMenuItemState.AboutToOpen){ return; } this.Menu.LastOpenedItem=this; if(this.State==RadMenuItemState.AboutToClose){ clearTimeout(this.TimeoutPointer); this.State=RadMenuItemState.Open; return; } if(this.Parent.OpenedItem){ this.Parent.OpenedItem.Close(); } this.Parent.OpenedItem=this; this.State=RadMenuItemState.AboutToOpen; var _2a=this; var _2b=function(){ _2a.Open(); }; this.TimeoutPointer=setTimeout(_2b,this.Menu.ExpandDelay); }; RadMenuItem.prototype.MouseOutHandler=function(e){ var to=RadControlsNamespace.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==RadMenuItemState.Closed||this.State==RadMenuItemState.AboutToClose){ return; } if(this.State==RadMenuItemState.AboutToOpen){ clearTimeout(this.TimeoutPointer); this.State=RadMenuItemState.Closed; this.Parent.OpenedItem=null; return; } if(this.Menu.ClickToOpen){ return; } this.State=RadMenuItemState.AboutToClose; var _2f=this; var _30=function(){ _2f.Close(); }; this.TimeoutPointer=setTimeout(_30,this.Menu.CollapseDelay); }; RadMenuItem.prototype.PositionChildContainer=function(_31){ var top=0; var _33=0; var _34=this.GroupSettings.ExpandDirection; var _35=RadMenuNamespace.ExpandDirectionPropertyName[_34]; var _36=this.DomElement; var _37=RadControlsNamespace.Box.GetOuterHeight(_36); var _38=RadControlsNamespace.Box.GetOuterWidth(_36); var _39=this.AnimationContainer; var _3a=RadControlsNamespace.Box.GetOuterHeight(_39); var _3b=RadControlsNamespace.Box.GetOuterWidth(_39); if(_34==RadMenuNamespace.ExpandDirection.Down){ top=_37; }else{ if(_34==RadMenuNamespace.ExpandDirection.Right){ _33=_38; } } this.SetContainerPosition(_33,top); var _3c=RadControlsNamespace.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(RadControlsNamespace.Screen.ElementOverflowsRight(_31,_39)&&_34==RadMenuNamespace.ExpandDirection.Right){ _34=RadMenuNamespace.ExpandDirection.Left; _35="right"; _33=0; }else{ if(_3c.x-_3b<0&&_34==RadMenuNamespace.ExpandDirection.Left){ _34=RadMenuNamespace.ExpandDirection.Right; _35="left"; _33=_38; }else{ if(_3c.y-_3a<0&&_34==RadMenuNamespace.ExpandDirection.Up){ _34=RadMenuNamespace.ExpandDirection.Down; _35="top"; top=_37; }else{ if(RadControlsNamespace.Screen.ElementOverflowsBottom(_31,_39)&&_34==RadMenuNamespace.ExpandDirection.Down){ var _39=RadControlsNamespace.Screen.GetElementPosition(this.DomElement); if(_39.y>this.AnimationContainer.offsetHeight){ _34=RadMenuNamespace.ExpandDirection.Up; _35="bottom"; top=_37; } } } } } if(RadControlsNamespace.Screen.ElementOverflowsRight(_31,_39)&&(_34==RadMenuNamespace.ExpandDirection.Down||_34==RadMenuNamespace.ExpandDirection.Up)){ if(!this.Menu.RightToLeft){ _33=_31.width-(_3c.x+_3b); } }else{ if(RadControlsNamespace.Screen.ElementOverflowsBottom(_31,_39)){ if(_34==RadMenuNamespace.ExpandDirection.Left||_34==RadMenuNamespace.ExpandDirection.Right){ top=_31.height-(_3c.y+_3a); } } } this.SetContainerPosition(_33,top); this.Ease.SetSide(_35); this.TextElement.className="text expand"+this.Ease.GetSide(); }; RadMenuItem.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"; }; RadMenuItem.prototype.SetAttribute=function(_40,_41){ this.PostInitialize(); this.Attributes[_40]=_41; this.RecordState(); }; RadMenuItem.prototype.SetImageUrl=function(src){ this.PostInitialize(); this.ImageUrl=src; this.ImageElement.src=src; this.RecordState(); }; RadMenuItem.prototype.SetImageOverUrl=function(src){ this.PostInitialize(); this.ImageOverUrl=src; this.RecordState(); }; RadMenuItem.prototype.GetAttribute=function(_44){ return this.Attributes[_44]; }; RadMenuItem.prototype.DetermineExpandDirection=function(){ if(this.GroupSettings.ExpandDirection!=RadMenuNamespace.ExpandDirection.Auto){ return; } if(this.Parent.Flow==RadMenuNamespace.ItemFlow.Vertical){ if(this.Menu.RightToLeft){ this.GroupSettings.ExpandDirection=RadMenuNamespace.ExpandDirection.Left; }else{ this.GroupSettings.ExpandDirection=RadMenuNamespace.ExpandDirection.Right; } }else{ this.GroupSettings.ExpandDirection=RadMenuNamespace.ExpandDirection.Down; } }; RadMenuItem.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(); } }; RadMenuItem.prototype.HandleRightArrow=function(){ if(this.Parent.Flow==RadMenuNamespace.ItemFlow.Horizontal){ this.FocusNextItem(); }else{ if(this.Items.length&&this.GroupSettings.ExpandDirection==RadMenuNamespace.ExpandDirection.Right){ this.FocusFirstChild(); }else{ if(this.Parent.GroupSettings&&this.Parent.GroupSettings.ExpandDirection==RadMenuNamespace.ExpandDirection.Left){ this.Parent.Focus(); }else{ if(this.Menu.OpenedItem){ this.Menu.OpenedItem.GetNextItem().Focus(); } } } } }; RadMenuItem.prototype.HandleLeftArrow=function(){ if(this.Parent.Flow==RadMenuNamespace.ItemFlow.Horizontal){ this.FocusPreviousItem(); }else{ if(this.Items.length&&this.GroupSettings.ExpandDirection==RadMenuNamespace.ExpandDirection.Left){ this.FocusFirstChild(); }else{ if(this.Parent.GroupSettings&&this.Parent.GroupSettings.ExpandDirection==RadMenuNamespace.ExpandDirection.Right){ this.Parent.Focus(); }else{ if(this.Menu.OpenedItem){ this.Menu.OpenedItem.GetPreviousItem().Focus(); } } } } }; RadMenuItem.prototype.HandleUpArrow=function(){ if(this.Parent.Flow==RadMenuNamespace.ItemFlow.Vertical){ this.FocusPreviousItem(); }else{ this.FocusLastChild(); } }; RadMenuItem.prototype.HandleDownArrow=function(){ if(this.Parent.Flow==RadMenuNamespace.ItemFlow.Vertical){ this.FocusNextItem(); }else{ this.FocusFirstChild(); } }; RadMenuItem.prototype.GetNextItem=function(){ if(this.Index==this.Parent.Items.length-1){ return this.Parent.Items[0]; } return this.Parent.Items[this.Index+1]; }; RadMenuItem.prototype.GetPreviousItem=function(){ if(this.Index==0){ return this.Parent.Items[this.Parent.Items.length-1]; } return this.Parent.Items[this.Index-1]; }; RadMenuItem.prototype.CanFocus=function(){ return (!this.IsSeparator)&&this.Enabled; }; RadMenuItem.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(); }; RadMenuItem.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(); }; RadMenuItem.prototype.FocusNextItem=function(){ var _49=this.GetNextItem(); while(!_49.CanFocus()){ _49=_49.GetNextItem(); } _49.Focus(); }; RadMenuItem.prototype.FocusPreviousItem=function(){ var _4a=this.GetPreviousItem(); while(!_4a.CanFocus()){ _4a=_4a.GetPreviousItem(); } _4a.Focus(); }; RadMenuItem.prototype.RecordState=function(_4b){ if(this.ClientSide&&!_4b){ return; } var _4c=RadControlsNamespace.JSON.stringify(this,this.InitialState,RadMenu.JSONIncludeDeep); if(_4c=="{}"){ this.Menu.ItemState[this.ID]=""; }else{ this.Menu.ItemState[this.ID]="\""+this.ID+"\":"+_4c; } this.Menu.RecordState(); }; RadMenuItem.prototype.AddItem=function(){ this.Menu.AddItem.apply(this,arguments); this.Menu.FixItemWidth(this); };;function RadMenuItemState(){ } RadMenuItemState={Closed:0,Open:1,AboutToClose:2,AboutToOpen:3};;if(typeof window.RadControlsNamespace=="undefined"){ window.RadControlsNamespace={}; } if(typeof (window.RadControlsNamespace.Screen)=="undefined"||typeof (window.RadControlsNamespace.Screen.Version)==null||window.RadControlsNamespace.Screen.Version<1.1){ window.RadControlsNamespace.Screen={Version:1.1,GetViewPortSize:function(){ var _1=0; var _2=0; var _3=document.body; if(RadControlsNamespace.Browser.StandardsMode&&!RadControlsNamespace.Browser.IsSafari){ _3=document.documentElement; } if(RadControlsNamespace.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+RadControlsNamespace.Box.GetOuterHeight(_d); return _e>_c.height; },ElementOverflowsRight:function(_f,_10){ var _11=this.GetElementPosition(_10).x+RadControlsNamespace.Box.GetOuterWidth(_10); return _11>_f.width; }}; };if(typeof window.RadControlsNamespace=="undefined"){ window.RadControlsNamespace={}; } RadControlsNamespace.ScrollButtonsPosition={Left:0,Middle:1,Right:2}; RadControlsNamespace.Scroll=function(_1,_2,_3){ this.Owner=_3; this.Element=_1; this.IsVertical=_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; }; RadControlsNamespace.Scroll.Create=function(_4,_5,_6){ return new RadControlsNamespace.Scroll(_4,_5,_6); }; RadControlsNamespace.Scroll.prototype.Initialize=function(){ if(this.Initialized){ this.ApplyOverflow(); this.CalculateMinMaxPosition(); this.EvaluateArrowStatus(); return false; } if((this.Element.offsetWidth==0&&!this.IsVertical)||(this.Element.offsetHeight==0&&this.IsVertical)){ 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; }; RadControlsNamespace.Scroll.prototype.ApplyOverflow=function(){ if(RadControlsNamespace.Browser.IsIE){ this.Element.parentNode.style.overflow="visible"; if(this.IsVertical){ 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"; } }; RadControlsNamespace.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.offsetWidth0){ var i=0; while(this.ScrollPosition<-(this.IsVertical?lis[i].offsetTop:lis[i].offsetLeft)){ i++; } this.CurrentTab=i; } }; RadControlsNamespace.Scroll.prototype.AttachScrollMethods=function(){ if(this.PerTabScrolling){ this.Scroll=RadControlsNamespace.Scroll.StartPerTabScroll; this.Stop=RadControlsNamespace.Scroll.StopPerTabScroll; }else{ this.Scroll=RadControlsNamespace.Scroll.StartSmoothScroll; this.Stop=RadControlsNamespace.Scroll.StopSmoothScroll; } }; RadControlsNamespace.Scroll.prototype.EvaluateArrowStatus=function(){ var _1f=!(this.ScrollPosition>this.MinScrollPosition); var _20=!(this.ScrollPositionlis.length){ return; } var _2a=_27==-1?this.CurrentTab:_29; this.CurrentTab=_29; if(this.IsVertical){ var _2b=lis[_2a].offsetHeight; }else{ var _2b=lis[_2a].offsetWidth; } this.ScrollBy(_2b*_27); this.EvaluateArrowStatus(); }; RadControlsNamespace.Scroll.prototype.ScrollNeeded=function(){ return true; if(this.IsVertical){ return this.Element.offsetHeight>this.Element.parentNode.offsetHeight; } return this.Element.offsetWidth>this.Element.parentNode.offsetWidth; }; RadControlsNamespace.Scroll.StopSmoothScroll=function(_2c){ if(this.OnScrollStop){ this.OnScrollStop(); } clearInterval(this.scrollInterval); }; RadControlsNamespace.Scroll.StopPerTabScroll=function(_2d){ if(this.OnScrollStop){ this.OnScrollStop(); } };;if(typeof window.RadControlsNamespace=="undefined"){ window.RadControlsNamespace={}; } RadControlsNamespace.Ticker=function(_1){ this.Listener=_1; this.IntervalPointer=null; }; RadControlsNamespace.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; } }};;