Telerik.Web.UI.RadMenuItemEventArgs=function(b,a){Telerik.Web.UI.RadMenuItemEventArgs.initializeBase(this); this._item=b; this._domEvent=a||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(b,a){Telerik.Web.UI.RadMenuItemCancelEventArgs.initializeBase(this); this._item=b; this._domEvent=a||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(b,a){Telerik.Web.UI.RadMenuMouseOverEventArgs.initializeBase(this,[b,a||null]); }; Telerik.Web.UI.RadMenuMouseOverEventArgs.registerClass("Telerik.Web.UI.RadMenuMouseOverEventArgs",Telerik.Web.UI.RadMenuItemEventArgs); Telerik.Web.UI.RadMenuMouseOutEventArgs=function(b,a){Telerik.Web.UI.RadMenuMouseOutEventArgs.initializeBase(this,[b,a||null]); }; Telerik.Web.UI.RadMenuMouseOutEventArgs.registerClass("Telerik.Web.UI.RadMenuMouseOutEventArgs",Telerik.Web.UI.RadMenuItemEventArgs); Telerik.Web.UI.RadMenuItemFocusEventArgs=function(b,a){Telerik.Web.UI.RadMenuItemFocusEventArgs.initializeBase(this,[b,a||null]); }; Telerik.Web.UI.RadMenuItemFocusEventArgs.registerClass("Telerik.Web.UI.RadMenuItemFocusEventArgs",Telerik.Web.UI.RadMenuItemEventArgs); Telerik.Web.UI.RadMenuItemBlurEventArgs=function(b,a){Telerik.Web.UI.RadMenuItemBlurEventArgs.initializeBase(this,[b,a||null]); }; Telerik.Web.UI.RadMenuItemBlurEventArgs.registerClass("Telerik.Web.UI.RadMenuItemBlurEventArgs",Telerik.Web.UI.RadMenuItemEventArgs); Telerik.Web.UI.RadMenuItemClickingEventArgs=function(b,a){Telerik.Web.UI.RadMenuItemClickingEventArgs.initializeBase(this,[b,a||null]); }; Telerik.Web.UI.RadMenuItemClickingEventArgs.registerClass("Telerik.Web.UI.RadMenuItemClickingEventArgs",Telerik.Web.UI.RadMenuItemCancelEventArgs); Telerik.Web.UI.RadMenuItemClickedEventArgs=function(b,a){Telerik.Web.UI.RadMenuItemClickedEventArgs.initializeBase(this,[b,a||null]); }; Telerik.Web.UI.RadMenuItemClickedEventArgs.registerClass("Telerik.Web.UI.RadMenuItemClickedEventArgs",Telerik.Web.UI.RadMenuItemEventArgs); Telerik.Web.UI.RadMenuItemOpeningEventArgs=function(b,a){Telerik.Web.UI.RadMenuItemOpeningEventArgs.initializeBase(this,[b,a||null]); }; Telerik.Web.UI.RadMenuItemOpeningEventArgs.registerClass("Telerik.Web.UI.RadMenuItemOpeningEventArgs",Telerik.Web.UI.RadMenuItemCancelEventArgs); Telerik.Web.UI.RadMenuItemOpenedEventArgs=function(b,a){Telerik.Web.UI.RadMenuItemOpenedEventArgs.initializeBase(this,[b,a||null]); }; Telerik.Web.UI.RadMenuItemOpenedEventArgs.registerClass("Telerik.Web.UI.RadMenuItemOpenedEventArgs",Telerik.Web.UI.RadMenuItemEventArgs); Telerik.Web.UI.RadMenuItemClosingEventArgs=function(b,a){Telerik.Web.UI.RadMenuItemClosingEventArgs.initializeBase(this,[b,a||null]); }; Telerik.Web.UI.RadMenuItemClosingEventArgs.registerClass("Telerik.Web.UI.RadMenuItemClosingEventArgs",Telerik.Web.UI.RadMenuItemCancelEventArgs); Telerik.Web.UI.RadMenuItemClosedEventArgs=function(b,a){Telerik.Web.UI.RadMenuItemClosedEventArgs.initializeBase(this,[b,a||null]); }; Telerik.Web.UI.RadMenuItemClosedEventArgs.registerClass("Telerik.Web.UI.RadMenuItemClosedEventArgs",Telerik.Web.UI.RadMenuItemEventArgs); Telerik.Web.UI.RadMenuItemPopulatingEventArgs=function(b,a){Telerik.Web.UI.RadMenuItemPopulatingEventArgs.initializeBase(this,[b]); this._context=a; }; 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(a){Telerik.Web.UI.RadMenuItemPopulatedEventArgs.initializeBase(this,[a]); }; Telerik.Web.UI.RadMenuItemPopulatedEventArgs.registerClass("Telerik.Web.UI.RadMenuItemPopulatedEventArgs",Telerik.Web.UI.RadMenuItemEventArgs); Telerik.Web.UI.RadMenuItemPopulationFailedEventArgs=function(b,a){Telerik.Web.UI.RadMenuItemPopulationFailedEventArgs.initializeBase(this,[b]); this._errorMessage=a; }; Telerik.Web.UI.RadMenuItemPopulationFailedEventArgs.prototype={get_errorMessage:function(){return this._errorMessage; }}; Telerik.Web.UI.RadMenuItemPopulationFailedEventArgs.registerClass("Telerik.Web.UI.RadMenuItemPopulationFailedEventArgs",Telerik.Web.UI.RadMenuItemCancelEventArgs); (function(){var a=$telerik.$,b=Telerik.Web.UI,f="rmItem",e="rmLink",h="rmTopArrow",g="rmBottomArrow",c="rmLeftArrow",d="rmRightArrow"; Type.registerNamespace("Telerik.Web.UI"); $telerik.findMenu=$find; $telerik.toMenu=function(i){return i; }; b.RadMenu=function(i){b.RadMenu.initializeBase(this,[i]); this._childTypeName="Telerik.Web.UI.RadMenuItem"; this._selectedValue=""; this._itemData=null; this._expandAnimation=new b.AnimationSettings({}); this._expandDelay=100; this._collapseAnimation=new b.AnimationSettings({}); this._collapseDelay=500; this._flow=b.ItemFlow.Horizontal; this._defaultGroupSettings=new b.RadMenuItemGroupSettings({}); this._enableSelection=true; this._enableAutoScroll=false; this._autoScrollMinimumHeight=50; this._autoScrollMinimumWidth=50; this._enableRootItemScroll=false; this._enableScreenBoundaryDetection=true; this._enableRoundedCorners=false; this._enableShadows=false; this._clickToOpen=false; this._childListElement=null; this._postBackReference=null; this._onClickDelegate=null; this._webServiceSettings=new b.WebServiceSettings({}); this._persistLoadOnDemandItems=true; this._enableOverlay=true; this._childListElementCssClass=""; this._selectedItemIndex=null; 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; this._enableItemImagesPreloading=false; this._enableImageSprites=false; }; b.RadMenu._createChildControls=function(l,i){var k=l.get_itemData(); if(!k){return; }var j=l.get_childListElement(); if(!j){return; }a(l._getChildElements()).each(function(m){var n=new b.RadMenuItem(); i.add(n); n._initialize(k[m],this); }); }; b.RadMenu._adjustChildrenWidth=function(l,o){var k=l.get_items(); var n=k.get_count(); if(o){for(var m=0; m0){if($telerik.quirksMode){k+=(l.css("border-left-style")!="none"?parseInt(l.css("border-left-width"),10):0)+(l.css("border-right-style")!="none"?parseInt(l.css("border-right-width"),10):0)+(parseInt(l.css("padding-left"),10)||0)+(parseInt(l.css("padding-right"),10)||0); }l[0].style.width=k+"px"; }else{if(j<3){setTimeout(function(){b.RadMenu._adjustListWidth(i,j); },0); }}}; b.RadMenu._getViewPortSize=function(){var i=$telerik.getViewPortSize(); var j=document.compatMode!="CSS1Compat"; if($telerik.isFirefox&&j){i.height+=document.body.scrollTop; }return i; }; b.RadMenu._updateChildrenPositionClass=function(j){var i=function(l){a("> .rmItem",l).filter(function(){return(this._item&&this._item.get_visible()); }).removeClass("rmFirst rmLast").filter(":first").addClass("rmFirst").end().filter(":last").addClass("rmLast"); }; if(!j){return; }var k=j.get_childListElement(); if(!k){return; }if(a(k).is(".rmMultiColumn")){a("> .rmGroupColumn > ul",k).each(function(){i(this); }); }else{i(k); }}; b.RadMenu._removeChildListCorners=function(i){a(".rmTopRight, .rmBottomLeft, .rmBottomRight, .rmTopFix, .rmBottomFix",i.get_childListElement()).remove(); i._roundedCornersRendered=false; i._shadowsRendered=false; }; b.RadMenu._removeScrollWrapContainer=function(j){if(j._slide){var i=a(j._getScrollWrapElement()).appendTo(j._slide.get_element())[0]; if(i){a(".rmScrollWrapContainer",j.get_element()).remove(); j._slide.set_animatedElement(i); }j._roundedCornersRendered=false; j._shadowsRendered=false; }}; b.RadMenu._renderCornerElements=function(i,k){var m=a(i._getScrollWrapElement()); var j='
  • '; if(k){j='
  • '; }if(m.length){var l=a(".rmScrollWrapContainer",i.get_element()); if(!l.length){l=a('
    ').append(m).appendTo(i._getAnimationContainer()); i._animatedElement=l[0]; i._slide.set_animatedElement(i._getAnimatedElement()); }l.prepend(j); }else{a(i.get_childListElement()).prepend(j); }}; b.RadMenu._ensureCorners=function(i,j){if($telerik.isIE6||$telerik.quirksMode){if(i.get_enableRoundedCorners()||i.get_enableShadows()){setTimeout(function(){var m=a("> .rmScrollWrapContainer",j._slide.get_element()); var o=j.get_childListElement(); var l=0; var n=0; if(!m.length){m=a(o); o.style.cssText=o.style.cssText; l=m.innerWidth()-4; n=m.innerHeight(); }else{var k=a(j._getScrollWrapElement()); l=k.innerWidth(); n=k.innerHeight()+4; }a("> .rmTopRight",m).height(n); a("> .rmTopFix, > .rmBottomFix",m).width(l); a("> .rmBottomRight, > .rmBottomLeft",m).add(o).add(m).each(function(){this.style.cssText=this.style.cssText; }); a("> .rmBottomShadowLeft",m).width(m.innerWidth()-4); },0); }}}; b.RadMenu._preloadItemImages=function(k){var j=["imageUrl","hoveredImageUrl","expandedImageUrl","disabledImageUrl","clickedImageUrl","selectedImageUrl"]; var i=function(p){for(var n=0; n"); var k=a("div.rmScrollWrap",i); if(k.length==1){j.appendTo(k); }else{j.appendTo(i); }},_getChildElements:function(){return a(this.get_childListElement()).children(".rmItem"); },_initializeScroller:function(){if(!this._childControlsCreated){return null; }var n=this._getScrollWrapElement(); var m=this.get_childListElement(); if(n&&m){var i=null; if(this._scroller){i=this._scroller.get_currentPosition(); this._scroller.dispose(); }this._scroller=new b.MenuItemScroller(this.get_childListElement(),this._flow); m.style.display="block"; var k=this._flow==b.ItemFlow.Horizontal; if(k){b.RadMenu._adjustListWidth(this); }else{b.RadMenu._adjustChildrenWidth(this); if(this.get_rightToLeft()&&$telerik.isIE&&m.firstChild){m.style.width=m.firstChild.offsetWidth+"px"; m.parentNode.style.width=m.offsetWidth+"px"; }}this._scroller.initialize(); this._scroller.updateState(); if(i!==null){this._scroller.set_currentPosition(i); }if(this.get_rightToLeft()&&k){m.style.cssFloat="left"; this._scroller.scrollToMaxPosition(); }if(k&&$telerik.isIE6){var j=this.get_element().offsetHeight+"px"; var o=$telerik.getElementByClassName(this.get_element(),c,"a")||$telerik.getElementByClassName(this.get_element(),"rmLeftArrowDisabled","a"); if(o){o.style.height=j; }var l=$telerik.getElementByClassName(this.get_element(),d,"a")||$telerik.getElementByClassName(this.get_element(),"rmRightArrowDisabled","a"); if(l){l.style.height=j; }}}},_getScrollWrapElement:function(){if(!this._scrollWrapElement){var i=$telerik.getFirstChildByTagName(this.get_element(),"div",0); if(i&&Sys.UI.DomElement.containsCssClass(i,"rmScrollWrap")){this._scrollWrapElement=i; }}return this._scrollWrapElement; },_clearSelectedItem:function(){var i=this.get_selectedItem(); if(i){i.set_selected(false); }},_registerSelectedItem:function(i){this._selectedItemIndex=i._getHierarchicalIndex(); this.updateClientState(); this._updateValidationField(i); },_unregisterSelectedItem:function(i){if(i._getHierarchicalIndex()!=this._selectedItemIndex){return; }this._selectedItemIndex=null; this.updateClientState(); this._updateValidationField(this.get_selectedItem()); },_updateValidationField:function(j){var i=""; if(j){i=j.get_value(); if(i===null){i=j.get_text(); }}this.get_element().value=i; },_onMouseOut:function(j){var k=j.rawEvent.relatedTarget?j.rawEvent.relatedTarget:j.rawEvent.toElement; if(!k&&!this._isMainElementDescendant(j.target)){var i=this; setTimeout(function(){i.close(); },this.get_collapseDelay()); }},_onClick:function(i){if(!this._isMainElementDescendant(i.target)){var j=this.get_clickToOpen(); if(this._focusedItem||j){this.close(); if(this.get_clickToOpen()){this.set_clicked(false); }}}},_onResize:function(){},_onItemMouseOver:function(j){var i=this._extractItemFromDomElement(j.eventMapTarget); if(!i.get_enabled()){return true; }i._preventClose(); if(this.get_clickToOpen()&&!this.get_clicked()){return true; }if(i._state==b.RadMenuItemState.Open||i._state==b.RadMenuItemState.AboutToOpen){return true; }var k=i.get_parent(); var l=k.get_openedItem(); if(l&&l!=i){l._clearTimeout(); l._state=b.RadMenuItemState.AboutToClose; l._setTimeout(function(){l.close(); l._timeoutRef=null; },this.get_expandDelay()); }if(i.get_items().get_count()==0&&!i._isWebServiceCallNeeded()){return true; }this._lastOpenedItem=i; i._state=b.RadMenuItemState.AboutToOpen; i._setTimeout(function(){i.open(); i._timeoutRef=null; },this.get_expandDelay()); return true; },_onItemMouseOut:function(j){var i=this._extractItemFromDomElement(j.eventMapTarget); if(!i.get_enabled()){return true; }var m=j.eventMapRelatedTarget; var k=i.get_element(); if(!m||k==m||$telerik.isDescendant(k,m)){return true; }if(this._childrenDetached&&$telerik.isDescendant(i.get_parent()._getAnimationContainer(),m)){return true; }if(this._scroller&&i.get_level()>0&&!$telerik.isDescendant(this.get_element(),m)){var l=i; while(l.get_level()>0){l=l.get_parent(); }this._onItemMouseOut({eventMapTarget:l.get_element(),eventMapRelatedTarget:m}); }if(i._state==b.RadMenuItemState.Closed||i._state==b.RadMenuItemState.AboutToClose){return true; }if(i._state==b.RadMenuItemState.AboutToOpen){i._clearTimeout(); i._state=b.RadMenuItemState.Closed; i.get_parent()._openedItem=null; return true; }if(this.get_clickToOpen()){return true; }i._state=b.RadMenuItemState.AboutToClose; i._setTimeout(function(){i.close(); i._timeoutRef=null; },this._collapseDelay); return true; },_onItemDragStart:function(i){i.preventDefault(); return false; },_getFirstClickableParent:function(j,k){var m=["select","option","a","input","textarea","button","label"]; var i=j; while(i!=k){var l=a.inArray(i.tagName.toLowerCase(),m)!=-1; if(l){return i; }i=i.parentNode; }return null; },_onItemClick:function(j){if(!this.get_enabled()){$telerik.cancelRawEvent(j); return false; }var i=this._extractItemFromDomElement(j.eventMapTarget); var k=this._getFirstClickableParent(j.target,i.get_element()); if(k&&!a(k).hasClass(e)){return false; }if(a(j.eventMapTarget).is(".rmItem")&&i.get_linkElement()){return false; }i._transferFocus(); i._click(j); if(!i._shouldNavigate()){$telerik.cancelRawEvent(j); }return false; },_onLinkMouseOver:function(j){var l=j.eventMapRelatedTarget; var i=this._extractItemFromDomElement(j.eventMapTarget); if(!i.get_enabled()){return true; }var k=i.get_linkElement(); if(!l||k==l||$telerik.isDescendant(k,l)){return true; }i._hovered=true; i._updateImageSrc(); this._raiseEvent("mouseOver",new b.RadMenuMouseOverEventArgs(i,j)); return true; },_onLinkMouseOut:function(j){var l=j.eventMapRelatedTarget; var i=this._extractItemFromDomElement(j.eventMapTarget); if(!i.get_enabled()){return true; }var k=i.get_linkElement(); if(!l||!k){return; }if(k==l||$telerik.isDescendant(k,l)){return true; }i._hovered=false; i._updateImageSrc(); this._raiseEvent("mouseOut",new b.RadMenuMouseOutEventArgs(i,j)); return true; },_onLinkMouseDown:function(i){var j=this._extractItemFromDomElement(i.eventMapTarget); if(!j.get_enabled()){return true; }j._clicked=true; j._updateLinkClass(); j._updateImageSrc(); return true; },_onLinkMouseUp:function(i){var j=this._extractItemFromDomElement(i.eventMapTarget); if(!j.get_enabled()){return true; }j._clicked=false; j._updateLinkClass(); j._updateImageSrc(); return true; },_onLinkBlur:function(i){var j=this._extractItemFromDomElement(i.eventMapTarget); if(!j.get_enabled()){return true; }j._focused=false; j.blur(); return true; },_onLinkFocus:function(i){var j=this._extractItemFromDomElement(i.eventMapTarget); if(!j.get_enabled()){return true; }j._focused=true; j.focus(); return true; },_onLinkKeyDown:function(i){var j=this._extractItemFromDomElement(i.eventMapTarget); if(!j.get_enabled()){return true; }return j._onKeyDown(i); },_getScrollItem:function(i){if(this._scroller&&a(i.parentNode).hasClass("rmRootGroup")){return this; }return this._extractItemFromDomElement(i); },_onItemMousewheel:function(j){var m=j.rawEvent; var o=m.wheelDelta?m.wheelDelta:-m.detail; var i=this._getScrollItem(j.eventMapTarget||j.target); if(i){var k=i.get_parent(); var n=k._scroller; if(n){var l=b.ScrollerSpeed.MousewheelDefault; n.scrollRelative(o>0?-l:l); j.preventDefault(); }}},_onTopArrowMouseDown:function(i){var j=this._getScrollItem(i.eventMapTarget); j._onScrollArrowMouseDown(b.ArrowPosition.Top); },_onTopArrowMouseUp:function(i){var j=this._getScrollItem(i.eventMapTarget); j._onScrollArrowMouseUp(b.ArrowPosition.Top); },_onTopArrowMouseOver:function(i){var j=this._getScrollItem(i.eventMapTarget); j._onScrollArrowMouseOver(b.ArrowPosition.Top); },_onTopArrowMouseOut:function(i){var j=this._getScrollItem(i.eventMapTarget); j._onScrollArrowMouseOut(b.ArrowPosition.Top); },_onBottomArrowMouseDown:function(i){var j=this._getScrollItem(i.eventMapTarget); j._onScrollArrowMouseDown(b.ArrowPosition.Bottom); },_onBottomArrowMouseUp:function(i){var j=this._getScrollItem(i.eventMapTarget); j._onScrollArrowMouseUp(b.ArrowPosition.Bottom); },_onBottomArrowMouseOver:function(i){var j=this._getScrollItem(i.eventMapTarget); j._onScrollArrowMouseOver(b.ArrowPosition.Bottom); },_onBottomArrowMouseOut:function(i){var j=this._getScrollItem(i.eventMapTarget); j._onScrollArrowMouseOut(b.ArrowPosition.Bottom); },_onLeftArrowMouseDown:function(i){var j=this._getScrollItem(i.eventMapTarget); j._onScrollArrowMouseDown(b.ArrowPosition.Left); },_onLeftArrowMouseUp:function(i){var j=this._getScrollItem(i.eventMapTarget); j._onScrollArrowMouseUp(b.ArrowPosition.Left); },_onLeftArrowMouseOver:function(i){var j=this._getScrollItem(i.eventMapTarget); j._onScrollArrowMouseOver(b.ArrowPosition.Left); },_onLeftArrowMouseOut:function(i){var j=this._getScrollItem(i.eventMapTarget); j._onScrollArrowMouseOut(b.ArrowPosition.Left); },_onRightArrowMouseDown:function(i){var j=this._getScrollItem(i.eventMapTarget); j._onScrollArrowMouseDown(b.ArrowPosition.Right); },_onRightArrowMouseUp:function(i){var j=this._getScrollItem(i.eventMapTarget); j._onScrollArrowMouseUp(b.ArrowPosition.Right); },_onRightArrowMouseOver:function(i){var j=this._getScrollItem(i.eventMapTarget); j._onScrollArrowMouseOver(b.ArrowPosition.Right); },_onRightArrowMouseOut:function(i){var j=this._getScrollItem(i.eventMapTarget); j._onScrollArrowMouseOut(b.ArrowPosition.Right); },_onScrollArrowClicked:function(i){i.preventDefault(); i.stopPropagation(); return false; },_onScrollArrowMouseDown:function(){if(!this._scroller){return; }this._scroller.changeScrollSpeed(b.ScrollerSpeed.Fast); },_onScrollArrowMouseUp:function(){if(!this._scroller){return; }this._scroller.changeScrollSpeed(b.ScrollerSpeed.Slow); },_onScrollArrowMouseOver:function(i){if(!this._scroller){return; }var j=1; if(i==b.ArrowPosition.Top||i==b.ArrowPosition.Left){j=-1; }var k=this.get_openedItem(); if(k){k.close(); }this._scroller.startScroll(b.ScrollerSpeed.Slow,j); },_onScrollArrowMouseOut:function(){if(!this._scroller){return; }this._scroller.stopScroll(); },_purgeEmptyGroup:function(i){if(i==this&&i.hide){i.hide(); }else{i.close(); }b.RadMenu._removeChildListCorners(i); b.RadMenu._removeScrollWrapContainer(i); var j=$telerik.getFirstChildByTagName(i.get_element(),"div",0); if(i._originalExpandMode){i.set_expandMode(i._originalExpandMode); }if(i._slideWrapElement){if($telerik.isIE){i._slideWrapElement.outerHTML=""; }i._slideWrapElement=null; i._scrollWrapElement=null; }i._linkElement=null; i._childListElement=null; i._animatedElement=null; i._animationContainer=null; i._itemsLoaded=false; i._hasItems=false; if(i._updateTextElementClass){i._updateTextElementClass(); }if(this._enableRootItemScroll){i._childrenDetached=false; }if(i==this){return; }if(i._slide){i._slide.dispose(); i._slide=null; }if($telerik.isIE&&j){j.outerHTML=""; }if(j&&j.parentNode){j.parentNode.removeChild(j); }j=null; },_childrenCleared:function(i){if(i!=this&&!i._getHasItems()){return; }this._purgeEmptyGroup(i); b.RadMenu.callBaseMethod(this,"_childrenCleared",[i]); },_childInserting:function(j,i,k){b.RadMenu.callBaseMethod(this,"_childInserting",[j,i,k]); if(!k._childControlsCreated){return; }this._backupClientState(); },_childInserted:function(j,i,k){this._restoreClientState(); if(k._setHasItems){k._setHasItems(true); }b.RadMenu.callBaseMethod(this,"_childInserted",[j,i,k]); if(k._updateTextElementClass){k._updateTextElementClass(); }if(k._state&&k._state==b.RadMenuItemState.Open){if(i._getWidth()>0){b.RadMenu._adjustChildrenWidth(k); }k._updateColumnWrapSize(); }if(k==this&&this._enableRootItemScroll){this._initializeScroller(); }},_attachChildItem:function(j,i,l){if(l==this||!l._hasMultipleColumns()){b.RadMenu.callBaseMethod(this,"_attachChildItem",[j,i,l]); return; }if(!l.get_childListElement()){l._createChildListElement(); }var k=j.get_nextSibling(); if(k){var n=k.get_element(); n.parentNode.insertBefore(i,n); }else{var m=l._getColumnForItem(j); a("> .rmGroup",m).append(i); l._recalculateColumns(); }},_childRemoving:function(i){i.set_selected(false); this._backupClientState(); b.RadMenu.callBaseMethod(this,"_childRemoving",[i]); },_childRemoved:function(i,j){this._restoreClientState(); i.get_text(); var k=i.get_element(); if(j.get_items().get_count()==0){this._purgeEmptyGroup(j); }else{if($telerik.isIE){k.outerHTML=""; }if(k.parentNode){k.parentNode.removeChild(k); }k=null; }b.RadMenu.callBaseMethod(this,"_childRemoved",[i,j]); if(j._state&&j._state==b.RadMenuItemState.Open){b.RadMenu._adjustChildrenWidth(j,true); j._updateColumnWrapSize(); }if(j==this&&this._enableRootItemScroll){this._initializeScroller(); }b.RadMenu._updateChildrenPositionClass(j); },_backupClientState:function(){this._backupSelectedItem=this.get_selectedItem(); },_restoreClientState:function(){if(this._backupSelectedItem){this._registerSelectedItem(this._backupSelectedItem); }},_getExtendedItemClickingEventArgs:function(i){return i; },_getExtendedItemClickedEventArgs:function(i){return i; },_incrementZIndex:function(j){if(this._zIndexIncrementDepth==0){var i=this.get_element(); i.style.zIndex=this._originalZIndex+j; }this._zIndexIncrementDepth++; },_restoreZIndex:function(){if(this._zIndexIncrementDepth>0){this._zIndexIncrementDepth--; }if(this._zIndexIncrementDepth==0){var i=this.get_element(); i.style.zIndex=this._originalZIndex; }},_getRtlClassName:function(){return"RadMenu_rtl"; },_getMainElement:function(){return this.get_element(); },_initRightToLeft:function(){var k=this._getMainElement(); k.dir="ltr"; if(k.className.indexOf("RadMenu_rtl")<0||k.className.indexOf("RadMenu_Context_rtl")<0){k.className=String.format("{0} {1}",k.className,this._getRtlClassName()); if(this._skin){k.className=String.format("{0} RadMenu_{1}_rtl",k.className,this._skin); }}for(var o=0; o0){m.Attributes=i.get_attributes()._data; }var j={item:m,context:l}; if(this.get_webServiceSettings().get_isWcf()){j.context=this._webServiceLoader._serializeDictionaryAsKeyValuePairs(j.context); if(j.item.Attributes){j.item.Attributes=this._webServiceLoader._serializeDictionaryAsKeyValuePairs(j.item.Attributes); }}this._webServiceLoader.loadData(j,i); },_onItemLoadingStarted:function(i,k){var j=k.get_context(); j._onChildrenLoading(); },_onItemLoadingSuccess:function(r,k){var s=k.get_data(); var n=k.get_context(); var m=n.get_items(); var j=this.get_webServiceSettings().get_isWcf(); for(p=0; p0){g.RadMenu._adjustChildrenWidth(B); }}},get_expandedImageUrl:function(){return this._properties.getValue("expandedImageUrl",null); },set_expandedImageUrl:function(x){this._properties.setValue("expandedImageUrl",x,true); this._updateImageSrc(); },get_disabledImageUrl:function(){return this._properties.getValue("disabledImageUrl",null); },set_disabledImageUrl:function(x){this._properties.setValue("disabledImageUrl",x,true); this._updateImageSrc(); },get_disabledCssClass:function(){return this._properties.getValue("disabledCssClass",o); },set_disabledCssClass:function(x){this._properties.setValue("disabledCssClass",x,true); this._updateLinkClass(); },get_expandedCssClass:function(){return this._properties.getValue("expandedCssClass",m); },set_expandedCssClass:function(x){this._properties.setValue("expandedCssClass",x,true); this._updateLinkClass(); },get_focusedCssClass:function(){return this._properties.getValue("focusedCssClass",q); },set_focusedCssClass:function(x){this._properties.setValue("focusedCssClass",x,true); this._updateLinkClass(); },get_selectedCssClass:function(){return this._properties.getValue("selectedCssClass",r); },set_selectedCssClass:function(x){this._properties.setValue("selectedCssClass",x,true); this._updateLinkClass(); },get_clickedCssClass:function(){return this._properties.getValue("clickedCssClass",k); },set_clickedCssClass:function(x){this._properties.setValue("clickedCssClass",x,true); this._updateLinkClass(); },get_outerCssClass:function(){return this._properties.getValue("outerCssClass",n); },set_outerCssClass:function(x){var y=this.get_outerCssClass(); this._properties.setValue("outerCssClass",x,true); this._updateItemClass(y,x); },get_postBack:function(){return this._properties.getValue("postBack",true)==true; },set_postBack:function(x){this._properties.setValue("postBack",x); },get_expandMode:function(){return this._properties.getValue("expandMode",g.MenuItemExpandMode.ClientSide); },set_expandMode:function(x){this._properties.setValue("expandMode",x,true); },set_enabled:function(x){g.RadMenuItem.callBaseMethod(this,"set_enabled",[x]); this._updateLinkClass(); this._updateImageSrc(); if(x){this._restoreNavigateUrl(); }else{this._clearNavigateUrl(); }},set_enableImageSprite:function(x){this._properties.setValue("enableImageSprite",x); this._enableImageSprite=x; },get_enableImageSprite:function(){if(this._enableImageSprite===null){var x=this.get_menu(); var y=this._properties.getValue("enableImageSprite",null); if(x!=null&&y===null){this._enableImageSprite=x._enableImageSprites; }else{this._enableImageSprite=y||false; }}return this._enableImageSprite; },get_level:function(){var x=this.get_parent(); var y=0; while(x){if(g.ControlItemContainer.isInstanceOfType(x)||g.RadMenu.isInstanceOfType(x)){return y; }y++; x=x.get_parent(); }return y; },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(y){var z=this.get_items(); if(z.get_count()==0){return; }var x=z.getItem(0); var A=x; while(!x._canFocus()){x=x._getNextItem(); if(x==A){return; }}x._transferFocus(y||null); },focusLastChild:function(y){var z=this.get_items(); if(z.get_count()==0){return; }var x=z.getItem(z.get_count()-1); var A=x; while(!x._canFocus()){x=x._getPreviousItem(); if(x==A){return; }}x._transferFocus(y||null); },focusNextItem:function(x){var y=this._getNextItem(); while(!y._canFocus()){y=y._getNextItem(); }y._transferFocus(x||null); },focusPreviousItem:function(x){var y=this._getPreviousItem(); while(!y._canFocus()){y=y._getPreviousItem(); }y._transferFocus(x||null); },select:function(){this.set_selected(true); this.click(); },unselect:function(){this.set_selected(false); },disable:function(){this.set_enabled(false); },enable:function(){this.set_enabled(true); },click:function(){this._click(null); },scrollIntoView:function(){var I=this.get_parent(); if(!I){return; }var M=I._getScrollWrapElement(); if(!M){return; }var G=I._scroller; if(!G){return; }var L=I._flow||I.get_groupSettings().get_flow(); var z=L==g.ItemFlow.Vertical; M[z?"scrollTop":"scrollLeft"]=0; var B=I.get_childListElement(); var J=z?"offsetTop":"offsetLeft"; var N=z?"offsetHeight":"offsetWidth"; var H=u([I._scroller._decArrow,I._scroller._incArrow]); var x=z?H.first().height():H.first().width(); var D=z?H.last().height():H.last().width(); var C=-B[J]; var y=M[N]-D; var A=C+M[N]; var K=this.get_element()[J]; var F=this.get_element()[N]; var E=K+F; if(KA-D){if(C-K>E-A){G.set_currentPosition(K-x); }else{G.set_currentPosition(K-y+F); }}},_determineCssClass:function(){if(this.get_isSeparator()){return"rmItem rmSeparator"; }return"rmItem"; },_renderImage:function(B){var A=this.get_enableImageSprite(); var z=A?"span":"img"; var x=A?" ":" alt='' src='"+this.get_imageUrl()+"' "; var y=new p(B).append("<",z,x).append("class='",v,"' "); if(!this.get_enabled()){y.append("disabled='disabled'"); }if(A){y.append(">"); }else{y.append("/>"); }return B; },_renderPreloadImages:function(){var z=[this.get_imageUrl(),this.get_hoveredImageUrl(),this.get_expandedImageUrl(),this.get_disabledImageUrl(),this.get_clickedImageUrl(),this.get_selectedImageUrl()]; for(var y=0; y"); },_renderChildItems:function(x,z){var B=this.get_items().toArray(); if(!z&&B.length==0){return; }var A=new p(x); A.append("
    "); if(this._getShouldRenderScrollWrap()){this._renderScrollWrap(A); }var y=this._getGroupCssClass(); if(this._hasMultipleColumns()){this._renderColumns(A,B,y,z); }else{this._renderChildGroup(A,B,y,z); }if(this._getShouldRenderScrollWrap()){A.append("
    "); }A.append("
    "); },_renderScrollWrap:function(x){x.append("
    "); },_renderColumns:function(x,G,A,H){x.append(""); },_renderChildGroup:function(x,A,z,y){x.append(""); },_getGroupLevelCssClass:function(){return j+(this.get_level()+1); },_getGroupCssClass:function(){var x=new p(); x.append(this._getFlowCssClass()); if(!this._getShouldRenderScrollWrap()){x.append(" ",d," ",this._getGroupLevelCssClass()); }return x.toString(); },_getRowItems:function(z,A,D){var x=[]; for(var B=0; B0; F--){var E=x[F]; var G=x[F-1]; if(E.length==G.length){return; }G.push(E.shift()); }}; var C=x[A-1]; u.each(D,function(){C.push(this); y(); }); return x[z]; },_getColumnItems:function(y,z,C){var A=[]; var x=0; for(var B=0; B .rmItem",y)[0]; if(z){y.style.width=z.offsetWidth+"px"; }}},_shouldInitializeChild:function(){return true; },_createChildListElement:function(){var y=[]; this._renderChildItems(y,true); var x=u(y.join("")); u(this.get_element()).append(x); this._initializeAnimation(); this._updateTextElementClass(); if(this._getShouldRenderScrollWrap()){this._initializeScroller(); }return x; },_getColumnForItem:function(y){if(!this._hasMultipleColumns()){return null; }var z=this.get_childListElement(); var B=u("> .rmGroupColumn",z); var C=this.get_groupSettings(); var x=C.get_repeatColumns(); if(B.length .rmGroupColumn",B); for(var x=y.length-1; x>0; x--){var A=y[x]; var z=y[x-1]; if(this._getColumnItemCount(z)==this._getColumnItemCount(A)){return; }u("> .rmGroup",z).append(u("> .rmGroup > .rmItem:first",A)); }},_getColumnItemCount:function(x){return u("> .rmGroup > .rmItem",x).length; },_createEmptyColumn:function(){var z=this._getGroupCssClass(); var x=new p(); x.append("
  • "); this._renderChildGroup(x,[],z); x.append("
  • "); var y=u(x.toString()); u(this.get_childListElement()).append(y); return y; },_hasMultipleColumns:function(){var y=this.get_groupSettings(); var x=y.get_repeatColumns(); if(x==1){x=this.get_menu().get_defaultGroupSettings().get_repeatColumns(); }return x>1; },_getShouldRenderScrollWrap:function(){if(this._hasMultipleColumns()){return false; }var y=this.get_groupSettings(); var x=this.get_menu().get_defaultGroupSettings(); var A=y.get_width(); if(!A){A=x.get_width(); }var z=y.get_height(); if(!z){z=x.get_height(); }return A||z; },_getChildElements:function(){var y=u(this.get_childListElement()); if(y.is(".rmMultiColumn")){var B=u("> .rmGroupColumn > ul > .rmItem",y); var E=this.get_groupSettings(); var z=E.get_repeatDirection(); var x=E.get_repeatColumns(); if(x==1||z==g.MenuRepeatDirection.Vertical){return B; }var D=[]; var A=Math.ceil(B.length/x); for(var C=0; C .rmGroupColumn > .rmGroup",z).each(function(){y+=this.offsetWidth; x=Math.max(this.offsetHeight,x); }); if(y==0||x==0){return; }if($telerik.quirksMode){y+=(z.css("border-left-style")!="none"?parseInt(z.css("border-left-width"),10):0)+(z.css("border-right-style")!="none"?parseInt(z.css("border-right-width"),10):0); }z.css("width",y+"px").css("height",x+"px"); },_createItemCollection:function(){var x=new g.RadMenuItemCollection(this); g.RadMenu._createChildControls(this,x); return x; },_getSlideWrapElement:function(){if(!this._slideWrapElement){var y=this.get_element(); if(y){var x=u("> .rmSlide",y); if(x.length==1){this._slideWrapElement=x[0]; }}}return this._slideWrapElement; },_getScrollWrapElement:function(){if(!this._scrollWrapElement){var x=this._getSlideWrapElement(); if(x){this._scrollWrapElement=$telerik.getFirstChildByTagName(x,"div",0); }}return this._scrollWrapElement; },_getAnimationContainer:function(){return this._getSlideWrapElement(); },_getAnimatedElement:function(){if(!this._animatedElement){this._animatedElement=this._getScrollWrapElement()||this.get_childListElement(); }return this._animatedElement; },_determineExpandDirection:function(){var x=this.get_groupSettings(); if(x.get_expandDirection()!=g.ExpandDirection.Auto){return; }var y=this._getParentFlow(); if(y==g.ItemFlow.Vertical){if(this.get_menu().get_rightToLeft()){x.set_expandDirection(g.ExpandDirection.Left); }else{x.set_expandDirection(g.ExpandDirection.Right); }}else{x.set_expandDirection(g.ExpandDirection.Down); }},_getSlideDirection:function(){var x=this.get_groupSettings().get_expandDirection(); if(x==g.ExpandDirection.Auto){return null; }return x; },_getParentFlow:function(){var x=this.get_parent(); if(!x){return null; }if(x==this.get_menu()){return x._flow; }else{return x.get_groupSettings().get_flow(); }},_initializeAnimation:function(){this._determineExpandDirection(); var x=this._getAnimatedElement(); if(x){var y=this.get_menu(); this._slide=new g.jSlide(x,y.get_expandAnimation(),y.get_collapseAnimation(),y.get_enableOverlay()); this._slide.initialize(); this._slide.set_direction(this._getSlideDirection()); this._collapseAnimationEndedDelegate=Function.createDelegate(this,this._onCollapseAnimationEnded); this._slide.add_collapseAnimationEnded(this._collapseAnimationEndedDelegate); this._expandAnimationEndedDelegate=Function.createDelegate(this,this._onExpandAnimationEnded); this._slide.add_expandAnimationEnded(this._expandAnimationEndedDelegate); }},_getHasItems:function(){if(this._hasItems===null){this._hasItems=this.get_itemData()&&this.get_itemData().length>0; }return this._hasItems; },_setHasItems:function(x){this._hasItems=x; },_clearNavigateUrl:function(){var x=this.get_linkElement(); if(!x){return; }if(!this.get_enabled()&&x.href){u(x).data("href",this._getNavigateUrl()); u(x).removeAttr("href"); }},_restoreNavigateUrl:function(){var x=this.get_linkElement(); if(!x){return; }var y=u(x).data("href"); if(this.get_enabled()&&y){x.href=y; }},_updateTextElementClass:function(){var y=this.get_textElement(); if(!y){return; }var x=a; if(this._getHasItems()||this.get_expandMode()==g.MenuItemExpandMode.WebService){x+=" "+this._getExpandClassName(); }y.className=x; },_onCollapseAnimationEnded:function(){var x=this.get_menu(); this.get_element().style.zIndex=0; x._restoreZIndex(); if(this.get_level()==0&&x.get_rightToLeft()){var y=x.get_element(); y.style.cssText=y.style.cssText; }},_onExpandAnimationEnded:function(){this._fixSlideSize(); },_initializeScroller:function(){var x=this._getScrollWrapElement(); if(x){this._scroller=new g.MenuItemScroller(this.get_childListElement(),this.get_groupSettings().get_flow()); this._scroller.initialize(); }},_isAutoScrollPossible:function(){var y=this.get_menu(); var x=this._getMaximumExpandSize(); var z=this._getAnimationContainer(); if(this.get_groupSettings().get_flow()==g.ItemFlow.Vertical){return(y._autoScrollMinimumHeightN)){I=g.ExpandDirection.Down; B=G; }break; case g.ExpandDirection.Down:if($telerik.elementOverflowsBottom(H,O,D)){if(C.y>O.offsetHeight){I=g.ExpandDirection.Up; B=-y; }}break; case g.ExpandDirection.Left:if(D.xE){I=g.ExpandDirection.Right; F=M; }}break; case g.ExpandDirection.Right:if($telerik.elementOverflowsRight(H,O,D)){if(E>K){I=g.ExpandDirection.Left; F=-z; }}break; }switch(I){case g.ExpandDirection.Down:case g.ExpandDirection.Up:if($telerik.elementOverflowsRight(H,O)){var x=H.width-(D.x+z); var P=this.get_menu(); if(P.get_rightToLeft()&&this.get_level()==0){F+=x; }else{F=x; }}break; case g.ExpandDirection.Left:case g.ExpandDirection.Right:if($telerik.elementOverflowsBottom(H,O)){var J=Math.min(y,H.height); B=H.height-(D.y+J)-this._defaultScrollSize; }break; }this._setChildContainerPosition(F,B); this._slide.set_direction(I); return{adjustedLeft:F,adjustedTop:B}; },_closeChildren:function(y){var z=this.get_items(); for(var A=0; A0&&D.get_expandDirection()==g.ExpandDirection.Left){this.focusFirstChild(B); return; }var y=this.get_parent(); var A=null; if(y.get_groupSettings){A=y.get_groupSettings(); }if(A&&A.get_expandDirection()==g.ExpandDirection.Right){y._transferFocus(B); return; }var C=this.get_menu().get_openedItem(); if(C){C.focusPreviousItem(B); }},_onKeyboardRight:function(B){var x=this._getParentFlow(); if(x==g.ItemFlow.Horizontal){this.focusNextItem(B); return; }var z=this.get_items(); var D=this.get_groupSettings(); if(z.get_count()>0&&D.get_expandDirection()==g.ExpandDirection.Right){this.focusFirstChild(B); return; }var y=this.get_parent(); var A=null; if(y.get_groupSettings){A=y.get_groupSettings(); }if(A&&A.get_expandDirection()==g.ExpandDirection.Left){y._transferFocus(); return; }var C=this.get_menu().get_openedItem(); if(C){C.focusNextItem(B); }},_onKeyboardEsc:function(x){var y=this.get_parent(); var z=this.get_menu(); if(y==z){this._blur(x); }else{y._close(x); y._transferFocus(x); }},_transferFocus:function(y){this._ensureChildControls(); var z=this.get_parent(); var A=z.get_openedItem(); if(A&&A!=this){A._close(y); }if(z._state!=g.RadMenuItemState.Open&&z.open){z._open(y); }var x=this.get_linkElement(); if(x){x.focus(y||null); }},_render:function(x){x[x.length]="
  • "; this._renderLink(x); if(this.get_imageUrl()||this.get_enableImageSprite()){this._renderImage(x); }x[x.length]=""; x[x.length]=this.get_text(); x[x.length]=""; this._renderChildItems(x); if(this.get_menu()._enableItemImagesPreloading){this._renderPreloadImages(x); }x[x.length]="
  • "; },_renderAccessKey:function(){if(this.get_isSeparator()||this.get_templated()){return; }var x=this.get_linkElement(); if(!x){return; }var y=this.get_linkElement().accessKey.toLowerCase(); if(!y){return; }var B=this.get_textElement(); var z=B.innerHTML; var A=z.toLowerCase().indexOf(y); if(z.toLowerCase().indexOf("")!=-1){return; }if(A==-1){return; }B.innerHTML=z.substr(0,A)+""+z.substr(A,1)+""+z.substr(A+1,z.length); },_getIsImageOnly:function(){if(this._isImageOnly===null){this._isImageOnly=this.get_imageElement()!=null; }return this._isImageOnly; },_getFlowCssClass:function(){if(this.get_groupSettings().get_flow()==g.ItemFlow.Vertical){return h; }else{return b; }},_isWebServiceCallNeeded:function(){if(this._itemsLoading){return false; }return(!this._itemsLoaded&&this.get_expandMode()==g.MenuItemExpandMode.WebService); },_createLoadingItem:function(){var y=this.get_menu().get_loadingTemplate(); if(y===""){return; }var x=new g.RadMenuItem(); this.get_items().add(x); x.set_text(y); },_removeLoadingItem:function(){if(this.get_menu().get_loadingTemplate()===""){return; }var x=this.get_items().getItem(0); this.get_items().remove(x); },_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; if(this.get_items().get_count()>0){this._updateColumnWrapSize(); this._slide.updateSize(); if(this._hovered){this._doOpen(null); }}},_onChildrenLoadingError:function(){this._close(null); this._removeLoadingItem(); this._itemsLoaded=false; this._itemsLoading=false; },_adjustSiblingsWidth:function(y){var x=this.get_parent(); if(x){this._clearSiblingsWidth(); g.RadMenu._adjustChildrenWidth(x,y); }},_removeChildListCorners:function(){var x=this.get_menu(); if(x&&(x.get_enableRoundedCorners()||x.get_enableShadows())){g.RadMenu._removeChildListCorners(this); }},_removeScrollWrapContainer:function(){var x=this.get_menu(); if(x&&((x.get_enableRoundedCorners()&&this._roundedCornersRendered)||(x.get_enableShadows()&&this._shadowsRendered))){g.RadMenu._removeScrollWrapContainer(this); }},_ensureRoundedCorners:function(){if(this._roundedCornersRendered){return; }var x=this.get_menu(); if(x&&x.get_enableRoundedCorners()){this._roundedCornersRendered=true; g.RadMenu._renderCornerElements(this); }},_ensureShadows:function(){if(this._shadowsRendered){return; }var x=this.get_menu(); if(x&&x.get_enableShadows()){this._shadowsRendered=true; g.RadMenu._renderCornerElements(this,"shadow"); }}}; g.RadMenuItem.registerClass("Telerik.Web.UI.RadMenuItem",g.ControlItem); })($telerik.$); Type.registerNamespace("Telerik.Web.UI"); Telerik.Web.UI.RadMenuItemCollection=function(a){Telerik.Web.UI.RadMenuItemCollection.initializeBase(this,[a]); }; Telerik.Web.UI.RadMenuItemCollection.prototype={}; Telerik.Web.UI.RadMenuItemCollection.registerClass("Telerik.Web.UI.RadMenuItemCollection",Telerik.Web.UI.ControlItemCollection); Type.registerNamespace("Telerik.Web.UI"); (function(){var a=$telerik.$,b=Telerik.Web.UI; a.registerEnum(b,"ItemFlow",{Vertical:0,Horizontal:1}); a.registerEnum(b,"ExpandDirection",{Auto:0,Up:1,Down:2,Left:3,Right:4}); a.registerEnum(b,"MenuRepeatDirection",{Vertical:0,Horizontal:1}); b.RadMenuItemGroupSettings=function(d,c){if(c){for(var e in c){this[e]=c[e]; }}for(var e in d){var f=this["set_"+e]; if(f){f.call(this,d[e]); }}}; a.registerControlProperties(b.RadMenuItemGroupSettings,{flow:b.ItemFlow.Vertical,expandDirection:b.ExpandDirection.Auto,offsetX:0,offsetY:0,width:null,height:null,repeatDirection:b.MenuRepeatDirection.Vertical,repeatColumns:1}); b.RadMenuItemGroupSettings.registerClass("Telerik.Web.UI.RadMenuItemGroupSettings"); })(); (function(){var a=$telerik.$; var b=Telerik.Web.UI; b.MenuItemScroller=function(d,c){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=d; this._scrollElement=null; this._orientation=null; this._minScrollPosition=null; this._itemFlow=c; this._scrollerPositionChangedDelegate=null; this._decArrow=null; this._incArrow=null; this._rtl=b.RadMenu._requiresRightToLeft(d); }; b.MenuItemScroller.prototype={initialize:function(){this._childListElement.style.position="relative"; this._scrollElement=this._childListElement.parentNode; this._orientation=b.ScrollerOrientation.Horizontal; if(this._itemFlow==b.ItemFlow.Vertical){this._orientation=b.ScrollerOrientation.Vertical; }this._scroller=new b.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; var c=a(this._decArrow).add(a(this._incArrow)); if($telerik.isIE){c.unbind(".menuScroller"); }c.remove(); }this._scrollerPositionChangedDelegate=null; },updateState:function(){this._updateScrollingLimits(); this._updateArrows(); },resetState:function(){this._scroller.resetState(); },startScroll:function(d,c){this._scroller.startScroll(d,c); },changeScrollSpeed:function(c){this._scroller.changeScrollSpeed(c); },stopScroll:function(){this._scroller.stopScroll(); },scrollToMaxPosition:function(){this._scroller.scrollToMaxPosition(); },scrollRelative:function(c){this.set_currentPosition(this.get_currentPosition()+c); },get_currentPosition:function(){return this._scroller._currentPosition; },set_currentPosition:function(c){this._scroller._scrollTo(Math.max(Math.min(this._scroller._maxPosition,c),this._scroller._minPosition)); },_createArrows:function(){this._decArrow=this._createArrowDomElement(); this._incArrow=this._createArrowDomElement(); if(this._orientation==b.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 c=document.createElement("a"); c.href="#"; c.style.zIndex=this._arrowsZIndex; c.appendChild(document.createTextNode(" ")); if($telerik.isIE){a(c).bind("dragstart.menuScroller",function(){return false; }); }this._scrollElement.appendChild(c); return c; },_updateArrows:function(){var c=this._scroller.isAtMinPosition(); var d=this._scroller.isAtMaxPosition(); if(c){this._decArrow.disabled="disabled"; this._setElementCssClass(this._decArrow,this._getDecArrowCssClass(false)); }else{this._decArrow.disabled=""; this._setElementCssClass(this._decArrow,this._getDecArrowCssClass(true)); }if(d){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 d=0; var g=0; var e=0; if(this._orientation==b.ScrollerOrientation.Vertical){d=this._childListElement.offsetHeight-this._scrollElement.offsetHeight; g=this._decArrow.offsetHeight; e=this._incArrow.offsetHeight; }else{d=this._childListElement.offsetWidth-this._scrollElement.offsetWidth; g=this._decArrow.offsetWidth; e=this._incArrow.offsetWidth; }var f=0; var c=d; if(this._rtl&&$telerik.isIE8){f=-d; c=0; }this._scroller.setScrollingLimits(f,c); },_getDecArrowCssClass:function(c){if(this._orientation==b.ScrollerOrientation.Vertical){return c?this._topArrowCssClass:this._topArrowDisabledCssClass; }else{return c?this._leftArrowCssClass:this._leftArrowDisabledCssClass; }},_getIncArrowCssClass:function(c){if(this._orientation==b.ScrollerOrientation.Vertical){return c?this._bottomArrowCssClass:this._bottomArrowDisabledCssClass; }else{return c?this._rightArrowCssClass:this._rightArrowDisabledCssClass; }},_setElementCssClass:function(c,e){var d=c.className; if(d!=e){c.className=e; }},_onScrollerPositionChanged:function(c,d){this._updateArrows(); }}; b.MenuItemScroller.registerClass("Telerik.Web.UI.MenuItemScroller",null,Sys.IDisposable); })(); if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();
    tutaksikix uygur免费www黄页网站快猫视频rec05回家导航tutaksikix0998色哟哟9uu破解版无限看已换域名225222链接链接