function ExtendMenuWithKeyboard(){if ((typeof(RadMenu)=="u\x6e\x64efined") || (typeof(RadMenu.KeyDown)!="undefined")){return; }RadMenu.prototype.O2p= function (){var l2p=0; for (var i=0; i<this.GroupStateManagement.length; i++){if ((this.GroupStateManagement[i]!=null) && (l2p<i)){l2p=i; }}return l2p; };RadMenu.prototype.i2p= function (I2p){if (I2p!=0){return this.GetGroup(this.GroupStateManagement[I2p]); }else {return this.RootGroup; }};RadMenu.prototype.o2q= function (O2q){if (this.l11.Ig(O2q)){if (this.l11.Ig(O2q.i19)){return O2q.i19; }else if (this.l11.Ig(O2q.l17) && this.l11.Ig(O2q.l17[0])){return O2q.l17[0]; }}return null; };RadMenu.prototype.l2q= function (O2q){if (this.l11.Ig(O2q)){if (this.l11.Ig(O2q.i19)){return true; }else if (this.l11.Ig(this.RootGroup.i19)){return true; }}return false; };RadMenu.prototype.i2q= function (I2q){var o2r=I2q.ChildGroup; if (o2r && o2r.ID){ this.GroupStateManagement[I2q.Level+1]=o2r.ID; o2r.Show(I2q.Container); this.O2r(o2r.l17[0]); return true; }else {return false; }};RadMenu.prototype.l2r= function (){var i2r="\151"; for (var i=0; i<this.O1y.length; i++){i2r+=this.O1y[i]; }return i2r; };RadMenu.prototype.I2r= function (){if (this.l11.Ig(this.i1y)){ this.o1z="i"; if (this.l11.Ig(this.i14)){ this.o1z+=this.i14; }if (this.l11.Ig(this.l14)){ this.o1z+=this.l14; } this.o1z+=this.i1y; }};RadMenu.prototype.o2s= function (){return this.o1y.O17(this.l2r()); };RadMenu.prototype.KeyUp= function (processedEvent){if (!processedEvent){var processedEvent=window.event; }var O2s=this.l11.Ii(processedEvent); var Ic=this.o2s(); if (Ic){Ic.RemoveState(MODE_CLICKED); }if (O2s==O2k){var l2s=this.O2p(); if (l2s>0){l2s-=1; }var i2s=this.i2p(l2s); var I2s=this.o2q(i2s); I2s.RemoveState(MODE_CLICKED); I2s.Render(MODE_HILIGHT); } this.O1y.pop(); } ; RadMenu.prototype.KeyDown= function (processedEvent){if (!processedEvent){var processedEvent=window.event; }var o2t=this.l11.Ih(processedEvent); if (o2t.type=="t\x65xt" || o2t.type=="\164\x65\x78tarea"){return; }var O2s=this.l11.Ii(processedEvent); var O2t= false; var l2s=this.O2p(); var i2s=this.i2p(l2s); var I2s=this.o2q(i2s); if (this.o1z==""){ this.I2r(); }for (var i=0; i<this.O1y.length; i++){if (this.O1y[i]==O2s){O2t= true; switch (O2s){case O2l:case l2l:case o2l:case I2k:case o2m:case O2k:case O2m:break; default:return; }}}if (!O2t){ this.O1y.push(O2s); }if (this.o1z==this.l2r()){if (this.o19== false){ this.o19= true; this.l2t(processedEvent); }else { this.o19= false; this.i2t(processedEvent); }return false; }var Ic=this.o2s(); if (Ic){if (this.o19== false){ this.o19= true; this.I2t(Ic); }if (this.i2q(Ic)){Ic.ApplyClick(processedEvent); Ic.RemoveClick(processedEvent); }return false; }if (!this.l2q(i2s)){return; }switch (O2s){case O2l:case l2l:case o2l:case I2k:case O2m: this.l11.ok(processedEvent); break; }if (this.o19== true){var l2s=this.O2p(); var i2s=this.i2p(l2s); var I2s=this.o2q(i2s); if (O2s==o2m){ this.CloseAll((l2s-1)); if ((l2s-1)==0){ this.o19= false; }return false; }if (O2s==O2m){I2s.l18(processedEvent); I2s.O18(processedEvent); }if (O2s==O2k){if (I2s.Enabled!= true){return; }if (!this.i2q(I2s)){I2s.ApplyClick(processedEvent); I2s.RemoveClick(processedEvent); }return false; } this.O2r(this.o2u(I2s,i2s,l2s,O2s)); return false; }return true; } ; RadMenu.prototype.l2t= function (processedEvent){if (this.ClickToOpen== false){ this.ClickToOpen= true; this.FirstClick= false; }if (this.RootGroup && this.RootGroup.l17 && this.RootGroup.l17.length>0){ this.O2r(this.RootGroup.l17[0]); }};RadMenu.prototype.I2t= function (item){if (this.ClickToOpen== false){ this.ClickToOpen= true; this.FirstClick= false; }if (this.RootGroup && this.RootGroup.l17 && this.RootGroup.l17.length>0){ this.O2r(item); }};RadMenu.prototype.i2t= function (processedEvent){if (this.ClickToOpen== true){ this.ClickToOpen= false; this.FirstClick= true; } this.CloseAll(0); window.status=""; };RadMenu.prototype.O2r= function (O24){if (O24){var ParentGroup=null; var I19=0; ParentGroup=O24.ParentGroup; I19=O24.Level; if ((I19)>0 && (ParentGroup!=null)){if (this.GroupStateManagement[I19]!=ParentGroup.ID){ this.GroupStateManagement[I19]=ParentGroup.ID; }if (ParentGroup.Visible!= true){ParentGroup.Show(ParentGroup.o11.Container); }} this.O2u(O24); }};RadMenu.prototype.O2u= function (O24){ this.i18(this.I18); this.CloseAll(O24.Level); if (O24==(O24.ParentGroup.i19)){return; }if (O24.ParentGroup){if (O24.ParentGroup.i19!=null){O24.ParentGroup.i19.RemoveHilight(); }O24.ParentGroup.i19=O24; }if (!this.l11.Ig(O24.i15)){O24.ApplyHilight(); }} ; RadMenu.prototype.NextItem= function (l2u){if (l2u.NextItem){if (l2u.NextItem.l16){return this.NextItem(l2u.NextItem); }return l2u.NextItem; }else {return this.i2u(l2u.ParentGroup); }};RadMenu.prototype.PreviousItem= function (l2u){if (l2u.PreviousItem){if (l2u.PreviousItem.l16){return this.PreviousItem(l2u.PreviousItem); }return l2u.PreviousItem; }else {return this.I2u(l2u.ParentGroup); }};RadMenu.prototype.i2u= function (o2v){if (o2v && o2v.l17){if (o2v.l17[0].l16){return this.NextItem(o2v.l17[0]); }return o2v.l17[0]; }return null; };RadMenu.prototype.I2u= function (o2v){if (o2v && o2v.l17){if (o2v.l17[(o2v.l17.length-1)].l16){return this.PreviousItem(o2v.l17[(o2v.l17.length-1)]); }return o2v.l17[(o2v.l17.length-1)]; }return null; };RadMenu.prototype.o2u= function (i2c,l2c,O2v,l2v){if (!this.l11.Ig(i2c) || !this.l11.Ig(l2c) || !this.l11.Ig(O2v)){return null; }var i2v=l2c.O1f; switch (l2v){case O2l:if (i2v==VERTICAL_DIRECTION){return this.PreviousItem(i2c); }else if (i2c.ChildGroup){return this.i2u(i2c.ChildGroup); }break; case l2l:if (i2v==VERTICAL_DIRECTION){return this.NextItem(i2c); }else if (i2c.ChildGroup){return this.i2u(i2c.ChildGroup); }break; case o2l:if (i2v==VERTICAL_DIRECTION){if (i2c.ChildGroup){return this.i2u(i2c.ChildGroup); }else {var I2v= true; if ((O2v-1)<0){return null; }l2c=this.i2p(O2v-1); if (l2c.O1f==VERTICAL_DIRECTION){for (var i=this.GroupStateManagement.length; i>=0; i--){if (this.GroupStateManagement[i]){l2c=this.GetGroup(this.GroupStateManagement[i]); if (l2c.O1f==HORIZONTAL_DIRECTION){I2v= false; break; }}}if (I2v){l2c=this.RootGroup; }}return this.NextItem(l2c.i19); }}else {return this.NextItem(i2c); }break; case I2k:if (i2v==VERTICAL_DIRECTION){if ((O2v-1)<0){return null; }l2c=this.i2p(O2v-1); if (l2c.O1f==VERTICAL_DIRECTION){return l2c.i19; }else {return this.PreviousItem(l2c.i19); }}else {return this.PreviousItem(i2c); }break; default:return; }};}
