PageSourceSearch

https://start.madopskrifter.nu/ScriptResource.axd?d=FpBKTNR-ZZH7yH…LBTvhafhY9dY6cvUvKtRdRw2&t=ffffffffbc374ce3

js madopskrifter.nu collected 2026-10-02 06:40:07 UTC 53,497 bytes, 1,225 lines download raw bytes

1Type.registerNamespace("Telerik.Web.UI");
2Telerik.Web.UI.RadWindowControllerClass=function(){this._activeWindow=null;
3this._historyStack=[];
4this._registerGlobalBodyEventHandlers();
5};
6Telerik.Web.UI.RadWindowControllerClass.prototype={getInstance:function(){return this;
7},_registerGlobalBodyEventHandlers:function(){var a=Function.createDelegate(null,function(b){if(b.keyCode==27){Telerik.Web.UI.RadWindowController.hideCurrentWindowIfNonModal();
8}});
9$addHandler(document.documentElement,"keydown",a);
10Sys.Application.add_unload(function(){$removeHandler(document.documentElement,"keydown",a);
11});
12},hideCurrentWindowIfNonModal:function(){if(this._activeWindow!=null&&this._activeWindow.isModal&&!this._activeWindow.isModal()){this._activeWindow.close();
13}this._activeWindow=null;
14},inactivateCurrentWindow:function(){if(this._activeWindow!=null){this._activeWindow.setActive(false);
15}this._activeWindow=null;
16},set_activeWindow:function(a){if(a==this._activeWindow){return;
17}this.inactivateCurrentWindow();
18this._activeWindow=a;
19Array.remove(this._historyStack,a);
20Array.add(this._historyStack,a);
21},notifyWindowClosed:function(a){if(this._activeWindow==a){this._activeWindow=null;
22}Array.remove(this._historyStack,a);
23this._activatePreviousWindow();
24},_activatePreviousWindow:function(){var c=this._historyStack;
25var b=c.length-1;
26for(;
27b>=0;
28b--){var a=c[b];
29if(!a){return;
30}if(a.isCreated()&&!a.isClosed()&&!a.isMinimized()){a.setActive(true);
31break;
32}else{Array.removeAt(c,b);
33}}},get_activeWindow:function(){return this._activeWindow;
34}};
35Telerik.Web.UI.RadWindowControllerClass.registerClass("Telerik.Web.UI.RadWindowControllerClass",null);
36if(!Telerik.Web.UI.RadWindowController){Telerik.Web.UI.RadWindowController=new Telerik.Web.UI.RadWindowControllerClass();
37}Type.registerNamespace("Telerik.Web.UI");
38Type.registerNamespace("Telerik.Web.UI.RadWindowUtils");
39Telerik.Web.UI.RadWindowUtils.Localization={Close:"Close",Minimize:"Minimize",Maximize:"Maximize",Reload:"Reload",PinOn:"Pin on",PinOff:"Pin off",Restore:"Restore",OK:"OK",Cancel:"Cancel",Yes:"Yes",No:"No"};
40Telerik.Web.UI.RadWindow=function(a){Telerik.Web.UI.RadWindow.initializeBase(this,[a]);
41this._openerElement=null;
42this._offsetElement=null;
43this._popupElement=null;
44this._tableElement=null;
45this._contentElement=null;
46this._contentCell=null;
47this._titleElement=null;
48this._titleCell=null;
49this._titlebarElement=null;
50this._statusCell=null;
51this._statusMessageElement=null;
52this._iframe=null;
53this._dockMode=false;
54this._buttonsElement=null;
55this._buttonsArray=[];
56this.isIE=($telerik.isIE);
57this._openerElementID=null;
58this._offsetElementID=null;
59this._behaviors=Telerik.Web.UI.WindowBehaviors.Default;
60this._initialBehaviors=Telerik.Web.UI.WindowBehaviors.None;
61this._navigateUrl=null;
62this._left="";
63this._top="";
64this._formID=null;
65this._skin="Default";
66this._title="";
67this._width="300px";
68this._height="300px";
69this._opacity=100;
70this._minimizeZoneID=null;
71this._restrictionZoneID="";
72this._clientCallBackFunction=null;
73this._reloadOnShow=false;
74this._visibleOnPageLoad=false;
75this._destroyOnClose=false;
76this._visibleTitlebar=true;
77this._visibleStatusbar=true;
78this._showContentDuringLoad=true;
79this._modal=false;
80this._overlay=false;
81this._keepInScreenBounds=false;
82this._autoSize=false;
83this._iconUrl=null;
84this._minimizeIconUrl=null;
85this._animation=Telerik.Web.UI.WindowAnimation.None;
86this._windowAnimation=null;
87this._onMouseDownDelegate=null;
88this._onClickDelegate=null;
89this._onTitlebarDblclickDelegate=null;
90this._onTitlebarClickDelegate=null;
91this._onWindowResizeDelegate=null;
92this._onIframeLoadDelegate=null;
93this._onChildPageUnloadDelegate=null;
94this._onChildPageClickDelegate=null;
95this._onModalShowHandler=null;
96this._onModalCloseHandler=null;
97this._loaded=false;
98this._isCloned=false;
99this._restoreRect=null;
100this._popupBehavior=null;
101this._popupVisible=false;
102this._windowManager;
103this._browserWindow=window;
104this._stylezindex=null;
105this.GetWindowManager=this.get_windowManager;
106this.BrowserWindow=window;
107this.GetContentFrame=this.get_contentFrame;
108this.GetLeftPosition=function(){this.getWindowBounds().x;
109};
110this.GetTopPosition=function(){this.getWindowBounds().y;
111};
112this.GetTitlebar=function(){return this._titleCell;
113};
114this.GetStatusbar=function(){return this._statusCell;
115};
116this.SetOpenerElementId=this.set_openerElementID;
117this.SetStatus=this.set_status;
118this.GetStatus=this.get_status;
119this.SetModal=this.set_modal;
120this.SetWidth=this.set_width;
121this.SetHeight=this.set_height;
122this.GetWidth=this.get_width;
123this.GetHeight=this.get_height;
124this.SetOffsetElementId=this.set_offsetElementID;
125this.SetTitle=this.set_title;
126this.MoveTo=this.moveTo;
127this.Center=this.center;
128this.SetVisible=this.setVisible;
129this.SetSize=this.setSize;
130this.Show=this.show;
131this.Hide=this.hide;
132this.GetUrl=this.get_navigateUrl;
133this.SetUrl=this.setUrl;
134this.Reload=this.reload;
135this.SetActive=this.setActive;
136this.Minimize=this.minimize;
137this.Restore=this.restore;
138this.Maximize=this.maximize;
139this.Close=this.close;
140this.TogglePin=this.togglePin;
141this.IsMaximized=this.isMaximized;
142this.IsMinimized=this.isMinimized;
143this.IsModal=this.isModal;
144this.IsClosed=this.isClosed;
145this.IsPinned=this.isPinned;
146this.IsVisible=this.isVisible;
147this.IsActive=this.isActive;
148this.IsBehaviorEnabled=this.isBehaviorEnabled;
149};
150Telerik.Web.UI.RadWindow.prototype={_getLocalization:function(){return Telerik.Web.UI.RadWindowUtils.Localization;
151},get_stylezindex:function(){return this._stylezindex;
152},set_stylezindex:function(a){this._stylezindex=a;
153},_registerIframeLoadHandler:function(a){if(!this._iframe){return;
154}if(a){this._onIframeLoadDelegate=Function.createDelegate(this,this._onIframeLoad);
155$addHandler(this._iframe,"load",this._onIframeLoadDelegate);
156}else{if(this._onIframeLoadDelegate){$removeHandler(this._iframe,"load",this._onIframeLoadDelegate);
157this._onIframeLoadDelegate=null;
158$clearHandlers(this._iframe);
159}}},_registerWindowResizeHandler:function(a){if(a){this._onWindowResizeDelegate=Function.createDelegate(this,this._maintainMaximizedSize);
160$addHandler(window,"resize",this._onWindowResizeDelegate);
161}else{if(this._onWindowResizeDelegate){$removeHandler(window,"resize",this._onWindowResizeDelegate);
162this._onWindowResizeDelegate=null;
163}}},_registerOpenerElementHandler:function(b,c){if(!b){return;
164}if(true==c){this._onClickDelegate=Function.createDelegate(this,this._onClick);
165$addHandler(b,"click",this._onClickDelegate);
166}else{var a=$removeHandler(b,"click",this._onClickDelegate);
167this._onClickDelegate=null;
168}},_registerTitlebarHandlers:function(b){var a=this._titleCell;
169if(b){this._onTitlebarDblclickDelegate=Function.createDelegate(this,function(){if(this.isMinimized()){this.restore();
170}else{if(this.isBehaviorEnabled(Telerik.Web.UI.WindowBehaviors.Maximize)){if(this.isMaximized()){this.restore();
171}else{this.maximize();
172}}}});
173this._onTitlebarClickDelegate=Function.createDelegate(this,function(){this.setActive(true);
174});
175$addHandler(a,"dblclick",this._onTitlebarDblclickDelegate);
176$addHandler(a,"click",this._onTitlebarClickDelegate);
177}else{if(a){if(this._onTitlebarDblclickDelegate){$removeHandler(a,"dblclick",this._onTitlebarDblclickDelegate);
178this._onTitlebarDblclickDelegate=null;
179}if(this._onTitlebarClickDelegate){$removeHandler(a,"click",this._onTitlebarClickDelegate);
180this._onTitlebarClickDelegate=null;
181}$clearHandlers(a);
182}}},_makeModal:function(a){if(this._onModalShowHandler){this.remove_show(this._onModalShowHandler);
183this._onModalShowHandler=null;
184}if(this._onModalCloseHandler){this.remove_close(this._onModalCloseHandler);
185this._onModalCloseHandler=null;
186}if(this._modalExtender){this._modalExtender.dispose();
187this._modalExtender=null;
188}if(!a){return;
189}if(typeof(Telerik.Web.UI.RadWindowManager)!="undefined"&&Telerik.Web.UI.RadWindowManager.isInstanceOfType(this)){return;
190}this._onModalShowHandler=function(b){if(!b._modalExtender){b._modalExtender=new Telerik.Web.UI.ModalExtender(b._popupElement);
191}b._modalExtender.show();
192b.center();
193};
194this.add_show(this._onModalShowHandler);
195this._onModalCloseHandler=function(b){window.setTimeout(function(){if(b._modalExtender){b._modalExtender.hide();
196}},10);
197};
198this.add_close(this._onModalCloseHandler);
199},_enableMoveResize:function(c){if(this._resizeExtender){this._resizeExtender.dispose();
200this._resizeExtender=null;
201}if(!c){return;
202}if(!this._popupElement){return;
203}var d=this._tableElement.rows;
204var a={};
205var b=this._isWindowRightToLeft();
206if(this.isBehaviorEnabled(Telerik.Web.UI.WindowBehaviors.Resize)){if(b){a={nw:d[0].cells[2],n:this._topResizer,ne:d[0].cells[0],w:[d[1].cells[2],d[2].cells[2]],e:[d[1].cells[0],d[2].cells[0]],sw:d[3].cells[2],s:d[3].cells[1],se:[d[3].cells[0],this._bottomResizer]};
207}else{a={nw:d[0].cells[0],n:this._topResizer,ne:d[0].cells[2],w:[d[1].cells[0],d[2].cells[0]],e:[d[1].cells[2],d[2].cells[2]],sw:d[3].cells[0],s:d[3].cells[1],se:[d[3].cells[2],this._bottomResizer]};
208}}if(this.isBehaviorEnabled(Telerik.Web.UI.WindowBehaviors.Move)){a.move=this._titleCell;
209}this._resizeExtender=new Telerik.Web.UI.ResizeExtender(this,this._popupElement,a,this._tableElement);
210},onResizeStart:function(){if(this.isMaximized()){return false;
211}this.setActive(true);
212this._cachedDragZoneBounds=this._getRestrictionZoneBounds();
213},onResizing:function(a){if(!this._cachedDragZoneBounds||this._checkRestrictionZoneBounds(this._cachedDragZoneBounds,a)){if(this._dockMode){this.setWidthDockMode(a.width);
214this.setHeightDockMode(a.height);
215var b=this.get_contentElement();
216var c=this._contentCell;
217setTimeout(function(){b.style.width=c.offsetWidth+"px";
218b.style.height=c.offsetHeight+"px";
219},0);
220}this._updateTitleWidth();
221return true;
222}return false;
223},onResizeEnd:function(){this._cachedDragWindowBounds=null;
224var a=this._getCurrentBounds();
225this.moveTo(a.x,a.y);
226if(this._overlay&&$telerik.isFirefox){this._popupBehavior._onMove();
227}this.raiseEvent("resize",new Sys.EventArgs());
228},onDragStart:function(){this.setActive(true);
229if(this.isPinned()||this.isMaximized()){return false;
230}if(this.isMinimized()&&this.get_minimizeZoneID()){return false;
231}this._cachedDragZoneBounds=this._getRestrictionZoneBounds();
232this._cachedDragWindowBounds=$telerik.getBounds(this._popupElement);
233this.raiseEvent("dragStart",new Sys.EventArgs());
234return true;
235},onDragEnd:function(b){this._cachedDragZoneBounds=null;
236this._cachedDragWindowBounds=null;
237if(this._overlay&&$telerik.isFirefox){this._popupBehavior._onMove();
238}this.raiseEvent("dragEnd",new Sys.EventArgs());
239var a=this._getCurrentBounds();
240this.moveTo(a.x,a.y);
241this.setActive(true);
242if(this.isMinimized()){this._getTitleElement().style.width="";
243}},onDrag:function(b){if(!this._cachedDragZoneBounds){return true;
244}var c=this._cachedDragWindowBounds;
245var d=this._cachedDragZoneBounds;
246b.width=c.width;
247b.height=c.height;
248var a=this._checkRestrictionZoneBounds(d,b);
249if(!a){if(b.x<=d.x){b.x=d.x;
250}else{if(d.x+d.width<=b.x+c.width){b.x=d.x+d.width-c.width;
251}}if(b.y<=d.y){b.y=d.y;
252}else{if(d.y+d.height<=b.y+c.height){b.y=d.y+d.height-c.height;
253}}a=true;
254}return a;
255},initialize:function(){Telerik.Web.UI.RadWindow.callBaseMethod(this,"initialize");
256if(this._visibleOnPageLoad){setTimeout(Function.createDelegate(this,function(){this.show();
257}),0);
258}this._registerWindowResizeHandler(true);
259},dispose:function(){var b=this.get_windowManager();
260if(b){if(b.get_preserveClientState()){b.saveWindowState(this);
261}if(this._destroyOnClose){b.removeWindow(this);
262}}if(this._windowAnimation){this._windowAnimation.dispose();
263}this._enableMoveResize(false);
264this._makeModal(false);
265this._registerTitlebarHandlers(false);
266this._registerWindowResizeHandler(false);
267this._registerIframeLoadHandler(false);
268if(this._openerElement){this._registerOpenerElementHandler(this._openerElement,false);
269}this.set_behaviors(Telerik.Web.UI.WindowBehaviors.None);
270var a=this._iframe;
271if(a){a.radWindow=null;
272a.src="javascript:'<html></html>';";
273a.name="";
274a.removeAttribute("name");
275a.removeAttribute("NAME");
276}if(this._contentElement){this._contentElement.innerHTML="";
277}var c=this._popupElement;
278if(c&&c.parentNode){c.parentNode.removeChild(c);
279}Telerik.Web.UI.RadWindow.callBaseMethod(this,"dispose");
280},hide:function(){this._hide();
281return true;
282},clone:function(b){var a=document.createElement("SPAN");
283if(b){a.setAttribute("id",b);
284}return $telerik.cloneControl(this,Telerik.Web.UI.RadWindow,a);
285},set_contentElement:function(a){if(!this._isPredefined){this._dockMode=true;
286}this._createUI();
287if(this._iframe){this._iframe.style.display="none";
288}if(a.parentNode&&a.parentNode.removeChild){a.parentNode.removeChild(a);
289}this._contentCell.appendChild(a);
290a.style.display="";
291this._contentElement=a;
292},get_contentElement:function(){return this._contentElement;
293},isCreated:function(){return this._popupElement!=null;
294},show:function(){var a=this.isCreated();
295this._createUI();
296if(this._navigateUrl&&(!a||this._reloadOnShow)){this.setUrl(this._navigateUrl);
297}if(!a&&(this._initialBehaviors!=Telerik.Web.UI.WindowBehaviors.None)){this._show();
298this._afterShow();
299if(this.isInitialBehaviorEnabled(Telerik.Web.UI.WindowBehaviors.Minimize)){this.minimize();
300}if(this.isInitialBehaviorEnabled(Telerik.Web.UI.WindowBehaviors.Maximize)){this.maximize();
301}if(this.isInitialBehaviorEnabled(Telerik.Web.UI.WindowBehaviors.Pin)){this.togglePin();
302}return;
303}if(this.isModal()){this.center();
304}if(this._animation==Telerik.Web.UI.WindowAnimation.None){this._show();
305this._afterShow();
306}else{this._playAnimation();
307}},_show:function(){this.raiseEvent("beforeShow",new Sys.EventArgs());
308if(this.get_offsetElementID()&&!this._offsetElement){var b=$get(this.get_offsetElementID());
309if(b){this._offsetElement=b;
310}}var a=this._popupBehavior.get_parentElement();
311if(this._offsetElement&&!this._offsetSet){this._popupBehavior.set_parentElement(this._offsetElement);
312this._offsetSet=true;
313}this.set_visibleTitlebar(this._visibleTitlebar);
314this.set_visibleStatusbar(this._visibleStatusbar);
315this._reSetWindowPosition();
316if(a!=this._popupBehavior.get_parentElement()){this._popupBehavior.set_parentElement(a);
317}this._popupVisible=true;
318},_hide:function(){if(!this._animation||this._animation==0){this._afterHide();
319}else{var b=Function.createDelegate(this,this._afterHide);
320var a=this.isMaximized();
321$telerik.$(this._popupElement).stop().fadeOut(500,function(){b(a);
322});
323}}
323,_afterHide:function(a){if(!this._popupBehavior){return;
324}if(a==null){a=this.isMaximized();
325}if(a){this.restore();
326}this._popupBehavior.hide(true);
327this._popupVisible=false;
328this._getWindowController().notifyWindowClosed(this);
329},_afterShow:function(){this.setActive(true);
330this._storeBounds();
331this.raiseEvent("show",new Sys.EventArgs());
332if(this._autoSize&&this._dockMode){this.autoSize(!this._animation==Telerik.Web.UI.WindowAnimation.None);
333}},_playAnimation:function(){var h=Function.createDelegate(this,function(){var i=this._getCalculatedPopupBounds();
334this._setPopupVisible(i.x,i.y);
335var k=$telerik.getBounds(this._popupElement);
336var l=this.get_offsetElementID();
337if(l){var m=$get(l);
338if(m){var j=$telerik.getBounds(m);
339k.x=j.x;
340k.y=j.y;
341}}$telerik.$(this._popupElement).hide();
342return k;
343});
344var f=this._popupElement;
345var e=this._animation;
346var d=this._openerElement?$telerik.getBounds(this._openerElement):null;
347var c=h();
348var b=""+this._position;
349var g=null;
350var a=Function.createDelegate(this,function(){this._popupElement.style.filter="";
351this.get_popupElement().style.opacity="";
352this._show();
353this._afterShow();
354});
355Telerik.Web.UI.Animations.playJQueryAnimation(f,e,d,c,b,g,a);
356},_onClick:function(a){this.show();
357return this._cancelEvent(a);
358},_cancelEvent:function(a){if(a){a.returnValue=false;
359a.cancelBubble=true;
360a.preventDefault();
361a.stopPropagation();
362}return false;
363},_getWindowController:function(){return Telerik.Web.UI.RadWindowController.getInstance();
364},_getReloadOnShowUrl:function(b){var a="rwndrnd="+Math.random();
365if(b.indexOf("?")>-1){a="&"+a;
366}else{a="?"+a;
367}b+=a;
368return b;
369},getWindowBounds:function(){return this._getCalculatedPopupBounds();
370},toString:function(){return"[RadWindow id="+this.get_id()+"]";
371},center:function(){var a=this._getCentralBounds();
372this.moveTo(a.x,a.y);
373},moveTo:function(a,b){var d=this._popupElement;
374if(d){var c=$telerik.getBounds(d);
375var e=this._getRestrictionZoneBounds();
376if(e){var f=this._checkRestrictionZoneBounds(null,new Sys.UI.Bounds(a+e.x,b+e.y,c.width,c.height));
377if(!f){return false;
378}}}a=parseInt(a);
379b=parseInt(b);
380this._createUI();
381this._setPopupVisible(a,b);
382this._storeBounds();
383return true;
384},setSize:function(b,a){this._firstShow=false;
385this.set_width(b);
386this.set_height(a);
387this._storeBounds();
388},autoSize:function(x){if(this.isClosed()){return;
389}var c=this.get_contentFrame();
390var e=this._tableElement;
391var b=$telerik.getBounds(this._tableElement);
392var l=$telerik.getBounds(this._contentCell);
393var p=null;
394var k;
395var v;
396var i=this.get_contentElement();
397if(this._dockMode&&i){i.style.height="1px";
398k=i.scrollHeight;
399v=i.scrollWidth;
400}else{try{p=c.contentWindow.document.documentElement;
401}catch(d){return false;
402}var m=c.contentWindow.document.body;
403var i=p;
404if($telerik.isIE||$telerik.isFirefox){i=c;
405}i.style.width="1px";
406k=p.scrollHeight;
407v=p.scrollWidth;
408e.style.width="1px";
409var g=this._contentCell.scrollWidth;
410if(v<g){i.style.width=g+"px";
411v=p.scrollWidth;
412}i.style.height="1px";
413k=p.scrollHeight;
414e.style.width="100%";
415}var f=this._getRestrictionZoneBounds();
416var y=f?f:this._getViewportBounds();
417var n=b.width-l.width+v;
418var q=b.height-l.height+k;
419var j=Math.min(n,y.width);
420var h=Math.min(q,y.height);
421var o=this.get_keepInScreenBounds();
422if(!f){this.set_keepInScreenBounds(true);
423}var w=16;
424if(h<k){j=Math.min(j+w,y.width);
425}if(j<v){h=Math.min(h+w,y.height);
426}var t=this.calcPosition(b.x,b.width,j,y.width);
427var a=this.calcPosition(b.y,b.height,h,y.height);
428var u={x:t+y.scrollLeft,y:a+y.scrollTop,width:j,height:h};
429if(p){var s=p.style.overflow;
430var r=m.style.overflow;
431p.style.overflow="hidden";
432m.style.overflow="hidden";
433}else{this.get_contentElement().style.overflow="hidden";
434}if(c){i.style.width="100%";
435i.style.height="100%";
436}if(x){this._autoSizeWithAnimation(u,s,r);
437}else{this._restoreRect=null;
438this.setBounds(u);
439if(p){p.style.overflow=s;
440m.style.overflow=s;
441}else{this.get_contentElement().style.overflow="auto";
442}}if($telerik.isIE&&c){c.style.overflow="hidden";
443setTimeout(function(){c.style.overflow="";
444},0);
445}this.set_keepInScreenBounds(o);
446return true;
447},_autoSizeWithAnimation:function(e,d,i){var k=null;
448var h=null;
449var j=this.get_contentElement();
450var b=this.get_contentFrame();
451if(b){k=b.contentWindow.document.body;
452h=b.contentWindow.document.documentElement;
453}if(j){j.style.overflow="hidden";
454}var g=this.get_popupElement();
455var a=Function.createDelegate(this,function(){this._popupElement.style.filter="";
456this.get_popupElement().style.opacity="";
457if(h&&k){h.style.overflow=d;
458k.style.overflow=d;
459}this._restoreRect=null;
460this.setBounds(e);
461if(j){j.style.overflow="auto";
462}});
463this._tableElement.style.height="100%";
464var c={width:e.width,height:e.height,x:e.x,y:e.y};
465var f=this._getRestrictionZoneBounds();
466if(f){c.x+=f.x;
467c.y+=f.y;
468}$telerik.$(g).animate({width:c.width,height:c.height,left:c.x,top:c.y,opacity:1},500,null,a);
469}
469,setBounds:function(a){if(!a){return;
470}this._checkRestrictionZoneBounds=function(){return true;
471};
472this.moveTo(a.x,a.y);
473this.setSize(a.width,a.height);
474this._checkRestrictionZoneBounds=Telerik.Web.UI.RadWindow.prototype._checkRestrictionZoneBounds;
475},setWidthDockMode:function(a){if(!this._dockMode||!this.get_contentElement()){return;
476}widthToSet=a-2*parseInt($telerik.getCurrentStyle(this._tableElement.rows[2].cells[0],"width"));
477if(widthToSet>0){this._contentElement.style.width=widthToSet+"px";
478}},setHeightDockMode:function(a){if(!this._dockMode||!this.get_contentElement()){return;
479}var b=a;
480b-=parseInt($telerik.getCurrentStyle(this._tableElement.rows[3].cells[1],"height"));
481if(this._visibleTitlebar){b-=parseInt($telerik.getCurrentStyle(this._titlebarElement,"height"));
482b-=parseInt($telerik.getCurrentStyle(this._topResizer,"height"));
483}else{b-=parseInt($telerik.getCurrentStyle(this._tableElement.rows[0].cells[1],"height"));
484}if(this._visibleStatusbar){b-=parseInt($telerik.getCurrentStyle(this._tableElement.rows[2].cells[1],"height"));
485}if(b>0){this._contentElement.style.height=b+"px";
486}},calcPosition:function(d,c,a,b){var e=d+Math.round((c-a)/2);
487if(e<0||e+c>b){e=Math.round(Math.abs((b-a)/2));
488}return e;
489},_maintainMaximizedSize:function(){if(!this.isMaximized()){return;
490}var g=this._popupElement;
491if(!g){return;
492}var a=this._getViewportBounds();
493g.style.top=(a.scrollTop+a.y)+"px";
494g.style.left=(a.scrollLeft+a.x)+"px";
495$telerik.setSize(g,{width:a.width,height:a.height});
496var b=this._getRestrictionZoneBounds();
497if(!b){this._enablePageScrolling(false);
498}var c=this._tableElement;
499a=$telerik.getContentSize(g);
500var d=$telerik.getBorderBox(c);
501var e=$telerik.getPaddingBox(c);
502var f=a.height-d.vertical-e.vertical;
503c.style.height=f+"px";
504this._fixIeHeight(c,f);
505if(this._dockMode){this.setWidthDockMode(a.width);
506this.setHeightDockMode(a.height);
507}},_enablePageScrolling:function(c){var a=document.body;
508var b=document.documentElement;
509if(c){if(null!=this._documentOverflow){b.style.overflow=this._documentOverflow;
510}if(null!=this._bodyOverflow){a.style.overflow=this._bodyOverflow;
511}this._documentOverflow=null;
512this._bodyOverflow=null;
513}else{if(null==this._documentOverflow){this._documentOverflow=b.style.overflow;
514}if(null==this._bodyOverflow){this._bodyOverflow=a.style.overflow;
515}a.style.overflow="hidden";
516b.style.overflow="hidden";
517}},_getRestrictionZoneBounds:function(){var b=null;
518if(this.get_restrictionZoneID()){var a=$get(this.get_restrictionZoneID());
519if(a){b=$telerik.getBounds(a);
520b.scrollLeft=0;
521b.scrollTop=0;
522}}return b;
523},_storeBounds:function(){if(!this.isCreated()){return;
524}var a=this._getCurrentBounds();
525if(this.isMaximized()){return false;
526}if(this.isMinimized()){if(this._restoreRect){a.width=this._restoreRect.width;
527a.height=this._restoreRect.height;
528}else{a.width=this.get_width();
529a.height=this.get_height();
530}}this._restoreRect=a;
531},_restoreBounds:function(){if(!this._restoreRect){return;
532}var a=this._restoreRect;
533this.setSize(a.width,a.height);
534this.moveTo(a.x,a.y);
535if(this._dockMode){this.setWidthDockMode(a.width);
536this.setHeightDockMode(a.height);
537}},_getStoredBounds:function(){if(this._restoreRect){return this._restoreRect;
538}},_deleteStoredBounds:function(){this._restoreRect=null;
539},_getCurrentBounds:function(){var c=(this._popupElement.style.display=="none")?true:false;
540this._popupElement.style.display="";
541if(this._firstShow!=true){this._updateWindowSize(this._height);
542this._firstShow=true;
543}var a=$telerik.getBounds(this._popupElement);
544if(c){this._popupElement.style.display="none";
545}var b=this._getRestrictionZoneBounds();
546if(b){a.x-=b.x;
547a.y-=b.y;
548}return a;
549},_getCentralBounds:function(){var a=this._getCurrentBounds();
550var c=this._getViewportBounds();
551var d=parseInt((c.width-a.width)/2);
552var b=parseInt((c.height-a.height)/2);
553a.x=d+c.scrollLeft;
554a.y=b+c.scrollTop;
555return a;
556},_getViewportBounds:function(){var d=this._getRestrictionZoneBounds();
557if(d){return d;
558}var a=$telerik.getClientBounds();
559var b=$telerik.getCorrectScrollLeft(document.documentElement)||$telerik.getCorrectScrollLeft(document.body);
560var c=document.documentElement.scrollTop||document.body.scrollTop;
561a.scrollLeft=b;
562a.scrollTop=c;
563if(this.isIE){if(a.width==0){a.width=document.body.clientWidth;
564}
564if(a.height==0){a.height=document.body.clientHeight;
565}}return a;
566},_getCalculatedPopupBounds:function(){var c=this._getStoredBounds();
567if(c){return c;
568}var d=this._getCurrentBounds();
569var e=this._offsetElement;
570if(!this._top&&!this._left&&!e){d=this._getCentralBounds();
571}else{if(e){d.y=0;
572d.x=0;
573}else{var b=this._getViewportBounds();
574d.x=b.scrollLeft;
575d.y=b.scrollTop;
576}var f=this._left?this._left:0;
577d.x+=f;
578var a=this._top?this._top:0;
579d.y+=a;
580}return d;
581},_checkRestrictionZoneBounds:function(c,a){var b=c;
582if(!b){b=this._getRestrictionZoneBounds();
583if(!b){return true;
584}}return Telerik.Web.UI.ResizeExtender.containsBounds(b,a);
585},_reSetWindowPosition:function(){var a=this._getCalculatedPopupBounds();
586this._setPopupVisible(a.x,a.y);
587},_fixIeHeight:function(a,b){if("CSS1Compat"==document.compatMode){var d=(a.offsetHeight-parseInt(b));
588if(d>0){var c=(parseInt(a.style.height)-d);
589if(c>0){a.style.height=c+"px";
590}}}},_setPopupVisible:function(a,b){var c=this._getRestrictionZoneBounds();
591if(c){a+=c.x;
592b+=c.y;
593}this._popupBehavior._setCoordinates(a,b);
594this._popupBehavior.show();
595if(!this.get_width()){this._popupElement.style.width="";
596}this._updateTitleWidth();
597},_createDefaultTable:function(){var a=document.createElement("TABLE");
598a.align="left";
599a.cellSpacing=0;
600a.cellPadding=0;
601a.insertRow(-1);
602return a;
603},_isWindowRightToLeft:function(){var b=this._isRightToLeft;
604if(b==null){var a=this.get_element();
605var c=a.parentNode?a:this._getDefaultParent();
606b=this._isRightToLeft=$telerik.isRightToLeft(c);
607}return b;
608},_createStatusbarResizer:function(a){var b=a.rows[0].insertCell(-1);
609b.style.width="15px";
610var c=document.createElement("DIV");
611b.appendChild(c);
612this._bottomResizer=c;
613},_createStatusbarMessageCell:function(a){var b=a.rows[0].insertCell(-1);
614b.style.width="100%";
615var c=this._getStatusMessageElement();
616b.appendChild(c);
617},_createUI:function(){if(!this._popupElement){var c=this.get_id();
618var b="RadWindowWrapper_"+c;
619var o=this._isWindowRightToLeft();
620var e=document.createElement("DIV");
621e.id=b;
622e.className=this._getFullSkinName();
623if(o){Sys.UI.DomElement.addCssClass(e,"RadWindow_rtl");
624}e.style.width=this._width;
625e.style.height=this._height;
626e.setAttribute("unselectable","on");
627this._popupElement=e;
628var d=document.createElement("TABLE");
629d.cellSpacing=0;
630d.cellPadding=0;
631this._tableElement=d;
632var v=[];
633if(o){classNames=["rwCorner rwTopRight","rwTitlebar","rwCorner rwTopLeft","rwCorner rwBodyRight","rwWindowContent","rwCorner rwBodyLeft","rwCorner rwBodyRight","rwStatusbar","rwCorner rwBodyLeft","rwCorner rwFooterRight","rwFooterCenter","rwCorner rwFooterLeft"];
634}else{classNames=["rwCorner rwTopLeft","rwTitlebar","rwCorner rwTopRight","rwCorner rwBodyLeft","rwWindowContent","rwCorner rwBodyRight","rwCorner rwBodyLeft","rwStatusbar","rwCorner rwBodyRight","rwCorner rwFooterLeft","rwFooterCenter","rwCorner rwFooterRight"];
635}var n=["rwTitleRow","rwContentRow","rwStatusbarRow","rwFooterRow"];
636var m=0;
637for(var k=0;
638k<4;
639k++){var u=d.insertRow(-1);
640u.className=n[k];
641for(var l=1;
642l<=3;
643l++){var g=u.insertCell(-1);
644g.innerHTML="&nbsp;";
645g.className=classNames[m];
646m++;
647}}var t=d.rows[0].cells[1];
648t.innerHTML="";
649this._titleCell=t;
650var s=document.createElement("DIV");
651s.className="rwTopResize";
652s.innerHTML="<!-- / -->";
653this._topResizer=s;
654this._titleCell.appendChild(this._topResizer);
655var h=this._createDefaultTable();
656h.className="rwTitlebarControls";
657this._titlebarElement=h;
658this._titleCell.appendChild(this._titlebarElement);
659var p=this._getTitleIcon();
660var y=this._titlebarElement.rows[0].insertCell(-1);
661y.appendChild(p);
662var z=this._getTitleElement();
663var t=this._titlebarElement.rows[0].insertCell(-1);
664t.appendChild(z);
665this.set_title(this._title);
666var f=this._titlebarElement.rows[0].insertCell(-1);
667f.noWrap=true;
668f.style.whiteSpace="nowrap";
669f.appendChild(this._getTitleCommandButtonsHolder());
670var q=d.rows[1].cells[1];
671q.vAlign="top";
672q.innerHTML="";
673this._contentCell=q;
674var w=this.get_name();
675var a=this._createDefaultTable();
676a.style.width="100%";
677this._statusCell=d.rows[2].cells[1];
678this._statusCell.innerHTML="";
679this._statusCell.appendChild(a);
680if(o){this._createStatusbarResizer(a);
681this._createStatusbarMessageCell(a);
682}else{this._createStatusbarMessageCell(a);
683this._createStatusbarResizer(a);
684}this._popupElement.appendChild(this._tableElement);
685this._popupElement.style.display="none";
686this._popupElement.style.position="absolute";
687this._addWindowToDocument();
688this.set_behaviors(this._behaviors);
689this._registerTitlebarHandlers(true);
690this.set_visibleTitlebar(this._visibleTitlebar);
691this.set_visibleStatusbar(this._visibleStatusbar);
692if(this._dockMode){var x=$get(this.get_id()+"_C");
693if(x&&x.innerHTML){x.style.overflow="auto";
694x.style.border="0px";
695this.set_contentElement(x);
696this.setWidthDockMode(this.get_width());
697this.setHeightDockMode(this.get_height());
698}}else{var r=($telerik.isIE)?document.createElement("<iframe name='"+w+"'>"):document.createElement("iframe");
699r.name=w;
700r.src="javascript:'<html></html>';";
701r.style.width="100%";
702r.style.height="100%";
703r.style.border="0px";
704r.frameBorder="0";
705if($telerik.isIE8){r.style.display="block";
706}this._iframe=r;
707this._contentCell.appendChild(this._iframe);
708}if(!this._dockMode){this._createBackReference();
709}}this._updateOpacity();
710if(!this._popupBehavior){this._popupBehavior=$create(Telerik.Web.PopupBehavior,{id:(new Date()-100)+"PopupBehavior",parentElement:null,overlay:this._overlay,keepInScreenBounds:this._keepInScreenBounds},null,null,this._popupElement);
711}},_getDefaultParent:function(){var a=this._formID?document.getElementById(this._formID):null;
712if(!a){if(document.forms&&document.forms.length>0){a=document.forms[0];
713}else{a=document.body;
714}}return a;
715},_getStatusMessageElement:function(){if(null==this._statusMessageElement){var a=document.createElement("INPUT");
716a.readOnly="readonly";
717a.setAttribute("unselectable","on");
718this._statusMessageElement=a;
719}return this._statusMessageElement;
720},_getTitleCommandButtonsHolder:function(){if(null==this._buttonsElement){var a=document.createElement("UL");
721a.className="rwControlButtons";
722this._buttonsElement=a;
723}return this._buttonsElement;
724},_getTitleElement:function(){if(!this._titleElement){this._titleElement=document.createElement("EM");
725this._titleElement.setAttribute("unselectable","on");
726}return this._titleElement;
727},_getTitleIcon:function(){if(null==this._titleIconElement){var a=document.createElement("A");
728this._titleIconElement=a;
729a.className="rwIcon";
730if(this.get_iconUrl()){a.style.background="transparent url("+this.get_iconUrl()+") no-repeat scroll 0px 0px";
731}}return this._titleIconElement;
732},_getTitleCommandButton:function(b){if(!b||!this._buttonsArray){return null;
733}var a=b.toLowerCase();
734a=a.charAt(0).toUpperCase()+a.substring(1);
735b="rw"+a+"Button";
736var e=this._buttonsArray.length;
737for(var d=0;
738d<e;
739d++){var c=this._buttonsArray[d];
740if(c&&Sys.UI.DomElement.containsCssClass(c,b)){return c;
741}}return null;
742},_updateTitleWidth:function(){if(this._visibleTitlebar){var d=this._getTitleElement();
743if(!d){return;
744}d.style.width="20px";
745var f=0;
746var b=this._getTitleCommandButtonsHolder();
747var h=b.offsetWidth;
748if(h>0){var e=b.getElementsByTagName("LI");
749if(e[0]&&e[0].offsetWidth>0){h=e.length*e[0].offsetWidth;
750}b.style.width=h+"px";
751f+=h;
752}var a=this._getTitleIcon();
753var g=a.offsetWidth;
754if(g>0&&a.parentNode.tagName=="TD"){a.parentNode.style.width=g+"px";
755f+=g;
756}if(this.isBehaviorEnabled(Telerik.Web.UI.WindowBehaviors.Pin)){d.style.width="";
757return;
758}try{d.style.width=(this._titlebarElement.offsetWidth-f-10)+"px";
759}catch(c){return false;
760}}},_addWindowToDocument:function(){var a=this._getDefaultParent();
761a.insertBefore(this._popupElement,a.firstChild);
762},_createBackReference:function(){var a=this;
763if(!a.Argument){a.Argument={};
764}var b=this._iframe;
765try{b.radWindow=a;
766if(b.contentWindow!=null){b.contentWindow.radWindow=a;
767}}catch(c){}},_getFullSkinName:function(){return"RadWindow RadWindow_"+this._skin+" rwNormalWindow rwTransparentWindow";
768},_configureMinimizeButton:function(c){var a=this._getLocalization();
769var b=(true==c)?a.Restore:a.Minimize;
770var d=(true==c)?this.restore:this.minimize;
771this._registerTitlebarHandlersButton("Minimize",b,d);
772},_configureMaximizeButton:function(c){var a=this._getLocalization();
773var b=(true==c)?a.Restore:a.Maximize;
774var d=(true==c)?this.restore:this.maximize;
775this._registerTitlebarHandlersButton("Maximize",b,d);
776},_registerTitlebarHandlersButton:function(e,d,c){var a=this._getTitleCommandButton(e);
777if(a){var b=this._getLocalization();
778a.setAttribute("title",d);
779a.innerHTML=d;
780$clearHandlers(a);
781$addHandlers(a,{click:c},this);
782$addHandler(a,"dblclick",this._cancelEvent);
783$addHandler(a,"mousedown",this._cancelEvent);
784}},isCloned:function(){return this._isCloned;
785},isBehaviorEnabled:function(a){return a&this._behaviors?true:false;
786},isInitialBehaviorEnabled:function(a){return a&this._initialBehaviors?true:false;
787}
787,setVisible:function(a){if(this._popupBehavior){if(a){this._popupBehavior.show();
788}else{this._popupBehavior.hide();
789}}},isVisible:function(){return this._popupVisible;
790},isModal:function(){return this._modal;
791},isActive:function(){return(this._popupElement&&!Sys.UI.DomElement.containsCssClass(this._popupElement,"rwInactiveWindow"));
792},isPinned:function(){var a=this._getTitleCommandButton("Pin");
793return(a&&Sys.UI.DomElement.containsCssClass(a,"on"));
794},isClosed:function(){return(!this.isVisible());
795},isMinimized:function(){return(this._popupElement&&Sys.UI.DomElement.containsCssClass(this._popupElement,"rwMinimizedWindow"));
796},isMaximized:function(){return(this._popupElement&&Sys.UI.DomElement.containsCssClass(this._popupElement,"rwMaximizedWindow"));
797},_moveToMinimizeZone:function(){var b=$get(this.get_minimizeZoneID());
798if(b){if(this.isPinned()){this._isPinned=true;
799this.togglePin();
800}var a=this._popupElement;
801if(a.parentNode!=b){a.parentNode.removeChild(a);
802b.appendChild(a);
803this.setVisible(true);
804a.style.position="static";
805if(this.isIE){a.style.display="inline";
806}else{a.style.cssFloat="left";
807}}}},_moveToDocument:function(){var a=this._popupElement;
808a.parentNode.removeChild(a);
809a.style.position="absolute";
810if(this.isIE){a.style.display="";
811}else{a.style.cssFloat="";
812}this._addWindowToDocument();
813if(this._isPinned){this._isPinned=false;
814this.togglePin();
815}},minimize:function(){if(!this.isCreated()){return;
816}var a=this.onCommand("Minimize");
817if(!a){return;
818}if(this.isMaximized()){this._normalizeWindowRootCss();
819this._restoreBounds();
820}var b=this._popupElement;
821$telerik.removeCssClasses(b,["rwNormalWindow","rwMaximizedWindow"]);
822Sys.UI.DomElement.addCssClass(b,"rwMinimizedWindow");
823var c=b._hideWindowedElementsIFrame;
824if(c){Sys.UI.DomElement.addCssClass(c,"rwMinimizedWindowOverlay_"+this._skin);
825}this._configureMinimizeButton(true);
826this._enablePageScrolling(true);
827this._getTitleElement().style.width="";
828if(this.get_minimizeZoneID()){this._moveToMinimizeZone();
829}},restore:function(){if(!this.isCreated()||this.isClosed()){return;
830}var a=this.onCommand("Restore");
831if(!a){return;
832}this._configureMinimizeButton();
833this._configureMaximizeButton();
834if(this.isMinimized()&&this.get_minimizeZoneID()){this._moveToDocument();
835}this._normalizeWindowRootCss();
836this._enablePageScrolling(true);
837this._restoreBounds();
838this.setVisible(true);
839if(this._restoreZindex){this._popupElement.style.zIndex=this._restoreZindex;
840this._restoreZindex=null;
841}this.setVisible(true);
842this.setActive(true);
843},maximize:function(){if(!this.isCreated()){return;
844}var a=this.onCommand("Maximize");
845if(!a){return;
846}this._storeBounds();
847if(this.isMinimized()&&this.get_minimizeZoneID()){this._moveToDocument();
848}if(this.isMinimized()){this._normalizeWindowRootCss();
849this._checkRestrictionZoneBounds=function(){return true;
850};
851this._restoreBounds();
852this._checkRestrictionZoneBounds=Telerik.Web.UI.RadWindow.prototype._checkRestrictionZoneBounds;
853}var b=this._popupElement;
854$telerik.removeCssClasses(b,["rwNormalWindow","rwMinimizedWindow"]);
855Sys.UI.DomElement.addCssClass(b,"rwMaximizedWindow");
856this._configureMaximizeButton(true);
857this._configureMinimizeButton();
858this._maintainMaximizedSize();
859this._maintainMaximizedSize();
860var d=b._hideWindowedElementsIFrame;
861if(d){$telerik.removeCssClasses(d,["rwMinimizedWindowOverlay_"+this._skin]);
862this._popupBehavior._handleElementResize();
863}if(!this.isActive()){this.setActive(true);
864}if(!this._getRestrictionZoneBounds()){var c=b.style.zIndex;
865if(c){this._restoreZindex=c;
866}b.style.zIndex=100000;
867}},setActive:function(b){var a=this._popupElement;
868if(!b){Sys.UI.DomElement.addCssClass(a,"rwInactiveWindow");
869}else{if(!this.isMaximized()){var d=parseInt(a.style.zIndex);
870var c=(this._stylezindex)?this._stylezindex:Telerik.Web.UI.RadWindowUtils.get_newZindex(d);
871a.style.zIndex=""+c;
872}this._getWindowController().set_activeWindow(this);
873this.raiseEvent("activate",new Sys.EventArgs());
874if(this.isActive()){return;
875}$telerik.removeCssClasses(a,["rwInactiveWindow"]);
876}},togglePin:function(){if(!this.isCreated()){return;
877}var a=this.onCommand("Pin");
878if(!a){return;
879}var c=this._getTitleCommandButton("Pin");
880var b=this._getLocalization();
881var e=this.isPinned();
882var d=e?b.PinOn:b.PinOff;
883if(c){Sys.UI.DomElement.toggleCssClass(c,"on");
884}this._registerTitlebarHandlersButton("Pin",d,this.togglePin);
885Telerik.Web.UI.RadWindowUtils.setPinned(!e,this);
886},reload:function(){if(!this.isCreated()){return;
887}var a=this.onCommand("Reload");
888if(!a){return;
889}if(!this._iframe){return;
890}this._onWindowUrlChanging();
891try{this._iframe.contentWindow.location.reload();
892}catch(b){this._onWindowUrlChanged();
893}},_normalizeWindowRootCss:function(){var a=this._popupElement;
894if(a){$telerik.removeCssClasses(a,["rwMinimizedWindow","rwMaximizedWindow"]);
895Sys.UI.DomElement.addCssClass(a,"rwNormalWindow");
896var b=a._hideWindowedElementsIFrame;
897if(b){$telerik.removeCssClasses(b,["rwMinimizedWindowOverlay_"+this._skin]);
898}}},close:function(b){if(this.isClosed()){return;
899}var c=new Sys.CancelEventArgs();
900this.raiseEvent("beforeClose",c);
901if(c.get_cancel()){return;
902}this.hide();
903var a=new Sys.EventArgs();
904a._argument=(b&&!(b instanceof Sys.UI.DomEvent))?b:null;
905a.get_argument=function(){return this._argument;
906};
907this.raiseEvent("close",a);
908this._enablePageScrolling(true);
909this._normalizeWindowRootCss();
910if(b instanceof Sys.UI.DomEvent){b=null;
911}this._invokeDialogCallBackFunction(b);
912if(this._destroyOnClose&&!this._dockMode){this.dispose();
913}},_invokeDialogCallBackFunction:function(a){var b=this.get_clientCallBackFunction();
914if(b){if("string"==typeof(b)){b=eval(b);
915}if("function"==typeof(b)){b(this,a);
916}}},onCommand:function(a){var b=new Sys.CancelEventArgs();
917b._commandName=a;
918b.get_commandName=function(){return this._commandName;
919};
920this.raise_command(b);
921if(b.get_cancel()){return false;
922}return true;
923},setUrl:function(a){if(this._dockMode){return;
924}this._createUI();
925this._navigateUrl=a;
926var b=a;
927if(this._reloadOnShow){b=this._getReloadOnShowUrl(b);
928}this._iframe.src=b;
929this._onWindowUrlChanging();
930if(!this._loaded){this._registerIframeLoadHandler(true);
931}this._loaded=true;
932},_registerChildPageHandlers:function(b){var a=null;
933try{a=this._iframe.contentWindow.document;
934if(a.domain!=document.domain){return;
935}}catch(c){return;
936}if(null==a){return;
937}if(b){this._onChildPageUnloadDelegate=Function.createDelegate(this,this._onChildPageUnload);
938if(this.isIE){a.onunload=this._onChildPageUnloadDelegate;
939}else{this._iframe.contentWindow.onunload=this._onChildPageUnloadDelegate;
940}this._onChildPageClickDelegate=Function.createDelegate(this,this._onChildPageClick);
941$telerik.addExternalHandler(a,"click",this._onChildPageClickDelegate);
942}else{if(this._onChildPageClickDelegate){$telerik.removeExternalHandler(a,"click",this._onChildPageClickDelegate);
943this._onChildPageClickDelegate=null;
944}}},_onChildPageUnload:function(a){this._registerChildPageHandlers(false);
945},_onChildPageClick:function(a){if(!this.isVisible()||this.isClosed()){return;
946}var b=a.target?a.target:a.srcElement;
947if(b){if(b.tagName=="INPUT"&&b.type=="button"){return;
948}else{if(b.tagName=="BUTTON"||b.tagName=="A"){return;
949}}}this.setActive(true);
950},_onIframeLoad:function(){this._onWindowUrlChanged();
951this._registerChildPageHandlers(true);
952this.raiseEvent("pageLoad",new Sys.EventArgs());
953if(this.get_autoSize()){var a=this.get_animation()!=Telerik.Web.UI.WindowAnimation.None;
954this.autoSize(a);
955}var c=null;
956try{c=this._iframe.contentWindow;
957var b=c.document;
958}catch(d){return false;
959}c.close=Function.createDelegate(this,function(){this.close();
960});
961},_onWindowUrlChanging:function(){var d=$telerik.isRightToLeft(this._iframe);
962if(this._showContentDuringLoad||d){var b=this._getStatusMessageElement();
963if(b){Sys.UI.DomElement.addCssClass(b,"rwLoading");
964}}else{var a=this._iframe.style;
965a.position="absolute";
966a.top="-10000px";
967a.left="-10000px";
968var c=this._iframe.parentNode;
969Sys.UI.DomElement.addCssClass(c,"rwLoading");
970}},_onWindowUrlChanged:function(){var b=this._getStatusMessageElement();
971var c=$telerik.isRightToLeft(this._iframe);
972if(this._showContentDuringLoad||c){if(b){Sys.UI.DomElement.removeCssClass(b,"rwLoading");
973}}else{this._iframe.style.position="";
974var a=this._iframe.parentNode;
975Sys.UI.DomElement.removeCssClass(a,"rwLoading");
976}if(b){this.set_status(this._navigateUrl);
977}try{if(this._iframe.contentWindow.document.title){this.set_title(this._iframe.contentWindow.document.title);
978}}catch(d){}},_updatePopupZindex:function(){if(this._popupBehavior){if(this.isVisible()){this._popupBehavior.show();
979}}},_updateOpacity:function(){var b=this._dockMode?this.get_contentElement():this.get_contentFrame();
980if(b){if(this._opacity<100){this._contentCell.style.background="none transparent";
981var a=b.style;
982a.filter="alpha(opacity="+this._opacity+")";
983a.opacity=(this._opacity/100);
984}else{this._contentCell.style.background="";
985if($telerik.isIE){this._contentCell.removeAttribute("style");
986}b.style.filter="";
987b.style.opacity="";
988}}},get_zindex:function(){if(this._popupElement){return this._popupElement.style.zIndex;
989}else{return -1;
990}},get_browserWindow:function(){return this._browserWindow;
991},get_contentFrame:function(){return this._iframe;
992},get_minimizeZoneID:function(){return this._minimizeZoneID;
993}
993,set_minimizeZoneID:function(a){if(this._minimizeZoneID!=a){this._minimizeZoneID=a;
994}},get_restrictionZoneID:function(){return this._restrictionZoneID;
995},set_restrictionZoneID:function(a){if(this._restrictionZoneID!=a){this._restrictionZoneID=a;
996}},get_minimizeIconUrl:function(){return this._minimizeIconUrl;
997},set_minimizeIconUrl:function(a){if(this._minimizeIconUrl!=a){this._minimizeIconUrl=a;
998}},get_iconUrl:function(){return this._iconUrl;
999},set_iconUrl:function(a){if(this._iconUrl!=a){this._iconUrl=a;
1000}},get_clientCallBackFunction:function(){return this._clientCallBackFunction;
1001},set_clientCallBackFunction:function(a){if(this._clientCallBackFunction!=a){this._clientCallBackFunction=a;
1002}},get_navigateUrl:function(){return this._navigateUrl;
1003},set_navigateUrl:function(a){if(this._navigateUrl!=a){this._navigateUrl=a;
1004}},get_targetControl:function(){return this._openerElement;
1005},set_targetControl:function(a){if(this._openerElement!=a){this._openerElement=a;
1006}},get_name:function(){return this._name;
1007},set_name:function(a){if(this._name!=a){this._name=a;
1008}},get_formID:function(){return this._formID;
1009},set_formID:function(a){if(this._formID!=a){this._formID=a;
1010}},get_offsetElementID:function(){return this._offsetElementID;
1011},set_offsetElementID:function(a){if(this._offsetElementID!=a){this._offsetElementID=a;
1012}if(this.isVisible()){this._deleteStoredBounds();
1013this._offsetSet=false;
1014this._show();
1015}},get_openerElementID:function(){return this._openerElementID;
1016},set_openerElementID:function(a){if(this._openerElementID!=a){if(this._openerElement){this._registerOpenerElementHandler(this._openerElement,false);
1017this._openerElement=null;
1018}this._openerElementID=a;
1019if(this._openerElementID){this._openerElement=$get(this._openerElementID);
1020}if(this._openerElement){this._registerOpenerElementHandler(this._openerElement,true);
1021}}},get_left:function(){return this._left;
1022},set_left:function(a){if(this._left!=a){this._left=parseInt(a);
1023}},get_top:function(){return this._top;
1024},set_top:function(a){if(this._top!=a){this._top=parseInt(a);
1025}},get_title:function(){return this._title;
1026},set_title:function(a){if(this._title!=a){this._title=a;
1027}if(null==this._titleElement){return;
1028}this._titleElement.innerHTML=this._title;
1029this._updateTitleWidth();
1030},get_width:function(){return parseInt(this._width);
1031},_fixSizeValue:function(a){a=""+a;
1032if(-1==a.indexOf("px")){a=parseInt(a);
1033if(!isNaN(a)){a=a+"px";
1034}else{a="";
1035}}return a;
1036},set_width:function(a){if(null==a){return false;
1037}if(this.isMaximized()){return false;
1038}a=this._fixSizeValue(a);
1039var c=this._popupElement;
1040if(c){var b=$telerik.getBounds(c);
1041var e=parseInt(a);
1042if(isNaN(e)){e=b.width;
1043}var d=this._checkRestrictionZoneBounds(null,new Sys.UI.Bounds(b.x,b.y,e,b.height));
1044if(!d){return false;
1045}}if(this._width!=a){this._width=a;
1046}if(this._dockMode){this.setWidthDockMode(this.get_width());
1047}if(c){this._deleteStoredBounds();
1048c.style.width=this._width;
1049this._updatePopupZindex();
1050}return true;
1051},get_height:function(){return parseInt(this._height);
1052},set_height:function(a){if(null==a){return false;
1053}if(this.isMaximized()){return false;
1054}a=this._fixSizeValue(a);
1055var c=this._popupElement;
1056if(c){var b=$telerik.getBounds(c);
1057var d=this._checkRestrictionZoneBounds(null,new Sys.UI.Bounds(b.x,b.y,b.width,parseInt(a)));
1058if(!d){return false;
1059}}if(this._height!=a){this._height=a;
1060}if(this._dockMode){this.setHeightDockMode(this.get_height());
1061}if(c){this._deleteStoredBounds();
1062this._updateWindowSize(this._height);
1063this._updatePopupZindex();
1064}return true;
1065},_updateWindowSize:function(d,a){var c=this._tableElement;
1066var b=d?d:c.style.height;
1067if(true==a){b=c.offsetHeight+"px";
1068}if(parseInt(b)==0){return;
1069}c.style.height=b;
1070this._fixIeHeight(c,b);
1071c.parentNode.style.height=b;
1072},get_initialBehaviors:function(){return this._initialBehaviors;
1073},set_initialBehaviors:function(a){if(this._initialBehaviors!=a){this._initialBehaviors=a;
1074}},get_behaviors:function(){return this._behaviors;
1075},set_behaviors:function(e){if(this._behaviors!=e){this._behaviors=e;
1076}if(null==this._titlebarElement){return;
1077}this._enableMoveResize(false);
1078this._enableMoveResize(true);
1079if(this._buttonsArray&&this._buttonsArray.length>0){var m=this._buttonsArray.length;
1080for(var b=0;
1081b<m;
1082b++){var d=this._buttonsArray[b];
1083$clearHandlers(d);
1084}this._buttonsArray=[];
1085var g=this._getTitleCommandButtonsHolder();
1086g.innerHTML="";
1087}if(Telerik.Web.UI.WindowBehaviors.None==this._behaviors){return;
1088}else{var f=this._getLocalization();
1089var h=Telerik.Web.UI.WindowBehaviors;
1090var k=[[this.isBehaviorEnabled(h.Pin),"rwPinButton",f.PinOn,this.togglePin],[this.isBehaviorEnabled(h.Reload),"rwReloadButton",f.Reload,this.reload],[this.isBehaviorEnabled(h.Minimize),"rwMinimizeButton",f.Minimize,this.minimize],[this.isBehaviorEnabled(h.Maximize),"rwMaximizeButton",f.Maximize,this.maximize],[this.isBehaviorEnabled(h.Close),"rwCloseButton",f.Close,this.close]];
1091for(var a=0;
1092a<k.length;
1093a++){var c=k[a];
1094if(!c[0]){continue;
1095}var n=document.createElement("LI");
1096var o=document.createElement("A");
1097o.href="javascript:void(0);";
1098o.className=c[1];
1099o.setAttribute("title",c[2]);
1100var l=document.createElement("SPAN");
1101l.innerHTML=c[2];
1102o.appendChild(l);
1103$addHandlers(o,{click:c[3],dblclick:this._cancelEvent,mousedown:this._cancelEvent},this);
1104$addHandler(o,"click",this._cancelEvent);
1105n.appendChild(o);
1106this._buttonsElement.appendChild(n);
1107this._buttonsArray[this._buttonsArray.length]=o;
1108}}},get_modal:function(){return this._modal;
1109}
1109,set_modal:function(a){if(this._modal!=a){this._modal=a;
1110}this._makeModal(this._modal);
1111if(this.isVisible()){this._afterShow();
1112}},get_destroyOnClose:function(){return this._destroyOnClose;
1113},set_destroyOnClose:function(a){if(this._destroyOnClose!=a){this._destroyOnClose=a;
1114}},get_reloadOnShow:function(){return this._reloadOnShow;
1115},set_reloadOnShow:function(a){if(this._reloadOnShow!=a){this._reloadOnShow=a;
1116}},get_showContentDuringLoad:function(){return this._showContentDuringLoad;
1117},set_showContentDuringLoad:function(a){if(this._showContentDuringLoad!=a){this._showContentDuringLoad=a;
1118}},get_visibleOnPageLoad:function(){return this._visibleOnPageLoad;
1119},set_visibleOnPageLoad:function(a){if(this._visibleOnPageLoad!=a){this._visibleOnPageLoad=a;
1120}},get_visibleTitlebar:function(){return this._visibleTitlebar;
1121},set_visibleTitlebar:function(a){if(this._visibleTitlebar!=a){this._visibleTitlebar=a;
1122}if(this._titlebarElement){this._titlebarElement.style.display=a?"":"none";
1123}},get_visibleStatusbar:function(){return this._visibleStatusbar;
1124},set_visibleStatusbar:function(a){if(this._visibleStatusbar!=a){this._visibleStatusbar=a;
1125}if(this._statusCell){this._statusCell.parentNode.style.display=a?"":"none";
1126}},get_animation:function(){return this._animation;
1127},set_animation:function(a){if(this._animation!=a){this._animation=a;
1128}},get_overlay:function(){return this._overlay;
1129},set_overlay:function(a){this._overlay=a;
1130if(this._popupBehavior){this._popupBehavior.set_overlay(this._overlay);
1131}if(this.isVisible()){this._reSetWindowPosition();
1132}},get_opacity:function(){return this._opacity;
1133},set_opacity:function(a){if(this.get_opacity()!=a){this._opacity=a>100?100:a;
1134this._opacity=a<0?0:a;
1135if(this.isCreated()){this._updateOpacity();
1136}}},get_keepInScreenBounds:function(){return this._keepInScreenBounds;
1137},set_keepInScreenBounds:function(a){this._keepInScreenBounds=a;
1138if(this._popupBehavior){this._popupBehavior.set_keepInScreenBounds(this._keepInScreenBounds);
1139}if(this.isVisible()){this._reSetWindowPosition();
1140}},get_autoSize:function(){return this._autoSize;
1141},set_autoSize:function(a){if(this._autoSize!=a){this._autoSize=a;
1142}},get_skin:function(){return this._skin;
1143},set_skin:function(a){if(a&&this._skin!=a){this._skin=a;
1144}},get_popupElement:function(){return this._popupElement;
1145},get_windowManager:function(){return this._windowManager;
1146},set_windowManager:function(a){this._windowManager=a;
1147},set_status:function(a){var b=this._getStatusMessageElement();
1148if(b){window.setTimeout(function(){b.value=a;
1149},0);
1150}},get_status:function(){var a=this._getStatusMessageElement();
1151if(a){return a.value;
1152}},add_command:function(a){this.get_events().addHandler("command",a);
1153},remove_command:function(a){this.get_events().removeHandler("command",a);
1154},raise_command:function(a){this.raiseEvent("command",a);
1155},add_dragStart:function(a){this.get_events().addHandler("dragStart",a);
1156},remove_dragStart:function(a){this.get_events().removeHandler("dragStart",a);
1157},add_dragEnd:function(a){this.get_events().addHandler("dragEnd",a);
1158},remove_dragEnd:function(a){this.get_events().removeHandler("dragEnd",a);
1159},add_activate:function(a){this.get_events().addHandler("activate",a);
1160},remove_activate:function(a){this.get_events().removeHandler("activate",a);
1161},add_beforeShow:function(a){this.get_events().addHandler("beforeShow",a);
1162},remove_beforeShow:function(a){this.get_events().removeHandler("beforeShow",a);
1163},add_show:function(a){this.get_events().addHandler("show",a);
1164},remove_show:function(a){this.get_events().removeHandler("show",a);
1165},add_pageLoad:function(a){this.get_events().addHandler("pageLoad",a);
1166},remove_pageLoad:function(a){this.get_events().removeHandler("pageLoad",a);
1167},add_close:function(a){this.get_events().addHandler("close",a);
1168},remove_close:function(a){this.get_events().removeHandler("close",a);
1169},add_beforeClose:function(a){this.get_events().addHandler("beforeClose",a);
1170},remove_beforeClose:function(a){this.get_events().removeHandler("beforeClose",a);
1171},add_resize:function(a){this.get_events().addHandler("resize",a);
1172},remove_resize:function(a){this.get_events().removeHandler("resize",a);
1173},saveClientState:function(){var c=["position"];
1174var a={};
1175for(var b=0;
1176b<c.length;
1177b++){a[c[b]]=this["get_"+c[b]]();
1178}return Sys.Serialization.JavaScriptSerializer.serialize(a);
1179}};
1180Telerik.Web.UI.RadWindow.registerClass("Telerik.Web.UI.RadWindow",Telerik.Web.UI.RadWebControl);
1181Telerik.Web.UI.WindowAnimation=function(){throw Error.invalidOperation();
1182};
1183Telerik.Web.UI.WindowAnimation.prototype={None:0,Resize:1,Fade:2,Slide:4,FlyIn:8};
1184Telerik.Web.UI.WindowAnimation.registerEnum("Telerik.Web.UI.WindowAnimation",false);
1185Telerik.Web.UI.WindowMinimizeMode=function(){throw Error.invalidOperation();
1186};
1187Telerik.Web.UI.WindowMinimizeMode.prototype={SameLocation:1,MinimizeZone:2,Default:1};
1188Telerik.Web.UI.WindowMinimizeMode.registerEnum("Telerik.Web.UI.WindowMinimizeMode",false);
1189Telerik.Web.UI.WindowBehaviors=function(){throw Error.invalidOperation();
1190};
1191Telerik.Web.UI.WindowBehaviors.prototype={None:0,Resize:1,Minimize:2,Close:4,Pin:8,Maximize:16,Move:32,Reload:64,Default:(1+2+4+8+16+32+64)};
1192Telerik.Web.UI.WindowBehaviors.registerEnum("Telerik.Web.UI.WindowBehaviors",false);
1193Telerik.Web.UI.RadWindowUtils._zIndex=3000;
1194Telerik.Web.UI.RadWindowUtils.get_newZindex=function(a){a=parseInt(a);
1195if(null==a||isNaN(a)){a=0;
1196}if(Telerik.Web.UI.RadWindowUtils._zIndex<a){Telerik.Web.UI.RadWindowUtils._zIndex=a;
1197}Telerik.Web.UI.RadWindowUtils._zIndex++;
1198return Telerik.Web.UI.RadWindowUtils._zIndex;
1199};
1200Telerik.Web.UI.RadWindowUtils._pinnedList={};
1201Telerik.Web.UI.RadWindowUtils.setPinned=function(c,f){if(c){var g=f._getViewportBounds();
1202var a=f._getCurrentBounds();
1203f.LeftOffset=a.x-g.scrollLeft;
1204f.TopOffset=a.y-g.scrollTop;
1205var b=window.setInterval(function(){Telerik.Web.UI.RadWindowUtils._updatePinnedElementPosition(f);
1206},100);
1207Telerik.Web.UI.RadWindowUtils._pinnedList[b]=f;
1208}else{var h=null;
1209var d=Telerik.Web.UI.RadWindowUtils._pinnedList;
1210for(var e in d){if(d[e]==f){h=e;
1211break;
1212}}if(null!=h){window.clearInterval(h);
1213Telerik.Web.UI.RadWindowUtils._pinnedList[h]=null;
1214}f.TopOffset=null;
1215f.LeftOffset=null;
1216}};
1217Telerik.Web.UI.RadWindowUtils._updatePinnedElementPosition=function(c){if(c.isMaximized()||!c.isVisible()){return;
1218}var a=c._getViewportBounds();
1219var e=c._getCurrentBounds();
1220var d=(c.LeftOffset!=null)?c.LeftOffset+a.scrollLeft:e.x;
1221var b=(c.TopOffset!=null)?c.TopOffset+a.scrollTop:e.y;
1222c.moveTo(d,b);
1223};
1224
1225if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();

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.