Telerik.Web.UI.RadMenuItemEventArgs=function(_1,_2){
Telerik.Web.UI.RadMenuItemEventArgs.initializeBase(this);
this._item=_1;
this._domEvent=_2||null;
};
Telerik.Web.UI.RadMenuItemEventArgs.prototype={get_item:function(){
return this._item;
},get_domEvent:function(){
return this._domEvent;
}};
Telerik.Web.UI.RadMenuItemEventArgs.registerClass("Telerik.Web.UI.RadMenuItemEventArgs",Sys.EventArgs);
Telerik.Web.UI.RadMenuItemCancelEventArgs=function(_3,_4){
Telerik.Web.UI.RadMenuItemCancelEventArgs.initializeBase(this);
this._item=_3;
this._domEvent=_4||null;
};
Telerik.Web.UI.RadMenuItemCancelEventArgs.prototype={get_item:function(){
return this._item;
},get_domEvent:function(){
return this._domEvent;
}};
Telerik.Web.UI.RadMenuItemCancelEventArgs.registerClass("Telerik.Web.UI.RadMenuItemCancelEventArgs",Sys.CancelEventArgs);
Telerik.Web.UI.RadMenuMouseOverEventArgs=function(_5,_6){
Telerik.Web.UI.RadMenuMouseOverEventArgs.initializeBase(this,[_5,_6||null]);
};
Telerik.Web.UI.RadMenuMouseOverEventArgs.registerClass("Telerik.Web.UI.RadMenuMouseOverEventArgs",Telerik.Web.UI.RadMenuItemEventArgs);
Telerik.Web.UI.RadMenuMouseOutEventArgs=function(_7,_8){
Telerik.Web.UI.RadMenuMouseOutEventArgs.initializeBase(this,[_7,_8||null]);
};
Telerik.Web.UI.RadMenuMouseOutEventArgs.registerClass("Telerik.Web.UI.RadMenuMouseOutEventArgs",Telerik.Web.UI.RadMenuItemEventArgs);
Telerik.Web.UI.RadMenuItemFocusEventArgs=function(_9,_a){
Telerik.Web.UI.RadMenuItemFocusEventArgs.initializeBase(this,[_9,_a||null]);
};
Telerik.Web.UI.RadMenuItemFocusEventArgs.registerClass("Telerik.Web.UI.RadMenuItemFocusEventArgs",Telerik.Web.UI.RadMenuItemEventArgs);
Telerik.Web.UI.RadMenuItemBlurEventArgs=function(_b,_c){
Telerik.Web.UI.RadMenuItemBlurEventArgs.initializeBase(this,[_b,_c||null]);
};
Telerik.Web.UI.RadMenuItemBlurEventArgs.registerClass("Telerik.Web.UI.RadMenuItemBlurEventArgs",Telerik.Web.UI.RadMenuItemEventArgs);
Telerik.Web.UI.RadMenuItemClickingEventArgs=function(_d,_e){
Telerik.Web.UI.RadMenuItemClickingEventArgs.initializeBase(this,[_d,_e||null]);
};
Telerik.Web.UI.RadMenuItemClickingEventArgs.registerClass("Telerik.Web.UI.RadMenuItemClickingEventArgs",Telerik.Web.UI.RadMenuItemCancelEventArgs);
Telerik.Web.UI.RadMenuItemClickedEventArgs=function(_f,_10){
Telerik.Web.UI.RadMenuItemClickedEventArgs.initializeBase(this,[_f,_10||null]);
};
Telerik.Web.UI.RadMenuItemClickedEventArgs.registerClass("Telerik.Web.UI.RadMenuItemClickedEventArgs",Telerik.Web.UI.RadMenuItemEventArgs);
Telerik.Web.UI.RadMenuItemOpeningEventArgs=function(_11,_12){
Telerik.Web.UI.RadMenuItemOpeningEventArgs.initializeBase(this,[_11,_12||null]);
};
Telerik.Web.UI.RadMenuItemOpeningEventArgs.registerClass("Telerik.Web.UI.RadMenuItemOpeningEventArgs",Telerik.Web.UI.RadMenuItemCancelEventArgs);
Telerik.Web.UI.RadMenuItemOpenedEventArgs=function(_13,_14){
Telerik.Web.UI.RadMenuItemOpenedEventArgs.initializeBase(this,[_13,_14||null]);
};
Telerik.Web.UI.RadMenuItemOpenedEventArgs.registerClass("Telerik.Web.UI.RadMenuItemOpenedEventArgs",Telerik.Web.UI.RadMenuItemEventArgs);
Telerik.Web.UI.RadMenuItemClosingEventArgs=function(_15,_16){
Telerik.Web.UI.RadMenuItemClosingEventArgs.initializeBase(this,[_15,_16||null]);
};
Telerik.Web.UI.RadMenuItemClosingEventArgs.registerClass("Telerik.Web.UI.RadMenuItemClosingEventArgs",Telerik.Web.UI.RadMenuItemCancelEventArgs);
Telerik.Web.UI.RadMenuItemClosedEventArgs=function(_17,_18){
Telerik.Web.UI.RadMenuItemClosedEventArgs.initializeBase(this,[_17,_18||null]);
};
Telerik.Web.UI.RadMenuItemClosedEventArgs.registerClass("Telerik.Web.UI.RadMenuItemClosedEventArgs",Telerik.Web.UI.RadMenuItemEventArgs);
Telerik.Web.UI.RadMenuItemPopulatingEventArgs=function(_19,_1a){
Telerik.Web.UI.RadMenuItemPopulatingEventArgs.initializeBase(this,[_19]);
this._context=_1a;
};
Telerik.Web.UI.RadMenuItemPopulatingEventArgs.prototype={get_context:function(){
return this._context;
}};
Telerik.Web.UI.RadMenuItemPopulatingEventArgs.registerClass("Telerik.Web.UI.RadMenuItemPopulatingEventArgs",Telerik.Web.UI.RadMenuItemCancelEventArgs);
Telerik.Web.UI.RadMenuItemPopulatedEventArgs=function(_1b){
Telerik.Web.UI.RadMenuItemPopulatedEventArgs.initializeBase(this,[_1b]);
};
Telerik.Web.UI.RadMenuItemPopulatedEventArgs.registerClass("Telerik.Web.UI.RadMenuItemPopulatedEventArgs",Telerik.Web.UI.RadMenuItemEventArgs);
Telerik.Web.UI.RadMenuItemPopulationFailedEventArgs=function(_1c,_1d){
Telerik.Web.UI.RadMenuItemPopulationFailedEventArgs.initializeBase(this,[_1c]);
this._errorMessage=_1d;
};
Telerik.Web.UI.RadMenuItemPopulationFailedEventArgs.prototype={get_errorMessage:function(){
return this._errorMessage;
}};
Telerik.Web.UI.RadMenuItemPopulationFailedEventArgs.registerClass("Telerik.Web.UI.RadMenuItemPopulationFailedEventArgs",Telerik.Web.UI.RadMenuItemCancelEventArgs);
Type.registerNamespace("Telerik.Web.UI");
Telerik.Web.UI.ItemFlow=function(){
};
Telerik.Web.UI.ItemFlow.prototype={Vertical:0,Horizontal:1};
Telerik.Web.UI.ItemFlow.registerEnum("Telerik.Web.UI.ItemFlow");
Telerik.Web.UI.ExpandDirection=function(){
};
Telerik.Web.UI.ExpandDirection.prototype={Auto:0,Up:1,Down:2,Left:3,Right:4};
Telerik.Web.UI.ExpandDirection.registerEnum("Telerik.Web.UI.ExpandDirection");
Telerik.Web.UI.RadMenu=function(_1e){
Telerik.Web.UI.RadMenu.initializeBase(this,[_1e]);
this._childTypeName="Telerik.Web.UI.RadMenuItem";
this._itemData=null;
this._expandAnimation=new Telerik.Web.UI.AnimationSettings({});
this._expandDelay=100;
this._collapseAnimation=new Telerik.Web.UI.AnimationSettings({});
this._collapseDelay=500;
this._flow=Telerik.Web.UI.ItemFlow.Horizontal;
this._defaultGroupSettings=new Telerik.Web.UI.RadMenuItemGroupSettings({});
this._enableAutoScroll=false;
this._autoScrollMinimumHeight=50;
this._autoScrollMinimumWidth=50;
this._enableRootItemScroll=false;
this._enableScreenBoundaryDetection=true;
this._clickToOpen=false;
this._childListElement=null;
this._postBackReference=null;
this._onClickDelegate=null;
this._webServiceSettings=new Telerik.Web.UI.WebServiceSettings({});
this._persistLoadOnDemandItems=true;
this._enableOverlay=true;
this._enabled=true;
this._visible=true;
this._openedItem=null;
this._lastOpenedItem=null;
this._childrenDetached=false;
this._originalZIndex=null;
this._defaultZIndex=7000;
this._zIndexIncrementDepth=0;
this._fireEvents=true;
this._webServiceLoader=null;
this._loadingTemplate="";
this._onMouseOutDelegate=null;
this._onClickDelegate=null;
this._onResizeDelegate=null;
this._aboutToCollapse=false;
this._rightToLeft=null;
this._skin=null;
};
Telerik.Web.UI.RadMenu._createChildControls=function(_1f,_20){
var _21=_1f.get_itemData();
if(!_21){
return;
}
var _22=$telerik.getChildrenByTagName(_1f.get_childListElement(),"li");
for(var i=0;i<_21.length;i++){
var _24=new Telerik.Web.UI.RadMenuItem();
_20.add(_24);
_24._initialize(_21[i],_22[i]);
}
};
Telerik.Web.UI.RadMenu._adjustChildrenWidth=function(_25,_26){
var _27=_25._getControl();
var _28=_25.get_items();
var _29=_28.get_count();
if(_26){
for(var i=0;i<_29;i++){
_28.getItem(i)._clearWidth();
}
}
var _2b=Telerik.Web.UI.RadMenu._getMaxChildWidth(_25)+"px";
Telerik.Web.UI.RadMenu._setChildrenWidth(_25,_2b);
};
Telerik.Web.UI.RadMenu._getMaxChildWidth=function(_2c){
var _2d=0;
var _2e=_2c._getControl();
var _2f=_2c.get_items();
var _30=_2f.get_count();
for(var i=0;i<_30;i++){
if(_2e.get_rightToLeft()){
var _32=_2f.getItem(i).get_imageElement();
if(_32){
_32.style.styleFloat="left";
_32.style.cssFloat="left";
}
}
var _33=_2f.getItem(i)._getWidth();
_2d=Math.max(_33,_2d);
}
if(_2c.get_groupSettings){
groupWidth=_2c.get_groupSettings().get_width();
if(groupWidth){
_2d=groupWidth;
}
}
return _2d;
};
Telerik.Web.UI.RadMenu._setChildrenWidth=function(_34,_35){
var _36=_34._getControl();
var _37=_34.get_items();
var _38=_37.get_count();
for(var i=0;i<_38;i++){
if(_36.get_rightToLeft()){
var _3a=_37.getItem(i).get_imageElement();
if(_3a){
_3a.style.styleFloat="right";
_3a.style.cssFloat="right";
}
}
_37.getItem(i)._setWidth(_35);
}
if($telerik.isSafari){
var _3b=_34.get_childListElement();
_3b.style.width=_35;
}
};
Telerik.Web.UI.RadMenu._adjustRootItemWidth=function(_3c,_3d){
var _3e=$get(_3c);
var _3f=Telerik.Web.UI.RadMenu._getMaxRootItemWidth(_3e,_3d||null);
Telerik.Web.UI.RadMenu._setRootItemWidth(_3e,_3f,_3d||null);
};
Telerik.Web.UI.RadMenu._getChildListElement=function(_40){
var _41=$telerik.getFirstChildByTagName(_40,"ul",0);
if(!_41){
var _42=$telerik.getFirstChildByTagName(_40,"div",0);
_41=$telerik.getFirstChildByTagName(_42,"ul",0);
if(!_41){
var _43=_42;
_42=$telerik.getFirstChildByTagName(_43,"div",0);
_41=$telerik.getFirstChildByTagName(_42,"ul",0);
}
}
return _41;
};
Telerik.Web.UI.RadMenu._getMaxRootItemWidth=function(_44,_45){
if(!_45){
_45=Telerik.Web.UI.RadMenu._getChildListElement(_44);
}
var _46=_45.childNodes;
var _47=_46.length;
var _48=0;
for(var i=0;i<_47;i++){
var _4a=_46[i];
if(_4a.nodeType===3){
continue;
}
var _4b=$telerik.getFirstChildByTagName(_4a,"a",0);
var _4c;
if(_4b){
_4c=_4b.offsetWidth;
}else{
_4c=_4a.offsetWidth;
}
_48=Math.max(_48,_4c);
}
return _48;
};
Telerik.Web.UI.RadMenu._setRootItemWidth=function(_4d,_4e,_4f){
if(!_4f){
_4f=Telerik.Web.UI.RadMenu._getChildListElement(_4d);
}
var _50=_4f.childNodes;
var _51=_50.length;
if($telerik.isOpera){
_4f.style.cssFloat="none";
}
if(_4e==0){
return;
}
for(var i=0;i<_51;i++){
var _53=_50[i];
if(_53.nodeType==3){
continue;
}
var _54=$telerik.getFirstChildByTagName(_53,"a",0);
if(!_54){
_54=_53;
}
var _55=_4e;
var _56=$telerik.getPaddingBox(_54).horizontal;
var _57=$telerik.getBorderBox(_54).horizontal;
_55-=_56+_57;
var _58=_54.style.width;
if(!_58||_55!=_58){
_54.style.width=_55+"px";
}
}
if($telerik.isSafari){
_4f.style.width=_4e;
}
if(_4d.style.width===""&&Telerik.Web.UI.RadMenu._requiresRightToLeft(_4d)){
_4d.style.width=_4e+"px";
}
};
Telerik.Web.UI.RadMenu._requiresRightToLeft=function(_59){
var _5a=_59;
while(_5a.nodeType!==9){
if(_5a.dir=="rtl"){
return true;
}
_5a=_5a.parentNode;
}
return false;
};
Telerik.Web.UI.RadMenu._adjustListWidth=function(_5b){
var _5c=_5b.get_childListElement();
var _5d=0;
for(var i=0;i<_5c.childNodes.length;i++){
var _5f=_5c.childNodes[i];
if(_5f.nodeType==3){
continue;
}
_5d+=_5f.offsetWidth;
_5f.style.clear="none";
}
_5c.style.width=_5d+"px";
};
Telerik.Web.UI.RadMenu.prototype={initialize:function(){
Telerik.Web.UI.RadMenu.callBaseMethod(this,"initialize");
var _60=this.get_element();
if(this.get_rightToLeft()){
this._initRightToLeft();
}
if(this._flow==Telerik.Web.UI.ItemFlow.Vertical){
var _61=this.get_element().id;
Telerik.Web.UI.RadMenu._adjustRootItemWidth(_61,this.get_childListElement());
}
this._originalZIndex=parseInt($telerik.getCurrentStyle(_60,"zIndex"));
if(!this._originalZIndex){
_60.style.zIndex=this._defaultZIndex;
this._originalZIndex=this._defaultZIndex;
}
this._onClickDelegate=Function.createDelegate(this,this._onClick);
$addHandler(document,"click",this._onClickDelegate);
if(!this.get_clickToOpen()){
if($telerik.isIE){
this._onMouseOutDelegate=Function.createDelegate(this,this._onMouseOut);
$addHandler(document,"mouseout",this._onMouseOutDelegate);
}
}
this._onResizeDelegate=Function.createDelegate(this,this._onResize);
$addHandler(window,"resize",this._onResizeDelegate);
this._eventMap.addHandlerForClassName("mouseover","rmItem",this._onItemMouseOver);
this._eventMap.addHandlerForClassName("mouseout","rmItem",this._onItemMouseOut);
this._eventMap.addHandlerForClassName("dragstart","rmItem",this._onItemDragStart);
this._eventMap.addHandlerForClassName("click","rmLink",this._onLinkClick);
this._eventMap.addHandlerForClassName("mouseover","rmLink",this._onLinkMouseOver);
this._eventMap.addHandlerForClassName("mouseout","rmLink",this._onLinkMouseOut);
this._eventMap.addHandlerForClassName("mousedown","rmLink",this._onLinkMouseDown);
this._eventMap.addHandlerForClassName("mouseup","rmLink",this._onLinkMouseUp);
this._eventMap.addHandlerForClassName("blur","rmLink",this._onLinkBlur);
this._eventMap.addHandlerForClassName("deactivate","rmLink",this._onLinkBlur);
this._eventMap.addHandlerForClassName("focus","rmLink",this._onLinkFocus);
this._eventMap.addHandlerForClassName("activate","rmLink",this._onLinkFocus);
this._eventMap.addHandlerForClassName("keydown","rmLink",this._onLinkKeyDown);
this._eventMap.addHandlerForClassName("mousedown","rmTopArrow",this._onTopArrowMouseDown);
this._eventMap.addHandlerForClassName("mouseup","rmTopArrow",this._onTopArrowMouseUp);
this._eventMap.addHandlerForClassName("mouseover","rmTopArrow",this._onTopArrowMouseOver);
this._eventMap.addHandlerForClassName("mouseout","rmTopArrow",this._onTopArrowMouseOut);
this._eventMap.addHandlerForClassName("click","rmTopArrow",this._onScrollArrowClicked);
this._eventMap.addHandlerForClassName("mousedown","rmBottomArrow",this._onBottomArrowMouseDown);
this._eventMap.addHandlerForClassName("mouseup","rmBottomArrow",this._onBottomArrowMouseUp);
this._eventMap.addHandlerForClassName("mouseover","rmBottomArrow",this._onBottomArrowMouseOver);
this._eventMap.addHandlerForClassName("mouseout","rmBottomArrow",this._onBottomArrowMouseOut);
this._eventMap.addHandlerForClassName("click","rmBottomArrow",this._onScrollArrowClicked);
this._eventMap.addHandlerForClassName("mousedown","rmLeftArrow",this._onLeftArrowMouseDown);
this._eventMap.addHandlerForClassName("mouseup","rmLeftArrow",this._onLeftArrowMouseUp);
this._eventMap.addHandlerForClassName("mouseover","rmLeftArrow",this._onLeftArrowMouseOver);
this._eventMap.addHandlerForClassName("mouseout","rmLeftArrow",this._onLeftArrowMouseOut);
this._eventMap.addHandlerForClassName("click","rmLeftArrow",this._onScrollArrowClicked);
this._eventMap.addHandlerForClassName("mousedown","rmRightArrow",this._onRightArrowMouseDown);
this._eventMap.addHandlerForClassName("mouseup","rmRightArrow",this._onRightArrowMouseUp);
this._eventMap.addHandlerForClassName("mouseover","rmRightArrow",this._onRightArrowMouseOver);
this._eventMap.addHandlerForClassName("mouseout","rmRightArrow",this._onRightArrowMouseOut);
this._eventMap.addHandlerForClassName("click","rmRightArrow",this._onScrollArrowClicked);
this._initializeScroller();
if(!this.get_enabled()){
this.set_enabled(false);
}
this._raiseEvent("load",null);
},dispose:function(){
Telerik.Web.UI.RadMenu.callBaseMethod(this,"dispose");
if(this._onClickDelegate){
$removeHandler(document,"click",this._onClickDelegate);
this._onClickDelegate=null;
}
if(this._onMouseOutDelegate){
$removeHandler(document,"mouseout",this._onMouseOutDelegate);
this._onMouseOutDelegate=null;
}
if(this._onResizeDelegate){
$removeHandler(window,"resize",this._onResizeDelegate);
this._onResizeDelegate=null;
}
if(this._eventMap){
this._eventMap.dispose();
this._eventMap=null;
}
if(this._scroller){
this._scroller.dispose();
this._scroller=null;
}
},repaint:function(){
if(this._flow==Telerik.Web.UI.ItemFlow.Vertical){
Telerik.Web.UI.RadMenu._adjustRootItemWidth(this.get_id(),this.get_childListElement());
}
},get_items:function(){
return this._getChildren();
},set_items:function(_62){
this._children=_62;
},get_enableScreenBoundaryDetection:function(){
return this._enableScreenBoundaryDetection;
},set_enableScreenBoundaryDetection:function(_63){
this._enableScreenBoundaryDetection=_63;
},get_enableAutoScroll:function(){
return this._enableAutoScroll;
},set_enableAutoScroll:function(_64){
this._enableAutoScroll=_64;
},get_autoScrollMinimumHeight:function(){
return this._autoScrollMinimumHeight;
},set_autoScrollMinimumHeight:function(_65){
this._autoScrollMinimumHeight=_65;
},get_autoScrollMinimumWidth:function(){
return this._autoScrollMinimumWidth;
},set_autoScrollMinimumWidth:function(_66){
this._autoScrollMinimumWidth=_66;
},get_childListElement:function(){
if(!this._childListElement){
var _67=this.get_element();
var _68=this._getScrollWrapElement();
if(_68){
_67=_68;
}
this._childListElement=$telerik.getFirstChildByTagName(_67,"ul",0);
}
return this._childListElement;
},get_expandAnimation:function(){
return this._expandAnimation;
},set_expandAnimation:function(_69){
var _6a=Sys.Serialization.JavaScriptSerializer.deserialize(_69);
this._expandAnimation=new Telerik.Web.UI.AnimationSettings(_6a);
},get_collapseAnimation:function(){
return this._collapseAnimation;
},set_collapseAnimation:function(_6b){
var _6c=Sys.Serialization.JavaScriptSerializer.deserialize(_6b);
this._collapseAnimation=new Telerik.Web.UI.AnimationSettings(_6c);
},get_defaultGroupSettings:function(){
return this._defaultGroupSettings;
},set_defaultGroupSettings:function(_6d){
var _6e=Sys.Serialization.JavaScriptSerializer.deserialize(_6d);
this._defaultGroupSettings=new Telerik.Web.UI.RadMenuItemGroupSettings(_6e);
},get_itemData:function(){
return this._itemData;
},set_itemData:function(_6f){
this._itemData=_6f;
},set_enabled:function(_70){
Telerik.Web.UI.RadMenu.callBaseMethod(this,"set_enabled",[_70]);
if(!this.get_isInitialized()){
return;
}
var _71=this.get_element();
var _72=this.get_items();
var _73=_72.get_count();
if(!_70){
_71.disabled="disabled";
this.disableEvents();
for(var i=0;i<_73;i++){
_72.getItem(i).disable();
}
}else{
_71.disabled="";
this.enableEvents();
for(var i=0;i<_73;i++){
_72.getItem(i).enable();
}
}
},get_allItems:function(){
return this._getAllItems();
},get_focusedItem:function(){
return this._focusedItem;
},get_openedItem:function(){
return this._openedItem;
},get_clickToOpen:function(){
return this._clickToOpen;
},set_clickToOpen:function(_75){
this._clickToOpen=_75;
},get_collapseDelay:function(){
return this._collapseDelay;
},set_collapseDelay:function(_76){
this._collapseDelay=_76;
},get_expandDelay:function(){
return this._expandDelay;
},set_expandDelay:function(_77){
this._expandDelay=_77;
},get_loadingTemplate:function(){
return this._loadingTemplate;
},set_loadingTemplate:function(_78){
this._loadingTemplate=_78;
},get_webServiceSettings:function(){
return this._webServiceSettings;
},set_webServiceSettings:function(_79){
var _7a=Sys.Serialization.JavaScriptSerializer.deserialize(_79);
this._webServiceSettings=new Telerik.Web.UI.WebServiceSettings(_7a);
},get_rightToLeft:function(){
if(this._rightToLeft===null){
this._rightToLeft=Telerik.Web.UI.RadMenu._requiresRightToLeft(this.get_element());
}
return this._rightToLeft;
},set_rightToLeft:function(_7b){
this._rightToLeft=_7b;
},set_clicked:function(_7c){
this._clicked=_7c;
},get_clicked:function(){
return this._clicked;
},get_enableRootItemScroll:function(){
return this._enableRootItemScroll;
},set_enableRootItemScroll:function(_7d){
this._enableRootItemScroll=_7d;
},saveClientState:function(){
var _7e=this._log._logEntries;
var _7f={logEntries:_7e};
return Sys.Serialization.JavaScriptSerializer.serialize(_7f);
},close:function(){
var _80=this.get_openedItem();
if(_80){
_80.close();
}
},disable:function(){
this.set_enabled(false);
},enable:function(){
this.set_enabled(true);
},disableEvents:function(){
this._fireEvents=false;
},enableEvents:function(){
this._fireEvents=true;
},focus:function(){
this.get_element().focus();
},findItemByText:function(_81){
return this._findItemByText(_81);
},findItemByUrl:function(_82){
return this._findItemByUrl(_82);
},findItemByAbsoluteUrl:function(_83){
return this._findItemByAbsoluteUrl(_83);
},findItemByValue:function(_84){
return this._findItemByValue(_84);
},findItemByAttribute:function(_85,_86){
return this._findItemByAttribute(_85,_86);
},get_allItems:function(){
return this._getAllItems();
},get_persistLoadOnDemandItems:function(){
return this._persistLoadOnDemandItems;
},set_persistLoadOnDemandItems:function(_87){
this._persistLoadOnDemandItems=_87;
},get_enableOverlay:function(){
return this._enableOverlay;
},set_enableOverlay:function(_88){
this._enableOverlay=_88;
},_isMainElementDescendant:function(_89){
return $telerik.isDescendant(this.get_element(),_89);
},_createChildControls:function(){
this._children=new Telerik.Web.UI.RadMenuItemCollection(this);
Telerik.Web.UI.RadMenu._createChildControls(this,this._children);
},_initializeScroller:function(){
var _8a=this._getScrollWrapElement();
if(_8a){
this._scroller=new Telerik.Web.UI.MenuItemScroller(this.get_childListElement(),this._flow);
var _8b=this.get_childListElement();
_8b.style.display="block";
var _8c=this._flow==Telerik.Web.UI.ItemFlow.Horizontal;
if(_8c){
Telerik.Web.UI.RadMenu._adjustListWidth(this);
}else{
Telerik.Web.UI.RadMenu._adjustChildrenWidth(this);
if(this.get_rightToLeft()&&$telerik.isIE&&_8b.firstChild){
_8b.style.width=_8b.firstChild.offsetWidth+"px";
_8b.parentNode.style.width=_8b.offsetWidth+"px";
}
}
this._scroller.initialize();
this._scroller.updateState();
if(this.get_rightToLeft()&&_8c){
_8b.style.cssFloat="left";
this._scroller.scrollToMaxPosition();
}
if(_8c&&$telerik.isIE6){
var _8d=this.get_element().offsetHeight+"px";
var _8e=$telerik.getElementByClassName(this.get_element(),"rmLeftArrow","a")||$telerik.getElementByClassName(this.get_element(),"rmLeftArrowDisabled","a");
if(_8e){
_8e.style.height=_8d;
}
var _8f=$telerik.getElementByClassName(this.get_element(),"rmRightArrow","a")||$telerik.getElementByClassName(this.get_element(),"rmRightArrowDisabled","a");
if(_8f){
_8f.style.height=_8d;
}
}
}
},_getScrollWrapElement:function(){
if(!this._scrollWrapElement){
var _90=$telerik.getFirstChildByTagName(this.get_element(),"div",0);
if(_90&&Sys.UI.DomElement.containsCssClass(_90,"rmScrollWrap")){
this._scrollWrapElement=_90;
}
}
return this._scrollWrapElement;
},_onMouseOut:function(e){
var _92=e.rawEvent.relatedTarget?e.rawEvent.relatedTarget:e.rawEvent.toElement;
var _93=this.get_element();
if(!_92&&!this._isMainElementDescendant(e.target)){
var _94=this;
setTimeout(function(){
_94.close();
},this.get_collapseDelay());
}
},_onClick:function(e){
if(!this._isMainElementDescendant(e.target)){
var _96=this.get_clickToOpen();
if(this._focusedItem||_96){
this.close();
if(this.get_clickToOpen()){
this.set_clicked(false);
}
}
}
},_onResize:function(e){
},_onItemMouseOver:function(e){
var _99=this._extractItemFromDomElement(e.eventMapTarget);
if(!_99.get_enabled()){
return true;
}
_99._preventClose();
if(this.get_clickToOpen()&&!this.get_clicked()){
return true;
}
if(_99._state==Telerik.Web.UI.RadMenuItemState.Open||_99._state==Telerik.Web.UI.RadMenuItemState.AboutToOpen){
return true;
}
var _9a=_99.get_parent();
var _9b=_9a.get_openedItem();
if(_9b&&_9b!=_99){
_9b._clearTimeout();
_9b._state=Telerik.Web.UI.RadMenuItemState.AboutToClose;
_9b._setTimeout(function(){
_9b.close();
_9b._timeoutRef=null;
},this.get_expandDelay());
}
if(_99.get_items().get_count()==0&&!_99._isWebServiceCallNeeded()){
return true;
}
this._lastOpenedItem=_99;
_99._state=Telerik.Web.UI.RadMenuItemState.AboutToOpen;
_99._setTimeout(function(){
_99.open();
_99._timeoutRef=null;
},this.get_expandDelay());
return true;
},_onItemMouseOut:function(e){
var _9d=this._extractItemFromDomElement(e.eventMapTarget);
if(!_9d.get_enabled()){
return true;
}
var _9e=e.eventMapRelatedTarget;
var _9f=_9d.get_element();
if(!_9e||_9f==_9e||$telerik.isDescendant(_9f,_9e)){
return true;
}
if(this._childrenDetached&&$telerik.isDescendant(_9d.get_parent()._getAnimationContainer(),_9e)){
return true;
}
if(this._scroller&&_9d.get_level()>0&&!$telerik.isDescendant(this.get_element(),_9e)){
var _a0=_9d;
while(_a0.get_level()>0){
_a0=_a0.get_parent();
}
this._onItemMouseOut({"eventMapTarget":_a0.get_element(),"eventMapRelatedTarget":_9e});
}
if(_9d._state==Telerik.Web.UI.RadMenuItemState.Closed||_9d._state==Telerik.Web.UI.RadMenuItemState.AboutToClose){
return true;
}
if(_9d._state==Telerik.Web.UI.RadMenuItemState.AboutToOpen){
_9d._clearTimeout();
_9d._state=Telerik.Web.UI.RadMenuItemState.Closed;
_9d.get_parent()._openedItem=null;
return true;
}
if(this.get_clickToOpen()){
return true;
}
_9d._state=Telerik.Web.UI.RadMenuItemState.AboutToClose;
_9d._setTimeout(function(){
_9d.close();
_9d._timeoutRef=null;
},this._collapseDelay);
return true;
},_onItemDragStart:function(e){
e.preventDefault();
return false;
},_onLinkClick:function(e){
var _a3=this._extractItemFromDomElement(e.eventMapTarget);
if(!_a3._click(e)){
e.preventDefault();
return false;
}
return true;
},_onLinkMouseOver:function(e){
var _a5=e.eventMapRelatedTarget;
var _a6=this._extractItemFromDomElement(e.eventMapTarget);
if(!_a6.get_enabled()){
return true;
}
var _a7=_a6.get_linkElement();
if(!_a5||_a7==_a5||$telerik.isDescendant(_a7,_a5)){
return true;
}
_a6._hovered=true;
_a6._updateImageSrc();
this._raiseEvent("mouseOver",new Telerik.Web.UI.RadMenuMouseOverEventArgs(_a6,e));
return true;
},_onLinkMouseOut:function(e){
var _a9=e.eventMapRelatedTarget;
var _aa=this._extractItemFromDomElement(e.eventMapTarget);
if(!_aa.get_enabled()){
return true;
}
var _ab=_aa.get_linkElement();
if(!_a9||!_ab){
return;
}
if(_ab==_a9||$telerik.isDescendant(_ab,_a9)){
return true;
}
_aa._hovered=false;
_aa._updateImageSrc();
this._raiseEvent("mouseOut",new Telerik.Web.UI.RadMenuMouseOutEventArgs(_aa,e));
return true;
},_onLinkMouseDown:function(e){
var _ad=this._extractItemFromDomElement(e.eventMapTarget);
if(!_ad.get_enabled()){
return true;
}
_ad._clicked=true;
_ad._updateLinkClass();
_ad._updateImageSrc();
return true;
},_onLinkMouseUp:function(e){
var _af=this._extractItemFromDomElement(e.eventMapTarget);
if(!_af.get_enabled()){
return true;
}
_af._clicked=false;
_af._updateLinkClass();
_af._updateImageSrc();
return true;
},_onLinkBlur:function(e){
var _b1=this._extractItemFromDomElement(e.eventMapTarget);
if(!_b1.get_enabled()){
return true;
}
_b1._focused=false;
_b1.blur();
return true;
},_onLinkFocus:function(e){
var _b3=this._extractItemFromDomElement(e.eventMapTarget);
if(!_b3.get_enabled()){
return true;
}
_b3._focused=true;
_b3.focus();
return true;
},_onLinkKeyDown:function(e){
var _b5=this._extractItemFromDomElement(e.eventMapTarget);
if(!_b5.get_enabled()){
return true;
}
return _b5._onKeyDown(e);
},_getScrollItem:function(_b6){
if(this._scroller&&Sys.UI.DomElement.containsCssClass(_b6.parentNode,"rmRootGroup")){
return this;
}
return this._extractItemFromDomElement(_b6);
},_onTopArrowMouseDown:function(e){
var _b8=this._getScrollItem(e.eventMapTarget);
_b8._onScrollArrowMouseDown(Telerik.Web.UI.ArrowPosition.Top);
},_onTopArrowMouseUp:function(e){
var _ba=this._getScrollItem(e.eventMapTarget);
_ba._onScrollArrowMouseUp(Telerik.Web.UI.ArrowPosition.Top);
},_onTopArrowMouseOver:function(e){
var _bc=this._getScrollItem(e.eventMapTarget);
_bc._onScrollArrowMouseOver(Telerik.Web.UI.ArrowPosition.Top);
},_onTopArrowMouseOut:function(e){
var _be=this._getScrollItem(e.eventMapTarget);
_be._onScrollArrowMouseOut(Telerik.Web.UI.ArrowPosition.Top);
},_onBottomArrowMouseDown:function(e){
var _c0=this._getScrollItem(e.eventMapTarget);
_c0._onScrollArrowMouseDown(Telerik.Web.UI.ArrowPosition.Bottom);
},_onBottomArrowMouseUp:function(e){
var _c2=this._getScrollItem(e.eventMapTarget);
_c2._onScrollArrowMouseUp(Telerik.Web.UI.ArrowPosition.Bottom);
},_onBottomArrowMouseOver:function(e){
var _c4=this._getScrollItem(e.eventMapTarget);
_c4._onScrollArrowMouseOver(Telerik.Web.UI.ArrowPosition.Bottom);
},_onBottomArrowMouseOut:function(e){
var _c6=this._getScrollItem(e.eventMapTarget);
_c6._onScrollArrowMouseOut(Telerik.Web.UI.ArrowPosition.Bottom);
},_onLeftArrowMouseDown:function(e){
var _c8=this._getScrollItem(e.eventMapTarget);
_c8._onScrollArrowMouseDown(Telerik.Web.UI.ArrowPosition.Left);
},_onLeftArrowMouseUp:function(e){
var _ca=this._getScrollItem(e.eventMapTarget);
_ca._onScrollArrowMouseUp(Telerik.Web.UI.ArrowPosition.Left);
},_onLeftArrowMouseOver:function(e){
var _cc=this._getScrollItem(e.eventMapTarget);
_cc._onScrollArrowMouseOver(Telerik.Web.UI.ArrowPosition.Left);
},_onLeftArrowMouseOut:function(e){
var _ce=this._getScrollItem(e.eventMapTarget);
_ce._onScrollArrowMouseOut(Telerik.Web.UI.ArrowPosition.Left);
},_onRightArrowMouseDown:function(e){
var _d0=this._getScrollItem(e.eventMapTarget);
_d0._onScrollArrowMouseDown(Telerik.Web.UI.ArrowPosition.Right);
},_onRightArrowMouseUp:function(e){
var _d2=this._getScrollItem(e.eventMapTarget);
_d2._onScrollArrowMouseUp(Telerik.Web.UI.ArrowPosition.Right);
},_onRightArrowMouseOver:function(e){
var _d4=this._getScrollItem(e.eventMapTarget);
_d4._onScrollArrowMouseOver(Telerik.Web.UI.ArrowPosition.Right);
},_onRightArrowMouseOut:function(e){
var _d6=this._getScrollItem(e.eventMapTarget);
_d6._onScrollArrowMouseOut(Telerik.Web.UI.ArrowPosition.Right);
},_onScrollArrowClicked:function(e){
e.preventDefault();
e.stopPropagation();
return false;
},_onScrollArrowMouseDown:function(_d8){
if(!this._scroller){
return;
}
this._scroller.changeScrollSpeed(Telerik.Web.UI.ScrollerSpeed.Fast);
},_onScrollArrowMouseUp:function(_d9){
if(!this._scroller){
return;
}
this._scroller.changeScrollSpeed(Telerik.Web.UI.ScrollerSpeed.Slow);
},_onScrollArrowMouseOver:function(_da){
if(!this._scroller){
return;
}
var _db=1;
if(_da==Telerik.Web.UI.ArrowPosition.Top||_da==Telerik.Web.UI.ArrowPosition.Left){
_db=-1;
}
var _dc=this.get_openedItem();
if(_dc){
_dc.close();
}
this._scroller.startScroll(Telerik.Web.UI.ScrollerSpeed.Slow,_db);
},_onScrollArrowMouseOut:function(_dd){
if(!this._scroller){
return;
}
this._scroller.stopScroll();
},_childrenCleared:function(_de){
if(_de._slideWrapElement){
_de._slideWrapElement.outerHTML="";
_de._slideWrapElement=null;
_de._scrollWrapElement=null;
}
_de._linkElement=null;
_de._childListElement=null;
_de._animatedElement=null;
_de._animationContainer=null;
_de._itemsLoaded=false;
_de._hasItems=false;
if(_de._originalExpandMode){
_de.set_expandMode(_de._originalExpandMode);
}
if(_de._updateTextElementClass){
_de._updateTextElementClass();
}
Telerik.Web.UI.RadMenu.callBaseMethod(this,"_childrenCleared",[_de]);
},_childInserted:function(_df,_e0,_e1){
if(_e1._setHasItems){
_e1._setHasItems(true);
}
Telerik.Web.UI.RadMenu.callBaseMethod(this,"_childInserted",[_df,_e0,_e1]);
if(_e1._state&&_e1._state==Telerik.Web.UI.RadMenuItemState.Open){
if(_e0._getWidth()>0){
Telerik.Web.UI.RadMenu._adjustChildrenWidth(_e1);
}
}
},_childRemoved:function(_e2,_e3){
_e2.get_text();
var _e4=_e2.get_element();
if(_e3.get_items().get_count()==0){
if(_e3._slide){
_e3._slide.dispose();
_e3._slide=null;
}
_e4=$telerik.getFirstChildByTagName(_e3.get_element(),"div",0);
_e3._linkElement=null;
_e3._childListElement=null;
_e3._scrollWrapElement=null;
_e3._slideWrapElement=null;
_e3._animatedElement=null;
_e3._animationContainer=null;
_e3._hasItems=false;
if(_e3._updateTextElementClass){
_e3._updateTextElementClass();
}
}
if(_e4){
_e4.outerHTML="";
if(_e4.parentNode){
_e4.parentNode.removeChild(_e4);
}
_e4=null;
}
var _e5=_e3.get_items().get_count();
if(_e5>0){
var _e6=_e3.get_items().getItem(0).get_element();
if(_e6&&!Sys.UI.DomElement.containsCssClass(_e6,"rmFirst")){
_e6.className+=" rmFirst";
}
}
var _e7=_e5-1;
if(_e5>0){
var _e8=_e3.get_items().getItem(_e7).get_element();
if(_e8&&!Sys.UI.DomElement.containsCssClass(_e8,"rmLast")){
_e8.className+=" rmLast";
}
}
Telerik.Web.UI.RadMenu.callBaseMethod(this,"_childRemoved",[_e2,_e3]);
if(_e3._state&&_e3._state==Telerik.Web.UI.RadMenuItemState.Open){
Telerik.Web.UI.RadMenu._adjustChildrenWidth(_e3,true);
}
},_getExtendedItemClickingEventArgs:function(_e9){
return _e9;
},_getExtendedItemClickedEventArgs:function(_ea){
return _ea;
},_incrementZIndex:function(_eb){
if(this._zIndexIncrementDepth==0){
var _ec=this.get_element();
_ec.style.zIndex=this._originalZIndex+_eb;
}
this._zIndexIncrementDepth++;
},_restoreZIndex:function(){
if(this._zIndexIncrementDepth>0){
this._zIndexIncrementDepth--;
}
if(this._zIndexIncrementDepth==0){
var _ed=this.get_element();
_ed.style.zIndex=this._originalZIndex;
}
},_getRtlClassName:function(){
return "rmRtl";
},_getMainElement:function(){
return this.get_element();
},_initRightToLeft:function(){
var _ee=this._getMainElement();
_ee.dir="ltr";
if(_ee.className.indexOf("rmRtl")<0){
_ee.className=String.format("{0} {1}",_ee.className,this._getRtlClassName());
if(this._skin){
_ee.className=String.format("{0} RadMenu_{1}_rtl",_ee.className,this._skin);
}
}
for(var i=0;i<this.get_items().get_count();i++){
var _f0=this.get_items().getItem(i);
var _f1=_f0.get_imageElement();
if(_f1){
_f1.style.styleFloat="left";
_f1.style.cssFloat="left";
_f0.get_linkElement().style.width=_f0._getWidth()+"px";
_f1.style.styleFloat="right";
_f1.style.cssFloat="right";
}
}
},_postback:function(_f2){
if(!this._postBackReference){
return;
}
var _f3=this._postBackReference.replace("arguments",_f2);
eval(_f3);
},_raiseEvent:function(_f4,_f5){
if(this._fireEvents){
this.raiseEvent(_f4,_f5);
}
},_initializeWebServiceLoader:function(){
this._webServiceLoader=new Telerik.Web.UI.WebServiceLoader(this.get_webServiceSettings());
this._webServiceLoader.add_loadingStarted(Function.createDelegate(this,this._onItemLoadingStarted));
this._webServiceLoader.add_loadingSuccess(Function.createDelegate(this,this._onItemLoadingSuccess));
this._webServiceLoader.add_loadingError(Function.createDelegate(this,this._onItemLoadingError));
},_loadChildrenFromWebService:function(_f6){
if(!this._webServiceLoader){
this._initializeWebServiceLoader();
}
var _f7={};
var _f8=new Telerik.Web.UI.RadMenuItemPopulatingEventArgs(_f6,_f7);
this._raiseEvent("itemPopulating",_f8);
if(_f8.get_cancel()){
return;
}
var _f9={Text:_f6.get_text(),Value:_f6.get_value(),ExpandMode:_f6.get_expandMode()};
var _fa={item:_f9,context:_f7};
this._webServiceLoader.loadData(_fa,_f6);
},_onItemLoadingStarted:function(_fb,_fc){
var _fd=_fc.get_context();
_fd._onChildrenLoading();
},_onItemLoadingSuccess:function(_fe,_ff){
var _100=_ff.get_data();
var item=_ff.get_context();
var _102=item.get_items();
for(i=0;i<_100.length;i++){
var _104=_100[i];
var _105=new Telerik.Web.UI.RadMenuItem();
_105._loadFromDictionary(_104);
if(_105.get_navigateUrl()===""){
_105.set_navigateUrl("#");
}
_102.add(_105);
}
item._onChildrenLoaded();
if(this.get_persistLoadOnDemandItems()){
this.trackChanges();
item.set_expandMode(Telerik.Web.UI.MenuItemExpandMode.ClientSide);
var _106=_102.get_count();
for(var i=0;i<_106;i++){
this._log.logInsert(_102.getItem(i));
}
this.commitChanges();
}
var _107=new Telerik.Web.UI.RadMenuItemPopulatedEventArgs(item);
this._raiseEvent("itemPopulated",_107);
},_onItemLoadingError:function(_108,_109){
var _10a=_109.get_message();
var item=_109.get_context();
item._onChildrenLoadingError();
var _10c=new Telerik.Web.UI.RadMenuItemPopulationFailedEventArgs(item,_10a);
this._raiseEvent("itemPopulationFailed",_10c);
if(_10c.get_cancel()){
return;
}
alert(_10a);
},add_mouseOver:function(_10d){
this.get_events().addHandler("mouseOver",_10d);
},remove_mouseOver:function(_10e){
this.get_events().removeHandler("mouseOver",_10e);
},add_mouseOut:function(_10f){
this.get_events().addHandler("mouseOut",_10f);
},remove_mouseOut:function(_110){
this.get_events().removeHandler("mouseOut",_110);
},add_itemFocus:function(_111){
this.get_events().addHandler("itemFocus",_111);
},remove_itemFocus:function(_112){
this.get_events().removeHandler("itemFocus",_112);
},add_itemBlur:function(_113){
this.get_events().addHandler("itemBlur",_113);
},remove_itemBlur:function(_114){
this.get_events().removeHandler("itemBlur",_114);
},add_itemClicking:function(_115){
this.get_events().addHandler("itemClicking",_115);
},remove_itemClicking:function(_116){
this.get_events().removeHandler("itemClicking",_116);
},add_itemClicked:function(_117){
this.get_events().addHandler("itemClicked",_117);
},remove_itemClicked:function(_118){
this.get_events().removeHandler("itemClicked",_118);
},add_itemOpening:function(_119){
this.get_events().addHandler("itemOpening",_119);
},remove_itemOpening:function(_11a){
this.get_events().removeHandler("itemOpening",_11a);
},add_itemOpened:function(_11b){
this.get_events().addHandler("itemOpened",_11b);
},remove_itemOpened:function(_11c){
this.get_events().removeHandler("itemOpened",_11c);
},add_itemClosing:function(_11d){
this.get_events().addHandler("itemClosing",_11d);
},remove_itemClosing:function(_11e){
this.get_events().removeHandler("itemClosing",_11e);
},add_itemClosed:function(_11f){
this.get_events().addHandler("itemClosed",_11f);
},remove_itemClosed:function(_120){
this.get_events().removeHandler("itemClosed",_120);
},add_load:function(_121){
this.get_events().addHandler("load",_121);
},remove_load:function(_122){
this.get_events().removeHandler("load",_122);
},add_itemPopulating:function(_123){
this.get_events().addHandler("itemPopulating",_123);
},remove_itemPopulating:function(_124){
this.get_events().removeHandler("itemPopulating",_124);
},add_itemPopulated:function(_125){
this.get_events().addHandler("itemPopulated",_125);
},remove_itemPopulated:function(_126){
this.get_events().removeHandler("itemPopulated",_126);
},add_itemPopulationFailed:function(_127){
this.get_events().addHandler("itemPopulationFailed",_127);
},remove_itemPopulationFailed:function(_128){
this.get_events().removeHandler("itemPopulationFailed",_128);
}};
Telerik.Web.UI.RadMenu.registerClass("Telerik.Web.UI.RadMenu",Telerik.Web.UI.ControlItemContainer);
Type.registerNamespace("Telerik.Web.UI");
Telerik.Web.UI.RadMenuItemState=function(){
};
Telerik.Web.UI.RadMenuItemState.prototype={Closed:0,Open:1,AboutToClose:2,AboutToOpen:3};
Telerik.Web.UI.RadMenuItemState.registerEnum("Telerik.Web.UI.RadMenuItemState");
Telerik.Web.UI.MenuItemExpandMode=function(){
};
Telerik.Web.UI.MenuItemExpandMode.prototype={ClientSide:0,WebService:1};
Telerik.Web.UI.MenuItemExpandMode.registerEnum("Telerik.Web.UI.MenuItemExpandMode");
Telerik.Web.UI.RadMenuItem=function(){
Telerik.Web.UI.RadMenuItem.initializeBase(this);
this._zIndexStep=1000;
this._scrollWrapCssClass="rmScrollWrap";
this._groupCssClass="rmGroup";
this._levelCssClass="rmLevel";
this._horizontalCssClass="rmHorizontal";
this._verticalCssClass="rmVertical";
this._leftImageCssClass="rmLeftImage";
this._defaultDisabledCssClass="rmDisabled";
this._defaultExpandedCssClass="rmExpanded";
this._defaultFocusedCssClass="rmFocused";
this._defaultClickedCssClass="rmClicked";
this._defaultScrollSize=16;
this._menu=null;
this._groupSettings=new Telerik.Web.UI.RadMenuItemGroupSettings({});
this._imageUrl=null;
this._flow=null;
this._openedItem=null;
this._timeoutRef=null;
this._focused=false;
this._clicked=false;
this._hovered=false;
this._isImageOnly=null;
this._itemsLoaded=false;
this._itemsLoading=false;
this._adjustSiblingsWidthOnShow=false;
this._state=Telerik.Web.UI.RadMenuItemState.Closed;
this._linkElement=null;
this._imageElement=null;
this._childListElement=null;
this._scrollWrapElement=null;
this._slideWrapElement=null;
this._animatedElement=null;
this._animationContainer=null;
this._childrenDetached=false;
this._autoScrollActive=false;
this._animationContainerOriginalSize=null;
this._collapseAnimationEndedDelegate=null;
this._slide=null;
this._scroller=null;
this._styleCssText=null;
this._hasItems=null;
};
Telerik.Web.UI.RadMenuItem.prototype={_initialize:function(json,_12a){
Telerik.Web.UI.RadMenuItem.callBaseMethod(this,"_initialize",[json,_12a]);
var menu=this.get_menu();
if(typeof (json.groupSettings)!="undefined"){
this._groupSettings=new Telerik.Web.UI.RadMenuItemGroupSettings(json.groupSettings,menu.get_defaultGroupSettings());
}
this._initializeAnimation();
this._updateTextElementClass();
this._renderAccessKey();
this._originalExpandMode=this.get_expandMode();
},_dispose:function(){
Telerik.Web.UI.RadMenuItem.callBaseMethod(this,"_dispose");
if(this._collapseAnimationEndedDelegate){
if(this._slide){
this._slide.remove_collapseAnimationEnded(this._collapseAnimationEndedDelegate);
}
this._collapseAnimationEndedDelegate=null;
}
if(this._slide){
this._slide.dispose();
this._slide=null;
}
if(this._scroller){
this._scroller.dispose();
this._scroller=null;
}
var _12c=this._getAnimationContainer();
if(_12c){
_12c._item=null;
_12c._itemTypeName=null;
}
this._clearTimeout();
},_initializeRenderedItem:function(){
Telerik.Web.UI.RadMenuItem.callBaseMethod(this,"_initializeRenderedItem");
this._initializeAnimation();
this._updateTextElementClass();
this._updateLinkClass();
this._renderAccessKey();
},get_linkElement:function(){
if(!this._linkElement){
this._linkElement=$telerik.getFirstChildByTagName(this.get_element(),"a",0);
}
return this._linkElement;
},get_childListElement:function(){
if(!this._childListElement){
var _12d=this._getSlideWrapElement();
if(_12d){
var _12e=_12d;
var _12f=this._getScrollWrapElement();
if(_12f){
_12e=_12f;
}
this._childListElement=$telerik.getFirstChildByTagName(_12e,"ul",0);
}
}
return this._childListElement;
},get_imageElement:function(){
if(!this._imageElement){
var _130=this.get_linkElement();
var _131=this.get_element();
this._imageElement=$telerik.getFirstChildByTagName(_130||_131,"img",0);
}
return this._imageElement;
},get_textElement:function(){
var link=this.get_linkElement();
if(link){
return $telerik.getChildByClassName(link,"rmText",0);
}else{
return null;
}
},get_menu:function(){
return this._getControl();
},get_items:function(){
return this._getChildren();
},set_text:function(_133){
Telerik.Web.UI.RadMenuItem.callBaseMethod(this,"set_text",[_133]);
if(this._state!=Telerik.Web.UI.RadMenuItemState.Closed){
this._clearWidth();
this._setWidth(this._getWidth()+"px");
}else{
if(this._getParentFlow()==Telerik.Web.UI.ItemFlow.Vertical){
this._adjustSiblingsWidthOnShow=true;
}
}
},get_navigateUrl:function(){
return this._getNavigateUrl();
},set_navigateUrl:function(_134){
this._properties.setValue("navigateUrl",_134,true);
if(this.get_linkElement()){
this.get_linkElement().href=_134;
}
},get_target:function(){
return this._properties.getValue("target",null);
},set_target:function(_135){
this._properties.setValue("target",_135);
if(this.get_linkElement()){
this.get_linkElement().target=_135;
}
},get_groupSettings:function(){
return this._groupSettings;
},set_groupSettings:function(_136){
this._groupSettings=_136;
},_getNextItem:function(){
var _137=this.get_parent().get_items();
var _138=this.get_index();
if(_138==_137.get_count()-1){
return _137.getItem(0);
}
return _137.getItem(_138+1);
},_getPreviousItem:function(){
var _139=this.get_parent().get_items();
var _13a=this.get_index();
if(_13a==0){
return _139.getItem(_139.get_count()-1);
}
return _139.getItem(_13a-1);
},_focus:function(e){
this._setFocused(true,e);
},_blur:function(e){
this._setFocused(false,e);
},_setFocused:function(_13d,e){
if(_13d){
this._doFocus(e);
}else{
this._doBlur(e);
}
this._focused=_13d;
this._updateLinkClass();
},_open:function(e){
var menu=this.get_menu();
var _141=new Telerik.Web.UI.RadMenuItemOpeningEventArgs(this,e);
menu._raiseEvent("itemOpening",_141);
if(_141.get_cancel()){
return;
}
if(this._isWebServiceCallNeeded()){
this._loadChildrenFromWebService();
return;
}
this._doOpen(e);
},_close:function(e){
if(this.get_isSeparator()||this._state==Telerik.Web.UI.RadMenuItemState.Closed){
return;
}
var _143=new Telerik.Web.UI.RadMenuItemClosingEventArgs(this,e);
this.get_menu()._raiseEvent("itemClosing",_143);
if(_143.get_cancel()){
return;
}
if(this._openedItem){
this._openedItem._close(e);
}
var _144=this.get_parent();
_144._openedItem=null;
if(!this._getAnimationContainer()){
return;
}
this._state=Telerik.Web.UI.RadMenuItemState.Closed;
var menu=this.get_menu();
if(this.get_level()==0){
menu._aboutToCollapse=true;
}
if(!this._getIsImageOnly()){
this.get_element().style.zIndex=0;
}
this._slide.collapse();
this._updateLinkClass();
this._updateImageSrc();
var _146=new Telerik.Web.UI.RadMenuItemClosedEventArgs(this,e);
this.get_menu()._raiseEvent("itemClosed",_146);
this._closeChildren(e);
},get_nextItem:function(){
return this.get_nextSibling();
},get_previousItem:function(){
return this.get_previousSibling();
},get_focusedItem:function(){
return this._focusedItem;
},get_isSeparator:function(){
return this._properties.getValue("isSeparator",false);
},set_isSeparator:function(_147){
this._properties.setValue("isSeparator",_147,true);
},get_openedItem:function(){
return this._openedItem;
},get_templated:function(){
return this._properties.getValue("templated",false)==true;
},get_cssClass:function(){
return this._properties.getValue("cssClass","");
},set_cssClass:function(_148){
this._properties.setValue("cssClass",_148,true);
},get_focused:function(){
return this._focused;
},set_focused:function(_149){
this._setFocused(_149);
},get_hoveredImageUrl:function(){
return this._properties.getValue("hoveredImageUrl",null);
},set_hoveredImageUrl:function(_14a){
this._properties.setValue("hoveredImageUrl",_14a,true);
this._updateImageSrc();
},get_clickedImageUrl:function(){
return this._properties.getValue("clickedImageUrl",null);
},set_clickedImageUrl:function(_14b){
this._properties.setValue("clickedImageUrl",_14b,true);
this._updateImageSrc();
},get_imageUrl:function(){
if(this._imageUrl){
return this._imageUrl;
}
if(this._imageUrl=this._properties.getValue("imageUrl",null)){
return this._imageUrl;
}
this._imageUrl=this._getCurrentImageUrl();
return this._imageUrl;
},_getCurrentImageUrl:function(){
var _14c=null;
var _14d=this.get_imageElement();
if(_14d){
_14c=_14d.src;
}
return _14c;
},set_imageUrl:function(_14e){
this._imageUrl=_14e;
this._properties.setValue("imageUrl",_14e,true);
this._updateImageSrc();
},set_visible:function(_14f){
var _150=this.get_visible()!=_14f;
if(!_150){
return;
}
Telerik.Web.UI.RadMenuItem.callBaseMethod(this,"set_visible",[_14f]);
if(this._getParentFlow()==Telerik.Web.UI.ItemFlow.Vertical){
this._adjustSiblingsWidthOnShow=true;
}
this._clearWidth();
var _151=_14f?"":"none";
var _152=this.get_linkElement();
var _153=this.get_textElement();
var _154;
if(_152){
_154=_152;
}else{
if(_153){
_154=_153;
}
}
if(this.get_isSeparator()||this.get_templated()){
_154=this.get_element().childNodes[0];
}
_154.style.display=_151;
if(this.get_visible()){
this.get_element().style.cssText=this._styleCssText;
}else{
this._styleCssText=this.get_element().style.cssText;
this.get_element().style.cssText="padding:0px;margin:0px;height:0px;overflow:hidden;";
}
var _155=this._getParentFlow();
if(_155==Telerik.Web.UI.ItemFlow.Vertical){
if(!_14f){
this._clearSiblingsWidth();
}
var _156=this.get_parent();
if(_156.get_element().offsetWidth>0){
Telerik.Web.UI.RadMenu._adjustChildrenWidth(_156);
}
}
},get_expandedImageUrl:function(){
return this._properties.getValue("expandedImageUrl",null);
},set_expandedImageUrl:function(_157){
this._properties.setValue("expandedImageUrl",_157,true);
this._updateImageSrc();
},get_disabledImageUrl:function(){
return this._properties.getValue("disabledImageUrl",null);
},set_disabledImageUrl:function(_158){
this._properties.setValue("disabledImageUrl",_158,true);
this._updateImageSrc();
},get_disabledCssClass:function(){
return this._properties.getValue("disabledCssClass",this._defaultDisabledCssClass);
},set_disabledCssClass:function(_159){
this._properties.setValue("disabledCssClass",_159,true);
this._updateLinkClass();
},get_expandedCssClass:function(){
return this._properties.getValue("expandedCssClass",this._defaultExpandedCssClass);
},set_expandedCssClass:function(_15a){
this._properties.setValue("expandedCssClass",_15a,true);
this._updateLinkClass();
},get_focusedCssClass:function(){
return this._properties.getValue("focusedCssClass",this._defaultFocusedCssClass);
},set_focusedCssClass:function(_15b){
this._properties.setValue("focusedCssClass",_15b,true);
this._updateLinkClass();
},get_clickedCssClass:function(){
return this._properties.getValue("clickedCssClass",this._defaultClickedCssClass);
},set_clickedCssClass:function(_15c){
this._properties.setValue("clickedCssClass",_15c,true);
this._updateLinkClass();
},get_postBack:function(){
return this._properties.getValue("postBack",true)==true;
},set_postBack:function(_15d){
this._properties.setValue("postBack",_15d);
},get_expandMode:function(){
return this._properties.getValue("expandMode",Telerik.Web.UI.MenuItemExpandMode.ClientSide);
},set_expandMode:function(_15e){
this._properties.setValue("expandMode",_15e,true);
},set_enabled:function(_15f){
Telerik.Web.UI.RadMenuItem.callBaseMethod(this,"set_enabled",[_15f]);
this._updateLinkClass();
this._updateImageSrc();
},open:function(){
this._open(null);
},close:function(){
this._close(null);
},hide:function(){
this.set_visible(false);
},show:function(){
this.set_visible(true);
},focus:function(){
this._setFocused(true,null);
},blur:function(){
this._blur(null);
},focusFirstChild:function(e){
var _161=this.get_items();
if(_161.get_count()==0){
return;
}
var item=_161.getItem(0);
var _163=item;
while(!item._canFocus()){
item=item._getNextItem();
if(item==_163){
return;
}
}
item._focus(e||null);
},focusLastChild:function(e){
var _165=this.get_items();
if(_165.get_count()==0){
return;
}
var item=_165.getItem(_165.get_count()-1);
var _167=item;
while(!item._canFocus()){
item=item._getPreviousItem();
if(item==_167){
return;
}
}
item._focus(e||null);
},focusNextItem:function(e){
var item=this._getNextItem();
while(!item._canFocus()){
item=item._getNextItem();
}
item._focus(e||null);
},focusPreviousItem:function(e){
var item=this._getPreviousItem();
while(!item._canFocus()){
item=item._getPreviousItem();
}
item._focus(e||null);
},disable:function(){
this.set_enabled(false);
},enable:function(){
this.set_enabled(true);
},click:function(){
this._click(null);
},_modifyPositionClass:function(){
var _16c=this._getVisibleIndex();
if(_16c==0){
var _16d=this._getNextVisibleSibling(this.get_index());
var _16e=this.get_visible()?"rmItem":"rmItem rmFirst";
var _16f=this.get_visible()?"rmItem rmFirst":"rmItem";
this._replaceCssClass(this.get_element(),_16e,_16f);
this._replaceCssClass(_16d.get_element(),_16f,_16e);
}
if(_16c==this._getVisibleSiblingsCount()){
var _170=this._getPreviousVisibleSibling(this.get_index());
var _16e=this.get_visible()?"rmItem":"rmItem rmLast";
var _16f=this.get_visible()?"rmItem rmLast":"rmItem";
this._replaceCssClass(this.get_element(),_16e,_16f);
this._replaceCssClass(_170.get_element(),_16f,_16e);
}
},_getSiblings:function(){
return this.get_parent().get_items();
},_getVisibleIndex:function(){
var _171=this._getSiblings();
if(this.get_index()==0){
return 0;
}
var _172=0;
for(var i=0;i<=this.get_index();i++){
if(_171.getItem(i).get_visible()){
_172++;
}
}
return _172;
},_getVisibleSiblingsCount:function(){
var _174=this._getSiblings();
var _175=0;
for(var i=0;i<_174.get_count();i++){
if(_174.getItem(i).get_visible()){
_175++;
}
}
return _175;
},_getPreviousVisibleSibling:function(_177){
var _178=this.get_parent().get_items();
for(var i=_177-1;i>=0;i--){
var item=_178.getItem(i);
if(item.get_visible()){
return item;
}
}
return null;
},_getNextVisibleSibling:function(_17b){
var _17c=this.get_parent().get_items();
for(var i=_17b+1;i<_17c.get_count();i++){
var item=_17c.getItem(i);
if(item.get_visible()){
return item;
}
}
return null;
},_determineCssClass:function(){
var _17f="rmItem";
var _180=this.get_parent();
var _181=_180.get_items().get_count();
var _182=_181-1;
if(this.get_index()==0&&_181>0){
var _183=_180.get_items().getItem(1);
if(_183&&_183.get_element()){
if(_183.get_index()==_182){
this._replaceCssClass(_183.get_element(),"rmItem rmFirst","rmItem rmLast");
}else{
this._replaceCssClass(_183.get_element(),"rmItem rmFirst","rmItem");
}
}
_17f+=" "+"rmFirst";
}
if(this.get_index()==_182&&_181>0){
var _184=_180.get_items().getItem(_182-1);
if(_184&&_184.get_element()){
if(_184.get_index()==0){
this._replaceCssClass(_184.get_element(),"rmItem rmLast","rmItem rmFirst");
}else{
this._replaceCssClass(_184.get_element(),"rmItem rmLast","rmItem");
}
}
_17f+=" "+"rmLast";
}
if(this.get_isSeparator()){
_17f="rmItem"+" "+"rmSeparator";
}
return _17f;
},_renderImage:function(html){
html[html.length]="<img alt='' src='"+this.get_imageUrl()+"' class='rmLeftImage'";
if(!this.get_enabled()){
html[html.length]=" disabled='disabled'";
}
html[html.length]="/>";
return html;
},_renderLink:function(html){
if(this.get_isSeparator()){
return;
}
var href="#";
var _188=this.get_navigateUrl();
if(_188&&_188!="#"){
href=_188;
}
html[html.length]="<a href=\"";
html[html.length]=href;
html[html.length]="\" ";
var _189=this.get_target();
if(_189){
html[html.length]="target=\"";
html[html.length]=_189;
html[html.length]="\" ";
}
if(this.get_enabled()){
html[html.length]="class=\"rmLink\"";
}else{
html[html.length]="class=\"rmLink rmDisabled\"";
}
html[html.length]=">";
return html;
},_renderChildList:function(html){
var _18b=this.get_items().get_count();
if(_18b>0){
html[html.length]="<div class='rmSlide'>";
var _18c=this.get_groupSettings();
var _18d=_18c.get_flow();
if(_18d==0){
_18d="rmVertical";
}else{
_18d="rmHorizontal";
}
var _18e;
if(this._getRenderScroll()){
var _18f="rmLevel"+(this.get_level()+1);
var _190="rmScrollWrap"+" "+"rmGroup"+" "+_18f;
html[html.length]="<div class='"+_190+"' style='";
var _191=_18c.get_width();
var _192=_18c.get_height();
if(_191){
html[html.length]="width :"+_191+";";
}
if(_192){
html[html.length]="height :"+_192+";";
}
html[html.length]=" '>";
_18e=_18d;
}else{
var _18f="rmLevel"+(this.get_level()+1);
_18e=_18d+" "+"rmGroup"+" "+_18f;
}
html[html.length]="<ul class='"+_18e+"'>";
for(var i=0;i<_18b;i++){
this.get_items().getItem(i)._render(html);
}
html[html.length]="</ul></div>";
if(this._getRenderScroll()){
html[html.length]="</div>";
}
}
},_doOpen:function(e){
var menu=this.get_menu();
if(this.get_items().get_count()==0){
return;
}
this._ensureChildControls();
var _196=this.get_parent();
menu._aboutToCollapse=false;
if(_196!=menu&&_196._state!=Telerik.Web.UI.RadMenuItemState.Open){
_196._open(e);
}
var _197=this._getAnimationContainer();
if(!_197){
return;
}
_196._openedItem=this;
this._state=Telerik.Web.UI.RadMenuItemState.Open;
var _198=this.get_childListElement();
_198.style.display="block";
_197.style.visibility="hidden";
this._slide.show();
if(this._groupSettings.get_flow()==Telerik.Web.UI.ItemFlow.Vertical){
Telerik.Web.UI.RadMenu._adjustChildrenWidth(this);
}else{
Telerik.Web.UI.RadMenu._adjustListWidth(this);
}
if(this._adjustSiblingsWidthOnShow){
this._adjustSiblingsWidth();
this._adjustSiblingsWidthOnShow=false;
}
this._updateChildListWidth();
this._resetAnimatedElementPosition();
this._slide.set_direction(this._getSlideDirection());
this._updateScrollWrapSize();
this._slide.updateSize();
this._positionChildContainer();
_197=this._getAnimationContainer();
if(this._scroller&&!this._autoScrollActive&&!this._fitsWindow()){
this._updateScrollSize();
this._positionChildContainer();
}
_197.style.visibility="visible";
this.get_element().style.zIndex=_196.get_items().get_count()-this.get_index();
_197.style.zIndex=_196.get_items().get_count()+1;
menu._incrementZIndex(this._zIndexStep);
if(this._scroller){
this._scroller.updateState();
if(this.get_menu().get_rightToLeft()&&this._groupSettings.get_flow()==Telerik.Web.UI.ItemFlow.Horizontal){
this.get_childListElement().style.cssFloat="left";
this._scroller.scrollToMaxPosition();
}
}
this._slide.expand();
this._updateLinkClass();
this._updateImageSrc();
var _199=new Telerik.Web.UI.RadMenuItemOpenedEventArgs(this,e);
this.get_menu()._raiseEvent("itemOpened",_199);
},_updateChildListWidth:function(){
var menu=this.get_menu();
if(this._groupSettings.get_flow()==Telerik.Web.UI.ItemFlow.Vertical&&menu.get_rightToLeft()&&$telerik.isIE){
var _19b=this.get_childListElement();
if(_19b.firstChild){
_19b.style.width=_19b.firstChild.offsetWidth+"px";
}
}
},_shouldInitializeChild:function(_19c){
return true;
},_createChildListElement:function(){
var _19d=document.createElement("ul");
var _19e=this.get_groupSettings();
var _19f=_19e.get_flow();
if(_19f==0){
_19f="rmVertical";
}else{
_19f="rmHorizontal";
}
var _1a0=_19f;
var _1a1=this._createSlideWrapElement();
var _1a2=_1a1.firstChild!=null;
if(_1a2){
_1a1.firstChild.appendChild(_19d);
}else{
var _1a3="rmLevel"+(this.get_level()+1);
_1a0+=" "+"rmGroup"+" "+_1a3;
_1a1.appendChild(_19d);
}
_19d.className=_1a0;
this.get_element().appendChild(_1a1);
this._initializeAnimation();
this._updateTextElementClass();
if(_1a2){
this._initializeScroller();
}
return _1a1;
},_createSlideWrapElement:function(){
var _1a4=document.createElement("div");
_1a4.className="rmSlide";
if(this._getRenderScroll()){
var _1a5=this._createScrollWrapElement();
_1a4.appendChild(_1a5);
}
return _1a4;
},_createScrollWrapElement:function(){
var _1a6=document.createElement("div");
var _1a7="rmLevel"+(this.get_level()+1);
var _1a8="rmScrollWrap"+" "+"rmGroup"+" "+_1a7;
_1a6.className=_1a8;
var _1a9=this.get_groupSettings();
var _1aa=_1a9.get_width();
var _1ab=_1a9.get_height();
if(_1aa){
_1a6.style.width=_1aa;
}
if(_1ab){
_1a6.style.height=_1ab;
}
return _1a6;
},_getRenderScroll:function(){
var _1ac;
var _1ad=this.get_groupSettings();
var _1ae=_1ad.get_width();
if(!_1ae){
_1ae=this.get_menu().get_defaultGroupSettings().get_width();
}
var _1af=_1ad.get_height();
if(!_1af){
_1af=this.get_menu().get_defaultGroupSettings().get_height();
}
var _1b0=_1ae||_1af;
return _1b0;
},_getChildElements:function(){
return $telerik.getChildrenByTagName(this.get_childListElement(),"li");
},_createItemCollection:function(){
var _1b1=new Telerik.Web.UI.RadMenuItemCollection(this);
Telerik.Web.UI.RadMenu._createChildControls(this,_1b1);
return _1b1;
},_getSlideWrapElement:function(){
if(!this._slideWrapElement){
var _1b2=$telerik.getFirstChildByTagName(this.get_element(),"div",1);
if(_1b2&&Sys.UI.DomElement.containsCssClass(_1b2,"rmSlide")){
this._slideWrapElement=_1b2;
}
}
return this._slideWrapElement;
},_getScrollWrapElement:function(){
if(!this._scrollWrapElement){
var _1b3=this._getSlideWrapElement();
if(_1b3){
this._scrollWrapElement=$telerik.getFirstChildByTagName(_1b3,"div",0);
}
}
return this._scrollWrapElement;
},_getAnimationContainer:function(){
if(!this._animationContainer){
var _1b4=this.get_templated()?1:0;
this._animationContainer=$telerik.getFirstChildByTagName(this.get_element(),"div",_1b4);
}
return this._animationContainer;
},_getAnimatedElement:function(){
if(!this._animatedElement){
this._animatedElement=this._getScrollWrapElement()||this.get_childListElement();
}
return this._animatedElement;
},_determineExpandDirection:function(){
var _1b5=this.get_groupSettings();
if(_1b5.get_expandDirection()!=Telerik.Web.UI.ExpandDirection.Auto){
return;
}
var _1b6=this._getParentFlow();
if(_1b6==Telerik.Web.UI.ItemFlow.Vertical){
if(this.get_menu().get_rightToLeft()){
_1b5.set_expandDirection(Telerik.Web.UI.ExpandDirection.Left);
}else{
_1b5.set_expandDirection(Telerik.Web.UI.ExpandDirection.Right);
}
}else{
_1b5.set_expandDirection(Telerik.Web.UI.ExpandDirection.Down);
}
},_getSlideDirection:function(){
var _1b7=this.get_groupSettings().get_expandDirection();
if(_1b7==Telerik.Web.UI.ExpandDirection.Auto){
return null;
}
return _1b7;
},_getParentFlow:function(){
var _1b8=this.get_parent();
if(!_1b8){
return null;
}
if(_1b8==this.get_menu()){
return _1b8._flow;
}else{
return _1b8.get_groupSettings().get_flow();
}
},_initializeAnimation:function(){
this._determineExpandDirection();
var _1b9=this._getAnimatedElement();
if(_1b9){
var menu=this.get_menu();
this._slide=new Telerik.Web.UI.Slide(_1b9,menu.get_expandAnimation(),menu.get_collapseAnimation(),menu.get_enableOverlay());
this._slide.initialize();
this._slide.set_direction(this._getSlideDirection());
this._collapseAnimationEndedDelegate=Function.createDelegate(this,this._onCollapseAnimationEnded);
this._slide.add_collapseAnimationEnded(this._collapseAnimationEndedDelegate);
}
},_getHasItems:function(){
if(this._hasItems===null){
this._hasItems=this.get_itemData()&&this.get_itemData().length>0;
}
return this._hasItems;
},_setHasItems:function(_1bb){
this._hasItems=_1bb;
},_updateTextElementClass:function(){
var _1bc=this.get_textElement();
if(!_1bc){
return;
}
var _1bd="rmText ";
if(this._getHasItems()||this.get_expandMode()==Telerik.Web.UI.MenuItemExpandMode.WebService){
_1bd+=" "+this._getExpandClassName();
}
_1bc.className=_1bd;
},_onCollapseAnimationEnded:function(_1be,e){
var menu=this.get_menu();
this.get_element().style.zIndex=0;
menu._restoreZIndex();
if(this.get_level()==0&&menu.get_rightToLeft()){
var _1c1=menu.get_element();
_1c1.style.cssText=_1c1.style.cssText;
}
},_initializeScroller:function(){
var _1c2=this._getScrollWrapElement();
if(_1c2){
this._scroller=new Telerik.Web.UI.MenuItemScroller(this.get_childListElement(),this.get_groupSettings().get_flow());
this._scroller.initialize();
}
},_isAutoScrollPossible:function(){
var menu=this.get_menu();
var _1c4=this._getMaximumExpandSize();
var _1c5=this._getAnimationContainer();
if(this.get_groupSettings().get_flow()==Telerik.Web.UI.ItemFlow.Vertical){
return (menu._autoScrollMinimumHeight<_1c4&&_1c4<=_1c5.offsetHeight);
}else{
return (menu._autoScrollMinimumWidth<_1c4&&_1c4<=_1c5.offsetWidth);
}
},_fitsWindow:function(){
var _1c6=this._getMaximumExpandSize();
var _1c7=this._getAnimationContainer();
if(this.get_groupSettings().get_flow()==Telerik.Web.UI.ItemFlow.Vertical){
return _1c7.offsetHeight<_1c6;
}
return _1c7.offsetWidth<_1c6;
},_getMaximumExpandSize:function(){
var _1c8=this._slide.get_direction();
var _1c9=$telerik.getViewPortSize();
var _1ca=this._getAnimationContainer();
var _1cb=$telerik.getLocation(_1ca);
if(this.get_groupSettings().get_flow()==Telerik.Web.UI.ItemFlow.Vertical){
if(_1c8==Telerik.Web.UI.ExpandDirection.Up){
availableHeight=_1ca.offsetHeight+_1cb.y;
}else{
availableHeight=_1c9.height-_1cb.y-this._defaultScrollSize;
}
return Math.min(availableHeight,_1c9.height-this._defaultScrollSize);
}
if(_1c8==Telerik.Web.UI.ExpandDirection.Left){
availableWidth=_1cb.x;
}else{
availableWidth=_1c9.width-_1cb.x;
}
return Math.min(availableWidth,_1c9.width);
},_saveAnimationContainerSize:function(){
var _1cc=this._getAnimationContainer();
var _1cd=_1cc.offsetHeight;
var _1ce=_1cc.offsetWidth;
this._animationContainerOriginalSize={};
this._animationContainerOriginalSize.height=_1cd;
this._animationContainerOriginalSize.width=_1ce;
},_restoreAnimationContainerSize:function(){
if(this._animationContainerOriginalSize){
var _1cf=this._getAnimationContainer();
_1cf.style.height=this._animationContainerOriginalSize.height+"px";
_1cf.style.width=this._animationContainerOriginalSize.width+"px";
this._animationContainerOriginalSize=null;
}
},_initializeAutoScroll:function(){
this._buildScrollWrap();
this._initializeScroller();
this._animatedElement=null;
this._scrollWrapElement=null;
this._slide.set_animatedElement(this._getAnimatedElement());
},_removeAutoScroll:function(){
var _1d0=this.get_items();
var _1d1=_1d0.get_count();
for(var i=0;i<_1d1;i++){
_1d0.getItem(i)._removeAutoScroll();
}
this._attachChildren();
if(!this._scroller){
return;
}
this._scroller.dispose();
this._scroller=null;
var _1d3=this._getSlideWrapElement();
var _1d4=this.get_childListElement();
var _1d5=this._getScrollWrapElement();
_1d3.appendChild(_1d4);
_1d3.removeChild(_1d5);
_1d4.className=String.format("{0} {1} {2}{3}",this._getFlowCssClass(),this._groupCssClass,this._levelCssClass,this.get_level());
this._animatedElement=null;
this._scrollWrapElement=null;
this._slide.set_animatedElement(this._getAnimatedElement());
this._slide.updateSize();
},_updateScrollSize:function(){
var _1d6=this._slide.get_direction();
var _1d7=$telerik.getViewPortSize();
var _1d8=this._getAnimationContainer();
var _1d9=$telerik.getLocation(_1d8);
var _1da=this._getScrollWrapElement();
_1da.style.height="";
_1da.style.width="";
var _1db=this._getMaximumExpandSize();
if(this.get_groupSettings().get_flow()==Telerik.Web.UI.ItemFlow.Vertical){
_1da.style.height=_1db+"px";
_1da.style.width=_1d8.style.width;
if(_1d6==Telerik.Web.UI.ExpandDirection.Up){
_1d8.style.top=-_1db+"px";
}
}else{
_1da.style.width=_1db+"px";
_1da.style.height=_1d8.style.height;
}
this._slide.updateSize();
this._scroller.resetState();
},_buildScrollWrap:function(){
var _1dc=this._getSlideWrapElement();
var _1dd=this.get_childListElement();
var _1de=document.createElement("div");
_1de.style.position="relative";
_1de.style.overflow="hidden";
_1dd.className=this._getFlowCssClass();
_1de.className=String.format("{0} {1} {2}{3}",this._scrollWrapCssClass,this._groupCssClass,this._levelCssClass,this.get_level());
_1de.appendChild(_1dd);
_1dc.appendChild(_1de);
},_updateScrollWrapSize:function(){
var _1df=this._getScrollWrapElement();
var _1e0=this.get_childListElement();
if(!_1df){
return;
}
if(!_1df.style.height){
_1df.style.height=_1e0.offsetHeight+"px";
}
if(this.get_groupSettings().get_flow()==Telerik.Web.UI.ItemFlow.Vertical){
_1df.style.width=_1e0.offsetWidth+"px";
}
},_getWidth:function(){
var _1e1=this.get_linkElement();
if(_1e1){
return _1e1.offsetWidth;
}else{
return this.get_element().offsetWidth;
}
},_setWidth:function(_1e2){
var _1e3=this.get_linkElement();
if(!_1e3){
_1e3=this.get_element();
}
if(!_1e3){
return;
}
if($telerik.isOpera){
this.get_element().style.cssFloat="none";
}
var _1e4=parseInt(_1e2);
if(isNaN(_1e4)){
_1e3.style.width=_1e2;
_1e3.style.cssText=_1e3.style.cssText;
return;
}
var _1e5=_1e4;
var _1e6=$telerik.getPaddingBox(_1e3).horizontal;
var _1e7=$telerik.getBorderBox(_1e3).horizontal;
_1e5-=_1e6+_1e7;
if(_1e5<=0){
return;
}
var _1e8=_1e3.style.width;
if(!_1e8||_1e5!=_1e8){
_1e3.style.width=_1e5+"px";
}
},_clearWidth:function(){
this._setWidth("auto");
},_getData:function(){
var data=Telerik.Web.UI.RadMenuItem.callBaseMethod(this,"_getData");
var _1ea=this.get_navigateUrl();
if(_1ea&&_1ea!="#"&&(location.href+"#"!==_1ea)){
data["navigateUrl"]=_1ea;
}
return data;
},_loadFromDictionary:function(data){
Telerik.Web.UI.RadMenuItem.callBaseMethod(this,"_loadFromDictionary",[data]);
if(typeof (data.ExpandMode)!="undefined"&&data.ExpandMode!=Telerik.Web.UI.MenuItemExpandMode.ClientSide){
this.set_expandMode(data.ExpandMode);
}
if(data.NavigateUrl){
this.set_navigateUrl(data.NavigateUrl);
}
if(data.PostBack===false){
this.set_postBack(data.PostBack);
}
if(data.Target){
this.set_target(data.Target);
}
if(data.IsSeparator===true){
this.set_isSeparator(data.IsSeparator);
}
if(data.CssClass){
this.set_cssClass(data.CssClass);
}
if(typeof (data.DisabledCssClass)!="undefined"&&data.DisabledCssClass!=this._defaultDisabledCssClass){
this.set_disabledCssClass(data.DisabledCssClass);
}
if(typeof (data.ExpandedCssClass)!="undefined"&&data.ExpandedCssClass!=this._defaultExpandedCssClass){
this.set_expandedCssClass(data.ExpandedCssClass);
}
if(typeof (data.FocusedCssClass)!="undefined"&&data.FocusedCssClass!=this._defaultFocusedCssClass){
this.set_focusedCssClass(data.FocusedCssClass);
}
if(typeof (data.ClickedCssClass)!="undefined"&&data.ClickedCssClass!=this._defaultClickedCssClass){
this.set_clickedCssClass(data.ClickedCssClass);
}
if(data.ImageUrl){
this.set_imageUrl(data.ImageUrl);
}
if(data.HoveredImageUrl){
this.set_hoveredImageUrl(data.HoveredImageUrl);
}
if(data.ClickedImageUrl){
this.set_clickedImageUrl(data.ClickedImageUrl);
}
if(data.DisabledImageUrl){
this.set_disabledImageUrl(data.DisabledImageUrl);
}
if(data.ExpandedImageUrl){
this.set_expandedImageUrl(data.ExpandedImageUrl);
}
},_replaceCssClass:function(_1ec,_1ed,_1ee){
_1ec.className=_1ec.className.replace(_1ed,_1ee);
},_setChildContainerPosition:function(left,top){
var _1f1=this._getAnimationContainer();
var _1f2=this.get_parent();
var _1f3=null;
if(_1f2._getScrollWrapElement){
_1f3=_1f2._getScrollWrapElement();
}
if(_1f3){
this._detachChildren();
var _1f4=this.get_element();
top+=_1f4.offsetTop;
left+=_1f4.offsetLeft;
var _1f5=_1f2.get_childListElement();
var _1f6=parseInt(_1f5.style.top);
if(isNaN(_1f6)){
_1f6=0;
}
if(this.get_groupSettings().get_offsetY()==0){
top+=_1f6;
}
var _1f7=parseInt(_1f5.style.left);
if(isNaN(_1f7)){
_1f7=0;
}
if(this.get_groupSettings().get_offsetX()==0){
left+=_1f7;
if(!(this.get_level()==0&&_1f2.get_enableRootItemScroll()&&this._getParentFlow()==Telerik.Web.UI.ItemFlow.Vertical)){
left=Math.max(left,0);
}
}
}
_1f1.style.left=(left+this.get_groupSettings().get_offsetX())+"px";
_1f1.style.top=(top+this.get_groupSettings().get_offsetY())+"px";
},_detachChildren:function(){
if(this._childrenDetached){
return;
}
var _1f8=this.get_parent();
var _1f9;
if(this.get_level()==0&&_1f8.get_enableRootItemScroll()){
var _1fa=document.createElement("div");
_1fa.className="rmHorizontal rmRootGroup";
_1fa.style.position="absolute";
_1fa.style.height="0px";
_1fa.style.width="0px";
_1fa.style.visibility="hidden";
_1fa.style.left="0px";
if(_1f8.get_rightToLeft()){
_1fa.style.cssFloat="right";
}
var _1fb=document.createElement("div");
_1fb.className="rmGroup";
_1fb.style.position="relative";
_1f8.get_element().appendChild(_1fa);
_1fa.appendChild(_1fb);
if($telerik.isIE){
_1fa.style.cssText=_1fa.style.cssText;
}
_1f9=_1fb;
}else{
_1f9=_1f8._getAnimationContainer();
}
var _1fc=this._getAnimationContainer();
_1f9.appendChild(_1fc);
this._childrenDetached=true;
_1fc._item=this;
_1fc._itemTypeName=Object.getTypeName(this);
},_attachChildren:function(){
if(this._childrenDetached){
var _1fd=this.get_element();
_1fd.appendChild(this._getAnimationContainer());
this._childrenDetached=false;
}
},_resetAnimatedElementPosition:function(){
var _1fe=this._getAnimatedElement();
_1fe.style.top="0px";
_1fe.style.left="0px";
},_positionChildContainer:function(){
if(!this._autoScrollActive){
this._saveAnimationContainerSize();
}
var _1ff=this._positionChildContainerBasic();
var left=_1ff.left;
var top=_1ff.top;
var menu=this.get_menu();
var _203=menu.get_enableAutoScroll();
var _204=menu.get_enableScreenBoundaryDetection();
var _205=false;
if(_203){
if(!this._applyAutoScroll(left,top)){
if(this._autoScrollActive){
this._removeAutoScroll();
this._autoScrollActive=false;
this._restoreAnimationContainerSize();
var _1ff=this._positionChildContainerBasic();
left=_1ff.left;
top=_1ff.top;
}
if(_204){
var _206=this._adjustForScreenBoundaries(left,top);
_205=true;
this._applyAutoScroll(_206.adjustedLeft,_206.adjustedTop);
}
}
if(this._autoScrollActive){
this._updateScrollSize();
}
}
if(_204&&!_205){
this._adjustForScreenBoundaries(left,top);
}
var _207=this.get_textElement();
if(_207){
_207.className="rmText "+this._getExpandClassName();
}
},_positionChildContainerBasic:function(){
var _208=$telerik.getClientBounds();
var top=0;
var left=0;
var _20b=this._slide._getAnimatedStyleProperty();
var _20c=this.get_element();
var _20d=_20c.offsetHeight;
var _20e=_20c.offsetWidth;
var _20f=this._getAnimationContainer();
var _210=_20f.offsetHeight;
var _211=_20f.offsetWidth;
var _212=this.get_groupSettings().get_expandDirection();
switch(_212){
case Telerik.Web.UI.ExpandDirection.Up:
top=-_210;
break;
case Telerik.Web.UI.ExpandDirection.Down:
top=_20d;
break;
case Telerik.Web.UI.ExpandDirection.Left:
left=-_211;
break;
case Telerik.Web.UI.ExpandDirection.Right:
left=_20e;
break;
}
var menu=this.get_menu();
if(menu.get_rightToLeft()&&this.get_level()==0){
left=_20e-_211;
if(this._getParentFlow()==Telerik.Web.UI.ItemFlow.Vertical){
left-=_20e;
}
}
this._setChildContainerPosition(left,top);
return {left:left,top:top};
},_applyAutoScroll:function(_214,_215){
if(this._isAutoScrollPossible()){
if(!this._scroller){
this._initializeAutoScroll();
this._autoScrollActive=true;
this._setChildContainerPosition(_214,_215);
}
return true;
}
return false;
},_adjustForScreenBoundaries:function(left,top){
var _218=this._getAnimationContainer();
var _219=_218.offsetHeight;
var _21a=_218.offsetWidth;
var _21b=this.get_element();
var _21c=_21b.offsetHeight;
var _21d=_21b.offsetWidth;
var _21e=this.get_groupSettings().get_expandDirection();
var _21f=_21e;
var _220=$telerik.getViewPortSize();
var _221=$telerik.getLocation(_218);
switch(_21e){
case Telerik.Web.UI.ExpandDirection.Up:
if($telerik.elementOverflowsTop(_218)){
_21f=Telerik.Web.UI.ExpandDirection.Down;
top=_21c;
}
break;
case Telerik.Web.UI.ExpandDirection.Down:
if($telerik.elementOverflowsBottom(_220,_218)){
var _222=$telerik.getLocation(_21b);
if(_222.y>_218.offsetHeight){
_21f=Telerik.Web.UI.ExpandDirection.Up;
top=-_219;
}
}
break;
case Telerik.Web.UI.ExpandDirection.Left:
if($telerik.elementOverflowsLeft(_218)){
_21f=Telerik.Web.UI.ExpandDirection.Right;
left=_21d;
}
break;
case Telerik.Web.UI.ExpandDirection.Right:
if($telerik.elementOverflowsRight(_220,_218)){
_21f=Telerik.Web.UI.ExpandDirection.Left;
left=-_21a;
}
break;
}
switch(_21f){
case Telerik.Web.UI.ExpandDirection.Down:
case Telerik.Web.UI.ExpandDirection.Up:
if($telerik.elementOverflowsRight(_220,_218)){
var _223=_220.width-(_221.x+_21a);
var menu=this.get_menu();
if(menu.get_rightToLeft()&&this.get_level()==0){
left+=_223;
}else{
left=_223;
}
}
break;
case Telerik.Web.UI.ExpandDirection.Left:
case Telerik.Web.UI.ExpandDirection.Right:
if($telerik.elementOverflowsBottom(_220,_218)){
var _225=Math.min(_219,_220.height);
top=_220.height-(_221.y+_225);
}
break;
}
this._setChildContainerPosition(left,top);
this._slide.set_direction(_21f);
return {adjustedLeft:left,adjustedTop:top};
},_closeChildren:function(e){
var _227=this.get_items();
for(var i=0;i<_227.get_count();i++){
var _229=_227.getItem(i);
_229._stopAnimation();
_229._close(e);
}
},_stopAnimation:function(){
if(this._slide){
this._slide._stopAnimation();
}
},_preventClose:function(){
var _22a=this.get_parent();
if(this._state==Telerik.Web.UI.RadMenuItemState.AboutToClose){
this._clearTimeout();
this._state=Telerik.Web.UI.RadMenuItemState.Open;
_22a._openedItem=this;
}
if(_22a._preventClose){
_22a._preventClose();
}
},_setTimeout:function(_22b,_22c){
this._timeoutRef=setTimeout(_22b,_22c);
},_clearTimeout:function(){
if(this._timeoutRef){
clearTimeout(this._timeoutRef);
this._timeoutRef=null;
}
},_getExpandClassName:function(){
return "rmExpand"+this._getExpandClass();
},_getExpandClass:function(){
var _22d=this._getSlideDirection();
switch(_22d){
case Telerik.Web.UI.SlideDirection.Up:
return "Top";
case Telerik.Web.UI.SlideDirection.Down:
return "Down";
case Telerik.Web.UI.SlideDirection.Left:
return "Left";
case Telerik.Web.UI.SlideDirection.Right:
return "Right";
}
},_updateLinkClass:function(){
if(this.get_isSeparator()||this.get_templated()){
return;
}
var _22e="rmLink "+this.get_cssClass();
if(this.get_focused()){
_22e+=" "+this.get_focusedCssClass();
}
if(this._state==Telerik.Web.UI.RadMenuItemState.Open){
_22e+=" "+this.get_expandedCssClass();
}
if(this._clicked){
_22e+=" "+this.get_clickedCssClass();
}
if(!this.get_enabled()){
_22e+=" "+this.get_disabledCssClass();
}
var _22f=this.get_linkElement();
if(_22f){
_22f.className=_22e;
}
},_updateImageSrc:function(){
var _230=this.get_imageUrl();
if(this._hovered&&this.get_hoveredImageUrl()){
_230=this.get_hoveredImageUrl();
}
if(this._state==Telerik.Web.UI.RadMenuItemState.Open&&this.get_expandedImageUrl()){
_230=this.get_expandedImageUrl();
}
if(!this.get_enabled()&&this.get_disabledImageUrl()){
_230=this.get_disabledImageUrl();
}
if(this._clicked&&this.get_clickedImageUrl()){
_230=this.get_clickedImageUrl();
}
if(_230&&this.get_element()){
var _231=this.get_imageElement();
if(!_231){
_231=this._createImageElement();
}
_230=_230.replace(/&amp;/ig,"&");
if(_230!=_231.src){
_231.src=_230;
}
}
},_createImageElement:function(){
this._imageElement=document.createElement("img");
this._imageElement.className=this._leftImageCssClass;
if(!this.get_enabled()){
this._imageElement.disabled="disabled";
}
var _232=this.get_linkElement()||this.get_element();
if(_232.firstChild){
_232.insertBefore(this._imageElement,_232.firstChild);
}else{
_232.appendChild(this._imageElement);
}
return this._imageElement;
},_click:function(e){
if(!this.get_enabled()){
return false;
}
var menu=this.get_menu();
var _235=menu._getExtendedItemClickingEventArgs(new Telerik.Web.UI.RadMenuItemClickingEventArgs(this,e));
menu._raiseEvent("itemClicking",_235);
if(_235.get_cancel()){
return false;
}
if(menu.get_clickToOpen()&&this.get_level()==0){
if(menu._clicked){
this._close(e);
}else{
this._open(e);
}
menu._clicked=!menu._clicked;
}
var _236=menu._getExtendedItemClickedEventArgs(new Telerik.Web.UI.RadMenuItemClickedEventArgs(this,e));
menu._raiseEvent("itemClicked",_236);
if(this._shouldNavigate()){
return true;
}
if(this._shouldPostBack()){
menu._postback(this._getHierarchicalIndex());
}
return false;
},_shouldPostBack:function(){
if(!this.get_menu()){
return false;
}
return this.get_postBack()&&this.get_menu()._postBackReference;
},_canFocus:function(){
return (!this.get_isSeparator())&&this.get_enabled();
},_clearSiblingsWidth:function(){
var _237=this.get_parent();
var _238=_237.get_items();
for(var i=0;i<_238.get_count();i++){
var _23a=_238.getItem(i);
if(_23a!=this){
var _23b=_23a.get_linkElement();
if(_23b){
_23b.style.width="auto";
}
}
if($telerik.isSafari){
_237.get_childListElement().style.width="auto";
}
}
},_doFocus:function(e){
if(!this._canFocus()){
return;
}
this._ensureChildControls();
var _23d=this.get_parent();
var _23e=_23d.get_openedItem();
if(_23e&&_23e!=this){
_23e._close(e);
}
if(_23d._state!=Telerik.Web.UI.RadMenuItemState.Open&&_23d.open){
_23d._open(e);
}
_23d._focusedItem=this;
var menu=this.get_menu();
menu._focusedItem=this;
var _240=this.get_linkElement();
if(!this.get_focused()&&_240){
_240.focus();
}
this.get_menu()._raiseEvent("itemFocus",new Telerik.Web.UI.RadMenuItemFocusEventArgs(this,e));
},_doBlur:function(e){
if(this.get_isSeparator()){
return;
}
if(this.get_focused()){
this.get_linkElement().blur();
}
this.get_parent()._focusedItem=null;
var menu=this.get_menu();
var _243=this;
window.setTimeout(function(){
if(menu._focusedItem==_243){
menu._focusedItem=null;
}
},100);
this.get_menu()._raiseEvent("itemBlur",new Telerik.Web.UI.RadMenuItemBlurEventArgs(this,e));
},_createChildControls:function(){
Telerik.Web.UI.RadMenuItem.callBaseMethod(this,"_createChildControls");
this._initializeScroller();
},_onScrollArrowMouseDown:function(_244){
if(!this._scroller){
return;
}
this._scroller.changeScrollSpeed(Telerik.Web.UI.ScrollerSpeed.Fast);
},_onScrollArrowMouseUp:function(_245){
if(!this._scroller){
return;
}
this._scroller.changeScrollSpeed(Telerik.Web.UI.ScrollerSpeed.Slow);
},_onScrollArrowMouseOver:function(_246){
if(!this._scroller){
return;
}
var _247=1;
if(_246==Telerik.Web.UI.ArrowPosition.Top||_246==Telerik.Web.UI.ArrowPosition.Left){
_247=-1;
}
var _248=this.get_openedItem();
if(_248){
_248.close();
}
this._scroller.startScroll(Telerik.Web.UI.ScrollerSpeed.Slow,_247);
},_onScrollArrowMouseOut:function(_249){
if(!this._scroller){
return;
}
this._scroller.stopScroll();
},_onKeyDown:function(e){
var _24b=e.keyCode?e.keyCode:e.rawEvent.keyCode;
var rtl=this.get_menu().get_rightToLeft();
switch(_24b){
case Sys.UI.Key.up:
if(!rtl){
this._onKeyboardUp(e);
}else{
this._onKeyboardDown(e);
}
break;
case Sys.UI.Key.down:
if(!rtl){
this._onKeyboardDown(e);
}else{
this._onKeyboardUp(e);
}
break;
case Sys.UI.Key.left:
if(!rtl){
this._onKeyboardLeft(e);
}else{
this._onKeyboardRight(e);
}
break;
case Sys.UI.Key.right:
if(!rtl){
this._onKeyboardRight(e);
}else{
this._onKeyboardLeft(e);
}
break;
case Sys.UI.Key.esc:
this._onKeyboardEsc(e);
break;
default:
return true;
}
e.preventDefault();
return false;
},_onKeyboardUp:function(e){
var _24e=this._getParentFlow();
if(_24e==Telerik.Web.UI.ItemFlow.Vertical){
this.focusPreviousItem(e);
}else{
this.focusLastChild(e);
}
},_onKeyboardDown:function(e){
var _250=this._getParentFlow();
if(_250==Telerik.Web.UI.ItemFlow.Vertical){
this.focusNextItem(e);
}else{
this.focusFirstChild(e);
}
},_onKeyboardLeft:function(e){
var _252=this._getParentFlow();
if(_252==Telerik.Web.UI.ItemFlow.Horizontal){
this.focusPreviousItem(e);
return;
}
var _253=this.get_items();
var _254=this.get_groupSettings();
if(_253.get_count()>0&&_254.get_expandDirection()==Telerik.Web.UI.ExpandDirection.Left){
this.focusFirstChild(e);
return;
}
var _255=this.get_parent();
var _256=null;
if(_255.get_groupSettings){
var _256=_255.get_groupSettings();
}
if(_256&&_256.get_expandDirection()==Telerik.Web.UI.ExpandDirection.Right){
_255._focus(e);
return;
}
var _257=this.get_menu().get_openedItem();
if(_257){
_257.focusPreviousItem(e);
}
},_onKeyboardRight:function(e){
var _259=this._getParentFlow();
if(_259==Telerik.Web.UI.ItemFlow.Horizontal){
this.focusNextItem(e);
return;
}
var _25a=this.get_items();
var _25b=this.get_groupSettings();
if(_25a.get_count()>0&&_25b.get_expandDirection()==Telerik.Web.UI.ExpandDirection.Right){
this.focusFirstChild(e);
return;
}
var _25c=this.get_parent();
var _25d=null;
if(_25c.get_groupSettings){
var _25d=_25c.get_groupSettings();
}
if(_25d&&_25d.get_expandDirection()==Telerik.Web.UI.ExpandDirection.Left){
_25c.focus();
return;
}
var _25e=this.get_menu().get_openedItem();
if(_25e){
_25e.focusNextItem(e);
}
},_onKeyboardEsc:function(e){
var _260=this.get_parent();
var menu=this.get_menu();
if(_260==menu){
this._blur(e);
}else{
_260._close(e);
_260._focus(e);
}
},_render:function(html){
var _263="rmItem";
var _264=false;
if(this.get_parent().get_items().get_count()==1){
_264=true;
}
html[html.length]="<li class='"+this._determineCssClass()+"'>";
this._renderLink(html);
if(this.get_imageUrl()){
this._renderImage(html);
}
html[html.length]="<span class='rmText'>";
html[html.length]=this.get_text();
html[html.length]="</span></a>";
var _265=this.get_items();
var _266=_265.get_count();
this._renderChildList(html);
html[html.length]="</li>";
},_renderAccessKey:function(){
if(this.get_isSeparator()||this.get_templated()){
return;
}
var _267=this.get_linkElement();
if(!_267){
return;
}
var _268=this.get_linkElement().accessKey.toLowerCase();
if(!_268){
return;
}
var text=this.get_text();
var _26a=text.toLowerCase().indexOf(_268);
if(text.toLowerCase().indexOf("<u>")!=-1){
return;
}
if(_26a==-1){
return;
}
var _26b=this.get_textElement();
_26b.innerHTML=text.substr(0,_26a)+"<u>"+text.substr(_26a,1)+"</u>"+text.substr(_26a+1,text.length);
},_getIsImageOnly:function(){
if(this._isImageOnly===null){
this._isImageOnly=this.get_imageElement()!=null;
}
return this._isImageOnly;
},_getFlowCssClass:function(){
if(this.get_groupSettings().get_flow()==Telerik.Web.UI.ItemFlow.Vertical){
return this._verticalCssClass;
}else{
return this._horizontalCssClass;
}
},_isWebServiceCallNeeded:function(){
if(this._itemsLoading){
return false;
}
return (!this._itemsLoaded&&this.get_expandMode()==Telerik.Web.UI.MenuItemExpandMode.WebService);
},_createLoadingItem:function(){
var _26c=this.get_menu().get_loadingTemplate();
if(_26c===""){
return;
}
var _26d=new Telerik.Web.UI.RadMenuItem();
this.get_items().add(_26d);
_26d.set_text(_26c);
},_removeLoadingItem:function(){
if(this.get_menu().get_loadingTemplate()===""){
return;
}
var _26e=this.get_items().getItem(0);
this.get_items().remove(_26e);
},_loadChildrenFromWebService:function(){
this.get_menu()._loadChildrenFromWebService(this);
},_onChildrenLoading:function(){
this._itemsLoading=true;
this._createLoadingItem();
this._doOpen(null);
},_onChildrenLoaded:function(){
this._removeLoadingItem();
this._itemsLoaded=true;
this._itemsLoading=false;
this._slide.updateSize();
if(this._hovered){
this._doOpen(null);
}
},_onChildrenLoadingError:function(){
this._close(null);
this._removeLoadingItem();
this._itemsLoaded=false;
this._itemsLoading=false;
},_adjustSiblingsWidth:function(_26f){
var _270=this.get_parent();
if(_270){
this._clearSiblingsWidth();
Telerik.Web.UI.RadMenu._adjustChildrenWidth(_270,_26f);
}
}};
Telerik.Web.UI.RadMenuItem.registerClass("Telerik.Web.UI.RadMenuItem",Telerik.Web.UI.ControlItem);
Type.registerNamespace("Telerik.Web.UI");
Telerik.Web.UI.RadMenuItemCollection=function(_271){
Telerik.Web.UI.RadMenuItemCollection.initializeBase(this,[_271]);
};
Telerik.Web.UI.RadMenuItemCollection.prototype={};
Telerik.Web.UI.RadMenuItemCollection.registerClass("Telerik.Web.UI.RadMenuItemCollection",Telerik.Web.UI.ControlItemCollection);
Type.registerNamespace("Telerik.Web.UI");
Telerik.Web.UI.RadMenuItemGroupSettings=function(_272,_273){
this._flow=Telerik.Web.UI.ItemFlow.Vertical;
this._expandDirection=Telerik.Web.UI.ExpandDirection.Auto;
this._offsetX=0;
this._offsetY=0;
this._width=null;
this._height=null;
if(typeof (_272.flow)!="undefined"){
this._flow=_272.flow;
}else{
if(_273){
this._flow=_273.get_flow();
}
}
if(typeof (_272.expandDirection)!="undefined"){
this._expandDirection=_272.expandDirection;
}else{
if(_273){
this._expandDirection=_273.get_expandDirection();
}
}
if(typeof (_272.offsetX)!="undefined"){
this._offsetX=_272.offsetX;
}else{
if(_273){
this._offsetX=_273.get_offsetX();
}
}
if(typeof (_272.offsetY)!="undefined"){
this._offsetY=_272.offsetY;
}else{
if(_273){
this._offsetY=_273.get_offsetY();
}
}
if(typeof (_272.width)!="undefined"){
this._width=_272.width;
}else{
if(_273){
this._width=_273.get_width();
}
}
if(typeof (_272.height)!="undefined"){
this._height=_272.height;
}else{
if(_273){
this._height=_273.get_height();
}
}
};
Telerik.Web.UI.RadMenuItemGroupSettings.prototype={get_flow:function(){
return this._flow;
},set_flow:function(_274){
this._flow=_274;
},get_expandDirection:function(){
return this._expandDirection;
},set_expandDirection:function(_275){
this._expandDirection=_275;
},get_offsetX:function(){
return this._offsetX;
},set_offsetX:function(_276){
this._offsetX=_276;
},get_offsetY:function(){
return this._offsetY;
},set_offsetY:function(_277){
this._offsetY=_277;
},get_width:function(){
return this._width;
},set_width:function(_278){
this._width=_278;
},get_height:function(){
return this._height;
},set_height:function(_279){
this._height=_279;
}};
Telerik.Web.UI.RadMenuItemGroupSettings.registerClass("Telerik.Web.UI.RadMenuItemGroupSettings");
Telerik.Web.UI.MenuItemScroller=function(_27a,_27b){
this._leftArrowCssClass="rmLeftArrow";
this._rightArrowCssClass="rmRightArrow";
this._topArrowCssClass="rmTopArrow";
this._bottomArrowCssClass="rmBottomArrow";
this._leftArrowDisabledCssClass="rmLeftArrowDisabled";
this._rightArrowDisabledCssClass="rmRightArrowDisabled";
this._topArrowDisabledCssClass="rmTopArrowDisabled";
this._bottomArrowDisabledCssClass="rmBottomArrowDisabled";
this._arrowsZIndex=2000;
this._scroller=null;
this._childListElement=_27a;
this._scrollElement=null;
this._orientation=null;
this._minScrollPosition=null;
this._itemFlow=_27b;
this._scrollerPositionChangedDelegate=null;
this._decArrow=null;
this._incArrow=null;
};
Telerik.Web.UI.MenuItemScroller.prototype={initialize:function(){
this._childListElement.style.position="relative";
this._scrollElement=this._childListElement.parentNode;
this._orientation=Telerik.Web.UI.ScrollerOrientation.Horizontal;
if(this._itemFlow==Telerik.Web.UI.ItemFlow.Vertical){
this._orientation=Telerik.Web.UI.ScrollerOrientation.Vertical;
}
this._scroller=new Telerik.Web.UI.Scroller(this._childListElement,this._scrollElement,this._orientation);
this._scroller.initialize();
this._createArrows();
this._scroller.resetState();
this._scrollerPositionChangedDelegate=Function.createDelegate(this,this._onScrollerPositionChanged);
this._scroller.add_positionChanged(this._scrollerPositionChangedDelegate);
},dispose:function(){
if(this._scroller){
this._scroller.dispose();
this._scroller=null;
}
this._scrollerPositionChangedDelegate=null;
},updateState:function(){
this._updateScrollingLimits();
this._updateArrows();
},resetState:function(){
this._scroller.resetState();
},startScroll:function(_27c,_27d){
this._scroller.startScroll(_27c,_27d);
},changeScrollSpeed:function(_27e){
this._scroller.changeScrollSpeed(_27e);
},stopScroll:function(){
this._scroller.stopScroll();
},scrollToMaxPosition:function(){
this._scroller.scrollToMaxPosition();
},_createArrows:function(){
this._decArrow=this._createArrowDomElement();
this._incArrow=this._createArrowDomElement();
if(this._orientation==Telerik.Web.UI.ScrollerOrientation.Vertical){
this._decArrow.style.left="0px";
this._decArrow.style.top="0px";
this._incArrow.style.left="0px";
this._incArrow.style.bottom="0px";
}else{
this._decArrow.style.top="0px";
this._decArrow.style.left="-1px";
this._incArrow.style.top="0px";
this._incArrow.style.right="-1px";
}
},_createArrowDomElement:function(){
var _27f=document.createElement("a");
_27f.href="#";
_27f.style.zIndex=this._arrowsZIndex;
_27f.appendChild(document.createTextNode("&nbsp;"));
this._scrollElement.appendChild(_27f);
return _27f;
},_updateArrows:function(){
var _280=this._scroller.isAtMinPosition();
var _281=this._scroller.isAtMaxPosition();
if(_280){
this._decArrow.disabled="disabled";
this._setElementCssClass(this._decArrow,this._getDecArrowCssClass(false));
}else{
this._decArrow.disabled="";
this._setElementCssClass(this._decArrow,this._getDecArrowCssClass(true));
}
if(_281){
this._incArrow.disabled="disabled";
this._setElementCssClass(this._incArrow,this._getIncArrowCssClass(false));
}else{
this._incArrow.disabled="";
this._setElementCssClass(this._incArrow,this._getIncArrowCssClass(true));
}
},_updateScrollingLimits:function(){
var _282=0;
var _283=0;
var _284=0;
if(this._orientation==Telerik.Web.UI.ScrollerOrientation.Vertical){
_282=this._childListElement.offsetHeight-this._scrollElement.offsetHeight;
_283=this._decArrow.offsetHeight;
_284=this._incArrow.offsetHeight;
}else{
_282=this._childListElement.offsetWidth-this._scrollElement.offsetWidth;
_283=this._decArrow.offsetWidth;
_284=this._incArrow.offsetWidth;
}
var _285=0;
var _286=_282;
this._scroller.setScrollingLimits(_285,_286);
},_getDecArrowCssClass:function(_287){
if(this._orientation==Telerik.Web.UI.ScrollerOrientation.Vertical){
return _287?this._topArrowCssClass:this._topArrowDisabledCssClass;
}else{
return _287?this._leftArrowCssClass:this._leftArrowDisabledCssClass;
}
},_getIncArrowCssClass:function(_288){
if(this._orientation==Telerik.Web.UI.ScrollerOrientation.Vertical){
return _288?this._bottomArrowCssClass:this._bottomArrowDisabledCssClass;
}else{
return _288?this._rightArrowCssClass:this._rightArrowDisabledCssClass;
}
},_setElementCssClass:function(_289,_28a){
var _28b=_289.className;
if(_28b!=_28a){
_289.className=_28a;
}
},_onScrollerPositionChanged:function(_28c,_28d){
this._updateArrows();
}};
Telerik.Web.UI.MenuItemScroller.registerClass("Telerik.Web.UI.MenuItemScroller",null,Sys.IDisposable);

