function ExtendMenuWithKeyboard(){if ((typeof(RadMenu)=="undefi\x6e\x65\x64") || (typeof(RadMenu.KeyDown)!="\x75\x6edefin\x65\x64")){return; }RadMenu.prototype.I2p= function (){var o2q=0; for (var i=0; i<this.GroupStateManagement.length; i++){if ((this.GroupStateManagement[i]!=null) && (o2q<i)){o2q=i; }}return o2q; };RadMenu.prototype.O2q= function (l2q){if (l2q!=0){return this.GetGroup(this.GroupStateManagement[l2q]); }else {return this.RootGroup; }};RadMenu.prototype.i2q= function (I2q){if (this.o12.Ig(I2q)){if (this.o12.Ig(I2q.O1a)){return I2q.O1a; }else if (this.o12.Ig(I2q.o18) && this.o12.Ig(I2q.o18[0])){return I2q.o18[0]; }}return null; };RadMenu.prototype.o2r= function (I2q){if (this.o12.Ig(I2q)){if (this.o12.Ig(I2q.O1a)){return true; }else if (this.o12.Ig(this.RootGroup.O1a)){return true; }}return false; };RadMenu.prototype.O2r= function (l2r){var i2r=l2r.ChildGroup; if (i2r && i2r.ID){ this.GroupStateManagement[l2r.Level+1]=i2r.ID; i2r.Show(l2r.Container); this.I2r(i2r.o18[0]); return true; }else {return false; }};RadMenu.prototype.o2s= function (){var O2s="i"; for (var i=0; i<this.I1y.length; i++){O2s+=this.I1y[i]; }return O2s; };RadMenu.prototype.l2s= function (){if (this.o12.Ig(this.O1z)){ this.i1z="i"; if (this.o12.Ig(this.O15)){ this.i1z+=this.O15; }if (this.o12.Ig(this.o15)){ this.i1z+=this.o15; } this.i1z+=this.O1z; }};RadMenu.prototype.i2s= function (){return this.i1y.I17(this.o2s()); };RadMenu.prototype.KeyUp= function (processedEvent){if (!processedEvent){var processedEvent=window.event; }var I2s=this.o12.oj(processedEvent); var Ic=this.i2s(); if (Ic){Ic.RemoveState(MODE_CLICKED); }if (I2s==I2k){var o2t=this.I2p(); if (o2t>0){o2t-=1; }var O2t=this.O2q(o2t); var l2t=this.i2q(O2t); l2t.RemoveState(MODE_CLICKED); l2t.Render(MODE_HILIGHT); } this.I1y.pop(); } ; RadMenu.prototype.KeyDown= function (processedEvent){if (!processedEvent){var processedEvent=window.event; }var i2t=this.o12.Ih(processedEvent); if (i2t.type=="text" || i2t.type=="\x74ex\x74\x61rea"){return; }var I2s=this.o12.oj(processedEvent); var I2t= false; var o2t=this.I2p(); var O2t=this.O2q(o2t); var l2t=this.i2q(O2t); if (this.i1z==""){ this.l2s(); }for (var i=0; i<this.I1y.length; i++){if (this.I1y[i]==I2s){I2t= true; switch (I2s){case I2l:case o2m:case i2l:case l2l:case i2m:case I2k:case I2m:break; default:return; }}}if (!I2t){ this.I1y.push(I2s); }if (this.i1z==this.o2s()){if (this.i19== false){ this.i19= true; this.o2u(processedEvent); }else { this.i19= false; this.O2u(processedEvent); }return false; }var Ic=this.i2s(); if (Ic){if (this.i19== false){ this.i19= true; this.l2u(Ic); }if (this.O2r(Ic)){Ic.ApplyClick(processedEvent); Ic.RemoveClick(processedEvent); }return false; }if (!this.o2r(O2t)){return; }switch (I2s){case I2l:case o2m:case i2l:case l2l:case I2m: this.o12.Ok(processedEvent); break; }if (this.i19== true){var o2t=this.I2p(); var O2t=this.O2q(o2t); var l2t=this.i2q(O2t); if (I2s==i2m){ this.CloseAll((o2t-1)); if ((o2t-1)==0){ this.i19= false; }return false; }if (I2s==I2m){l2t.o19(processedEvent); l2t.I18(processedEvent); }if (I2s==I2k){if (l2t.Enabled!= true){return; }if (!this.O2r(l2t)){l2t.ApplyClick(processedEvent); l2t.RemoveClick(processedEvent); }return false; } this.I2r(this.i2u(l2t,O2t,o2t,I2s)); return false; }return true; } ; RadMenu.prototype.o2u= function (processedEvent){if (this.ClickToOpen== false){ this.ClickToOpen= true; this.FirstClick= false; }if (this.RootGroup && this.RootGroup.o18 && this.RootGroup.o18.length>0){ this.I2r(this.RootGroup.o18[0]); }};RadMenu.prototype.l2u= function (item){if (this.ClickToOpen== false){ this.ClickToOpen= true; this.FirstClick= false; }if (this.RootGroup && this.RootGroup.o18 && this.RootGroup.o18.length>0){ this.I2r(item); }};RadMenu.prototype.O2u= function (processedEvent){if (this.ClickToOpen== true){ this.ClickToOpen= false; this.FirstClick= true; } this.CloseAll(0); window.status=""; };RadMenu.prototype.I2r= function (I24){if (I24){var ParentGroup=null; var l1a=0; ParentGroup=I24.ParentGroup; l1a=I24.Level; if ((l1a)>0 && (ParentGroup!=null)){if (this.GroupStateManagement[l1a]!=ParentGroup.ID){ this.GroupStateManagement[l1a]=ParentGroup.ID; }if (ParentGroup.Visible!= true){ParentGroup.Show(ParentGroup.i11.Container); }} this.I2u(I24); }};RadMenu.prototype.I2u= function (I24){ this.O19(this.l19); this.CloseAll(I24.Level); if (I24==(I24.ParentGroup.O1a)){return; }if (I24.ParentGroup){if (I24.ParentGroup.O1a!=null){I24.ParentGroup.O1a.RemoveHilight(); }I24.ParentGroup.O1a=I24; }if (!this.o12.Ig(I24.O16)){I24.ApplyHilight(); }} ; RadMenu.prototype.NextItem= function (o2v){if (o2v.NextItem){if (o2v.NextItem.o17){return this.NextItem(o2v.NextItem); }return o2v.NextItem; }else {return this.O2v(o2v.ParentGroup); }};RadMenu.prototype.PreviousItem= function (o2v){if (o2v.PreviousItem){if (o2v.PreviousItem.o17){return this.PreviousItem(o2v.PreviousItem); }return o2v.PreviousItem; }else {return this.l2v(o2v.ParentGroup); }};RadMenu.prototype.O2v= function (i2v){if (i2v && i2v.o18){if (i2v.o18[0].o17){return this.NextItem(i2v.o18[0]); }return i2v.o18[0]; }return null; };RadMenu.prototype.l2v= function (i2v){if (i2v && i2v.o18){if (i2v.o18[(i2v.o18.length-1)].o17){return this.PreviousItem(i2v.o18[(i2v.o18.length-1)]); }return i2v.o18[(i2v.o18.length-1)]; }return null; };RadMenu.prototype.i2u= function (O2d,o2d,I2v,o2w){if (!this.o12.Ig(O2d) || !this.o12.Ig(o2d) || !this.o12.Ig(I2v)){return null; }var O2w=o2d.I1f; switch (o2w){case I2l:if (O2w==VERTICAL_DIRECTION){return this.PreviousItem(O2d); }else if (O2d.ChildGroup){return this.O2v(O2d.ChildGroup); }break; case o2m:if (O2w==VERTICAL_DIRECTION){return this.NextItem(O2d); }else if (O2d.ChildGroup){return this.O2v(O2d.ChildGroup); }break; case i2l:if (O2w==VERTICAL_DIRECTION){if (O2d.ChildGroup){return this.O2v(O2d.ChildGroup); }else {var l2w= true; if ((I2v-1)<0){return null; }o2d=this.O2q(I2v-1); if (o2d.I1f==VERTICAL_DIRECTION){for (var i=this.GroupStateManagement.length; i>=0; i--){if (this.GroupStateManagement[i]){o2d=this.GetGroup(this.GroupStateManagement[i]); if (o2d.I1f==HORIZONTAL_DIRECTION){l2w= false; break; }}}if (l2w){o2d=this.RootGroup; }}return this.NextItem(o2d.O1a); }}else {return this.NextItem(O2d); }break; case l2l:if (O2w==VERTICAL_DIRECTION){if ((I2v-1)<0){return null; }o2d=this.O2q(I2v-1); if (o2d.I1f==VERTICAL_DIRECTION){return o2d.O1a; }else {return this.PreviousItem(o2d.O1a); }}else {return this.PreviousItem(O2d); }break; default:return; }};}
