function ExtendMenuWithKeyboard(){if ((typeof(RadMenu)=="u\x6edefi\x6e\x65d") || (typeof(RadMenu.KeyDown)!="\x75nde\x66\x69ne\x64")){return; }RadMenu.prototype.O1v= function (){var l1v=0; for (var i=0; i<this.ik.length; i++){if ((this.ik[i]!=null) && (l1v<i)){l1v=i; }}return l1v; };RadMenu.prototype.i1v= function (I1v){if (I1v!=0){return this.GetGroup(this.ik[I1v]); }else {return this.RootGroup; }};RadMenu.prototype.o1w= function (O1w){if (this.od.e(O1w)){if (this.od.e(O1w.Im)){return O1w.Im; }else if (this.od.e(O1w.l0) && this.od.e(O1w.l0[0])){return O1w.l0[0]; }}return null; };RadMenu.prototype.l1w= function (O1w){if (this.od.e(O1w)){if (this.od.e(O1w.Im)){return true; }else if (this.od.e(this.RootGroup.Im)){return true; }}return false; };RadMenu.prototype.i1w= function (I1w){var o1x=I1w.ChildGroup; if (o1x && o1x.ID){ this.ik[I1w.ld+1]=o1x.ID; o1x.Show(I1w.Container); this.O1x(o1x.l0[0]); return true; }else {return false; }};RadMenu.prototype.l1x= function (){var i1x="i"; for (var i=0; i<this.i1l.length; i++){i1x+=this.i1l[i]; }return i1x; };RadMenu.prototype.I1x= function (){if (this.od.e(this.o1m)){ this.O1m="\151"; if (this.od.e(this.oh)){ this.O1m+=this.oh; }if (this.od.e(this.Ig)){ this.O1m+=this.Ig; } this.O1m+=this.o1m; }};RadMenu.prototype.o1y= function (){return this.l1l.A(this.l1x()); };RadMenu.prototype.KeyUp= function (processedEvent){if (!processedEvent){var processedEvent=window.event; }var O1y=this.od.l1y(processedEvent); var o1p=this.o1y(); if (o1p){o1p.RemoveState(MODE_CLICKED); }if (O1y==i7){var i1y=this.O1v(); if (i1y>0){i1y-=1; }var I1y=this.i1v(i1y); var o1z=this.o1w(I1y); o1z.RemoveState(MODE_CLICKED); o1z.Render(MODE_HILIGHT); } this.i1l.pop(); } ; RadMenu.prototype.KeyDown= function (processedEvent){if (!processedEvent){var processedEvent=window.event; }var O1z=this.od.I(processedEvent); if (O1z.type=="\x74\x65xt" || O1z.type=="\x74extare\x61"){return; }var O1y=this.od.l1y(processedEvent); var l1z= false; var i1y=this.O1v(); var I1y=this.i1v(i1y); var o1z=this.o1w(I1y); if (this.O1m==""){ this.I1x(); }for (var i=0; i<this.i1l.length; i++){if (this.i1l[i]==O1y){l1z= true; switch (O1y){case i8:case I8:case l8:case O8:case l9:case i7:case i9:break; default:return; }}}if (!l1z){ this.i1l.push(O1y); }if (this.O1m==this.l1x()){if (this.Il== false){ this.Il= true; this.i1z(processedEvent); }else { this.Il= false; this.I1z(processedEvent); }return false; }var o1p=this.o1y(); if (o1p){o1p.AddState(MODE_CLICKED); o1p.Action(MODE_CLICKED); return false; }if (!this.l1w(I1y)){return; }switch (O1y){case i8:case I8:case l8:case O8:case i9: this.od.o20(processedEvent); break; }if (this.Il== true){var i1y=this.O1v(); var I1y=this.i1v(i1y); var o1z=this.o1w(I1y); if (O1y==l9){ this.CloseAll((i1y-1)); if ((i1y-1)==0){ this.Il= false; }return false; }if (O1y==i9){o1z.Ik(processedEvent); o1z.lk(processedEvent); }if (O1y==i7){if (o1z.Enabled!= true){return; }if (!this.i1w(o1z)){o1z.ApplyClick(processedEvent); o1z.RemoveClick(processedEvent); }return false; } this.O1x(this.O20(o1z,I1y,i1y,O1y)); return false; }return true; } ; RadMenu.prototype.i1z= function (processedEvent){if (this.ClickToOpen== false){ this.ClickToOpen= true; this.FirstClick= false; }if (this.RootGroup && this.RootGroup.l0 && this.RootGroup.l0.length>0){ this.O1x(this.RootGroup.l0[0]); }};RadMenu.prototype.I1z= function (processedEvent){if (this.ClickToOpen== true){ this.ClickToOpen= false; this.FirstClick= true; } this.CloseAll(0); window.status=""; };RadMenu.prototype.O1x= function (O1q){if (O1q){var ParentGroup=null; var On=0; ParentGroup=O1q.ParentGroup; On=O1q.ld; if ((On)>0 && (ParentGroup!=null)){if (this.ik[On]!=ParentGroup.ID){ this.ik[On]=ParentGroup.ID; }if (ParentGroup.Visible!= true){ParentGroup.Show(ParentGroup.ic.Container); }} this.l20(O1q); }};RadMenu.prototype.l20= function (O1q){ this.ll(this.il); this.CloseAll(O1q.ld); if (O1q==(O1q.ParentGroup.Im)){return; }if (O1q.ParentGroup){if (O1q.ParentGroup.Im!=null){O1q.ParentGroup.Im.RemoveHilight(); }O1q.ParentGroup.Im=O1q; }if (!this.od.e(O1q.oi)){O1q.ApplyHilight(); }} ; RadMenu.prototype.NextItem= function (i20){if (i20.NextItem){if (i20.NextItem.oj){return this.NextItem(i20.NextItem); }return i20.NextItem; }else {return this.I20(i20.ParentGroup); }};RadMenu.prototype.PreviousItem= function (i20){if (i20.PreviousItem){if (i20.PreviousItem.oj){return this.PreviousItem(i20.PreviousItem); }return i20.PreviousItem; }else {return this.o21(i20.ParentGroup); }};RadMenu.prototype.I20= function (O21){if (O21 && O21.l0){if (O21.l0[0].oj){return this.NextItem(O21.l0[0]); }return O21.l0[0]; }return null; };RadMenu.prototype.o21= function (O21){if (O21 && O21.l0){if (O21.l0[(O21.l0.length-1)].oj){return this.PreviousItem(O21.l0[(O21.l0.length-1)]); }return O21.l0[(O21.l0.length-1)]; }return null; };RadMenu.prototype.O20= function (f,F,l21,i21){if (!this.od.e(f) || !this.od.e(F) || !this.od.e(l21)){return null; }var I21=F.o0; switch (i21){case i8:if (I21==VERTICAL_DIRECTION){return this.PreviousItem(f); }else if (f.ChildGroup){return this.I20(f.ChildGroup); }break; case I8:if (I21==VERTICAL_DIRECTION){return this.NextItem(f); }else if (f.ChildGroup){return this.I20(f.ChildGroup); }break; case l8:if (I21==VERTICAL_DIRECTION){if (f.ChildGroup){return this.I20(f.ChildGroup); }else {var o22= true; if ((l21-1)<0){return null; }F=this.i1v(l21-1); if (F.o0==VERTICAL_DIRECTION){for (var i=this.ik.length; i>=0; i--){if (this.ik[i]){F=this.GetGroup(this.ik[i]); if (F.o0==HORIZONTAL_DIRECTION){o22= false; break; }}}if (o22){F=this.RootGroup; }}return this.NextItem(F.Im); }}else {return this.NextItem(f); }break; case O8:if (I21==VERTICAL_DIRECTION){if ((l21-1)<0){return null; }F=this.i1v(l21-1); if (F.o0==VERTICAL_DIRECTION){return F.Im; }else {return this.PreviousItem(F.Im); }}else {return this.PreviousItem(f); }break; default:return; }};}
