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=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; } } },_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); },_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={}; if(this.isBehaviorEnabled(Telerik.Web.UI.WindowBehaviors.Resize)){ _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(){ this._cachedDragZoneBounds=this._getRestrictionZoneBounds(); },onResizing:function(_16){ if(!this._cachedDragZoneBounds){ return true; } return Telerik.Web.UI.ResizeExtender.containsBounds(this._cachedDragZoneBounds,_16); },onResizeEnd:function(){ this._cachedDragWindowBounds=null; var _17=this._getCurrentBounds(); this.moveTo(_17.x,_17.y); if(this._overlay&&$telerik.isFirefox){ this._popupBehavior._onMove(); } this.raiseEvent("resize",new Sys.EventArgs()); },onDragStart:function(){ this.setActive(true); if(this.isPinned()){ 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(_18){ this._cachedDragZoneBounds=null; this._cachedDragWindowBounds=null; if(this._overlay&&$telerik.isFirefox){ this._popupBehavior._onMove(); } this.raiseEvent("dragEnd",new Sys.EventArgs()); this._storeBounds(); this.setActive(true); },onDrag:function(_19){ if(!this._cachedDragZoneBounds){ return true; } var _1a=this._cachedDragWindowBounds; var _1b=this._cachedDragZoneBounds; _19.width=_1a.width; _19.height=_1a.height; var _1c=Telerik.Web.UI.ResizeExtender.containsBounds(_1b,_19); if(!_1c){ if(_19.x<=_1b.x){ _19.x=_1b.x; }else{ if(_1b.x+_1b.width<=_19.x+_1a.width){ _19.x=_1b.x+_1b.width-_1a.width; } } if(_19.y<=_1b.y){ _19.y=_1b.y; }else{ if(_1b.y+_1b.height<=_19.y+_1a.height){ _19.y=_1b.y+_1b.height-_1a.height; } } _1c=true; } return _1c; },initialize:function(){ Telerik.Web.UI.RadWindow.callBaseMethod(this,"initialize"); if(this._visibleOnPageLoad){ this.show(); } this._registerWindowResizeHandler(true); },dispose:function(){ var _1d=this.get_windowManager(); if(_1d){ if(_1d.get_preserveClientState()){ _1d.saveWindowState(this); } if(this._destroyOnClose){ _1d.removeWindow(this); } } if(this._windowAnimation){ this._windowAnimation.dispose(); } if(this._popupBehavior){ this._popupBehavior.dispose(); this._popupBehavior=null; } 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); if(this._iframe){ this._iframe.src="javascript:'';"; var _1e=this._iframe; _1e.name=""; _1e.removeAttribute("name"); _1e.removeAttribute("NAME"); } if(this._contentElement){ this._contentElement.innerHTML=""; } Telerik.Web.UI.RadWindow.callBaseMethod(this,"dispose"); },hide:function(){ this._hide(); return true; },clone:function(_1f,_20){ if(!_1f){ alert("Telerik.Web.UI.RadWindow.clone called without providing a name argument"); return; } var evs=(_20!=false)?this._getEventsParameter():null; var _22=this._getPropertiesParameter(); var _23=document.createElement("SPAN"); _23.setAttribute("id",_1f); var wnd=$create(Telerik.Web.UI.RadWindow,_22,evs,null,_23); wnd.set_name(_1f); wnd._isCloned=true; return wnd; },set_contentElement:function(_25){ this._createUI(); if(this._iframe){ this._iframe.style.display="none"; } if(_25.parentNode&&_25.parentNode.removeChild){ _25.parentNode.removeChild(_25); } this._contentCell.appendChild(_25); _25.style.display=""; this._contentElement=_25; },get_contentElement:function(){ return this._contentElement; },isCreated:function(){ return this._popupElement!=null; },show:function(){ var _26=this.isCreated(); this._createUI(); if(this._navigateUrl&&(!_26||this._reloadOnShow)){ this.setUrl(this._navigateUrl); } if(!_26&&(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 _27=$get(this.get_offsetElementID()); if(_27){ this._offsetElement=_27; } } 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 _28=function(){ var wnd=this.controller; var _2a=wnd._getCalculatedPopupBounds(); wnd._setPopupVisible(_2a.x,_2a.y); var _2b=$telerik.getBounds(wnd._popupElement); wnd._popupBehavior.hide(); this.set_endBounds(_2b); }; 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=_28; }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=_28; }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=_28; } } } } } 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(_2e){ var str="rwndrnd="+Math.random(); if(_2e.indexOf("?")>-1){ str="&"+str; }else{ str="?"+str; } _2e+=str; return _2e; },_getPropertiesParameter:function(){ if(!this._propertiesParameter){ var _30={}; for(var _31 in Telerik.Web.UI.RadWindow.prototype){ var _32=this[_31]; if(typeof (_32)=="function"&&_31.indexOf("get_")==0){ var _33=_31.substring(4); if(null==this["set_"+_33]){ continue; } var _34=_32.call(this); if(null==_34){ continue; } _30[_33]=_34; if(_33=="skin"){ break; } } } this._propertiesParameter=_30; } var _35=this._cloneObject(this._propertiesParameter); return _35; },_getEventsParameter:function(){ if(!this._eventsParameter){ var _36={}; var _37=this.get_events(); var _38=this._eventNames; for(var i=0;i<_38.length;i++){ var _3a=_38[i]; var _3b=_37.getHandler(_3a); if(_3b&&typeof (eval(_3b))=="function"){ _36[_3a]=eval(_3b); } } this._eventsParameter=_36; } return this._eventsParameter; },_cloneObject:function(_3c){ var _3d={}; for(var _3e in _3c){ _3d[_3e]=_3c[_3e]; } return _3d; },getWindowBounds:function(){ return this._getCalculatedPopupBounds(); },toString:function(){ return "[RadWindow id="+this.get_id()+"]"; },center:function(){ var _3f=this._getCentralBounds(); this.moveTo(_3f.x,_3f.y); },moveTo:function(x,y){ x=parseInt(x); y=parseInt(y); this._createUI(); this._setPopupVisible(x,y); this._storeBounds(); },setSize:function(_42,_43){ this._firstShow=false; this.set_width(_42); this.set_height(_43); this._storeBounds(); },_maintainMaximizedSize:function(){ if(!this.isMaximized()){ return; } var _44=this._popupElement; if(!_44){ return; } var _45=this._getViewportBounds(); _44.style.top=(_45.scrollTop+_45.y)+"px"; _44.style.left=(_45.scrollLeft+_45.x)+"px"; _44.style.width=_45.width+"px"; _44.style.height=_45.height+"px"; var _46=this._getRestrictionZoneBounds(); if(!_46){ this._enablePageScrolling(false); } var _47=this._tableElement; _45=this._getViewportBounds(); _47.style.height=_45.height+"px"; this._fixIeHeight(_47,_45.height); },_enablePageScrolling:function(_48){ if(_48){ var _49=this._documentOverflowX; if(null!=_49){ this._documentOverflowX=null; document.documentElement.style.overflowX=_49?_49:""; } _49=this._documentOverflowY; if(null!=_49){ this._documentOverflowY=null; document.documentElement.style.overflowY=_49?_49:""; } _49=this._bodyOverflowX; if(null!=_49){ this._bodyOverflowX=null; document.body.style.overflowX=_49?_49:""; } _49=this._bodyOverflowY; if(null!=_49){ this._bodyOverflowY=null; document.body.style.overflowY=_49?_49:""; } }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"; } },_getRestrictionZoneBounds:function(){ var _4a=null; if(this.get_restrictionZoneID()){ var _4b=$get(this.get_restrictionZoneID()); if(_4b){ _4a=$telerik.getBounds(_4b); _4a.scrollLeft=0; _4a.scrollTop=0; } } return _4a; },_storeBounds:function(){ if(!this.isCreated()){ return; } var _4c=this._getCurrentBounds(); if(this.isMaximized()){ return false; } if(this.isMinimized()){ if(this._restoreRect){ _4c.width=this._restoreRect.width; _4c.height=this._restoreRect.height; }else{ _4c.width=this.get_width(); _4c.height=this.get_height(); } } this._restoreRect=_4c; },_restoreBounds:function(){ if(!this._restoreRect){ return; } var _4d=this._restoreRect; this.setSize(_4d.width,_4d.height); this.moveTo(_4d.x,_4d.y); },_getStoredBounds:function(){ if(this._restoreRect){ return this._restoreRect; } },_deleteStoredBounds:function(){ this._restoreRect=null; },_getCurrentBounds:function(){ var _4e=(this._popupElement.style.display=="none")?true:false; this._popupElement.style.display=""; if(this._firstShow!=true){ this._updateWindowSize(this._height); this._firstShow=true; } var _4f=$telerik.getBounds(this._popupElement); if(_4e){ this._popupElement.style.display="none"; } var _50=this._getRestrictionZoneBounds(); if(_50){ _4f.x-=_50.x; _4f.y-=_50.y; } return _4f; },_getCentralBounds:function(){ var _51=this._getCurrentBounds(); var _52=this._getViewportBounds(); var x=parseInt((_52.width-_51.width)/2); var y=parseInt((_52.height-_51.height)/2); _51.x=x+_52.scrollLeft; _51.y=y+_52.scrollTop; return _51; },_getViewportBounds:function(){ var _55=this._getRestrictionZoneBounds(); if(_55){ return _55; } var _56=$telerik.getClientBounds(); var _57=document.documentElement.scrollLeft||document.body.scrollLeft; var _58=document.documentElement.scrollTop||document.body.scrollTop; _56.scrollLeft=_57; _56.scrollTop=_58; if(this.isIE){ if(_56.width==0){ _56.width=document.body.clientWidth; } if(_56.height==0){ _56.height=document.body.clientHeight; } } return _56; },_getCalculatedPopupBounds:function(){ var _59=this._getStoredBounds(); if(_59){ return _59; } var _5a=this._getCurrentBounds(); var _5b=this._offsetElement; if(!this._top&&!this._left&&!_5b){ _5a=this._getCentralBounds(); }else{ if(_5b){ _5a.y=0; _5a.x=0; }else{ var _5c=this._getViewportBounds(); _5a.x=_5c.scrollLeft; _5a.y=_5c.scrollTop; } var _5d=this._left?this._left:0; _5a.x+=_5d; var top=this._top?this._top:0; _5a.y+=top; } return _5a; },_reSetWindowPosition:function(){ var _5f=this._getCalculatedPopupBounds(); this._setPopupVisible(_5f.x,_5f.y); },_fixIeHeight:function(_60,_61){ if("CSS1Compat"==document.compatMode){ var _62=(_60.offsetHeight-parseInt(_61)); if(_62>0){ var _63=(parseInt(_60.style.height)-_62); if(_63>0){ _60.style.height=_63+"px"; } } } },_setPopupVisible:function(x,y){ var _66=this._getRestrictionZoneBounds(); if(_66){ x+=_66.x; y+=_66.y; } this._popupBehavior._setCoordinates(x,y); this._popupBehavior.show(); if(!this.get_width()){ this._popupElement.style.width=""; } this._updateTitleWidth(); },_createDefaultTable:function(){ var _67=document.createElement("TABLE"); _67.align="left"; _67.cellSpacing=0; _67.cellPadding=0; _67.insertRow(-1); return _67; },_createUI:function(){ if(!this._popupElement){ var _68=this.get_id(); var _69="RadWindowWrapper_"+_68; var _6a=document.createElement("DIV"); _6a.id=_69; _6a.className=this._getFullSkinName(); _6a.style.width=this._width; _6a.style.height=this._height; _6a.setAttribute("unselectable","on"); this._popupElement=_6a; var _6b=document.createElement("TABLE"); _6b.cellSpacing=0; _6b.cellPadding=0; this._tableElement=_6b; var _6c=["corner topleft","titlebar","corner topright","corner bodyleft","windowcontent","corner bodyright","corner bodyleft","statusbar","corner bodyright","corner footerleft","footercenter","corner footerright"]; var _6d=["titlerow","contentrow","statusbarrow","footerrow"]; var _6e=0; for(var i=0;i<4;i++){ var row=_6b.insertRow(-1); row.className=_6d[i]; for(var j=1;j<=3;j++){ var _72=row.insertCell(-1); _72.innerHTML=" "; _72.className=_6c[_6e]; _6e++; } } var _73=_6b.rows[0].cells[1]; _73.innerHTML=""; this._titleCell=_73; var _74=document.createElement("DIV"); _74.className="topresize"; _74.innerHTML=""; this._topResizer=_74; this._titleCell.appendChild(this._topResizer); var _75=this._createDefaultTable(); _75.className="titlebarcontrols"; this._titlebarElement=_75; this._titleCell.appendChild(this._titlebarElement); var _76=this._getTitleIcon(); var _77=this._titlebarElement.rows[0].insertCell(-1); _77.appendChild(_76); var _78=this._getTitleElement(); var _73=this._titlebarElement.rows[0].insertCell(-1); _73.appendChild(_78); this.set_title(this._title); var _79=this._titlebarElement.rows[0].insertCell(-1); _79.noWrap=true; _79.style.whiteSpace="nowrap"; _79.appendChild(this._getTitleCommandButtonsHolder()); var _7a=_6b.rows[1].cells[1]; _7a.vAlign="top"; _7a.innerHTML=""; this._contentCell=_7a; var _7b=this.get_name(); var _7c=($telerik.isIE)?document.createElement("