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._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=false; 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; $clearHandlers(this._iframe); } } },_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.restore(); }else{ if(this.isBehaviorEnabled(Telerik.Web.UI.WindowBehaviors.Maximize)){ if(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(_f){ if(this._onTitlebarDblclickDelegate){ $removeHandler(_f,"dblclick",this._onTitlebarDblclickDelegate); this._onTitlebarDblclickDelegate=null; } if(this._onTitlebarClickDelegate){ $removeHandler(_f,"click",this._onTitlebarClickDelegate); this._onTitlebarClickDelegate=null; } $clearHandlers(_f); } } },_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); },_enableMoveResize:function(_13){ if(this._resizeExtender){ this._resizeExtender.dispose(); this._resizeExtender=null; } if(!_13){ return; } if(!this._popupElement){ return; } var _14=this._tableElement.rows; var _15={}; var _16=this._isWindowRightToLeft(); if(this.isBehaviorEnabled(Telerik.Web.UI.WindowBehaviors.Resize)){ if(_16){ _15={nw:_14[0].cells[2],n:this._topResizer,ne:_14[0].cells[0],w:[_14[1].cells[2],_14[2].cells[2]],e:[_14[1].cells[0],_14[2].cells[0]],sw:_14[3].cells[2],s:_14[3].cells[1],se:[_14[3].cells[0],this._bottomResizer]}; }else{ _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]}; } } if(this.isBehaviorEnabled(Telerik.Web.UI.WindowBehaviors.Move)){ _15["move"]=this._titleCell; } this._resizeExtender=new Telerik.Web.UI.ResizeExtender(this,this._popupElement,_15,this._tableElement); },onResizeStart:function(){ if(this.isMaximized()){ return false; } this._cachedDragZoneBounds=this._getRestrictionZoneBounds(); },onResizing:function(_17){ if(!this._cachedDragZoneBounds){ return true; } return this._checkRestrictionZoneBounds(this._cachedDragZoneBounds,_17); },onResizeEnd:function(){ this._cachedDragWindowBounds=null; var _18=this._getCurrentBounds(); this.moveTo(_18.x,_18.y); if(this._overlay&&$telerik.isFirefox){ this._popupBehavior._onMove(); } this.raiseEvent("resize",new Sys.EventArgs()); },onDragStart:function(){ this.setActive(true); if(this.isPinned()||this.isMaximized()){ return false; } if(this.isMinimized()&&this.get_minimizeZoneID()){ return false; } this._cachedDragZoneBounds=this._getRestrictionZoneBounds(); this._cachedDragWindowBounds=$telerik.getBounds(this._popupElement); this.raiseEvent("dragStart",new Sys.EventArgs()); return true; },onDragEnd:function(_19){ this._cachedDragZoneBounds=null; this._cachedDragWindowBounds=null; if(this._overlay&&$telerik.isFirefox){ this._popupBehavior._onMove(); } this.raiseEvent("dragEnd",new Sys.EventArgs()); var _1a=this._getCurrentBounds(); this.moveTo(_1a.x,_1a.y); this.setActive(true); },onDrag:function(_1b){ if(!this._cachedDragZoneBounds){ return true; } var _1c=this._cachedDragWindowBounds; var _1d=this._cachedDragZoneBounds; _1b.width=_1c.width; _1b.height=_1c.height; var _1e=this._checkRestrictionZoneBounds(_1d,_1b); if(!_1e){ if(_1b.x<=_1d.x){ _1b.x=_1d.x; }else{ if(_1d.x+_1d.width<=_1b.x+_1c.width){ _1b.x=_1d.x+_1d.width-_1c.width; } } if(_1b.y<=_1d.y){ _1b.y=_1d.y; }else{ if(_1d.y+_1d.height<=_1b.y+_1c.height){ _1b.y=_1d.y+_1d.height-_1c.height; } } _1e=true; } return _1e; },initialize:function(){ Telerik.Web.UI.RadWindow.callBaseMethod(this,"initialize"); if(this._visibleOnPageLoad){ setTimeout(Function.createDelegate(this,function(){ this.show(); }),0); } this._registerWindowResizeHandler(true); },dispose:function(){ var _1f=this.get_windowManager(); if(_1f){ if(_1f.get_preserveClientState()){ _1f.saveWindowState(this); } if(this._destroyOnClose){ _1f.removeWindow(this); } } if(this._windowAnimation){ this._windowAnimation.dispose(); } this._enableMoveResize(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); var _20=this._iframe; if(_20){ _20.radWindow=null; _20.src="javascript:'';"; _20.name=""; _20.removeAttribute("name"); _20.removeAttribute("NAME"); } if(this._contentElement){ this._contentElement.innerHTML=""; } var _21=this._popupElement; if(_21&&_21.parentNode){ _21.parentNode.removeChild(_21); } Telerik.Web.UI.RadWindow.callBaseMethod(this,"dispose"); },hide:function(){ this._hide(); return true; },clone:function(_22,_23){ if(!_22){ alert("Telerik.Web.UI.RadWindow.clone called without providing a name argument"); return; } var evs=(_23!=false)?this._getEventsParameter():null; var _25=this._getPropertiesParameter(); var _26=document.createElement("SPAN"); _26.setAttribute("id",_22); var wnd=$create(Telerik.Web.UI.RadWindow,_25,evs,null,_26); wnd.set_name(_22); wnd._isCloned=true; return wnd; },set_contentElement:function(_28){ this._createUI(); if(this._iframe){ this._iframe.style.display="none"; } if(_28.parentNode&&_28.parentNode.removeChild){ _28.parentNode.removeChild(_28); } this._contentCell.appendChild(_28); _28.style.display=""; this._contentElement=_28; },get_contentElement:function(){ return this._contentElement; },isCreated:function(){ return this._popupElement!=null; },show:function(){ var _29=this.isCreated(); this._createUI(); if(this._navigateUrl&&(!_29||this._reloadOnShow)){ this.setUrl(this._navigateUrl); } if(!_29&&(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 _2a=$get(this.get_offsetElementID()); if(_2a){ this._offsetElement=_2a; } } var _2b=this._popupBehavior.get_parentElement(); 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(); if(_2b!=this._popupBehavior.get_parentElement()){ this._popupBehavior.set_parentElement(_2b); } 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.restore(); } this._popupBehavior.hide(true); this._popupVisible=false; this._getWindowController().notifyWindowClosed(this); },_afterShow:function(){ this.setActive(true); this._storeBounds(); this.raiseEvent("show",new Sys.EventArgs()); },_playAnimation:function(){ var _2c=function(){ var wnd=this.controller; var _2e=wnd._getCalculatedPopupBounds(); wnd._setPopupVisible(_2e.x,_2e.y); var _2f=$telerik.getBounds(wnd._popupElement); wnd._popupBehavior.hide(); this.set_endBounds(_2f); }; 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=_2c; }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=_2c; }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=_2c; } } } } } 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(_32){ var str="rwndrnd="+Math.random(); if(_32.indexOf("?")>-1){ str="&"+str; }else{ str="?"+str; } _32+=str; return _32; },_getPropertiesParameter:function(){ if(!this._propertiesParameter){ var _34={}; for(var _35 in Telerik.Web.UI.RadWindow.prototype){ var _36=this[_35]; if(typeof (_36)=="function"&&_35.indexOf("get_")==0){ var _37=_35.substring(4); if(null==this["set_"+_37]){ continue; } var _38=_36.call(this); if(null==_38){ continue; } _34[_37]=_38; if(_37=="skin"){ break; } } } this._propertiesParameter=_34; } var _39=this._cloneObject(this._propertiesParameter); return _39; },_getEventsParameter:function(){ if(!this._eventsParameter){ var _3a={}; var _3b=this.get_events(); var _3c=this._eventNames; for(var i=0;i<_3c.length;i++){ var _3e=_3c[i]; var _3f=_3b.getHandler(_3e); if(_3f&&typeof (eval(_3f))=="function"){ _3a[_3e]=eval(_3f); } } this._eventsParameter=_3a; } return this._eventsParameter; },_cloneObject:function(_40){ var _41={}; for(var _42 in _40){ _41[_42]=_40[_42]; } return _41; },getWindowBounds:function(){ return this._getCalculatedPopupBounds(); },toString:function(){ return "[RadWindow id="+this.get_id()+"]"; },center:function(){ var _43=this._getCentralBounds(); this.moveTo(_43.x,_43.y); },moveTo:function(x,y){ var _46=this._popupElement; if(_46){ var _47=$telerik.getBounds(_46); var _48=this._getRestrictionZoneBounds(); if(_48){ var _49=this._checkRestrictionZoneBounds(null,new Sys.UI.Bounds(x+_48.x,y+_48.y,_47.width,_47.height)); if(!_49){ return false; } } } x=parseInt(x); y=parseInt(y); this._createUI(); this._setPopupVisible(x,y); this._storeBounds(); return true; },setSize:function(_4a,_4b){ this._firstShow=false; this.set_width(_4a); this.set_height(_4b); this._storeBounds(); },_maintainMaximizedSize:function(){ if(!this.isMaximized()){ return; } var _4c=this._popupElement; if(!_4c){ return; } var _4d=this._getViewportBounds(); _4c.style.top=(_4d.scrollTop+_4d.y)+"px"; _4c.style.left=(_4d.scrollLeft+_4d.x)+"px"; $telerik.setSize(_4c,{width:_4d.width,height:_4d.height}); var _4e=this._getRestrictionZoneBounds(); if(!_4e){ this._enablePageScrolling(false); } var _4f=this._tableElement; _4d=$telerik.getContentSize(_4c); var _50=$telerik.getBorderBox(_4f); var _51=$telerik.getPaddingBox(_4f); var _52=_4d.height-_50.vertical-_51.vertical; _4f.style.height=_52+"px"; this._fixIeHeight(_4f,_52); },_enablePageScrolling:function(_53){ var _54=document.body; var doc=document.documentElement; if(_53){ if(null!=this._documentOverflow){ doc.style.overflow=this._documentOverflow; } if(null!=this._bodyOverflow){ _54.style.overflow=this._bodyOverflow; } this._documentOverflow=null; this._bodyOverflow=null; }else{ if(null==this._documentOverflow){ this._documentOverflow=doc.style.overflow; } if(null==this._bodyOverflow){ this._bodyOverflow=_54.style.overflow; } _54.style.overflow="hidden"; doc.style.overflow="hidden"; } },_getRestrictionZoneBounds:function(){ var _56=null; if(this.get_restrictionZoneID()){ var _57=$get(this.get_restrictionZoneID()); if(_57){ _56=$telerik.getBounds(_57); _56.scrollLeft=0; _56.scrollTop=0; } } return _56; },_storeBounds:function(){ if(!this.isCreated()){ return; } var _58=this._getCurrentBounds(); if(this.isMaximized()){ return false; } if(this.isMinimized()){ if(this._restoreRect){ _58.width=this._restoreRect.width; _58.height=this._restoreRect.height; }else{ _58.width=this.get_width(); _58.height=this.get_height(); } } this._restoreRect=_58; },_restoreBounds:function(){ if(!this._restoreRect){ return; } var _59=this._restoreRect; this.setSize(_59.width,_59.height); this.moveTo(_59.x,_59.y); },_getStoredBounds:function(){ if(this._restoreRect){ return this._restoreRect; } },_deleteStoredBounds:function(){ this._restoreRect=null; },_getCurrentBounds:function(){ var _5a=(this._popupElement.style.display=="none")?true:false; this._popupElement.style.display=""; if(this._firstShow!=true){ this._updateWindowSize(this._height); this._firstShow=true; } var _5b=$telerik.getBounds(this._popupElement); if(_5a){ this._popupElement.style.display="none"; } var _5c=this._getRestrictionZoneBounds(); if(_5c){ _5b.x-=_5c.x; _5b.y-=_5c.y; } return _5b; },_getCentralBounds:function(){ var _5d=this._getCurrentBounds(); var _5e=this._getViewportBounds(); var x=parseInt((_5e.width-_5d.width)/2); var y=parseInt((_5e.height-_5d.height)/2); _5d.x=x+_5e.scrollLeft; _5d.y=y+_5e.scrollTop; return _5d; },_getViewportBounds:function(){ var _61=this._getRestrictionZoneBounds(); if(_61){ return _61; } var _62=$telerik.getClientBounds(); var _63=document.documentElement.scrollLeft||document.body.scrollLeft; var _64=document.documentElement.scrollTop||document.body.scrollTop; _62.scrollLeft=_63; _62.scrollTop=_64; if(this.isIE){ if(_62.width==0){ _62.width=document.body.clientWidth; } if(_62.height==0){ _62.height=document.body.clientHeight; } } return _62; },_getCalculatedPopupBounds:function(){ var _65=this._getStoredBounds(); if(_65){ return _65; } var _66=this._getCurrentBounds(); var _67=this._offsetElement; if(!this._top&&!this._left&&!_67){ _66=this._getCentralBounds(); }else{ if(_67){ _66.y=0; _66.x=0; }else{ var _68=this._getViewportBounds(); _66.x=_68.scrollLeft; _66.y=_68.scrollTop; } var _69=this._left?this._left:0; _66.x+=_69; var top=this._top?this._top:0; _66.y+=top; } return _66; },_checkRestrictionZoneBounds:function(_6b,_6c){ var _6d=_6b; if(!_6d){ _6d=this._getRestrictionZoneBounds(); if(!_6d){ return true; } } return Telerik.Web.UI.ResizeExtender.containsBounds(_6d,_6c); },_reSetWindowPosition:function(){ var _6e=this._getCalculatedPopupBounds(); this._setPopupVisible(_6e.x,_6e.y); },_fixIeHeight:function(_6f,_70){ if("CSS1Compat"==document.compatMode){ var _71=(_6f.offsetHeight-parseInt(_70)); if(_71>0){ var _72=(parseInt(_6f.style.height)-_71); if(_72>0){ _6f.style.height=_72+"px"; } } } },_setPopupVisible:function(x,y){ var _75=this._getRestrictionZoneBounds(); if(_75){ x+=_75.x; y+=_75.y; } this._popupBehavior._setCoordinates(x,y); this._popupBehavior.show(); if(!this.get_width()){ this._popupElement.style.width=""; } this._updateTitleWidth(); },_createDefaultTable:function(){ var _76=document.createElement("TABLE"); _76.align="left"; _76.cellSpacing=0; _76.cellPadding=0; _76.insertRow(-1); return _76; },_isWindowRightToLeft:function(){ var _77=this._isRightToLeft; if(_77==null){ var _78=this.get_element(); var _79=_78.parentNode?_78:this._getDefaultParent(); _77=this._isRightToLeft=$telerik.isRightToLeft(_79); } return _77; },_createStatusbarResizer:function(_7a){ var _7b=_7a.rows[0].insertCell(-1); _7b.style.width="15px"; var _7c=document.createElement("DIV"); _7b.appendChild(_7c); this._bottomResizer=_7c; },_createStatusbarMessageCell:function(_7d){ var _7e=_7d.rows[0].insertCell(-1); _7e.style.width="100%"; var _7f=this._getStatusMessageElement(); _7e.appendChild(_7f); },_createUI:function(){ if(!this._popupElement){ var _80=this.get_id(); var _81="RadWindowWrapper_"+_80; var _82=this._isWindowRightToLeft(); var _83=document.createElement("DIV"); _83.id=_81; _83.className=this._getFullSkinName(); if(_82){ Sys.UI.DomElement.addCssClass(_83,"radwindow_rtl"); } _83.style.width=this._width; _83.style.height=this._height; _83.setAttribute("unselectable","on"); this._popupElement=_83; var _84=document.createElement("TABLE"); _84.cellSpacing=0; _84.cellPadding=0; this._tableElement=_84; var _85=[]; if(_82){ classNames=["corner topright","titlebar","corner topleft","corner bodyright","windowcontent","corner bodyleft","corner bodyright","statusbar","corner bodyleft","corner footerright","footercenter","corner footerleft"]; }else{ classNames=["corner topleft","titlebar","corner topright","corner bodyleft","windowcontent","corner bodyright","corner bodyleft","statusbar","corner bodyright","corner footerleft","footercenter","corner footerright"]; } var _86=["titlerow","contentrow","statusbarrow","footerrow"]; var _87=0; for(var i=0;i<4;i++){ var row=_84.insertRow(-1); row.className=_86[i]; for(var j=1;j<=3;j++){ var _8b=row.insertCell(-1); _8b.innerHTML=" "; _8b.className=classNames[_87]; _87++; } } var _8c=_84.rows[0].cells[1]; _8c.innerHTML=""; this._titleCell=_8c; var _8d=document.createElement("DIV"); _8d.className="topresize"; _8d.innerHTML=""; this._topResizer=_8d; this._titleCell.appendChild(this._topResizer); var _8e=this._createDefaultTable(); _8e.className="titlebarcontrols"; this._titlebarElement=_8e; this._titleCell.appendChild(this._titlebarElement); var _8f=this._getTitleIcon(); var _90=this._titlebarElement.rows[0].insertCell(-1); _90.appendChild(_8f); var _91=this._getTitleElement(); var _8c=this._titlebarElement.rows[0].insertCell(-1); _8c.appendChild(_91); this.set_title(this._title); var _92=this._titlebarElement.rows[0].insertCell(-1); _92.noWrap=true; _92.style.whiteSpace="nowrap"; _92.appendChild(this._getTitleCommandButtonsHolder()); var _93=_84.rows[1].cells[1]; _93.vAlign="top"; _93.innerHTML=""; this._contentCell=_93; var _94=this.get_name(); var _95=($telerik.isIE)?document.createElement("