Type.registerNamespace("Telerik.Web.UI"); Telerik.Web.UI.RadWindowControllerClass=function(){ this._activeWindow=null; this._historyStack=[]; this._registerGlobalBodyEventHandlers(); }; Telerik.Web.UI.RadWindowControllerClass.prototype={getInstance:function(){ return this; },_registerGlobalBodyEventHandlers:function(){ var _1=Function.createDelegate(null,function(e){ if(e.keyCode==27){ Telerik.Web.UI.RadWindowController.hideCurrentWindowIfNonModal(); } }); $addHandler(document.documentElement,"keydown",_1); Sys.Application.add_unload(function(){ $removeHandler(document.documentElement,"keydown",_1); }); },hideCurrentWindowIfNonModal:function(){ if(this._activeWindow!=null&&this._activeWindow.isModal&&!this._activeWindow.isModal()){ this._activeWindow.close(); } this._activeWindow=null; },inactivateCurrentWindow:function(){ if(this._activeWindow!=null){ this._activeWindow.setActive(false); } this._activeWindow=null; },set_activeWindow:function(_3){ if(_3==this._activeWindow){ return; } this.inactivateCurrentWindow(); this._activeWindow=_3; Array.remove(this._historyStack,_3); Array.add(this._historyStack,_3); },notifyWindowClosed:function(_4){ if(this._activeWindow==_4){ this._activeWindow=null; } Array.remove(this._historyStack,_4); this._activatePreviousWindow(); },_activatePreviousWindow:function(){ var _5=this._historyStack; var i=_5.length-1; for(;i>=0;i--){ var _7=_5[i]; if(!_7){ return; } if(_7.isCreated()&&!_7.isClosed()&&!_7.isMinimized()){ _7.setActive(true); break; }else{ Array.removeAt(_5,i); } } },get_activeWindow:function(){ return this._activeWindow; }}; Telerik.Web.UI.RadWindowControllerClass.registerClass("Telerik.Web.UI.RadWindowControllerClass",null); if(!Telerik.Web.UI.RadWindowController){ Telerik.Web.UI.RadWindowController=new Telerik.Web.UI.RadWindowControllerClass(); } Type.registerNamespace("Telerik.Web.UI"); Type.registerNamespace("Telerik.Web.UI.RadWindowUtils"); Telerik.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"}; Telerik.Web.UI.RadWindow=function(_8){ Telerik.Web.UI.RadWindow.initializeBase(this,[_8]); this._eventNames=["resize","activate","dragStart","dragEnd","show","pageLoad","close","command"]; this._bodyElement=($telerik.standardsMode)?document.documentElement:document.body; this._openerElement=null; this._offsetElement=null; this._popupElement=null; this._tableElement=null; this._contentElement=null; this._contentCell=null; this._titleElement=null; this._titleCell=null; this._titlebarElement=null; this._statusCell=null; this._statusMessageElement=null; this._iframe=null; this._buttonsElement=null; this._buttonsArray=[]; this.isIE=($telerik.isIE); this._openerElementID=null; this._offsetElementID=null; this._behaviors=Telerik.Web.UI.WindowBehaviors.Default; this._initialBehaviors=Telerik.Web.UI.WindowBehaviors.None; this._navigateUrl=null; this._left=""; this._top=""; this._formID=null; this._skin="Default"; this._title=""; this._width="300px"; this._height="300px"; this._minimizeZoneID=null; this._restrictionZoneID=""; this._clientCallBackFunction=null; this._reloadOnShow=false; this._visibleOnPageLoad=false; this._destroyOnClose=false; this._visibleTitlebar=true; this._visibleStatusbar=true; this._showContentDuringLoad=true; this._modal=false; this._overlay=false; this._keepInScreenBounds=true; this._iconUrl=null; this._minimizeIconUrl=null; this._animation=Telerik.Web.UI.WindowAnimation.None; this._windowAnimation=null; this._onMouseDownDelegate=null; this._onClickDelegate=null; this._onTitlebarDblclickDelegate=null; this._onTitlebarClickDelegate=null; this._onWindowResizeDelegate=null; this._onIframeLoadDelegate=null; this._onChildPageUnloadDelegate=null; this._onChildPageClickDelegate=null; this._onModalShowHandler=null; this._onModalCloseHandler=null; this._loaded=false; this._isCloned=false; this._restoreRect=null; this._popupBehavior=null; this._popupVisible=false; this._windowManager; this.GetWindowManager=this.get_windowManager; this.BrowserWindow=window; this.GetContentFrame=this.get_contentFrame; this.GetLeftPosition=function(){ this.getWindowBounds().x; }; this.GetTopPosition=function(){ this.getWindowBounds().y; }; this.GetTitlebar=function(){ return this._titleCell; }; this.GetStatusbar=function(){ return this._statusCell; }; this.SetOpenerElementId=this.set_openerElementID; this.SetStatus=this.set_status; this.GetStatus=this.get_status; this.SetModal=this.set_modal; this.SetWidth=this.set_width; this.SetHeight=this.set_height; this.GetWidth=this.get_width; this.GetHeight=this.get_height; this.SetOffsetElementId=this.set_offsetElementID; this.SetTitle=this.set_title; this.MoveTo=this.moveTo; this.Center=this.center; this.SetVisible=this.setVisible; this.SetSize=this.setSize; this.Show=this.show; this.Hide=this.hide; this.GetUrl=this.get_navigateUrl; this.SetUrl=this.setUrl; this.Reload=this.reload; this.SetActive=this.setActive; this.Minimize=this.minimize; this.Restore=this.restore; this.Maximize=this.maximize; this.Close=this.close; this.TogglePin=this.togglePin; this.IsMaximized=this.isMaximized; this.IsMinimized=this.isMinimized; this.IsModal=this.isModal; this.IsClosed=this.isClosed; this.IsPinned=this.isPinned; this.IsVisible=this.isVisible; this.IsActive=this.isActive; this.IsBehaviorEnabled=this.isBehaviorEnabled; }; Telerik.Web.UI.RadWindow.prototype={_getLocalization:function(){ return Telerik.Web.UI.RadWindowUtils.Localization; },_registerIframeLoadHandler:function(_9){ if(!this._iframe){ return; } if(_9){ this._onIframeLoadDelegate=Function.createDelegate(this,this._onIframeLoad); $addHandler(this._iframe,"load",this._onIframeLoadDelegate); }else{ if(this._onIframeLoadDelegate){ $removeHandler(this._iframe,"load",this._onIframeLoadDelegate); this._onIframeLoadDelegate=null; } } },_registerWindowResizeHandler:function(_a){ if(_a){ this._onWindowResizeDelegate=Function.createDelegate(this,this._maintainMaximizedSize); $addHandler(window,"resize",this._onWindowResizeDelegate); }else{ if(this._onWindowResizeDelegate){ $removeHandler(window,"resize",this._onWindowResizeDelegate); this._onWindowResizeDelegate=null; } } },_registerOpenerElementHandler:function(_b,_c){ if(!_b){ return; } if(true==_c){ this._onClickDelegate=Function.createDelegate(this,this._onClick); $addHandler(_b,"click",this._onClickDelegate); }else{ var _d=$removeHandler(_b,"click",this._onClickDelegate); this._onClickDelegate=null; } },_registerTitlebarHandlers:function(_e){ var _f=this._titleCell; if(_e){ this._onTitlebarDblclickDelegate=Function.createDelegate(this,function(){ if(this.isMinimized()||this.isMaximized()){ this.restore(); }else{ this.maximize(); } }); this._onTitlebarClickDelegate=Function.createDelegate(this,function(){ this.setActive(true); }); $addHandler(_f,"dblclick",this._onTitlebarDblclickDelegate); $addHandler(_f,"click",this._onTitlebarClickDelegate); }else{ if(this._titleCell){ if(this._onTitlebarDblclickDelegate){ $removeHandler(_f,"dblclick",this._onTitlebarDblclickDelegate); this._onTitlebarDblclickDelegate=null; } if(this._onTitlebarClickDelegate){ $removeHandler(_f,"click",this._onTitlebarClickDelegate); this._onTitlebarClickDelegate=null; } } } },_makeModal:function(_10){ if(this._onModalShowHandler){ this.remove_show(this._onModalShowHandler); this._onModalShowHandler=null; } if(this._onModalCloseHandler){ this.remove_close(this._onModalCloseHandler); this._onModalCloseHandler=null; } if(this._modalExtender){ this._modalExtender.dispose(); this._modalExtender=null; } if(!_10){ return; } if(typeof (Telerik.Web.UI.RadWindowManager)!="undefined"&&Telerik.Web.UI.RadWindowManager.isInstanceOfType(this)){ return; } this._onModalShowHandler=function(_11){ if(!_11._modalExtender){ _11._modalExtender=new Telerik.Web.UI.ModalExtender(_11._popupElement); } _11._modalExtender.show(); _11.center(); }; this.add_show(this._onModalShowHandler); this._onModalCloseHandler=function(_12){ window.setTimeout(function(){ if(_12._modalExtender){ _12._modalExtender.hide(); } },10); }; this.add_close(this._onModalCloseHandler); },_makeResizeable:function(_13){ if(this._resizeExtender){ this._resizeExtender.dispose(); this._resizeExtender=null; } if(!_13){ return; } if(!this._popupElement){ return; } if(!this.isBehaviorEnabled(Telerik.Web.UI.WindowBehaviors.Resize)){ return; } var _14=this._tableElement.rows; var _15={nw:_14[0].cells[0],n:this._topResizer,ne:_14[0].cells[2],w:[_14[1].cells[0],_14[2].cells[0]],e:[_14[1].cells[2],_14[2].cells[2]],sw:_14[3].cells[0],s:_14[3].cells[1],se:[_14[3].cells[2],this._bottomResizer]}; this._resizeExtender=new Telerik.Web.UI.ResizeExtender(this,this._popupElement,_15,this._tableElement); },onResizing:function(_16){ return this._isInZoneBounds(_16); },onResizeEnd:function(){ var _17=this._getCurrentBounds(); this.moveTo(_17.x,_17.y); if(this._overlay&&Sys.Browser.agent===Sys.Browser.Firefox){ this._popupBehavior._onMove(); } this.raiseEvent("resize",new Sys.EventArgs()); },_setIframesVisible:function(_18){ var _19=document.getElementsByTagName("IFRAME"); for(var i=0;i<_19.length;i++){ _19[i].style.visibility=_18?"":"hidden"; } },_makeMoveable:function(_1b){ var _1c=this._titleCell; if(_1b&&this.isBehaviorEnabled(Telerik.Web.UI.WindowBehaviors.Move)){ _1c.style.cursor="move"; this._onMouseDownDelegate=Function.createDelegate(this,this._mouseDownHandler); $addHandler(_1c,"mousedown",this._onMouseDownDelegate); }else{ if(_1c&&this._onMouseDownDelegate){ _1c.style.cursor=""; $removeHandler(_1c,"mousedown",this._onMouseDownDelegate); this._onMouseDownDelegate=null; } } },_mouseDownHandler:function(e){ window._event=e; var _1e=(0>Array.indexOf(["input","button","select","textarea","label","a"],e.target.tagName.toLowerCase())); if(_1e){ this._cancelEvent(e); var _1f=this._popupElement; _1f.removeAttribute("unselectable"); this._startDragDrop(_1f); } },_startDragDrop:function(_20){ if(this.isPinned()){ return; } var _21=$telerik.getLocation(_20); $telerik.setLocation(_20,_21); Telerik.Web.DragDropManager.startDragDrop(this,_20,null); },get_dragDataType:function(){ return Telerik.Web.UI.RadWindowUtils.DragDataType; },getDragData:function(_22){ return this; },get_dragMode:function(){ return Telerik.Web.DragMode.Move; },onDrag:function(e){ },onDragStart:function(){ this.setActive(true); this._setIframesVisible(false); var _24=this._getRestrictionZoneBounds(); if(_24){ Telerik.Web.IEDragDropManager.prototype.old_drag=Telerik.Web.IEDragDropManager.prototype._drag; Telerik.Web.IEDragDropManager.prototype._drag=this._DragDropManagerNewDragImpl; } this.raiseEvent("dragStart",new Sys.EventArgs()); },onDragEnd:function(_25){ this._setIframesVisible(true); if(this._overlay&&Sys.Browser.agent===Sys.Browser.Firefox){ this._popupBehavior._onMove(); } var _26=this._getRestrictionZoneBounds(); if(_26){ Telerik.Web.IEDragDropManager.prototype._drag=Telerik.Web.IEDragDropManager.prototype.old_drag; Telerik.Web.IEDragDropManager.prototype.old_drag=null; } this.raiseEvent("dragEnd",new Sys.EventArgs()); this._storeBounds(); this.setActive(true); },_DragDropManagerNewDragImpl:function(_27){ var wnd=this._activeDragSource; var _29=wnd._getRestrictionZoneBounds(); if(_29){ var ev=window._event; var _2b={x:ev.clientX,y:ev.clientY}; var _2c=this.getScrollOffset(this._activeDragVisual,true); var _2d=this.addPoints(this.subtractPoints(_2b,this._activeDragVisual.startingPoint),_2c); var _2e=$telerik.getBounds(wnd._popupElement); var _2f=wnd._isInBounds(_2d,_29,_2e); if(!_2f){ if(_2e.x<_29.x){ _2e.x=_29.x; } if(_2e.y<_29.y){ _2e.y=_29.y; } if(_2e.x+_2e.width>_29.x+_29.width){ _2e.x-=_2e.x+_2e.width-(_29.width+_29.x); } if(_2e.y+_2e.height>_29.height+_29.y){ _2e.y-=_2e.y+_2e.height-(_29.height+_29.y); } this._activeDragVisual.startingPoint=this.addPoints(this.subtractPoints(_2b,_2e),_2c); } } Telerik.Web.IEDragDropManager.prototype.old_drag.call(this,_27); },_isInBounds:function(_30,_31,_32){ var _33=$telerik.containsPoint(_31,_30.x,_30.y); if(_33){ var x=_30.x+_32.width; var y=_30.y+_32.height; _33=$telerik.containsPoint(_31,x,y); } return _33; },initialize:function(){ Telerik.Web.UI.RadWindow.callBaseMethod(this,"initialize"); if(this._visibleOnPageLoad){ this.show(); } this._registerWindowResizeHandler(true); },dispose:function(){ var _36=this.get_windowManager(); if(_36){ if(_36.get_preserveClientState()){ _36.saveWindowState(this); } if(this._destroyOnClose){ _36.removeWindow(this); } } if(this._windowAnimation){ this._windowAnimation.dispose(); } if(this._popupBehavior){ this._popupBehavior.dispose(); this._popupBehavior=null; } this._makeMoveable(false); this._makeResizeable(false); this._makeModal(false); this._registerTitlebarHandlers(false); this._registerWindowResizeHandler(false); this._registerIframeLoadHandler(false); if(this._openerElement){ this._registerOpenerElementHandler(this._openerElement,false); } this.set_behaviors(Telerik.Web.UI.WindowBehaviors.None); if(this._iframe){ this._iframe.src="javascript:'';"; } if(this._contentElement){ this._contentElement.innerHTML=""; } Telerik.Web.UI.RadWindow.callBaseMethod(this,"dispose"); },hide:function(){ this._hide(); return true; },clone:function(_37,_38){ if(!_37){ alert("Telerik.Web.UI.RadWindow.clone called without providing a name argument"); return; } var evs=(_38!=false)?this._getEventsParameter():null; var _3a=this._getPropertiesParameter(); var _3b=document.createElement("SPAN"); _3b.setAttribute("id",_37); var wnd=$create(Telerik.Web.UI.RadWindow,_3a,evs,null,_3b); wnd.set_name(_37); wnd._isCloned=true; return wnd; },set_contentElement:function(_3d){ this._createUI(); if(this._iframe){ this._iframe.style.display="none"; } if(_3d.parentNode&&_3d.parentNode.removeChild){ _3d.parentNode.removeChild(_3d); } this._contentCell.appendChild(_3d); _3d.style.display=""; this._contentElement=_3d; },get_contentElement:function(){ return this._contentElement; },isCreated:function(){ return this._popupElement!=null; },show:function(){ var _3e=this.isCreated(); this._createUI(); if(this._navigateUrl&&(!_3e||this._reloadOnShow)){ this.setUrl(this._navigateUrl); } if(!_3e&&(this._initialBehaviors!=Telerik.Web.UI.WindowBehaviors.None)){ this._show(); this._afterShow(); if(this.isInitialBehaviorEnabled(Telerik.Web.UI.WindowBehaviors.Minimize)){ this.minimize(); } if(this.isInitialBehaviorEnabled(Telerik.Web.UI.WindowBehaviors.Maximize)){ this.maximize(); } if(this.isInitialBehaviorEnabled(Telerik.Web.UI.WindowBehaviors.Pin)){ this.togglePin(); } return; } if(this._animation==Telerik.Web.UI.WindowAnimation.None){ this._show(); this._afterShow(); }else{ this._playAnimation(); } },_show:function(){ this.raiseEvent("beforeShow",new Sys.EventArgs()); if(this.get_offsetElementID()&&!this._offsetElement){ var _3f=$get(this.get_offsetElementID()); if(_3f){ this._offsetElement=_3f; } } this._popupBehavior.set_parentElement(this._bodyElement); if(this._offsetElement&&!this._offsetSet){ this._popupBehavior.set_parentElement(this._offsetElement); this._offsetSet=true; } this.set_visibleTitlebar(this._visibleTitlebar); this.set_visibleStatusbar(this._visibleStatusbar); this._reSetWindowPosition(); this._popupBehavior.set_parentElement(this._bodyElement); this._popupVisible=true; },_hide:function(){ if(this._windowAnimation){ this._windowAnimation.stop(); } if(this._windowAnimation){ this._windowAnimation.play(true); }else{ this._afterHide(); } },_afterHide:function(){ if(!this._popupBehavior){ return; } if(this.isMaximized()){ this._restoreBounds(); } this._popupBehavior.hide(true); this._popupVisible=false; this._getWindowController().notifyWindowClosed(this); this.raiseEvent("close",new Sys.EventArgs()); },_afterShow:function(){ this.setActive(true); this._storeBounds(); this.raiseEvent("show",new Sys.EventArgs()); },_playAnimation:function(){ var _40=function(){ var wnd=this.controller; var _42=wnd._getCalculatedPopupBounds(); wnd._setPopupVisible(_42.x,_42.y); var _43=$telerik.getBounds(wnd._popupElement); wnd._popupBehavior.hide(); this.set_endBounds(_43); }; if(!this._windowAnimation){ if(this._animation==Telerik.Web.UI.WindowAnimation.Fade){ this._windowAnimation=new Telerik.Web.UI.Animations.FadeAnimation(this,0.4,null,this._popupElement,null,this._openerElement); this._windowAnimation.onShowStart=function(){ this.controller._show(); }; }else{ if(this._animation==Telerik.Web.UI.WindowAnimation.Slide){ this._windowAnimation=new Telerik.Web.UI.Animations.SlideAnimation(this,0.2,null,this._popupElement,null,this._openerElement); this._windowAnimation.onShowStart=_40; }else{ if(this._animation==Telerik.Web.UI.WindowAnimation.FlyIn){ this._windowAnimation=new Telerik.Web.UI.Animations.FlyInAnimation(this,null,null,this._popupElement,null,this._openerElement); this._windowAnimation.onShowStart=_40; }else{ if(this._animation==Telerik.Web.UI.WindowAnimation.Resize){ this._windowAnimation=new Telerik.Web.UI.Animations.ResizeAnimation(this,0.2,50,this._popupElement,null,this._openerElement); this._windowAnimation.onShowStart=_40; } } } } } if(this._windowAnimation){ this._windowAnimation.onShowEnd=function(){ this.controller._show(); this.controller._afterShow(); }; this._windowAnimation.onHideEnd=function(){ this.controller._afterHide(); }; this._windowAnimation.play(); } },_onClick:function(e){ this.show(); return this._cancelEvent(e); },_cancelEvent:function(e){ if(e){ e.returnValue=false; e.cancelBubble=true; e.preventDefault(); e.stopPropagation(); } return false; },_getWindowController:function(){ return Telerik.Web.UI.RadWindowController.getInstance(); },_getReloadOnShowUrl:function(_46){ var str="rwndrnd="+Math.random(); if(_46.indexOf("?")>-1){ str="&"+str; }else{ str="?"+str; } _46+=str; return _46; },_getPropertiesParameter:function(){ if(!this._propertiesParameter){ var _48={}; for(var _49 in Telerik.Web.UI.RadWindow.prototype){ var _4a=this[_49]; if(typeof (_4a)=="function"&&_49.indexOf("get_")==0){ var _4b=_49.substring(4); if(null==this["set_"+_4b]){ continue; } var _4c=_4a.call(this); if(null==_4c){ continue; } _48[_4b]=_4c; if(_4b=="skin"){ break; } } } this._propertiesParameter=_48; } var _4d=this._cloneObject(this._propertiesParameter); return _4d; },_getEventsParameter:function(){ if(!this._eventsParameter){ var _4e={}; var _4f=this.get_events(); var _50=this._eventNames; for(var i=0;i<_50.length;i++){ var _52=_50[i]; var _53=_4f.getHandler(_52); if(_53&&typeof (eval(_53))=="function"){ _4e[_52]=eval(_53); } } this._eventsParameter=_4e; } return this._eventsParameter; },_cloneObject:function(_54){ var _55={}; for(var _56 in _54){ _55[_56]=_54[_56]; } return _55; },getWindowBounds:function(){ return this._getCalculatedPopupBounds(); },toString:function(){ return "[RadWindow id="+this.get_id()+"]"; },center:function(){ var _57=this._getCentralBounds(); this.moveTo(_57.x,_57.y); },moveTo:function(x,y){ x=parseInt(x); y=parseInt(y); this._createUI(); this._setPopupVisible(x,y); this._storeBounds(); },setSize:function(_5a,_5b){ this._firstShow=false; this.set_width(_5a); this.set_height(_5b); this._storeBounds(); },_maintainMaximizedSize:function(){ if(!this.isMaximized()){ return; } var _5c=this._popupElement; if(!_5c){ return; } var _5d=this._getViewportBounds(); _5c.style.top=(_5d.scrollTop+_5d.y)+"px"; _5c.style.left=(_5d.scrollLeft+_5d.x)+"px"; _5c.style.width=_5d.width+"px"; _5c.style.height=_5d.height+"px"; var _5e=this._getRestrictionZoneBounds(); if(!_5e){ this._enablePageScrolling(false); } var _5f=this._tableElement; _5d=this._getViewportBounds(); _5f.style.height=_5d.height+"px"; this._fixIeHeight(_5f,_5d.height); },_enablePageScrolling:function(_60){ if(_60){ var _61=this._documentOverflowX; if(null!=_61){ this._documentOverflowX=null; document.documentElement.style.overflowX=_61?_61:""; } _61=this._documentOverflowY; if(null!=_61){ this._documentOverflowY=null; document.documentElement.style.overflowY=_61?_61:""; } _61=this._bodyOverflowX; if(null!=_61){ this._bodyOverflowX=null; document.body.style.overflowX=_61?_61:""; } _61=this._bodyOverflowY; if(null!=_61){ this._bodyOverflowY=null; document.body.style.overflowY=_61?_61:""; } }else{ if(!this._documentOverflowX){ this._documentOverflowX=$telerik.getCurrentStyle(document.documentElement,"overflowX"); } if(!this._documentOverflowY){ this._documentOverflowY=$telerik.getCurrentStyle(document.documentElement,"overflowY"); } if(!this._bodyOverflowX){ this._bodyOverflowX=$telerik.getCurrentStyle(document.body,"overflowX"); } if(!this._bodyOverflowY){ this._bodyOverflowY=$telerik.getCurrentStyle(document.body,"overflowY"); } document.body.style.overflow="hidden"; document.documentElement.style.overflow="hidden"; } },_isInZoneBounds:function(_62){ var _63=this._getRestrictionZoneBounds(); if(!_63){ return true; } if(!_62){ _62=$telerik.getBounds(this._popupElement); } var _64=$telerik.containsPoint(_63,_62.x,_62.y); if(_64){ var x=_62.x+_62.width; var y=_62.y+_62.height; _64=$telerik.containsPoint(_63,x,y); } return _64; },_getRestrictionZoneBounds:function(){ if(!this._zoneBounds){ if(this.get_restrictionZoneID()){ var _67=$get(this.get_restrictionZoneID()); if(_67){ var _68=$telerik.getBounds(_67); _68.scrollLeft=0; _68.scrollTop=0; this._zoneBounds=_68; } } } return this._zoneBounds; },_storeBounds:function(){ if(!this.isCreated()){ return; } var _69=this._getCurrentBounds(); if(this.isMaximized()){ return false; } if(this.isMinimized()){ if(this._restoreRect){ _69.width=this._restoreRect.width; _69.height=this._restoreRect.height; }else{ _69.width=this.get_width(); _69.height=this.get_height(); } } this._restoreRect=_69; },_restoreBounds:function(){ if(!this._restoreRect){ return; } var _6a=this._restoreRect; this.setSize(_6a.width,_6a.height); this.moveTo(_6a.x,_6a.y); },_getStoredBounds:function(){ if(this._restoreRect){ return this._restoreRect; } },_deleteStoredBounds:function(){ this._restoreRect=null; },_getCurrentBounds:function(){ var _6b=(this._popupElement.style.display=="none")?true:false; this._popupElement.style.display=""; if(this._firstShow!=true){ this._updateWindowSize(this._height); this._firstShow=true; } var _6c=$telerik.getBounds(this._popupElement); if(_6b){ this._popupElement.style.display="none"; } var _6d=this._getRestrictionZoneBounds(); if(_6d){ _6c.x-=_6d.x; _6c.y-=_6d.y; } return _6c; },_getCentralBounds:function(){ var _6e=this._getCurrentBounds(); var _6f=this._getViewportBounds(); var x=parseInt((_6f.width-_6e.width)/2); var y=parseInt((_6f.height-_6e.height)/2); _6e.x=x+_6f.scrollLeft; _6e.y=y+_6f.scrollTop; return _6e; },_getViewportBounds:function(){ var _72=this._getRestrictionZoneBounds(); if(_72){ return _72; } var _73=$telerik.getClientBounds(); var _74=document.documentElement.scrollLeft||document.body.scrollLeft; var _75=document.documentElement.scrollTop||document.body.scrollTop; _73.scrollLeft=_74; _73.scrollTop=_75; if(this.isIE){ if(_73.width==0){ _73.width=document.body.clientWidth; } if(_73.height==0){ _73.height=document.body.clientHeight; } } return _73; },_getCalculatedPopupBounds:function(){ var _76=this._getStoredBounds(); if(_76){ return _76; } var _77=this._getCurrentBounds(); var _78=this._offsetElement; if(!this._top&&!this._left&&!_78){ _77=this._getCentralBounds(); }else{ if(_78){ _77.y=0; _77.x=0; }else{ var _79=this._getViewportBounds(); _77.x=_79.scrollLeft; _77.y=_79.scrollTop; } var _7a=this._left?this._left:0; _77.x+=_7a; var top=this._top?this._top:0; _77.y+=top; } return _77; },_reSetWindowPosition:function(){ var _7c=this._getCalculatedPopupBounds(); this._setPopupVisible(_7c.x,_7c.y); },_fixIeHeight:function(_7d,_7e){ if("CSS1Compat"==document.compatMode){ var _7f=(_7d.offsetHeight-parseInt(_7e)); if(_7f>0){ var _80=(parseInt(_7d.style.height)-_7f); if(_80>0){ _7d.style.height=_80+"px"; } } } },_setPopupVisible:function(x,y){ var _83=this._getRestrictionZoneBounds(); if(_83){ x+=_83.x; y+=_83.y; } this._popupBehavior._setCoordinates(x,y); this._popupBehavior.show(); if(!this.get_width()){ this._popupElement.style.width=""; } this._updateTitleWidth(); },_createDefaultTable:function(){ var _84=document.createElement("TABLE"); _84.align="left"; _84.cellSpacing=0; _84.cellPadding=0; _84.insertRow(-1); return _84; },_createUI:function(){ if(!this._popupElement){ var _85=this.get_id(); var _86="RadWindowWrapper_"+_85; var _87=document.createElement("DIV"); _87.id=_86; _87.className=this._getFullSkinName(); _87.style.width=this._width; _87.style.height=this._height; _87.setAttribute("unselectable","on"); this._popupElement=_87; var _88=document.createElement("TABLE"); _88.cellSpacing=0; _88.cellPadding=0; this._tableElement=_88; var _89=["corner topleft","titlebar","corner topright","corner bodyleft","windowcontent","corner bodyright","corner bodyleft","statusbar","corner bodyright","corner footerleft","footercenter","corner footerright"]; var _8a=["titlerow","contentrow","statusbarrow","footerrow"]; var _8b=0; for(var i=0;i<4;i++){ var row=_88.insertRow(-1); row.className=_8a[i]; for(var j=1;j<=3;j++){ var _8f=row.insertCell(-1); _8f.innerHTML=" "; _8f.className=_89[_8b]; _8b++; } } var _90=_88.rows[0].cells[1]; _90.innerHTML=""; this._titleCell=_90; var _91=document.createElement("DIV"); _91.className="topresize"; _91.innerHTML=""; this._topResizer=_91; this._titleCell.appendChild(this._topResizer); var _92=this._createDefaultTable(); _92.className="titlebarcontrols"; this._titlebarElement=_92; this._titleCell.appendChild(this._titlebarElement); var _93=this._getTitleIcon(); var _94=this._titlebarElement.rows[0].insertCell(-1); _94.appendChild(_93); var _95=this._getTitleElement(); var _90=this._titlebarElement.rows[0].insertCell(-1); _90.appendChild(_95); this.set_title(this._title); var _96=this._titlebarElement.rows[0].insertCell(-1); _96.noWrap=true; _96.style.whiteSpace="nowrap"; _96.appendChild(this._getTitleCommandButtonsHolder()); var _97=_88.rows[1].cells[1]; _97.vAlign="top"; _97.innerHTML=""; this._contentCell=_97; var _98=this.get_name(); var _99=($telerik.isIE)?document.createElement("