PageSourceSearch

https://worldjobbank.org/ScriptResource.axd?d=LlwbgV7oh2_HWXnbPbMg…AAMptk2rgUL3P5XKWqFC1Mo1&t=ffffffffa0097ef4

js worldjobbank.org collected 2026-10-07 09:39:46 UTC 37,843 bytes, 853 lines download raw bytes

1(function(a,c,b,y){var g=".",j="rmGroup",q="rmMultiColumn",r="rmMultiGroup",i="rmGroupColumn",h="rmFirstGroupColumn",t="rmScrollWrap",u="rmSlide",p="rmLevel",k="rmHorizontal",z="rmVertical",s="rmRootLink",m="rmImageOnly",o="rmLeftImage",x="rmToggle",l="rmIcon",w="rmText",d="rmContentTemplate",e="rmDisabled",f="div",v="span",n="img";
2c.RadMenuItem=function(){c.RadMenuItem.initializeBase(this);
3};
4c.RadMenuItem.prototype={_initialize:function(B,A){c.RadMenuItem.callBaseMethod(this,"_initialize",[B,A]);
5var C=this.get_menu();
6this._groupSettings=new c.RadMenuItemGroupSettings(B.groupSettings||{},C.get_defaultGroupSettings());
7this._initializeAnimation();
8this._clearNavigateUrl();
9this._updateTextElementClass();
10this._renderAccessKey();
11this._originalExpandMode=this.get_expandMode();
12},_initializeRenderedItem:function(){c.RadMenuItem.callBaseMethod(this,"_initializeRenderedItem");
13this._initializeAnimation();
14this._clearNavigateUrl();
15this._updateTextElementClass();
16this._updateLinkClass();
17this._renderAccessKey();
18c.RadMenu._updateChildrenPositionClass(this.get_parent());
19c.RadMenu._updateChildrenPositionClass(this);
20},_dispose:function(){c.BaseMenuItem.callBaseMethod(this,"_dispose");
21if(this._collapseAnimationEndedDelegate){if(this._slide){this._slide.remove_collapseAnimationEnded(this._collapseAnimationEndedDelegate);
22}this._collapseAnimationEndedDelegate=null;
23}if(this._slide){this._slide.dispose();
24this._slide=null;
25}if(this._scroller){this._scroller.dispose();
26this._scroller=null;
27}this._disposeDomElement();
28this._clearTimeout();
29},get_view:function(){return this._view;
30},withView:function(A,B){if(!this.get_view()){if(this.get_menu()){this._view=c.RadMenu.GetView(this.get_menu(),this);
31}else{if(B){return B();
32}else{return;
33}}}return A();
34},get_templateElement:function(){var A;
35if(!this._templateElement){A=this._getTemplateClassName();
36this._templateElement=a(this.get_element()).children(f+g+A).get(0);
37}return this._templateElement;
38},get_childListElement:function(){if(!this._childListElement){var C=this._getSlideWrapElement();
39if(C){var A=C,B=this._getScrollWrapElement();
40if(B){A=B;
41}this._childListElement=$telerik.getFirstChildByTagName(A,"ul",0);
42}}return this._childListElement;
43},get_imageElement:function(){if(!this._imageElement){this._imageElement=a(this.get_linkElement()).children(g+o).get(0);
44}return this._imageElement;
45},get_textElement:function(){if(!this._textElement){this._textElement=a(this.get_linkElement()).children(g+w).get(0);
46}return this._textElement;
47},get_text:function(){var A=this;
48return A.withView(function(){return A.get_view().get_text();
49},function(){return c.RadMenuItem.callBaseMethod(A,"get_text");
50});
51},set_text:function(B){var A=this;
52this.withView(function(){A.get_view().set_text(B);
53},function(){c.RadMenuItem.callBaseMethod(A,"set_text",[B]);
54});
55if(this._state!=c.RadMenuItemState.Closed){this._clearWidth();
56this._setWidth(this._getWidth()+"px");
57}else{if(this._getParentFlow()==c.ItemFlow.Vertical){this._adjustSiblingsWidthOnShow=true;
58}}this._updateLinkClass();
59},set_navigateUrl:function(B){var A=this;
60this._properties.setValue("navigateUrl",B,true);
61this.withView(function(){A.get_view().set_navigateUrl(B);
62});
63this._clearNavigateUrl();
64},get_groupSettings:function(){return this._groupSettings;
65},set_groupSettings:function(A){this._groupSettings=A;
66},get_hoveredImageUrl:function(){return this._properties.getValue("hoveredImageUrl",null);
67},set_hoveredImageUrl:function(A){this._properties.setValue("hoveredImageUrl",A,true);
68this._updateImageSrc();
69},get_clickedImageUrl:function(){return this._properties.getValue("clickedImageUrl",null);
70},set_clickedImageUrl:function(A){this._properties.setValue("clickedImageUrl",A,true);
71this._updateImageSrc();
72},get_selectedImageUrl:function(){return this._properties.getValue("selectedImageUrl",null);
73},set_selectedImageUrl:function(A){this._properties.setValue("selectedImageUrl",A,true);
74this._updateImageSrc();
75},get_imageUrl:function(){if(this._imageUrl){return this._imageUrl;
76}this._imageUrl=this._properties.getValue("imageUrl",null);
77if(this._imageUrl){return this._imageUrl;
78}this._imageUrl=this._getCurrentImageUrl();
79return this._imageUrl;
80},set_imageUrl:function(A){this._imageUrl=A;
81this._properties.setValue("imageUrl",A,true);
82if(!A){a(this.get_imageElement()).remove();
83this._imageElement=null;
84return;
85}this._updateImageSrc();
86},get_expandedImageUrl:function(){return this._properties.getValue("expandedImageUrl",null);
87},set_expandedImageUrl:function(A){this._properties.setValue("expandedImageUrl",A,true);
88this._updateImageSrc();
89},get_disabledImageUrl:function(){return this._properties.getValue("disabledImageUrl",null);
90},set_disabledImageUrl:function(A){this._properties.setValue("disabledImageUrl",A,true);
91this._updateImageSrc();
92},set_visible:function(H){var I=this.get_visible()!=H;
93if(!I){return;
94}c.RadMenuItem.callBaseMethod(this,"set_visible",[H]);
95var F=this._getParentFlow(),B=this.get_element(),D=this.get_linkElement(),G=this.get_textElement(),A=H?"":"none",C;
96if(F===c.ItemFlow.Vertical){this._adjustSiblingsWidthOnShow=true;
97}this._clearWidth();
98if(D){C=D;
99}else{if(G){C=G;
100}}if(this.get_isSeparator()||this.get_templated()){C=B.childNodes[0]||B;
101}C.style.display=A;
102if(C!=B){if(this.get_visible()){B.style.cssText=this._styleCssText;
103}else{this._styleCssText=this.get_element().style.cssText;
104B.style.cssText="padding:0px;margin:0px;height:0px;overflow:hidden;";
105}}if(F===c.ItemFlow.Vertical){if(!H){this._clearSiblingsWidth();
106}var E=this.get_parent();
107if(E.get_element().offsetWidth>0){c.RadMenu._adjustChildrenWidth(E);
108}}},scrollIntoView:function(){var K=this.get_parent();
109if(!K){return;
110}var M=K._getScrollWrapElement();
111if(!M){return;
112}var L=K._scroller;
113if(!L){return;
114}var D=(K._flow!==y&&K._flow!==null)?K._flow:K.get_groupSettings().get_flow();
115var F=D==c.ItemFlow.Vertical;
116if(F){M.scrollTop=0;
117}else{$telerik.scrollLeft(M,0);
118}var B=K.get_childListElement();
119var I=F?"offsetTop":"offsetLeft";
120var Q=F?"offsetHeight":"offsetWidth";
121var A=a([K._scroller._decArrow,K._scroller._incArrow]);
122var C=F?A.first().height():A.first().width();
123var E=F?A.last().height():A.last().width();
124var O=-B[I];
125var P=M[Q]-E;
126var N=O+M[Q];
127var H=this.get_element()[I];
128var J=this.get_element()[Q];
129var G=H+J;
130if(H<O+C||G>N-E){if(O-H>G-N){L.set_currentPosition(H-C);
131}else{L.set_currentPosition(H-P+J);
132}}},focusFirstChild:function(A){var D=this.get_items();
133if(D.get_count()==0){return;
134}var C=D.getItem(0);
135var B=C;
136while(!C._canFocus()){C=C._getNextItem();
137if(C==B){return;
138}}C._transferFocus(A||null);
139},focusLastChild:function(A){var C=this.get_items();
140if(C.get_count()==0){return;
141}var B=C.getItem(C.get_count()-1);
142var D=B;
143while(!B._canFocus()){B=B._getPreviousItem();
144if(B==D){return;
145}}B._transferFocus(A||null);
146},focusNextItem:function(A){var B=this._getNextItem();
147while(!B._canFocus()){B=B._getNextItem();
148}B._transferFocus(A||null);
149},focusPreviousItem:function(A){var B=this._getPreviousItem();
150while(!B._canFocus()){B=B._getPreviousItem();
151}B._transferFocus(A||null);
152},_render:function(A){var B=this,C=this.withView(function(){return B.get_view();
153});
154if(this._renderedClientTemplate){this._renderClientTemplate(A);
155}else{A[A.length]="<li class='"+this._determineCssClass()+"'>";
156C._renderLink(A);
157C._renderLinkContent(A);
158C._renderLinkEndTag(A);
159this._renderChildItems(A);
160A[A.length]="</li>";
161}},_renderLinkContent:function(A){var C=(this.get_menu().get_showToggleHandle()&&(this.get_items().get_count()>0||this.get_expandMode()===c.MenuItemExpandMode.WebService)),B=C;
162if(this.get_imageUrl()||this.get_enableImageSprite()){B=true;
163this._renderImage(A);
164}if(this.get_menu()._enableItemImagesPreloading){this._renderPreloadImages(A);
165}this.get_view()._renderTextElement(A,B);
166if(C){this._renderToggleButton(A);
167}},_renderClientTemplate:function(A){A[A.length]="<li class='"+this._determineCssClass()+" rmTemplate'>";
168A[A.length]="<div class='"+this._getTemplateClassName()+"'>";
169A[A.length]=this._renderedClientTemplate;
170A[A.length]="</div></li>";
171},_renderTextElement:function(A){A[A.length]="<span class='"+w+"'>";
172A[A.length]=this.get_text();
173A[A.length]="</span>";
174},_renderToggleButton:function(A){A[A.length]="<span class='"+x+"'>";
175A[A.length]="<span class='"+l+"'>Toggle</span>";
176A[A.length]="</span>";
177},_renderAccessKey:function(){if(this.get_isSeparator()||this.get_templated()){return;
178}var C=this.get_linkElement(),A;
179if(!C){return;
180}A=C.getAttribute("accessKey");
181if(!A||!this.get_text()){return;
182}var E=this.get_textElement()||C,D=E.innerHTML,B=D.toLowerCase().indexOf(A.toLowerCase());
183if(D.toLowerCase().indexOf("<u>")!=-1){return;
184}if(B==-1){return;
185}E.innerHTML=D.substr(0,B)+"<u>"+D.substr(B,1)+"</u>"+D.substr(B+1,D.length);
186},_renderImage:function(B){var A=this.get_enableImageSprite(),C=A?"span":"img",E=A?" ":" alt='' src='"+this.get_imageUrl()+"' ",D=new b(B);
187D.append("<",C,E).append("class='",o,"' ");
188if(!this.get_enabled()){D.append("disabled='disabled'");
189}if(A){D.append("></span>");
190}else{D.append("/>");
191}return B;
192},_renderPreloadImages:function(){var B=[this.get_imageUrl(),this.get_hoveredImageUrl(),this.get_expandedImageUrl(),this.get_disabledImageUrl(),this.get_clickedImageUrl(),this.get_selectedImageUrl()];
193for(var A=0;
194A<B.length;
195A++){var C=B[A];
196if(C){c.RadMenu._preloadImage(C);
197}}},_renderChildItems:function(A,E){var B=this.get_items().toArray();
198if(!E&&B.length==0){return;
199}var D=new b(A);
200D.append("<div class='rmSlide'>");
201if(this._getShouldRenderScrollWrap()){this._renderScrollWrap(D);
202}var C=this._getGroupCssClass();
203if(this._hasMultipleColumns()){this._renderColumns(D,B,C,E);
204}else{this._renderChildGroup(D,B,C,E);
205}if(this._getShouldRenderScrollWrap()){D.append("</div>");
206}D.append("</div>");
207},_renderScrollWrap:function(D){D.append("<div class='").append(t," ",j," ").append(p,this._getGroupLevelCssClass()).append("' style='");
208var B=this.get_groupSettings();
209var C=B.get_width();
210if(C){D.append("width :",C,";");
211}var A=B.get_height();
212if(A){D.append("height :",A,";");
213}D.append("'>");
214},_renderColumns:function(I,F,D,J){I.append("<ul class='",q,"'>");
215var E=this.get_groupSettings();
216var K=E.get_repeatColumns();
217var H=J?0:Math.min(K,F.length);
218var L=E.get_repeatDirection();
219for(var A=0;
220A<H;
221A++){var C="";
222if(A==0){C=" "+h;
223}I.append("<li class='",i,C,"'>");
224var B=L==c.MenuRepeatDirection.Vertical?this._getRowItems(A,K,F):this._getColumnItems(A,K,F);
225var G=D+" "+r;
226this._renderChildGroup(I,B,G);
227I.append("</li>");
228}I.append("</ul>");
229},_renderChildGroup:function(C,B,A,D){C.append("<ul class='",A,"'>");
230if(!D){a.each(B,function(){this._render(C.get_buffer());
231});
232}C.append("</ul>");
233},_determineCssClass:function(){var A=this;
234return this.withView(function(){return A.get_view()._determineCssClass();
235});
236},_getNextItem:function(){var B=this.get_parent().get_items();
237var A=this.get_index();
238if(A==B.get_count()-1){return B.getItem(0);
239}return B.getItem(A+1);
240},_getPreviousItem:function(){var B=this.get_parent().get_items();
241var A=this.get_index();
242if(A==0){return B.getItem(B.get_count()-1);
243}return B.getItem(A-1);
244},_getTemplateClassName:function(){var A=this;
245return this.withView(function(){return A.get_view().get_templateClassClass();
246});
247},_getGroupLevelCssClass:function(){return p+(this.get_level()+1);
248},_getGroupCssClass:function(){var A=new b();
249A.append(this._getFlowCssClass());
250if(!this._getShouldRenderScrollWrap()){A.append(" ",j," ",this._getGroupLevelCssClass());
251}return A.toString();
252},_getIsImageOnly:function(){if(this._isImageOnly===null){this._isImageOnly=this.get_imageElement()!=null;
253}return this._isImageOnly;
254},_getFlowCssClass:function(){if(this.get_groupSettings().get_flow()==c.ItemFlow.Vertical){return z;
255}else{return k;
256}},_getCurrentImageUrl:function(){var B=null,A=this.get_imageElement();
257if(A){B=A.src;
258}return B;
259},_getParentFlow:function(){var A=this.get_parent();
260if(!A){return null;
261}if(A==this.get_menu()){return A._flow;
262}else{return A.get_groupSettings().get_flow();
263}},_getRowItems:function(F,D,B){var G=[];
264for(var E=0;
265E<D;
266E++){G[E]=[];
267}var A=function(){for(var J=G.length-1;
268J>0;
269J--){var I=G[J];
270var H=G[J-1];
271if(I.length==H.length){return;
272}H.push(I.shift());
273}};
274var C=G[D-1];
275a.each(B,function(){C.push(this);
276A();
277});
278return G[F];
279},_getColumnItems:function(A,F,E){var B=[];
280var C=0;
281for(var D=0;
282D<E.length;
283D++){if(C==A){B.push(E[D]);
284}C=(C+1)%F;
285}return B;
286},_getColumnForItem:function(D){if(!this._hasMultipleColumns()){return null;
287}var A=this.get_childListElement();
288var B=a(A).children(".rmGroupColumn");
289var C=this.get_groupSettings();
290var F=C.get_repeatColumns();
291if(B.length<F){return this._createEmptyColumn();
292}var E=D.get_index();
293if(C.get_repeatDirection()==c.MenuRepeatDirection.Horizontal){return B[E%F];
294}else{return B[B.length-1];
295}},_getColumnItemCount:function(A){return a(A).children(".rmGroup").children(".rmItem").length;
296},_getToggleButtonElement:function(){if(!this._toggleButtonElement){this._toggleButtonElement=a(this.get_linkElement()).children(g+x).get(0);
297}return this._toggleButtonElement;
298},_getChildElements:function(){var A=a(this.get_childListElement());
299if(A.is(".rmMultiColumn")){var B=A.find("> .rmGroupColumn > ul > .rmItem"),C=this.get_groupSettings(),G=C.get_repeatDirection(),F=C.get_repeatColumns();
300if(F==1||G==c.MenuRepeatDirection.Vertical){return B;
301}var E=[],H=Math.ceil(B.length/F);
302for(var D=0;
303D<H;
304D++){B.filter(".rmItem:nth-child("+(D+1)+")").each(function(){Array.add(E,this);
305});
306}return E;
307}return A.children(".rmItem");
308},_getSlideWrapElement:function(){if(!this._slideWrapElement){this._slideWrapElement=a(this.get_element()).children(g+u).get(0);
309}return this._slideWrapElement;
310},_getScrollWrapElement:function(){if(!this._scrollWrapElement){var A=this._getSlideWrapElement();
311if(A){this._scrollWrapElement=a(A).children(g+t).get(0);
312}}return this._scrollWrapElement;
313},_getAnimationContainer:function(){return this._getSlideWrapElement();
314},_getContentTemplateContainer:function(){if(!this._contentTemplateContainer){this._contentTemplateContainer=a(this.get_element()).find(g+d).get(0);
315}return this._contentTemplateContainer;
316},_getAnimatedElement:function(){if(!this._animatedElement){this._animatedElement=this._getScrollWrapElement()||this.get_childListElement()||this._getContentTemplateContainer();
317}return this._animatedElement;
318},_createChildControls:function(){c.RadMenuItem.callBaseMethod(this,"_createChildControls");
319this._initializeScroller();
320},_createChildListElement:function(){var A=[];
321this._renderChildItems(A,true);
322var B=a(A.join(""));
323a(this.get_element()).append(B);
324this._initializeAnimation();
325this._updateTextElementClass();
326if(this._getShouldRenderScrollWrap()){this._initializeScroller();
327}return B;
328},_createToggleButtonElement:function(){var B=document.createElement(v),A=document.createElement(v);
329A.className=l;
330A.appendChild(document.createTextNode("Toggle"));
331B.className=x;
332B.appendChild(A);
333this._toggleButtonElement=B;
334},_attachChildren:function(){if(this._childrenDetached){var A=this.get_element();
335A.appendChild(this._getAnimationContainer());
336this._childrenDetached=false;
337}},_detachChildren:function(){if(this._childrenDetached){return;
338}var C=this.get_parent(),D;
339if(this.get_level()==0&&C.get_enableRootItemScroll()){var E=document.createElement("div");
340E.className="rmHorizontal rmRootGroup";
341if(C.get_enableRoundedCorners()){E.className+=" rmRoundedCorners";
342}if(C.get_enableShadows()){E.className+=" rmShadows";
343}E.style.position="absolute";
344E.style.height="0px";
345E.style.width="0px";
346E.style.visibility="hidden";
347E.style.left="0px";
348if(C.get_rightToLeft()){E.style.cssFloat="right";
349}var B=document.createElement("div");
350B.className=j;
351B.style.position="relative";
352C.get_element().appendChild(E);
353E.appendChild(B);
354if($telerik.isIE){E.style.cssText=E.style.cssText;
355}D=B;
356}else{D=C._getAnimationContainer();
357}var A=this._getAnimationContainer();
358D.appendChild(A);
359this._childrenDetached=true;
360A._item=this;
361A._itemTypeName=Object.getTypeName(this);
362},_getWidth:function(){var A=this.get_linkElement();
363if(A){return A.offsetWidth;
364}else{return this.get_element().offsetWidth;
365}},_setWidth:function(L){var K=this.get_linkElement();
366if(!K){K=this.get_element();
367}if(!K){return;
368}if($telerik.isOpera){this.get_element().style.cssFloat="none";
369}var J=parseInt(L,10);
370if(isNaN(J)){K.style.width=L;
371return;
372}var G=J,I=parseFloat(a(K).css("padding-left"))+parseFloat(a(K).css("padding-right")),A=a(K).css("border-left-width"),B=a(K).css("border-right-width"),F=/\d/,C=F.test(A)?parseInt(A,10):0,D=F.test(B)?parseInt(B,10):0,E=C+D;
373G-=I+E;
374if(G<=0){return;
375}var H=K.style.width;
376if(!H||G!=H){K.style.width=G+"px";
377}},_clearWidth:function(){this._setWidth("auto");
378},_initializeAnimation:function(){this._determineExpandDirection();
379var A=this._getAnimatedElement();
380if(A){var B=this.get_menu();
381this._slide=new c.jSlide(A,B.get_expandAnimation(),B.get_collapseAnimation(),B.get_enableOverlay());
382this._slide.initialize();
383this._slide.set_direction(this._getSlideDirection());
384this._collapseAnimationEndedDelegate=Function.createDelegate(this,this._onCollapseAnimationEnded);
385this._slide.add_collapseAnimationEnded(this._collapseAnimationEndedDelegate);
386}},_doOpen:function(B){var F=this,C=this.get_menu(),E,A,D;
387if(!this.get_hasContentTemplate()){this._ensureChildControls();
388}E=this.get_parent();
389if(E!=C&&E._state!=c.RadMenuItemState.Open){E._open(B);
390}A=this._getAnimationContainer();
391if(!A){return;
392}E._openedItem=this;
393this._state=c.RadMenuItemState.Open;
394if(this.get_hasContentTemplate()){this._doOpenContentTemplate(A);
395}else{this.withView(function(){F.get_view()._doOpen(A);
396});
397}this._updateLinkClass();
398this._updateImageSrc();
399if(C&&C.get_enableAriaSupport()){a(this._childListElement).removeAttr("aria-hidden");
400}D=new c.RadMenuItemOpenedEventArgs(this,B);
401this.get_menu()._raiseEvent("itemOpened",D);
402}
402,_doOpenContentTemplate:function(A){var C=this,B=C._slide;
403this.withView(function(){C.get_view()._ensureDecorationElements();
404});
405A.style.display="block";
406A.style.visibility="hidden";
407C._resetAnimatedElementPosition();
408B.set_direction(C._getSlideDirection());
409B.set_animatedElement(C._getAnimatedElement());
410B.updateSize();
411C._positionChildContainerBasic();
412A.style.visibility="visible";
413C._updateZIndex();
414B.expand();
415},_doClose:function(B){var C,A,D;
416if(this._openedItem){this._openedItem._close(B);
417}D=this.get_parent();
418D._openedItem=null;
419if(!this._getAnimationContainer()){return;
420}this._state=c.RadMenuItemState.Closed;
421if(!this._getIsImageOnly()){this.get_element().style.zIndex=0;
422}this._slide.collapse();
423this._updateLinkClass();
424this._updateImageSrc();
425if(C&&C.get_enableAriaSupport()){a(this._childListElement).attr("aria-hidden",true);
426}A=new c.RadMenuItemClosedEventArgs(this,B);
427C=this.get_menu();
428C._raiseEvent("itemClosed",A);
429this._closeChildren(B);
430},_click:function(C){if(!this.get_enabled()){if($telerik.isSafari&&!$telerik.isChrome){C.preventDefault();
431}return;
432}var D=this.get_menu(),E=D.get_openedItem(),B=D._getExtendedItemClickingEventArgs(new c.RadMenuItemClickingEventArgs(this,C)),A;
433if(D._isUsedOnTouchDevices){if(this._preventDefaultUnderMobile(C)){return;
434}}D._raiseEvent("itemClicking",B);
435if(B.get_cancel()){if(C&&C.preventDefault){C.preventDefault();
436}return;
437}if(D._isUsedOnTouchDevices&&!D.get_showToggleHandle()){if(!this._shouldPostBack()){this._toggleState(C);
438}}else{if(D.get_clickToOpen()&&this.get_level()==0){if(E&&E!=this){E._close(C);
439}if(D.get_clicked()&&(!$telerik.isBlackBerry4&&!$telerik.isBlackBerry5)){this._close(C);
440}else{this._open(C);
441}D.set_clicked(!D.get_clicked());
442}}A=D._getExtendedItemClickedEventArgs(new c.RadMenuItemClickedEventArgs(this,C));
443D._raiseEvent("itemClicked",A);
444if(this._shouldNavigate()){return;
445}this.set_selected(true);
446if(this._shouldPostBack()){D._postback(this._getHierarchicalIndex());
447}},_toggleState:function(A){if(!this.get_enabled()){return;
448}if(this.get_isOpen()){this._close(A);
449}else{if(this._shouldOpen()){this._open(A);
450}}},_doFocus:function(A){if(!this._canFocus()){return;
451}this._ensureChildControls();
452var C=this.get_parent(),B=this.get_menu();
453if(C._state!=c.RadMenuItemState.Open&&C.open){C._open(A);
454}C._focusedItem=this;
455if(C!==B){B._focusedItem=this;
456}this.scrollIntoView();
457if(B.get_enableAriaSupport()&&A.type.toLowerCase()!=="click"&&A.type.toLowerCase()!=="domactivate"){this._doAriaFocus();
458}B._triggerEventOnce("itemFocus",new c.RadMenuItemFocusEventArgs(this,A),"focus");
459},_doBlur:function(A){if(this.get_isSeparator()){return;
460}var D=this,C=D.get_parent(),B=D.get_menu(),E=A?A.type:"blur";
461C._focusedItem=null;
462if(C!==B){B._focusedItem=null;
463}if(B.get_enableAriaSupport()){this._doAriaBlur();
464}B._triggerEventOnce("itemBlur",new c.RadMenuItemBlurEventArgs(D,A),E);
465},_doAriaFocus:function(){var A=this.get_menu();
466var B=A.get_id()+"_active";
467a(this.get_element()).attr("id",B);
468a(A._getMainElement()).attr("aria-activedescendant",B);
469},_doAriaBlur:function(){a(this.get_menu()._getMainElement()).removeAttr("aria-activedescendant");
470a(this.get_element()).removeAttr("id");
471},_transferFocus:function(A){this._ensureChildControls();
472var C=this.get_parent();
473var B=C.get_openedItem();
474if(B&&B!=this){B._close(A);
475}if(C._state!=c.RadMenuItemState.Open&&C.open){C._open(A);
476}if(this.get_menu().get_focusedItem()){this.get_menu().get_focusedItem().blur(A);
477}this.focus(A);
478},_setFocused:function(B,A){if(B){this._doFocus(A);
479}else{this._doBlur(A);
480}},_updateZIndex:function(){var A=this._getAnimationContainer(),B=this.get_parent();
481A.style.visibility="visible";
482this.get_element().style.zIndex=B.get_items().get_count()-this.get_index();
483A.style.zIndex=B.get_items().get_count()+1;
484this.get_menu()._incrementZIndex(this._zIndexStep);
485},_positionChildContainer:function(){if(!this._autoScrollActive){this._saveAnimationContainerSize();
486}var E=this._positionChildContainerBasic();
487var C=E.left;
488var H=E.top;
489var D=this.get_menu();
490var A=D.get_enableAutoScroll();
491var B=D.get_enableScreenBoundaryDetection();
492var G=false;
493if(A){if(!this._applyAutoScroll(C,H)){if(this._autoScrollActive){this._removeAutoScroll();
494this._autoScrollActive=false;
495this._restoreAnimationContainerSize();
496E=this._positionChildContainerBasic();
497C=E.left;
498H=E.top;
499}if(B){var F=this._adjustForScreenBoundaries(C,H);
500G=true;
501this._applyAutoScroll(F.adjustedLeft,F.adjustedTop);
502}}if(this._autoScrollActive){this._updateScrollSize();
503}}if(B&&!G){this._adjustForScreenBoundaries(C,H);
504}this._updateTextElementClass();
505},_positionChildContainerBasic:function(){var J=0;
506var H=0;
507var C=this.get_element();
508var F=C.offsetHeight;
509var G=C.offsetWidth;
510var E=this._getAnimationContainer();
511var A=E.offsetHeight;
512var B=E.offsetWidth;
513var D=this.get_groupSettings().get_expandDirection();
514switch(D){case c.ExpandDirection.Up:J=-A;
515break;
516case c.ExpandDirection.Down:J=F;
517break;
518case c.ExpandDirection.Left:H=-B;
519break;
520case c.ExpandDirection.Right:H=G;
521break;
522}var I=this.get_menu();
523if(I.get_rightToLeft()&&this.get_level()==0){H=G-B;
524if(this._getParentFlow()==c.ItemFlow.Vertical){H-=G;
525}}this._setChildContainerPosition(H,J);
526return{left:H,top:J};
527},_setChildContainerPosition:function(F,I){var A=this._getAnimationContainer();
528var G=this.get_parent();
529var H=null;
530if(G._getScrollWrapElement){H=G._getScrollWrapElement();
531}if(H){this._detachChildren();
532var E=this.get_element();
533I+=E.offsetTop;
534F+=E.offsetLeft;
535var B=G.get_childListElement();
536var D=parseInt(B.style.top,10);
537if(isNaN(D)){D=0;
538}if(this.get_groupSettings().get_offsetY()==0){I+=D;
539}var C=parseInt(B.style.left,10);
540if(isNaN(C)){C=0;
541}if(this.get_groupSettings().get_offsetX()==0){F+=C;
542if(this._getParentFlow()==c.ItemFlow.Horizontal){F=Math.max(F,0);
543}}}A.style.left=(F+this.get_groupSettings().get_offsetX())+"px";
544A.style.top=(I+this.get_groupSettings().get_offsetY())+"px";
545},_adjustForScreenBoundaries:function(T,Y){var Q=this._getAnimationContainer();
546var B=Q.offsetHeight;
547var D=Q.offsetWidth;
548var W=this.get_menu().get_rightToLeft();
549var L=this.get_element();
550var R=L.offsetHeight;
551var S=L.offsetWidth;
552var N=this.get_groupSettings().get_expandDirection();
553var V=N;
554var K=c.RadMenu._getViewPortSize();
555var J=a().scrollTop();
556var C=$telerik.getLocation(Q);
557var M=$telerik.getLocation(L);
558var H=K.width-M.x-L.offsetWidth;
559var G=M.x;
560var F=K.height-M.y-L.offsetHeight;
561var I=M.y-J;
562switch(N){case c.ExpandDirection.Up:if($telerik.elementOverflowsTop(Q,C)||(C.y<J&&F>I)){V=c.ExpandDirection.Down;
563Y=R;
564}break;
565case c.ExpandDirection.Down:if($telerik.elementOverflowsBottom(K,Q,C)){if(M.y>Q.offsetHeight){V=c.ExpandDirection.Up;
566Y=-B;
567}}break;
568case c.ExpandDirection.Left:if(C.x<a(document).scrollLeft()){if(H>G){V=c.ExpandDirection.Right;
569T=S;
570}}if(W&&this.get_level()==0){var A=a(this.get_childListElement()).outerWidth(true);
571var P=G>A;
572var O="get_contextMenuElement" in this.get_menu();
573if(P&&!O){T=T-S;
574}}break;
575case c.ExpandDirection.Right:if($telerik.elementOverflowsRight(K,Q,C)){if(G>H){V=c.ExpandDirection.Left;
576T=-D;
577}}else{if(W){if($telerik.elementOverflowsLeft(Q)&&(H>G)){T=T+D;
578}else{V=c.ExpandDirection.Left;
579T=T-S;
580}}}break;
581}switch(V){case c.ExpandDirection.Down:case c.ExpandDirection.Up:if($telerik.elementOverflowsRight(K,Q)){var E=K.width-(C.x+D);
582var U=this.get_menu();
583if(U.get_rightToLeft()&&this.get_level()==0){T+=E;
584}else{T=E;
585}}if(W){if($telerik.elementOverflowsLeft(Q)&&(H>G)){T=T+D-S;
586}}break;
587case c.ExpandDirection.Left:case c.ExpandDirection.Right:if($telerik.elementOverflowsBottom(K,Q)){var X=Math.min(B,K.height);
588Y=K.height-(C.y+X)-this._defaultScrollSize;
589}break;
590}this._setChildContainerPosition(T,Y);
591this._slide.set_direction(V);
592return{adjustedLeft:T,adjustedTop:Y};
593},_resetAnimatedElementPosition:function(){var A=this._getAnimatedElement();
594A.style.top="0px";
595A.style.left="0px";
596},_determineExpandDirection:function(){var A=this.get_groupSettings();
597if(A.get_expandDirection()!=c.ExpandDirection.Auto){return;
598}var B=this._getParentFlow();
599if(B==c.ItemFlow.Vertical){if(this.get_menu().get_rightToLeft()){A.set_expandDirection(c.ExpandDirection.Left);
600}else{A.set_expandDirection(c.ExpandDirection.Right);
601}}else{A.set_expandDirection(c.ExpandDirection.Down);
602}},_getMaximumExpandSize:function(){var F=this._slide.get_direction(),E=c.RadMenu._getViewPortSize(),A=this._getAnimationContainer(),B=$telerik.getLocation(A);
603if(this.get_groupSettings().get_flow()==c.ItemFlow.Vertical){var C;
604if(F==c.ExpandDirection.Up){C=A.offsetHeight+B.y;
605}else{C=E.height-B.y-this._defaultScrollSize;
606}return Math.min(C,E.height-this._defaultScrollSize);
607}var D;
608if(F==c.ExpandDirection.Left){D=B.x;
609}else{D=E.width-B.x;
610}return Math.min(D,E.width);
611},_saveAnimationContainerSize:function(){var C=this._getAnimationContainer();
612var A=C.offsetHeight;
613var B=C.offsetWidth;
614this._animationContainerOriginalSize={};
615this._animationContainerOriginalSize.height=A;
616this._animationContainerOriginalSize.width=B;
617},_restoreAnimationContainerSize:function(){if(this._animationContainerOriginalSize){var A=this._getAnimationContainer();
618A.style.height=this._animationContainerOriginalSize.height+"px";
619A.style.width=this._animationContainerOriginalSize.width+"px";
620this._animationContainerOriginalSize=null;
621}},_getSlideDirection:function(){var A=this.get_groupSettings().get_expandDirection();
622if(A==c.ExpandDirection.Auto){return null;
623}return A;
624},_getExpandClassName:function(){return"rmExpand"+this._getExpandClass();
625},_getExpandClass:function(){var A=this._getSlideDirection();
626switch(A){case c.jSlideDirection.Up:return"Top";
627case c.jSlideDirection.Down:return"Down";
628case c.jSlideDirection.Left:return"Left";
629case c.jSlideDirection.Right:return"Right";
630}},_fitsWindow:function(){var B=this._getMaximumExpandSize();
631var A=this._getAnimationContainer();
632if(this.get_groupSettings().get_flow()==c.ItemFlow.Vertical){return A.offsetHeight<=B;
633}return A.offsetWidth<=B;
634},_updateImageSrc:function(){var B=this.get_imageUrl();
635if(this._hovered&&this.get_hoveredImageUrl()){B=this.get_hoveredImageUrl();
636}if(this._state==c.RadMenuItemState.Open&&this.get_expandedImageUrl()){B=this.get_expandedImageUrl();
637}if(!this.get_enabled()&&this.get_disabledImageUrl()){B=this.get_disabledImageUrl();
638}if(this._clicked&&this.get_clickedImageUrl()){B=this.get_clickedImageUrl();
639}if(this.get_selected()&&this.get_selectedImageUrl()){B=this.get_selectedImageUrl();
640}
640if(B&&this.get_element()){var A=this.get_imageElement();
641if(!A){A=this._createImageElement();
642}B=B.replace(/&amp;/ig,"&");
643if(B!=A.src){A.src=B;
644}}},_applyCssClass:function(C,A){var B=this;
645this.withView(function(){B.get_view()._applyCssClass(C,A);
646});
647},_updateLinkClass:function(){var A=this;
648if(this.get_isSeparator()){return;
649}this.withView(function(){A.get_view()._updateLinkClass();
650});
651},_updateTextElementClass:function(){var A=this;
652this.withView(function(){A.get_view()._updateTextElementClass();
653});
654},_updateColumnWrapSize:function(){var A=a(this.get_childListElement());
655if(!A.is(".rmMultiColumn")){return;
656}var C=0;
657var B=0;
658a(A).children(".rmGroupColumn").children(".rmGroup").each(function(){C+=this.offsetWidth;
659B=Math.max(this.offsetHeight,B);
660});
661if(C==0||B==0){return;
662}A.css("width",C+"px").css("height",B+"px");
663},_updateScrollPosition:function(){this._scroller.updateState();
664if(this.get_menu().get_rightToLeft()&&this._groupSettings.get_flow()==c.ItemFlow.Horizontal){this.get_childListElement().style.cssFloat="left";
665this._scroller.scrollToMaxPosition();
666}},_updateChildListWidth:function(){var C=this.get_menu();
667if(this._groupSettings.get_flow()==c.ItemFlow.Vertical&&C.get_rightToLeft()&&$telerik.isIE){var A=this.get_childListElement();
668var B=a(A).children(".rmItem").get(0);
669if(B){A.style.width=B.offsetWidth+"px";
670}}},_recalculateColumns:function(){if(this.get_groupSettings().get_repeatDirection()==c.MenuRepeatDirection.Horizontal){return;
671}var A=this.get_childListElement();
672var C=a(A).children(".rmGroupColumn");
673for(var D=C.length-1;
674D>0;
675D--){var B=C[D];
676var E=C[D-1];
677if(this._getColumnItemCount(E)==this._getColumnItemCount(B)){return;
678}a(E).children(".rmGroup").append(a(B).children(".rmGroup").children(".rmItem").eq(0));
679}},_createEmptyColumn:function(){var B=this._getGroupCssClass();
680var C=new b();
681C.append("<li class='",i,"'>");
682this._renderChildGroup(C,[],B);
683C.append("</li>");
684var A=a(C.toString());
685a(this.get_childListElement()).append(A);
686return A;
687},_createImageElement:function(){var C=this,B=this.get_enableImageSprite()?v:n,A=this.get_linkElement()||this.get_element();
688this._imageElement=document.createElement(B);
689this._imageElement.className=o;
690if(!this.get_enabled()){this._imageElement.disabled="disabled";
691}if(A.firstChild){this.withView(function(){C.get_view()._positionImageElement(A);
692});
693}else{A.appendChild(this._imageElement);
694}return this._imageElement;
695},_hasMultipleColumns:function(){var A=this.get_groupSettings();
696var B=A.get_repeatColumns();
697if(B==1){B=this.get_menu().get_defaultGroupSettings().get_repeatColumns();
698}return B>1;
699},_onCollapseAnimationEnded:function(){var A=this.get_menu();
700this.get_element().style.zIndex=0;
701A._restoreZIndex();
702if(this.get_level()==0&&A.get_rightToLeft()){var B=A.get_element();
703B.style.cssText=B.style.cssText;
704}},_stopAnimation:function(){if(this._slide){this._slide._stopAnimation();
705}},_resolveCssClass:function(B,C){var A=[],D;
706if(!this.get_templated()){A.push(B);
707if(C&&this.get_text()==""&&a(this.get_textElement()).children().length===0){A.push(m);
708}if(C&&this._isRootLink()){A.push(s);
709}if(this.get_focused()&&!this.get_templated()){A.push(this.get_focusedCssClass());
710}D=this.get_menu();
711if(this.get_selected()&&(!D||D.get_enableSelection())){A.push(this.get_selectedCssClass());
712}if(this._clicked){A.push(this.get_clickedCssClass());
713}A.push(this.get_cssClass());
714}if(this._state==c.RadMenuItemState.Open){A.push(this.get_expandedCssClass());
715}if(!this.get_enabled()){Array.addRange(A,[e,this.get_disabledCssClass()]);
716}return A;
717},_preventDefaultUnderMobile:function(A){if(!A){return false;
718}var B=!(this._shouldNavigate()||a(this.get_element()).hasClass("rmTemplate")||this._getContentTemplateContainer());
719if(B){A.preventDefault();
720}else{if(!this.get_menu().get_showToggleHandle()){if(this._shouldOpen()){if(this.get_isOpen()){return true;
721}else{A.preventDefault();
722}}}}return false;
723},_applyTemplate:function(){var A=this;
724this.withView(function(){A.get_view()._applyTemplate();
725});
726},_initializeScroller:function(){var A=this._getScrollWrapElement();
727if(A){this._scroller=new c.MenuItemScroller(this,this.get_childListElement(),this.get_groupSettings().get_flow());
728this._scroller.initialize();
729}},_removeScrollWrapContainer:function(){var A=this.get_menu();
730if(A&&((A.get_enableRoundedCorners()&&this._roundedCornersRendered)||(A.get_enableShadows()&&this._shadowsRendered))){c.RadMenu._removeScrollWrapContainer(this);
731}},_getShouldRenderScrollWrap:function(){if(this._hasMultipleColumns()){return false;
732}var C=this.get_groupSettings();
733var A=this.get_menu().get_defaultGroupSettings();
734var D=C.get_width();
735if(!D){D=A.get_width();
736}var B=C.get_height();
737if(!B){B=A.get_height();
738}return D||B;
739},_initializeAutoScroll:function(){this._removeChildListCorners();
740this._buildScrollWrap();
741this._initializeScroller();
742this._animatedElement=null;
743this._scrollWrapElement=null;
744this._slide.set_animatedElement(this._getAnimatedElement());
745this._ensureRoundedCorners();
746this._ensureShadows();
747},_isAutoScrollPossible:function(){var C=this.get_menu();
748var B=this._getMaximumExpandSize();
749var A=this._getAnimationContainer();
750if(this.get_groupSettings().get_flow()==c.ItemFlow.Vertical){return(C.get_autoScrollMinimumHeight()<B&&B<=A.offsetHeight);
751}else{return(C.get_autoScrollMinimumWidth()<B&&B<=A.offsetWidth);
752}},_applyAutoScroll:function(A,B){if(this._isAutoScrollPossible()){if(!this._scroller){this._initializeAutoScroll();
753this._autoScrollActive=true;
754this._setChildContainerPosition(A,B);
755}return true;
756}return false;
757},_removeAutoScroll:function(){this._removeScrollWrapContainer();
758var B=this.get_items();
759var C=B.get_count();
760for(var D=0;
761D<C;
762D++){B.getItem(D)._removeAutoScroll();
763}this._attachChildren();
764if(!this._scroller){return;
765}this._scroller.dispose();
766this._scroller=null;
767var F=this._getSlideWrapElement();
768var A=this.get_childListElement();
769var E=this._getScrollWrapElement();
770F.appendChild(A);
771F.removeChild(E);
772A.className=String.format("{0} {1} {2}{3}",this._getFlowCssClass(),j,p,this.get_level());
773this._animatedElement=null;
774this._scrollWrapElement=null;
775this._slide.set_animatedElement(this._getAnimatedElement());
776this._slide.updateSize();
777this._ensureRoundedCorners();
778this._ensureShadows();
779},_updateScrollSize:function(){var B=this._slide.get_direction();
780var A=this._getAnimationContainer();
781var D=this._getScrollWrapElement();
782D.style.height="";
783D.style.width="";
784var C=this._getMaximumExpandSize();
785if(this.get_groupSettings().get_flow()==c.ItemFlow.Vertical){$telerik.setSize(D,{height:C,width:parseInt(A.style.width,10)});
786if(B==c.ExpandDirection.Up){A.style.top=-C+"px";
787}}else{$telerik.setSize(D,{width:C,height:parseInt(A.style.height,10)});
788}this._slide.updateSize();
789this._scroller.resetState();
790},_buildScrollWrap:function(){var C=this._getSlideWrapElement();
791var A=this.get_childListElement();
792var B=document.createElement("div");
793B.style.position="relative";
794B.style.overflow="hidden";
795A.className=this._getFlowCssClass();
796B.className=String.format("{0} {1} {2}{3}",t,j,p,this.get_level());
797B.appendChild(A);
798C.appendChild(B);
799},_updateScrollWrapSize:function(){var B=this._getScrollWrapElement();
800var A=this.get_childListElement();
801if(!B){return;
802}if(!B.style.height){B.style.height=A.offsetHeight+"px";
803}if(this.get_groupSettings().get_flow()==c.ItemFlow.Vertical){B.style.width=A.offsetWidth+"px";
804}},_adjustSiblingsWidth:function(B){var A=this.get_parent();
805if(A){this._clearSiblingsWidth();
806c.RadMenu._adjustChildrenWidth(A,B);
807}},_clearSiblingsWidth:function(){var B=this.get_parent(),E=B.get_items();
808for(var A=0;
809A<E.get_count();
810A++){var C=E.getItem(A);
811if(C!=this){var D=C.get_linkElement();
812if(D){D.style.width="auto";
813}}if($telerik.isSafari){B.get_childListElement().style.width="auto";
814}}},_ensureToggleButton:function(){var B=this,A=this.get_linkElement()||this.get_element();
815if(!this._getToggleButtonElement()){this._createToggleButtonElement();
816this.withView(function(){B.get_view()._positionToggleButtonElement(A,B._toggleButtonElement);
817});
818}},_ensureRoundedCorners:function(){var A=this;
819this.withView(function(){A.get_view()._ensureRoundedCorners();
820});
821},_ensureShadows:function(){var A=this;
822this.withView(function(){A.get_view()._ensureShadows();
823});
824},_removeChildListCorners:function(){var A=this;
825this.withView(function(){A.get_view()._removeChildListCorners();
826});
827},_isRootLink:function(){if(this.get_menu()){if(this.get_level()>0){return false;
828}if("get_contextMenuElement" in this.get_menu()){return false;
829}return true;
830}},_createLoadingItem:function(){var B=this.get_menu().get_loadingTemplate();
831if(B===""){return;
832}var A=new c.RadMenuItem();
833this.get_items().add(A);
834A.set_text(B);
835},_removeLoadingItem:function(){if(this.get_menu().get_loadingTemplate()===""){return;
836}var A=this.get_items().getItem(0);
837this.get_items().remove(A);
838},_onChildrenLoading:function(){this._itemsLoading=true;
839this._createLoadingItem();
840this._doOpen(null);
841},_onChildrenLoaded:function(){this._removeLoadingItem();
842this._itemsLoaded=true;
843this._itemsLoading=false;
844if(this.get_items().get_count()>
8440){var A=a(this.get_element()).hasClass("rmTemplate");
845if(this._hovered||A||$telerik.isTouchDevice){this._doOpen(null);
846}else{if(this.get_menu()._renderMode===c.RenderMode.Lite){this._getAnimationContainer().style.width="auto";
847}}}},_onChildrenLoadingError:function(){this._close(null);
848this._removeLoadingItem();
849this._itemsLoaded=false;
850this._itemsLoading=false;
851}};
852c.RadMenuItem.registerClass("Telerik.Web.UI.RadMenuItem",c.BaseMenuItem);
853})($telerik.$,Telerik.Web.UI,Telerik.Web.StringBuilder);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.