function ExtendMenuWithKeyboard(){if ((typeof(RadMenu)=="\x75\x6edefined") || (typeof(RadMenu.KeyDown)!="\x75ndefined")){return; }RadMenu.prototype.o30= function (){var O30=0; for (var i=0; i<this.GroupStateManagement.length; i++){if ((this.GroupStateManagement[i]!=null) && (O30<i)){O30=i; }}return O30; };RadMenu.prototype.l30= function (i30){if (i30!=0){return this.GetGroup(this.GroupStateManagement[i30]); }else {return this.RootGroup; }};RadMenu.prototype.I30= function (o31){if (this.O1c.lt(o31)){if (this.O1c.lt(o31.l1k)){return o31.l1k; }else if (this.O1c.lt(o31.O1i) && this.O1c.lt(o31.O1i[0])){return o31.O1i[0]; }}return null; };RadMenu.prototype.O31= function (o31){if (this.O1c.lt(o31)){if (this.O1c.lt(o31.l1k)){return true; }else if (this.O1c.lt(this.RootGroup.l1k)){return true; }}return false; };RadMenu.prototype.l31= function (i31){var I31=i31.ChildGroup; if (I31 && I31.ID){ this.GroupStateManagement[i31.Level+1]=I31.ID; I31.Show(i31.Container); this.o32(I31.O1i[0]); return true; }else {return false; }};RadMenu.prototype.O32= function (){var l32="\x69"; for (var i=0; i<this.O29.length; i++){l32+=this.O29[i]; }return l32; };RadMenu.prototype.i32= function (){if (this.O1c.lt(this.i29)){ this.o2a="i"; if (this.O1c.lt(this.l1f)){ this.o2a+=this.l1f; }if (this.O1c.lt(this.O1f)){ this.o2a+=this.O1f; } this.o2a+=this.i29; }};RadMenu.prototype.I32= function (){return this.o29.o1i(this.O32()); };RadMenu.prototype.KeyUp= function (processedEvent){if (!processedEvent){var processedEvent=window.event; }var o33=this.O1c.lv(processedEvent); var lq=this.I32(); if (lq){lq.RemoveState(MODE_CLICKED); }if (o33==o2v){var O33=this.o30(); if (O33>0){O33-=1; }var l33=this.l30(O33); var i33=this.I30(l33); i33.RemoveState(MODE_CLICKED); i33.Render(MODE_HILIGHT); } this.O29.pop(); } ; RadMenu.prototype.KeyDown= function (processedEvent){if (!processedEvent){var processedEvent=window.event; }var I33=this.O1c.lu(processedEvent); if (I33.type=="text" || I33.type=="\x74extare\x61"){return; }var o33=this.O1c.lv(processedEvent); var o34= false; var O33=this.o30(); var l33=this.l30(O33); var i33=this.I30(l33); if (this.o2a==""){ this.i32(); }for (var i=0; i<this.O29.length; i++){if (this.O29[i]==o33){o34= true; switch (o33){case o2w:case O2w:case I2v:case i2v:case I2w:case o2v:case o2x:break; default:return; }}}if (!o34){ this.O29.push(o33); }if (this.o2a==this.O32()){if (this.I1j== false){ this.I1j= true; this.O34(processedEvent); }else { this.I1j= false; this.l34(processedEvent); }return false; }var lq=this.I32(); if (lq){if (this.I1j== false){ this.I1j= true; this.i34(lq);}if (!this.l31(lq)){lq.ApplyClick(processedEvent); lq.RemoveClick(processedEvent); }return false; }if (!this.O31(l33)){return; }switch (o33){case o2w:case O2w:case I2v:case i2v:case o2x: this.O1c.iw(processedEvent); break; }if (this.I1j== true){var O33=this.o30(); var l33=this.l30(O33); var i33=this.I30(l33); if (o33==I2w){ this.CloseAll((O33-1)); if ((O33-1)==0){ this.I1j= false; }return false; }if (o33==o2x){i33.O1j(processedEvent); i33.o1j(processedEvent); }if (o33==o2v){if (i33.Enabled!= true){return; }if (!this.l31(i33)){i33.ApplyClick(processedEvent); i33.RemoveClick(processedEvent); }return false; } this.o32(this.I34(i33,l33,O33,o33)); return false; }return true; } ; RadMenu.prototype.O34= function (processedEvent){if (this.ClickToOpen== false){ this.ClickToOpen= true; this.FirstClick= false; }if (this.RootGroup && this.RootGroup.O1i && this.RootGroup.O1i.length>0){ this.o32(this.RootGroup.O1i[0]); }};RadMenu.prototype.i34= function (item){if (this.ClickToOpen== false){ this.ClickToOpen= true; this.FirstClick= false; }if (this.RootGroup && this.RootGroup.O1i && this.RootGroup.O1i.length>0){ this.o32(item); }};RadMenu.prototype.l34= function (processedEvent){if (this.ClickToOpen== true){ this.ClickToOpen= false; this.FirstClick= true; } this.CloseAll(0); window.status=""; };RadMenu.prototype.o32= function (O2f){if (O2f){var ParentGroup=null; var i1k=0; ParentGroup=O2f.ParentGroup; i1k=O2f.Level; if ((i1k)>0 && (ParentGroup!=null)){if (this.GroupStateManagement[i1k]!=ParentGroup.ID){ this.GroupStateManagement[i1k]=ParentGroup.ID; }if (ParentGroup.Visible!= true){ParentGroup.Show(ParentGroup.I1b.Container); }} this.o35(O2f); }};RadMenu.prototype.o35= function (O2f){ this.l1j(this.i1j); this.CloseAll(O2f.Level); if (O2f==(O2f.ParentGroup.l1k)){return; }if (O2f.ParentGroup){if (O2f.ParentGroup.l1k!=null){O2f.ParentGroup.l1k.RemoveHilight(); }O2f.ParentGroup.l1k=O2f; }if (!this.O1c.lt(O2f.l1g)){O2f.ApplyHilight(); }} ; RadMenu.prototype.NextItem= function (O35){if (O35.NextItem){if (O35.NextItem.O1h){return this.NextItem(O35.NextItem); }return O35.NextItem; }else {return this.l35(O35.ParentGroup); }};RadMenu.prototype.PreviousItem= function (O35){if (O35.PreviousItem){if (O35.PreviousItem.O1h){return this.PreviousItem(O35.PreviousItem); }return O35.PreviousItem; }else {return this.i35(O35.ParentGroup); }};RadMenu.prototype.l35= function (I35){if (I35 && I35.O1i){if (I35.O1i[0].O1h){return this.NextItem(I35.O1i[0]); }return I35.O1i[0]; }return null; };RadMenu.prototype.i35= function (I35){if (I35 && I35.O1i){if (I35.O1i[(I35.O1i.length-1)].O1h){return this.PreviousItem(I35.O1i[(I35.O1i.length-1)]); }return I35.O1i[(I35.O1i.length-1)]; }return null; };RadMenu.prototype.I34= function (i2n,l2n,o36,O36){if (!this.O1c.lt(i2n) || !this.O1c.lt(l2n) || !this.O1c.lt(o36)){return null; }var l36=l2n.O1q; switch (O36){case o2w:if (l36==VERTICAL_DIRECTION){return this.PreviousItem(i2n); }else if (i2n.ChildGroup){return this.l35(i2n.ChildGroup); }break; case O2w:if (l36==VERTICAL_DIRECTION){return this.NextItem(i2n); }else if (i2n.ChildGroup){return this.l35(i2n.ChildGroup); }break; case I2v:if (l36==VERTICAL_DIRECTION){if (i2n.ChildGroup){return this.l35(i2n.ChildGroup); }else {var i36= true; if ((o36-1)<0){return null; }l2n=this.l30(o36-1); if (l2n.O1q==VERTICAL_DIRECTION){for (var i=this.GroupStateManagement.length; i>=0; i--){if (this.GroupStateManagement[i]){l2n=this.GetGroup(this.GroupStateManagement[i]); if (l2n.O1q==HORIZONTAL_DIRECTION){i36= false; break; }}}if (i36){l2n=this.RootGroup; }}return this.NextItem(l2n.l1k); }}else {return this.NextItem(i2n); }break; case i2v:if (l36==VERTICAL_DIRECTION){if ((o36-1)<0){return null; }l2n=this.l30(o36-1); if (l2n.O1q==VERTICAL_DIRECTION){return l2n.l1k; }else {return this.PreviousItem(l2n.l1k); }}else {return this.PreviousItem(i2n); }break; default:return; }};}
