function ExtendMenuWithKeyboard(){if ((typeof(RadMenu)=="\x75nd\x65\x66in\x65d") || (typeof(RadMenu.KeyDown)!="und\x65fined")){return; }RadMenu.prototype.i1n= function (){var I1n=0; for (var i=0; i<this.o1d.length; i++){if ((this.o1d[i]!=null) && (I1n<i)){I1n=i; }}return I1n; };RadMenu.prototype.o1o= function (O1o){if (O1o!=0){return this.GetGroup(this.o1d[O1o]); }else {return this.RootGroup; }};RadMenu.prototype.l1o= function (I1h){if (this.i5.e(I1h)){if (this.i5.e(I1h.Oh)){return I1h.Oh; }else if (this.i5.e(I1h.ob) && this.i5.e(I1h.ob[0])){return I1h.ob[0]; }}return null; };RadMenu.prototype.i1o= function (I1h){if (this.i5.e(I1h)){if (this.i5.e(I1h.Oh)){return true; }else if (this.i5.e(this.RootGroup.Oh)){return true; }}return false; };RadMenu.prototype.I1o= function (o1p){var O1p=o1p.ChildGroup; if (O1p && O1p.ID){ this.o1d[o1p.l5+1]=O1p.ID; O1p.Show(o1p.Container); this.l1p(O1p.ob[0]); return true; }else {return false; }};RadMenu.prototype.i1p= function (){var I1p="i"; for (var i=0; i<this.o1c.length; i++){I1p+=this.o1c[i]; }return I1p; };RadMenu.prototype.o1q= function (){if (this.i5.e(this.i1c)){ this.I1c="\x69"; if (this.i5.e(this.O8)){ this.I1c+=this.O8; }if (this.i5.e(this.o8)){ this.I1c+=this.o8; } this.I1c+=this.i1c; }};RadMenu.prototype.O1q= function (){return this.I1b.A(this.i1p()); };RadMenu.prototype.KeyUp= function (processedEvent){if (!processedEvent){var processedEvent=window.event; }var l1q=this.i5.i1q(processedEvent); var O1g=this.O1q(); if (O1g){O1g.RemoveState(MODE_CLICKED); }if (l1q==o0){var I1q=this.i1n(); if (I1q>0){I1q-=1; }var o1r=this.o1o(I1q); var O1r=this.l1o(o1r); O1r.RemoveState(MODE_CLICKED); O1r.Render(MODE_HILIGHT); } this.o1c.pop(); } ; RadMenu.prototype.KeyDown= function (processedEvent){if (!processedEvent){var processedEvent=window.event; }var l1q=this.i5.i1q(processedEvent); var l1r= false; var I1q=this.i1n(); var o1r=this.o1o(I1q); var O1r=this.l1o(o1r); if (this.I1c==""){ this.o1q(); }for (var i=0; i<this.o1c.length; i++){if (this.o1c[i]==l1q){l1r= true; switch (l1q){case o1:case O1:case I0:case i0:case I1:case o0:case o2:break; default:return; }}}if (!l1r){ this.o1c.push(l1q); }if (this.I1c==this.i1p()){if (this.O1c== false){ this.O1c= true; this.i1r(processedEvent); }else { this.O1c= false; this.I1r(processedEvent); }return false; }var O1g=this.O1q(); if (O1g){O1g.AddState(MODE_CLICKED); O1g.Action(MODE_CLICKED); return false; }if (!this.i1o(o1r)){return; }switch (l1q){case o1:case O1:case I0:case i0:case o2: this.i5.o1s(processedEvent); break; }if (this.O1c== true){var I1q=this.i1n(); var o1r=this.o1o(I1q); var O1r=this.l1o(o1r); if (l1q==I1){ this.CloseAll((I1q-1)); if ((I1q-1)==0){ this.O1c= false; }return false; }if (l1q==o2){O1r.lg(processedEvent); O1r.ig(processedEvent); }if (l1q==o0){if (O1r.Enabled!= true){return; }if (!this.I1o(O1r)){O1r.ApplyClick(processedEvent); O1r.RemoveClick(processedEvent); }return false; } this.l1p(this.O1s(O1r,o1r,I1q,l1q)); return false; }return true; } ; RadMenu.prototype.i1r= function (processedEvent){if (this.ClickToOpen== false){ this.ClickToOpen= true; this.O1d= false; }if (this.RootGroup && this.RootGroup.ob && this.RootGroup.ob.length>0){ this.l1p(this.RootGroup.ob[0]); }};RadMenu.prototype.I1r= function (processedEvent){if (this.ClickToOpen== true){ this.ClickToOpen= false; this.O1d= true; } this.CloseAll(0); window.status=""; };RadMenu.prototype.l1p= function (i1i){if (i1i){var ParentGroup=null; var l1j=0; ParentGroup=i1i.ParentGroup; l1j=i1i.l5; if ((l1j)>0 && (ParentGroup!=null)){if (this.o1d[l1j]!=ParentGroup.ID){ this.o1d[l1j]=ParentGroup.ID; }if (ParentGroup.Visible!= true){ParentGroup.Show(ParentGroup.o5.Container); }} this.l1s(i1i); }};RadMenu.prototype.l1s= function (i1i){ this.i1e(this.l1d); this.CloseAll(i1i.l5); if (i1i==(i1i.ParentGroup.Oh)){return; }if (i1i.ParentGroup){if (i1i.ParentGroup.Oh!=null){i1i.ParentGroup.Oh.RemoveHilight(); }i1i.ParentGroup.Oh=i1i; }if (!this.i5.e(i1i.l9)){i1i.ApplyHilight(); }} ; RadMenu.prototype.NextItem= function (i1s){if (i1s.NextItem){if (i1s.NextItem.Oa){return this.NextItem(i1s.NextItem); }return i1s.NextItem; }else {return this.I1s(i1s.ParentGroup); }};RadMenu.prototype.PreviousItem= function (i1s){if (i1s.PreviousItem){if (i1s.PreviousItem.Oa){return this.PreviousItem(i1s.PreviousItem); }return i1s.PreviousItem; }else {return this.o1t(i1s.ParentGroup); }};RadMenu.prototype.I1s= function (O1t){if (O1t && O1t.ob){if (O1t.ob[0].Oa){return this.NextItem(O1t.ob[0]); }return O1t.ob[0]; }return null; };RadMenu.prototype.o1t= function (O1t){if (O1t && O1t.ob){if (O1t.ob[(O1t.ob.length-1)].Oa){return this.PreviousItem(O1t.ob[(O1t.ob.length-1)]); }return O1t.ob[(O1t.ob.length-1)]; }return null; };RadMenu.prototype.O1s= function (l1t,i1t,I1t,o1u){if (!this.i5.e(l1t) || !this.i5.e(i1t) || !this.i5.e(I1t)){return null; }var O1u=i1t.Ii; switch (o1u){case o1:if (O1u==VERTICAL_DIRECTION){return this.PreviousItem(l1t); }else if (l1t.ChildGroup){return this.I1s(l1t.ChildGroup); }break; case O1:if (O1u==VERTICAL_DIRECTION){return this.NextItem(l1t); }else if (l1t.ChildGroup){return this.I1s(l1t.ChildGroup); }break; case I0:if (O1u==VERTICAL_DIRECTION){if (l1t.ChildGroup){return this.I1s(l1t.ChildGroup); }else {var l1u= true; if ((I1t-1)<0){return null; }i1t=this.o1o(I1t-1); if (i1t.Ii==VERTICAL_DIRECTION){for (var i=this.o1d.length; i>=0; i--){if (this.o1d[i]){i1t=this.GetGroup(this.o1d[i]); if (i1t.Ii==HORIZONTAL_DIRECTION){l1u= false; break; }}}if (l1u){i1t=this.RootGroup; }}return this.NextItem(i1t.Oh); }}else {return this.NextItem(l1t); }break; case i0:if (O1u==VERTICAL_DIRECTION){if ((I1t-1)<0){return null; }i1t=this.o1o(I1t-1); if (i1t.Ii==VERTICAL_DIRECTION){return i1t.Oh; }else {return this.PreviousItem(i1t.Oh); }}else {return this.PreviousItem(l1t); }break; default:return; }};}
