if (typeof window.RadControlsNamespace=="\x75\x6edefined"){window.RadControlsNamespace= {} ; }if (typeof(window.RadControlsNamespace.Box)=="undefine\x64" || typeof(window.RadControlsNamespace.Box.Version)==null || window.RadControlsNamespace.Box.Version<1){window.RadControlsNamespace.Box= {Version: 1,GetOuterWidth:function (O){return O.offsetWidth; } ,GetOuterHeight:function (O){return O.offsetHeight; } ,SetOuterHeight:function (O,height){if (height<=0 || height==""){O.style.height=""; }else {O.style.height=height+"p\x78"; var o=O.offsetHeight-height; var Y=height-o; if (Y>0){O.style.height=Y+"p\x78"; }else {O.style.height=""; }}} ,SetOuterWidth:function (O,width){if (width<=0 || width==""){O.style.width=""; }else {O.style.width=width+"px"; var o=O.offsetWidth-width; var I=width-o; if (I>0){O.style.width=I+"px"; }else {O.style.width=""; }}} ,GetPropertyValue:function (O,A){var computedStyle=this.GetStyle(O); return this.GetStyleValues(computedStyle,A); } ,GetStyle:function (O){if (document.defaultView && document.defaultView.getComputedStyle){return document.defaultView.getComputedStyle(O,null); }else if (O.currentStyle){return O.currentStyle; }else {return O.style; }}};};if (typeof window.RadControlsNamespace=="\x75\x6edefined"){window.RadControlsNamespace= {} ; }if (typeof(window.RadControlsNamespace.Browser)=="undef\x69\x6eed" || 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=="Microsof\x74\x20Int\x65\x72net \x45xplorer") && ((navigator.userAgent.toLowerCase().indexOf("\x6dac")!=-1) || (navigator.appVersion.toLowerCase().indexOf("mac")!=-1)); this.IsSafari=(navigator.userAgent.toLowerCase().indexOf("\163\x61\146ari")!=-1); this.IsMozilla=window.netscape && !window.opera; this.IsNetscape=/\x4e\x65\x74\x73\x63\x61\x70\x65/.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=/\x4d\x53\x49\x45\x20\x37/.test(navigator.appVersion); this.StandardsMode=this.IsSafari || this.IsOpera9 || this.IsMozilla || document.compatMode=="CSS1Co\x6d\x70at"; this.IsMac=/\x4d\x61\x63/.test(navigator.userAgent); };RadControlsNamespace.Browser.ParseBrowserInfo(); };if (typeof window.RadControlsNamespace=="undefin\x65\x64"){window.RadControlsNamespace= {} ; }if (typeof(window.RadControlsNamespace.DomEventMixin)=="undefi\x6e\x65d" || typeof(window.RadControlsNamespace.DomEventMixin.Version)==null || window.RadControlsNamespace.DomEventMixin.Version<2){RadControlsNamespace.DomEventMixin= {Version: 2,Initialize:function (U){U.CreateEventHandler=this.CreateEventHandler; U.AttachDomEvent=this.AttachDomEvent; U.DetachDomEvent=this.DetachDomEvent; U.DisposeDomEventHandlers=this.DisposeDomEventHandlers; U._domEventHandlingEnabled= true; U.EnableDomEventHandling=this.EnableDomEventHandling; U.DisableDomEventHandling=this.DisableDomEventHandling; U.Z=this.Z; U.z=this.z; U.X=this.X; U.W=[]; } ,EnableDomEventHandling:function (){ this._domEventHandlingEnabled= true; } ,DisableDomEventHandling:function (){ this._domEventHandlingEnabled= false; } ,CreateEventHandler:function (w,V){var v=this ; return function (e){if (!v._domEventHandlingEnabled && !V){return false; }return v[w](e || window.event); };} ,AttachDomEvent:function (O,T,t,V){var eventHandler=this.CreateEventHandler(t,V); var S=this.z(O,T,t); if (S!=null){ this.DetachDomEvent(S.Element,S.EventName,t); }var R= { "Ele\x6dent":O,"EventName":T,"\x48andlerName":t,"H\x61\x6edler":eventHandler } ; this.X(R); if (O.addEventListener){O.addEventListener(T,eventHandler, false); }else if (O.attachEvent){O.attachEvent("\x6fn"+T,eventHandler); }} ,DetachDomEvent:function (O,T,eventHandler){var R=null; var t=""; if (typeof eventHandler=="string"){t=eventHandler; R=this.z(O,T,t); if (R==null)return; eventHandler=R.Handler; }if (!O){return; }if (O.removeEventListener){O.removeEventListener(T,eventHandler, false); }else if (O.detachEvent){O.detachEvent("on"+T,eventHandler); }if (R!=null && t!=""){ this.Z(R); R=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 (g,b,F,f){return F*g/f+b; } ; Penner.InQuad= function (g,b,F,f){return F*(g /= f)*g+b; } ; Penner.OutQuad= function (g,b,F,f){return -F*(g /= f)*(g-2)+b; } ; Penner.InOutQuad= function (g,b,F,f){if ((g /= f/2)<1)return F/2*g*g+b; return -F/2*(( --g)*(g-2)-1)+b; } ; Penner.InCubic= function (g,b,F,f){return F*(g /= f)*g*g+b; } ; Penner.OutCubic= function (g,b,F,f){return F*((g=g/f-1)*g*g+1)+b; } ; Penner.InOutCubic= function (g,b,F,f){if ((g /= f/2)<1)return F/2*g*g*g+b; return F/2*((g-=2)*g*g+2)+b; } ; Penner.InQuart= function (g,b,F,f){return F*(g /= f)*g*g*g+b; } ; Penner.OutQuart= function (g,b,F,f){return -F*((g=g/f-1)*g*g*g-1)+b; } ; Penner.InOutQuart= function (g,b,F,f){if ((g /= f/2)<1)return F/2*g*g*g*g+b; return -F/2*((g-=2)*g*g*g-2)+b; } ; Penner.InQuint= function (g,b,F,f){return F*(g /= f)*g*g*g*g+b; } ; Penner.OutQuint= function (g,b,F,f){return F*((g=g/f-1)*g*g*g*g+1)+b; } ; Penner.InOutQuint= function (g,b,F,f){if ((g /= f/2)<1)return F/2*g*g*g*g*g+b; return F/2*((g-=2)*g*g*g*g+2)+b; } ; Penner.InSine= function (g,b,F,f){return -F*Math.cos(g/f*(Math.PI/2))+F+b; } ; Penner.OutSine= function (g,b,F,f){return F*Math.sin(g/f*(Math.PI/2))+b; } ; Penner.InOutSine= function (g,b,F,f){return -F/2*(Math.cos(Math.PI*g/f)-1)+b; } ; Penner.InExpo= function (g,b,F,f){return (g==0)?b:F*Math.pow(2,10*(g/f-1))+b; } ; Penner.OutExpo= function (g,b,F,f){return (g==f)?b+F:F*(-Math.pow(2,-10*g/f)+1)+b; } ; Penner.InOutExpo= function (g,b,F,f){if (g==0)return b; if (g==f)return b+F; if ((g /= f/2)<1)return F/2*Math.pow(2,10*(g-1))+b; return F/2*(-Math.pow(2,-10* --g)+2)+b; } ; Penner.InCirc= function (g,b,F,f){return -F*(Math.sqrt(1-(g /= f)*g)-1)+b; } ; Penner.OutCirc= function (g,b,F,f){return F*Math.sqrt(1-(g=g/f-1)*g)+b; } ; Penner.InOutCirc= function (g,b,F,f){if ((g /= f/2)<1)return -F/2*(Math.sqrt(1-g*g)-1)+b; return F/2*(Math.sqrt(1-(g-=2)*g)+1)+b; } ; Penner.InElastic= function (g,b,F,f,a,p){if (g==0)return b; if ((g /= f)==1)return b+F; if (!p)p=f*.3; if ((!a) || a="\x20"){if (F=="\x5c" || F=="\042"){e("\x5c"); }e(F); }else {switch (F){case "\010":e("\x5c\x62"); break; case "\x0c":e("\134\x66"); break; case "\012":e("\x5cn"); break; case "\x0d":e("\x5cr"); break; case "\011":e("\134\x74"); break; default:F=F.charCodeAt(); e("\x5cu00"+Math.floor(F/16).toString(16)+(F%16).toString(16)); }}}e("\042"); return ""; case "boolean":e(String(x)); return ""; default:e("\x6e\x75ll"); return ""; }}l1(I0,0); return a.join(""); } ,stringifyHashTable:function (hash,I1,o2){var a=[]; if (!o2)o2=[]; for (var i=0; i0){ this.Shim.style.zIndex=O.style.zIndex-1; } this.Shim.style.position="\x61bso\x6c\x75te"; this.Shim.style.border="\x30px"; this.Shim.frameBorder=0; this.Shim.style.filter="\x70\162ogi\x64\x3aDXI\x6d\x61ge\x54ransfo\x72\x6d.Mi\x63\162o\x73oft\x2eAlpha(\x73tyle=0\x2copaci\x74\171\x3d\060\x29"; this.Shim.disabled="disabled"; };window.RadControlsNamespace.Overlay.Version=.11e1; 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 (value){if (!value)return "0\x70\x78"; return parseInt(value)+"\x70x"; };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=="\x75ndefined"){window.RadMenuNamespace= {} ; }if (typeof window.RadControlsNamespace=="undefi\x6e\x65d"){window.RadControlsNamespace= {} ; }RadControlsNamespace.AppendStyleSheet= function (i2,I2,o3){if (!o3){return; }var O3=window.netscape && !window.opera; if (!i2 && O3){document.write("\x3c"+"link"+"\x20rel=\047styles\x68\x65et\x27\040\x74\x79pe\x3d\x27te\x78\x74\x2fcss\047\x20hr\x65\146=\x27"+o3+"\x27\x20/>"); }else {var l3=document.createElement("\x6cin\x6b"); l3.rel="\x73tyleshee\x74"; l3.type="\x74ext/css"; l3.href=o3; document.getElementsByTagName("head")[0].appendChild(l3); }} ; RadMenuNamespace.ItemFlow= {Vertical: 0,Horizontal: 1 } ; RadMenuNamespace.ExpandDirection= {Auto: 0,Up: 1,Down: 2,Left: 3,Right: 4 } ; RadMenuNamespace.ExpandDirectionPropertyName= { "\x31": "b\x6f\x74tom","\x32": "\x74op","\x33": "right","\x34": "left" } ; function RadMenu(O){ this.DomElement=O; this.ChildItemList=RadMenu.GetFirstChildByTagName(this.DomElement,"u\x6c"); this.StateField=document.getElementById(O.id+"_Hi\x64\x64en"); this.Items=[]; this.AllItems=[]; this.OpenedItem=null; this.LastExpandedItem=null; this.ExpandAnimation= {} ; this.CollapseAnimation= {} ; this.CollapseDelay=500; this.ExpandDelay=0; this.ID=O.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 I2=arguments[0]; var i3=window[I2]; if (i3!=null && i3.Dispose){i3.Dispose(); }var O=document.getElementById(I2); return new this(O); };RadMenu.JSONIncludeDeep= { "Attribute\x73": true } ; RadMenu.CreateState= function (v){v.InitialState= {} ; for (var i in v){var type=typeof v[i]; if (type=="number" || type=="string" || type=="b\x6f\x6flean")v.InitialState[i]=v[i]; }};RadMenu.GetFirstChildByTagName= function (parentNode,tagName){var I3=parentNode.getElementsByTagName(tagName)[0]; if (I3 && I3.parentNode==parentNode){return I3; }return null; };RadMenu.prototype.RenderInProgress= function (){return this.DomElement.offsetWidth==0; };RadMenu.prototype.Detach= function (e){if (!(RadControlsNamespace.Browser.IsIE) || document.readyState=="\x63o\x6d\x70lete"){document.forms[0].insertBefore(this.DomElement,document.forms[0].firstChild); this.DomElement.style.position="\x61bsolu\x74\x65"; this.Detached= true; }};RadMenu.prototype.Show= function (e){if (!this.IsContext){return; }if (!this.RaiseEvent("OnC\x6c\x69entCon\x74\x65xtS\x68\157\x77ing")){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("OnCl\x69\x65ntCo\x6e\x74extS\x68own",null); return false; };RadMenu.prototype.Position= function (x,y){var o4=RadControlsNamespace.Screen.GetViewPortSize(); x=Math.min(x,o4.width-this.DomElement.offsetWidth); y=Math.min(y,o4.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("OnC\x6cien\x74\x43ont\x65\x78tHi\x64den",null); }};RadMenu.prototype.Initialize= function (N,O4){ this.LoadConfiguration(N); this.ItemData=O4; 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("OnClientL\x6f\x61d",null); } ; RadMenu.prototype.AttachEventHandlers= function (){var v=this ; this.DomElement.RadShow= function (){if (v.Flow==RadMenuNamespace.ItemFlow.Vertical){v.FixRootItemWidth(); }};this.AttachDomEvent(window,"\x75nload","Di\x73\x70ose"); };RadMenu.prototype.DetermineDirection= function (){var l4=this.DomElement; while (l4.tagName.toLowerCase()!="html"){if (l4.dir){ this.RightToLeft=(l4.dir.toLowerCase()=="rtl"); return; }l4=l4.parentNode; } this.RightToLeft= false; };RadMenu.prototype.ApplyRTL= function (){if (!this.RightToLeft)return; if (this.RenderInProgress()){ this.AttachDomEvent(window,"load","ApplyRTL"); return; } this.i4(); if (RadControlsNamespace.Browser.IsIE){ this.DomElement.dir="ltr"; }if (!this.IsContext){ this.DomElement.className+="\x20rt\x6c\x20RadMe\x6e\x75_"+this.Skin+"\x5frtl"; }else { this.DomElement.className+=" rtl\x63\x6fntext \x52\x61dMe\x6e\165\x5f"+this.Skin+"_rtl"; }};RadMenu.prototype.InitContextMenu= function (){ this.Ease=new RadControlsNamespace.Ease(this.ChildItemList,this,0,0,null, true); this.Flow=RadMenuNamespace.ItemFlow.Vertical; this.Ease.SetSide("\x74op"); if (RadControlsNamespace.Browser.IsOpera){ this.AttachDomEvent(document,"mou\x73\x65down","On\x43\x6fntextM\x65\x6eu"); }else { this.AttachDomEvent(document,"\x63ontex\x74\x6denu","OnContextMen\x75"); } this.AttachDomEvent(document,"click","OnDocum\x65\x6etCli\x63\x6b"); 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 I4=this.EventSource(e); if (this.ContextElement){if (I4==this.ContextElement || this.IsChildOf(this.ContextElement,I4)){ this.Show(e); RadControlsNamespace.DomEvent.PreventDefault(e); RadControlsNamespace.DomEvent.StopPropagation(e); }}else if (!RadMenuNamespace.ContextElements[I4.id]){ this.Show(e); RadControlsNamespace.DomEvent.PreventDefault(e); RadControlsNamespace.DomEvent.StopPropagation(e); }};RadMenu.prototype.IsChildOf= function (parent,I3){if (I3==parent){return false; }while (I3 && (I3!=document.body)){if (I3==parent){return true; }try {I3=I3.parentNode; }catch (e){return false; }}return false; } ; RadMenu.prototype.OnDocumentClick= function (e){var I4=this.EventSource(e); if (this.IsChildOf(this.DomElement,I4)){if (!this.IsChildOfMenuItem(I4)){return; }} this.Hide(); };RadMenu.prototype.IsChildOfMenuItem= function (O){if (O.tagName=="SPA\x4e" && O.className.indexOf("te\x78\x74")>-1){return true; }if (O.tagName=="A" && O.className.indexOf("link")>-1){return true; }return false; };RadMenu.prototype.Enable= function (){ this.Enabled= true; this.DomElement.disabled=""; for (var i=0; ii5){i5=width; l6=li; }if (this.RightToLeft){var o6=O.getElementsByTagName("\x69\155g")[0]; if (o6){o6.style.styleFloat="right"; }}}for (var i=0; i1){var I8=this.Items[this.Items.length-2].DomElement; I8.className=I8.className.replace("\x20last",""); }};;function RadMenuItem(o5){if (o5){ this.SetDomElement(o5); }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="\x66ocused"; this.ClickedCssClass="\x63licked"; this.ExpandedCssClass="\145\x78\x70anded"; 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 (o5){ this.DomElement=o5; this.LinkElement=RadMenu.GetFirstChildByTagName(this.DomElement,"\x61"); 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,"\x73pan"); this.NavigateUrl=this.LinkElement.href; }};RadMenuItem.prototype.PostInitializeItems= function (){for (var i=0; i"+text.substr(l9,1)+""+text.substr(l9+1,text.length); };RadMenuItem.prototype.CreateScroll= function (){ this.ScrollWrap.style.zIndex=this.GlobalIndex+10; this.BuildScrollObject( false); };RadMenuItem.prototype.BuildScrollObject= function (i9){var I9=RadMenuNamespace.ItemFlow.Vertical==this.GroupSettings.Flow; var options= {PerTabScrolling: false ,ScrollButtonsPosition: 1,ScrollPosition: 0 } ; this.Scroll=new RadControlsNamespace.Scroll(this.ChildItemList,I9,options); this.Scroll.ScrollOnHover= true; this.Scroll.LeaveGapsForArrows= false; this.Scroll.WrapNeeded=i9; if (this.GroupSettings.Flow==RadMenuNamespace.ItemFlow.Vertical){ this.Scroll.LeftArrowClass="topArrow"; this.Scroll.LeftArrowClassDisabled="\x74opA\x72\x72owDis\x61\x62led"; this.Scroll.RightArrowClass="bo\x74\x74omArro\x77"; this.Scroll.RightArrowClassDisabled="\x62ottomArr\x6f\x77Disa\x62\x6ced"; }};RadMenuItem.prototype.CreateRuntimeScroll= function (height){if (this.Scroll){ this.Scroll.SetHeight(height); 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="\x73\x63rollWra\x70"; this.Scroll.SetHeight(height); };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("OnC\x6cientItemF\x6f\143\x75\x73"); };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 oa=this.Parent.Items; for (var i=0; i0){ this.Menu.FixItemWidth(this.Parent); }}};RadMenuItem.prototype.IsVisible= function (){if (!this.LinkElement){return this.TextElement.style.display!="\x6eone"; }return this.LinkElement.style.display!="\x6e\157n\x65"; };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("\117\x6e\x43lient\x49\164e\x6d\x42lu\x72"); };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 Oa=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>Oa.height){if (!this.ScrollWrap || this.ScrollWrap.offsetHeight>Oa.height){ this.CreateRuntimeScroll(Oa.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(Oa); 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("O\x6eClientIt\x65\x6dOpen"); } ; RadMenuItem.prototype.GetEaseSide= function (){var o9=this.GroupSettings.ExpandDirection; return RadMenuNamespace.ExpandDirectionPropertyName[o9]; };RadMenuItem.prototype.RaiseEvent= function (T){return this.Menu.RaiseEvent(T, {Item: this } ); };RadMenuItem.prototype.UpdateCssClass= function (){if (this.IsSeparator || this.Templated){return; }var cssClass="l\x69nk "+this.CssClass; if (this.Focused){cssClass=cssClass+" "+this.FocusedCssClass; }if (this.State==RadMenuItemState.Open){cssClass=cssClass+" "+this.ExpandedCssClass; }if (this.Clicked){cssClass=cssClass+" "+this.ClickedCssClass; }if (!this.Enabled){cssClass=cssClass+" "+this.DisabledCssClass; } this.LinkElement.className=cssClass; this.UpdateImageUrl(); };RadMenuItem.prototype.UpdateImageUrl= function (){if (!this.ImageElement)return; var la=this.ImageUrl; if (this.Hovered && this.ImageOverUrl){la=this.ImageOverUrl; }if (this.State==RadMenuItemState.Open && this.ExpandedImageUrl){la=this.ExpandedImageUrl; }if (!this.Enabled && this.DisabledImageUrl){la=this.DisabledImageUrl; }if (this.Clicked && this.ImageClickedUrl){la=this.ImageClickedUrl; }la=la.replace(/\x26\x61\x6d\x70\x3b/ig,"\x26"); if (la!=this.ImageElement.src){ this.ImageElement.src=la; }};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="\x64isabl\x65\x64"; if (this.ImageElement){ this.ImageElement.disabled="\x64\151\x73\x61bled"; } 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("OnClien\x74ItemCl\x6f\x73e"); };RadMenuItem.prototype.HideChildren= function (){for (var i=0; i1){returnValue= true; }else {if (!this.Menu.Clicked){ this.Open(); }else { this.Close(); } this.Menu.Clicked=!this.Menu.Clicked; } this.RaiseEvent("\x4fnClientItem\x43\x6cicke\x64"); if (!this.NavigateAfterClick || !returnValue){RadControlsNamespace.DomEvent.PreventDefault(e); }};RadMenuItem.prototype.MouseOverHandler= function (e){var Ia=RadControlsNamespace.DomEvent.GetRelatedTarget(e); if (this.Menu.IsChildOf(this.DomElement,Ia) || this.DomElement==Ia){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 v=this ; var oc= function (){v.Open(); };this.TimeoutPointer=setTimeout(oc,this.Menu.ExpandDelay); } ; RadMenuItem.prototype.MouseOutHandler= function (e){var ia=RadControlsNamespace.DomEvent.GetRelatedTarget(e); if ((!ia) || this.Menu.IsChildOf(this.DomElement,ia) || ia==this.DomElement){return; }else {try {var Oc=ia.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 v=this ; var oc= function (){v.Close(); };this.TimeoutPointer=setTimeout(oc,this.Menu.CollapseDelay); } ; RadMenuItem.prototype.PositionChildContainer= function (Oa){var top=0; var left=0; var o9=this.GroupSettings.ExpandDirection; var O9=RadMenuNamespace.ExpandDirectionPropertyName[o9]; var lc=this.DomElement; var ic=RadControlsNamespace.Box.GetOuterHeight(lc); var Ic=RadControlsNamespace.Box.GetOuterWidth(lc); var od=this.AnimationContainer; var Od=RadControlsNamespace.Box.GetOuterHeight(od); var ld=RadControlsNamespace.Box.GetOuterWidth(od); if (o9==RadMenuNamespace.ExpandDirection.Down){top=ic; }else if (o9==RadMenuNamespace.ExpandDirection.Right){left=Ic; } this.SetContainerPosition(left,top); var oe=RadControlsNamespace.Screen.GetElementPosition(od); if (this.Menu.RightToLeft){left=Ic-ld; }if (!this.Menu.EnableScreenBoundaryDetection){ this.Ease.SetSide(O9); this.TextElement.className="te\x78t expa\x6e\x64"+this.Ease.GetSide(); return; }if (RadControlsNamespace.Screen.ElementOverflowsRight(Oa,od) && o9==RadMenuNamespace.ExpandDirection.Right){o9=RadMenuNamespace.ExpandDirection.Left; O9="\x72ight"; left=0; }else if (oe.x-ld<0 && o9==RadMenuNamespace.ExpandDirection.Left){o9=RadMenuNamespace.ExpandDirection.Right; O9="\x6ceft"; left=Ic; }else if (oe.y-Od<0 && o9==RadMenuNamespace.ExpandDirection.Up){o9=RadMenuNamespace.ExpandDirection.Down; O9="\x74\x6fp"; top=ic; }else if (RadControlsNamespace.Screen.ElementOverflowsBottom(Oa,od) && o9==RadMenuNamespace.ExpandDirection.Down){var od=RadControlsNamespace.Screen.GetElementPosition(this.DomElement); if (od.y>this.AnimationContainer.offsetHeight){o9=RadMenuNamespace.ExpandDirection.Up; O9="\x62ottom"; top=ic; }}if (RadControlsNamespace.Screen.ElementOverflowsRight(Oa,od) && (o9==RadMenuNamespace.ExpandDirection.Down || o9==RadMenuNamespace.ExpandDirection.Up)){if (!this.Menu.RightToLeft){left=Oa.width-(oe.x+ld); }}else if (RadControlsNamespace.Screen.ElementOverflowsBottom(Oa,od)){if (o9==RadMenuNamespace.ExpandDirection.Left || o9==RadMenuNamespace.ExpandDirection.Right){top=Oa.height-(oe.y+Od); }} this.SetContainerPosition(left,top); this.Ease.SetSide(O9); this.TextElement.className="text expand"+this.Ease.GetSide(); } ; RadMenuItem.prototype.SetContainerPosition= function (left,top){var y=top+this.GroupSettings.OffsetY; this.AnimationContainer.style.top=y+"\160\x78"; this.AnimationContainer.style.left=(left+this.GroupSettings.OffsetX)+"px"; };RadMenuItem.prototype.SetAttribute= function (name,value){ this.PostInitialize(); this.Attributes[name]=value; 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 (name){return this.Attributes[name]; };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 o7 in this.Menu.ItemData[this.ID]){ this[o7]=this.Menu.ItemData[this.ID][o7]; }}var Oe=this.Menu.DefaultGroupSettings; if (typeof this.GroupSettings.Flow=="u\x6edefined"){ this.GroupSettings.Flow=Oe.Flow; } this.Flow=this.GroupSettings.Flow; if (typeof this.GroupSettings.ExpandDirection=="undefin\x65\x64"){ this.GroupSettings.ExpandDirection=Oe.ExpandDirection; }if (typeof this.GroupSettings.OffsetX=="undefine\x64"){ this.GroupSettings.OffsetX=Oe.OffsetX; }if (typeof this.GroupSettings.OffsetY=="undefi\x6eed"){ this.GroupSettings.OffsetY=Oe.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 item=this.Items[0]; while (!item.CanFocus()){item=item.GetNextItem(); if (item==this.Items[0]){return; }}item.Focus(); };RadMenuItem.prototype.FocusLastChild= function (){if (!this.Items.length){return; }var item=this.Items[this.Items.length-1]; while (!item.CanFocus()){item=item.GetPreviousItem(); if (this.Items.length-1){return; }}item.Focus(); };RadMenuItem.prototype.FocusNextItem= function (){var item=this.GetNextItem(); while (!item.CanFocus()){item=item.GetNextItem(); }item.Focus(); };RadMenuItem.prototype.FocusPreviousItem= function (){var item=this.GetPreviousItem(); while (!item.CanFocus()){item=item.GetPreviousItem(); }item.Focus(); };RadMenuItem.prototype.RecordState= function (le){if (this.ClientSide && !le){return; }var ie=RadControlsNamespace.JSON.stringify(this,this.InitialState,RadMenu.JSONIncludeDeep); if (ie=="\173\x7d"){ this.Menu.ItemState[this.ID]=""; }else { this.Menu.ItemState[this.ID]="\x22"+this.ID+"\x22:"+ie; } 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=="undef\x69\x6eed"){window.RadControlsNamespace= {} ; }if (typeof(window.RadControlsNamespace.Screen)=="un\x64\x65fined" || typeof(window.RadControlsNamespace.Screen.Version)==null || window.RadControlsNamespace.Screen.Version<.11e1){window.RadControlsNamespace.Screen= {Version: .11e1,GetViewPortSize:function (){var width=0; var height=0; var Ie=document.body; if (RadControlsNamespace.Browser.StandardsMode && !RadControlsNamespace.Browser.IsSafari){Ie=document.documentElement; }if (RadControlsNamespace.Browser.IsMozilla && document.compatMode!="CSS1Comp\x61\x74"){Ie=document.body; }if (window.innerWidth){width=window.innerWidth; height=window.innerHeight; }else {width=Ie.clientWidth; height=Ie.clientHeight; }width+=Ie.scrollLeft; height+=Ie.scrollTop; return {width:width-6,height:height-6 } ; } ,GetElementPosition:function (l4){var parent=null; var of= {x: 0,y: 0 } ; var box; if (l4.getBoundingClientRect){box=l4.getBoundingClientRect(); var scrollTop=document.documentElement.scrollTop || document.body.scrollTop; var scrollLeft=document.documentElement.scrollLeft || document.body.scrollLeft; of.x=box.left+scrollLeft-2; of.y=box.top+scrollTop-2; return of; }else if (document.getBoxObjectFor){try {box=document.getBoxObjectFor(l4); of.x=box.x-2; of.y=box.y-2; }catch (e){}}else {of.x=l4.offsetLeft; of.y=l4.offsetTop; parent=l4.offsetParent; if (parent!=l4){while (parent){of.x+=parent.offsetLeft; of.y+=parent.offsetTop; parent=parent.offsetParent; }}}if (window.opera){parent=l4.offsetParent; while (parent && parent.tagName!="B\x4fDY" && parent.tagName!="HTM\x4c"){of.x-=parent.scrollLeft; of.y-=parent.scrollTop; parent=parent.offsetParent; }}else {parent=l4.parentNode; while (parent && parent.tagName!="\x42ODY" && parent.tagName!="\x48TML"){of.x-=parent.scrollLeft; of.y-=parent.scrollTop; parent=parent.parentNode; }}return of; } ,ElementOverflowsTop:function (O){return this.GetElementPosition(O).y<0; } ,ElementOverflowsLeft:function (O){return this.GetElementPosition(O).x<0; } ,ElementOverflowsBottom:function (Of,O){var If=this.GetElementPosition(O).y+RadControlsNamespace.Box.GetOuterHeight(O); return If>Of.height; } ,ElementOverflowsRight:function (Of,O){var og=this.GetElementPosition(O).x+RadControlsNamespace.Box.GetOuterWidth(O); return og>Of.width; }};};if (typeof window.RadControlsNamespace=="\x75\x6edefine\x64"){window.RadControlsNamespace= {} ; }RadControlsNamespace.ScrollButtonsPosition= {Left: 0,Middle: 1,Right: 2 } ; RadControlsNamespace.Scroll= function (O,Og,lg){ this.Owner=lg; this.Element=O; this.IsVertical=Og; this.ScrollButtonsPosition=lg.ScrollButtonsPosition; this.ScrollPosition=lg.ScrollPosition; this.PerTabScrolling=lg.PerTabScrolling; this.ScrollOnHover= false; this.WrapNeeded= false; this.LeaveGapsForArrows= true; this.LeftArrowClass="l\x65\x66tArrow"; this.LeftArrowClassDisabled="leftArrowDis\x61\142\x6c\x65d"; this.RightArrowClass="\x72ightArrow"; this.RightArrowClassDisabled="rightArrow\x44\x69sabl\x65\x64"; this.Initialized= false; } ; RadControlsNamespace.Scroll.Create= function (O,Og,lg){return new RadControlsNamespace.Scroll(O,Og,lg); };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 ig=this.CreateScrollWrap(); } this.ApplyOverflow(); this.Element.style.position="\162\x65lative"; this.AttachArrows(); this.CalculateMinMaxPosition(); if (this.PerTabScrolling){ this.CalculateInitialTab(); } this.AttachScrollMethods(); this.EvaluateArrowStatus(); this.AttachEventHandlers(); this.ScrollTo(this.ScrollPosition); this.ApplyOverflow(); return ig; } ; RadControlsNamespace.Scroll.prototype.ApplyOverflow= function (){if (RadControlsNamespace.Browser.IsIE){ this.Element.parentNode.style.overflow="\x76isible"; if (this.IsVertical){ this.Element.parentNode.style.overflowX=""; this.Element.parentNode.style.overflowY="hidden"; }else { this.Element.parentNode.style.overflowX="\150i\x64\x64en"; this.Element.parentNode.style.overflowY="\x68idden"; }}else { this.Element.parentNode.style.overflow="hidden"; }if (!this.ScrollNeeded()){ this.Element.parentNode.style.overflow="\x76isible"; this.Element.parentNode.style.overflowX="\x76isible"; this.Element.parentNode.style.overflowY="\x76\x69sible"; }};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?Ij[i].offsetTop:Ij[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 ok=!(this.ScrollPosition>this.MinScrollPosition); var Ok=!(this.ScrollPositionIj.length){return; }var Il=direction==-1?this.CurrentTab:il; this.CurrentTab=il; if (this.IsVertical){var om=Ij[Il].offsetHeight; }else {var om=Ij[Il].offsetWidth; } this.ScrollBy(om*direction); 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 (direction){if (this.OnScrollStop){ this.OnScrollStop(); }clearInterval(this.ik); } ; RadControlsNamespace.Scroll.StopPerTabScroll= function (direction){if (this.OnScrollStop){ this.OnScrollStop(); }} ;;if (typeof window.RadControlsNamespace=="un\x64\x65\x66ined"){window.RadControlsNamespace= {} ; }RadControlsNamespace.Ticker= function (n){ this.Listener=n; this.IntervalPointer=null; };RadControlsNamespace.Ticker.prototype= {Configure:function (L){ this.Duration=L.Duration; this.Interval=16; } ,Start:function (){clearInterval(this.IntervalPointer); this.TimeElapsed=0; var v=this ; var oc= function (){v.Tick(); };this.Tick(); this.IntervalPointer=setInterval(oc,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; }}};;