1Type.registerNamespace("Telerik.Web.UI"); 2(function(a,b,i){$telerik.toWindow=function(k){return k; 3}; 4$telerik.findWindow=$find; 5var j={top:0,left:0,bottom:0,right:0,horizontal:0,vertical:0}; 6var e=window; 7var g=e.parseInt; 8var d=e.document; 9var f="html"; 10var c="body"; 11var h="rwPreventPageScrolling"; 12b.RadWindowControllerClass=function(){this._activeWindow=null; 13this._historyStack=[]; 14}; 15b.RadWindowControllerClass.prototype={getInstance:function(){return this; 16},hideCurrentWindowIfNonModal:function(){if(this._activeWindow!=null&&this._activeWindow.isModal&&!this._activeWindow.isModal()){this._activeWindow.close(); 17}this._activeWindow=null; 18},inactivateCurrentWindow:function(){if(this._activeWindow!=null){this._activeWindow.setActive(false); 19}this._activeWindow=null; 20},set_activeWindow:function(k){if(k==this._activeWindow){return; 21}this.inactivateCurrentWindow(); 22this._activeWindow=k; 23Array.remove(this._historyStack,k); 24Array.add(this._historyStack,k); 25},notifyWindowClosed:function(k){if(this._activeWindow==k){this._activeWindow=null; 26}Array.remove(this._historyStack,k); 27this._activatePreviousWindow(); 28},_activatePreviousWindow:function(){var k=this._historyStack; 29var l=k.length-1; 30for(; 31l>=0; 32l--){var m=k[l]; 33if(!m){return; 34}if(m.isCreated()&&!m.isClosed()&&!m.isMinimized()){m.setActive(true); 35break; 36}else{Array.removeAt(k,l); 37}}},get_activeWindow:function(){return this._activeWindow; 38}}; 39b.RadWindowControllerClass.registerClass("Telerik.Web.UI.RadWindowControllerClass",null); 40if(!b.RadWindowController){b.RadWindowController=new b.RadWindowControllerClass(); 41}Type.registerNamespace("Telerik.Web.UI"); 42Type.registerNamespace("Telerik.Web.UI.RadWindowUtils"); 43b.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"}; 44a.registerEnum(b,"WindowBehaviors",{None:0,Resize:1,Minimize:2,Close:4,Pin:8,Maximize:16,Move:32,Reload:64,Default:(1+2+4+8+16+32+64)}); 45a.registerEnum(b,"WindowAutoSizeBehaviors",{Width:1,WidthProportional:2,Height:4,HeightProportional:8,Default:(2+8)}); 46a.registerEnum(b,"WindowAnimation",{None:0,Resize:1,Fade:2,Slide:4,FlyIn:8}); 47a.registerEnum(b,"WindowMinimizeMode",{SameLocation:1,MinimizeZone:2,Default:1}); 48b.RadWindow=function(k){b.RadWindow.initializeBase(this,[k]); 49this._openerElement=null; 50this._offsetElement=null; 51this._popupElement=null; 52this._tableElement=null; 53this._contentElement=null; 54this._contentCell=null; 55this._titleElement=null; 56this._titleCell=null; 57this._titlebarElement=null; 58this._statusCell=null; 59this._statusMessageElement=null; 60this._iframe=null; 61this._dockMode=false; 62this._isPredefined=false; 63this._buttonsElement=null; 64this._buttonsArray=[]; 65this._iconUrl=""; 66this._shortCutManager=null; 67this.isIE=($telerik.isIE); 68this._openerElementID=null; 69this._offsetElementID=null; 70this._behaviors=b.WindowBehaviors.Default; 71this._left=null; 72this._top=null; 73this._title=""; 74this._width="300px"; 75this._minWidth=null; 76this._minHeight=null; 77this._defaultMinWidth=null; 78this._defaultMinHeight=null; 79this._handlesWidth=null; 80this._resizeOverlayElement=null; 81this._height="300px"; 82this._opacity=100; 83this._visibleTitlebar=true; 84this._visibleStatusbar=true; 85this._modal=false; 86this._overlay=false; 87this._keepInScreenBounds=false; 88this._windowAnimation=null; 89this._onMouseDownDelegate=null; 90this._onClickDelegate=null; 91this._onTitlebarDblclickDelegate=null; 92this._onTitlebarClickDelegate=null; 93this._onWindowResizeDelegate=null; 94this._onIframeLoadDelegate=null; 95this._onChildPageUnloadDelegate=null; 96this._onChildPageClickDelegate=null; 97this._onKeyDownDelegate=null; 98this._onModalShowHandler=null; 99this._onModalCloseHandler=null; 100this._loaded=false; 101this._isCloned=false; 102this._restoreRect=null; 103this._popupBehavior=null; 104this._popupVisible=false; 105this._dropDownTouchScroll=null; 106this._browserWindow=window; 107this._stylezindex=null; 108this._renderMode=b.RenderMode.Classic; 109var l=navigator.userAgent; 110this._isiOS5Safari=l.match(/OS 5_\d like Mac OS X/i); 111this._isiPhoneiPadAppleWebkit=l.match(/iPhone|iPad/)&&l.match(/AppleWeb
111Kit/); 112this._iframeWrapper=null; 113this.GetWindowManager=this.get_windowManager; 114this.BrowserWindow=window; 115this.GetContentFrame=this.get_contentFrame; 116this.GetLeftPosition=function(){this.getWindowBounds().x; 117}; 118this.GetTopPosition=function(){this.getWindowBounds().y; 119}; 120this.GetTitlebar=function(){return this.ui?this.ui.titlebar:null; 121}; 122this.GetStatusbar=function(){return this._statusCell; 123}; 124this.SetOpenerElementId=this.set_openerElementID; 125this.SetStatus=this.set_status; 126this.GetStatus=this.get_status; 127this.SetModal=this.set_modal; 128this.SetWidth=this.set_width; 129this.SetHeight=this.set_height; 130this.GetWidth=this.get_width; 131this.GetHeight=this.get_height; 132this.SetOffsetElementId=this.set_offsetElementID; 133this.SetTitle=this.set_title; 134this.MoveTo=this.moveTo; 135this.Center=this.center; 136this.SetVisible=this.setVisible; 137this.SetSize=this.setSize; 138this.Show=this.show; 139this.Hide=this.hide; 140this.GetUrl=this.get_navigateUrl; 141this.SetUrl=this.setUrl; 142this.Reload=this.reload; 143this.SetActive=this.setActive; 144this.Minimize=this.minimize; 145this.Restore=this.restore; 146this.Maximize=this.maximize; 147this.Close=this.close; 148this.TogglePin=this.togglePin; 149this.IsMaximized=this.isMaximized; 150this.IsMinimized=this.isMinimized; 151this.IsModal=this.isModal; 152this.IsClosed=this.isClosed; 153this.IsPinned=this.isPinned; 154this.IsVisible=this.isVisible; 155this.IsActive=this.isActive; 156this.IsBehaviorEnabled=this.isBehaviorEnabled; 157}; 158b.RadWindow.prototype={_getLocalization:function(){return b.RadWindowUtils.Localization; 159},_getLocalizationString:function(m){var l=this.get_localization(); 160if(typeof(l)=="string"){l=Sys.Serialization.JavaScriptSerializer.deserialize(l); 161this.set_localization(l); 162}var k=this._getLocalization(); 163if(!l){return k[m]; 164}return l[m]; 165},_registerGlobalBodyEventHandlers:function(l){var k=this.get_shortcuts(); 166if(!k){return; 167}if(!this._shortCutManager){this._shortCutManager=new b.WindowShortCutManager(k); 168}if(l){this._onKeyDownDelegate=Function.createDelegate(this,this._onKeyDown); 169$addHandler(d.documentElement,"keydown",this._onKeyDownDelegate); 170}else{if(this._onKeyDownDelegate){$removeHandler(d.documentElement,"keydown",this._onKeyDownDelegate); 171this._onKeyDownDelegate=null; 172}}},_registerIframeLoadHandler:function(k){if(!this._iframe){return; 173}if(k){this._onIframeLoadDelegate=Function.createDelegate(this,this._onIframeLoad); 174$addHandler(this._iframe,"load",this._onIframeLoadDelegate); 175}else{if(this._onIframeLoadDelegate){$removeHandler(this._iframe,"load",this._onIframeLoadDelegate); 176this._onIframeLoadDelegate=null; 177$clearHandlers(this._iframe); 178}}},_registerWindowResizeHandler:function(k){if(k){this._onWindowResizeDelegate=Function.createDelegate(this,this._maintainMaximizedSize); 179$addHandler(window,"resize",this._onWindowResizeDelegate); 180}else{if(this._onWindowResizeDelegate){$removeHandler(window,"resize",this._onWindowResizeDelegate); 181this._onWindowResizeDelegate=null; 182}}},_registerOpenerElementHandler:function(l,k){if(!l){return; 183}if(Sys.UI.DomElement.containsCssClass(l,"RadButton")){l.setAttribute("rwOpener",true); 184}else{l.removeAttribute("rwOpener"); 185}if(true==k){this._onClickDelegate=Function.createDelegate(this,this._onClick); 186$addHandler(l,"click",this._onClickDelegate); 187}else{$removeHandler(l,"click",this._onClickDelegate); 188this._onClickDelegate=null; 189}},_registerTitlebarHandlers:function(k){var l=this.ui?this.ui.titleCell||this.ui.titlebar:null; 190if(k){this._onTitlebarDblclickDelegate=Function.createDelegate(this,function(){if(this.isMinimized()){this.restore(); 191}else{if(this.isBehaviorEnabled(b.WindowBehaviors.Maximize)){if(this.isMaximized()){this.restore(); 192}else{this.maximize(); 193}}}}); 194this._onTitlebarClickDelegate=Function.createDelegate(this,function(){if(this._getWindowController()._activeWindow===this){this.setActive(true); 195}}); 196$addHandler(l,"dblclick",this._onTitlebarDblclickDelegate); 197$addHandler(l,"click",this._onTitlebarClickDelegate); 198}else{if(l){if(this._onTitlebarDblclickDelegate){$removeHandler(l,"dblclick",this._onTitlebarDblclickDelegate); 199this._onTitlebarDblclickDelegate=null; 200}if(this._onTitlebarClickDelegate){$removeHandler(l,"click",this._onTitlebarClickDelegate); 201this._onTitlebarClickDelegate=null; 202}$clearHandlers(l); 203}}},_makeModal:function(k){if(this._onModalShowHandler){this.remove_show(this._onModalShowHandler); 204this._onModalShowHandler=null; 205}if(this._onModalCloseHandler){this.remove_close(this._onModalCloseHandler); 206this._onModalCloseHandler=null; 207}if(this._modalExtender){this._modalExtender.dispose(); 208this._modalExtender=null; 209}if(!k){return; 210}if(typeof(b.RadWindowManager)!="undefined"&&b.RadWindowManager.isInstanceOfType(this)){return; 211}this._onModalShowHandler=function(n){if(!n._modalExtender){n._modalExtender=new b.ModalExtender(n._popupElement); 212}n._modalExtender.show(); 213var m=null; 214try{m=d.activeElement; 215}catch(l){d.documentElement.focus(); 216m=d.activeElement; 217}if(m&&m.tagName&&m.tagName.toLowerCase()!="body"){var o=(!$telerik.isDescendant(this._contentElement,m)&&this._dockMode); 218if(!(n._isPredefined)||o){n._focusedPageElement=m; 219m.blur(); 220}}if(n.get_centerIfModal()){n.center(); 221}}; 222this.add_show(this._onModalShowHandler); 223this._onModalCloseHandler=function(l){window.setTimeout(function(){if(l._modalExtender){l._modalExtender.hide(); 224}var n=l._focusedPageElement; 225if(n){try{n.focus(); 226}catch(m){}l._focusedPageElement=null; 227}},10); 228}; 229this.add_close(this._onModalCloseHandler); 230},_enableMoveResize:function(l){if(!this.view){return; 231}var k={resize:this.isBehaviorEnabled(b.WindowBehaviors.Resize),move:this.isBehaviorEnabled(b.WindowBehaviors.Move)}; 232if(l){this.view.enableMoveResize(k); 233}else{this.view.disableMoveResize(k); 234}},_setResizeOverlayVisible:function(k){if(this._dockMode){return; 235}var m=this._resizeOverlayElement; 236if(!m){var n=this._getHandlesWidth(); 237var l=this._visibleTitlebar?this._getTitlebarHeight():n; 238m=d.createElement("div"); 239m.style.position="absolute"; 240m.style.zIndex="1"; 241m.style.top=l+"px"; 242m.style.left=Math.round(n/2)+"px"; 243m.style.backgroundColor="White"; 244m.style.filter="alpha(opacity=0)"; 245m.style.opacity=0; 246this._contentCell.appendChild(m); 247this._resizeOverlayElement=m; 248}this._setResizeOverlaySize(); 249m.style.display=k?"":"none"; 250},_setResizeOverlaySize:function(){var l=this._resizeOverlayElement; 251if(l){var k=this._contentCell; 252l.style.width=k.offsetWidth+"px"; 253l.style.height=k.offsetHeight+"px"; 254}},onResizeStart:function(){if(this.isMaximized()){return false;
255}this.setActive(true); 256this._setResizeOverlayVisible(true); 257this._cachedDragZoneBounds=this._getRestrictionZoneBounds(); 258var k=new Sys.CancelEventArgs(); 259this.raiseEvent("resizeStart",k); 260if(k.get_cancel()){return false; 261}},onResizing:function(k){if(!this._cachedDragZoneBounds||this._checkRestrictionZoneBounds(this._cachedDragZoneBounds,k)){this._manageVisibilityFirefox(false); 262if(this._isiOS5Safari){this.setContentFixedHeight(k.height,this._iframeWrapper); 263}if(this._dockMode){this.setWidthDockMode(k.width-1); 264this.setHeightDockMode(k.height-1); 265}else{this._setResizeOverlaySize(); 266}var m=this._getCurrentBounds(); 267var q=this.get_minWidth(); 268var o=g(this.get_maxWidth(),10); 269var p=this.get_minHeight(); 270var n=g(this.get_maxHeight(),10); 271var l=false; 272if(k.width<q||o&&k.width>o){var s=q; 273if(k.width<q){k.width=q; 274}else{k.width=o; 275s=o; 276}var r=this._resizeExtender._originalBounds; 277if(this._resizeExtender._resizeDir.west){k.x=r.x+(r.width-s); 278if(this._cachedDragZoneBounds){k.x-=this._cachedDragZoneBounds.x; 279}}else{k.x=m.x; 280}k.y=m.y; 281k.height=m.height; 282l=true; 283}if(k.height<p||n&&k.height>n){k.height=(k.height<p)?p:n; 284k.x=m.x; 285k.y=m.y; 286k.width=m.width; 287l=true; 288}if(l){this.setSize(k.width,k.height); 289this._manageVisibilityFirefox(false); 290this._setPopupVisible(k.x,k.y); 291return false; 292}this._updateTitleWidth(); 293return true; 294}return false; 295},onResizeEnd:function(){this._manageVisibilityFirefox(false); 296this._cachedDragWindowBounds=null; 297var k=this._getCurrentBounds(); 298if(!this._dockMode){this._setResizeOverlayVisible(false); 299}this._setPopupVisible(k.x,k.y); 300this._storeBounds(); 301if(this._overlay&&$telerik.isFirefox){this._popupBehavior._onMove(); 302}this.raiseEvent("resizeEnd",new Sys.EventArgs()); 303this._manageVisibilityFirefox(true); 304},onDragStart:function(){this.setActive(true); 305if(this.isPinned()||this.isMaximized()){return false; 306}if(this.isMinimized()&&this.get_minimizeZoneID()){return false; 307}var m=this.get_popupElement(); 308this._cachedDragZoneBounds=this._getRestrictionZoneBounds(); 309var l=$telerik.getSize(m); 310var k=$telerik.getBorderBox(m); 311l.width-=k.horizontal; 312l.height-=k.vertical; 313this._cachedDragWindowBounds=l; 314this._setResizeOverlayVisible(true); 315this.raiseEvent("dragStart",new Sys.EventArgs()); 316return true; 317},onDragEnd:function(l){this._cachedDragZoneBounds=null; 318this._cachedDragWindowBounds=null; 319if(this._overlay&&$telerik.isFirefox){this._popupBehavior._onMove(); 320}this._setResizeOverlayVisible(false); 321this._manageVisibilityFirefox(false); 322var k=this._getCurrentBounds(); 323this._manageVisibilityFirefox(false); 324this.moveTo(k.x,k.y); 325this.setActive(true); 326if(this.isMinimized()){this._getTitleElement().style.width=""; 327}this._manageVisibilityFirefox(true); 328this.raiseEvent("dragEnd",new Sys.EventArgs()); 329},onDrag:function(k){if(!this._cachedDragZoneBounds){return true; 330}var m=this._cachedDragWindowBounds; 331var n=this._cachedDragZoneBounds; 332k.width=m.width; 333k.height=m.height; 334var l=this._checkRestrictionZoneBounds(n,k); 335if(!l){if(k.x<=n.x){k.x=n.x; 336}else{if(n.x+n.width<=k.x+m.width){k.x=n.x+n.width-m.width; 337}}if(k.y<=n.y){k.y=n.y; 338}else{if(n.y+n.height<=k.y+m.height){k.y=n.y+n.height-m.height; 339}}l=true; 340}return l; 341},initialize:function(){b.RadWindow.callBaseMethod(this,"initialize"); 342this.initView(); 343var l=this.get_element(); 344if(l.innerHTML.toLowerCase().indexOf("thank you for using the trial version of telerik ui for asp.net ajax")>0){l.style.display=""; 345}if(this.get_visibleOnPageLoad()){setTimeout(Function.createDelegate(this,function(){this.show(); 346}),0); 347}this._registerWindowResizeHandler(true); 348var k=this.get_element().className; 349if(k){this.set_cssClass(k.replace(/^ /,"")); 350}},initView:function(){var k=b.Window.UIFactory; 351if(!this.ui||this.ui.window!=this){this.ui=k.getRenderer(this._renderMode,this); 352}if(!this.view||this.view.window!=this){this.view=k.getView(this._renderMode,this); 353}},dispose:function(){var k=this.get_windowManager(); 354if(k){if(k.get_preserveClientState()){k.saveWindowState(this); 355}if(this.get_destroyOnClose()){k.removeWindow(this); 356}}this.disposeUI(); 357b.RadWindow.callBaseMethod(this,"dispose"); 358},disposeUI:function(){if(this._windowAnimation){this._windowAnimation.dispose(); 359}if(!$telerik.isChrome&&!$telerik.isSafari){this._removeFromDOM=this.get_destroyOnClose(); 360}this._enableMoveResize(false); 361this._makeModal(false); 362this._registerTitlebarHandlers(false); 363if(this._titleIconElement){$clearHandlers(this._titleIconElement); 364}this._registerWindowResizeHandler(false); 365this._registerIframeLoadHandler(false); 366if(this._openerElement){this._registerOpenerElementHandler(this._openerElement,false); 367}this.set_behaviors(b.WindowBehaviors.None); 368if(this.view){this.view.dispose(); 369}if(this.ui){this.ui.dispose(); 370}this.view=this.ui=null; 371var l=this._iframe; 372if(l){l.radWindow=null; 373var p="sandbox" in d.createElement("iframe"); 374l.src=p?"about:blank":"javascript:'<html></html>';"; 375l.name=""; 376l.removeAttribute("name"); 377l.removeAttribute("NAME"); 378}this._createTouchScrollExtender(false); 379if(this._contentElement&&this._isPredefined){this._contentElement.innerHTML=""; 380}var k=this.get_contentElement(); 381if(this._dockMode&&k){if(Sys&&Sys.WebForms){var o=Sys.WebForms.PageRequestManager.getInstance(); 382if(o&&o.get_isInAsyncPostBack()){$telerik.disposeElement(k); 383}}}var m=this._popupElement; 384if(m&&m.parentNode){m.parentNode.removeChild(m); 385}this._popupVisible=false; 386var n=this._popupBehavior; 387if(this.get_destroyOnClose()&&n){n.dispose(); 388this._popupBehavior=null; 389}},hide:function(){this._hide(); 390this._registerGlobalBodyEventHandlers(false); 391return true; 392},clone:function(m){var n=d.createElement("span"); 393var o; 394if(m){n.setAttribute("id",m); 395}var l=this.get_contentElement(); 396var k=l?l.cloneNode(true):null; 397if(this._renderMode!=b.RenderMode.Classic){this._contentElement=k; 398}try{o=$telerik.cloneControl(this,b.RadWindow,n); 399}finally{if(this._renderMode!=b.RenderMode.Classic&&l){this.set_contentElement(l); 400}}return o; 401},_createTouchScrollExtender:function(m){var k=$get(this.get_id()+"_C"); 402if(k){var l=this._dropDownTouchScroll; 403if(l){if(!m){l.dispose(); 404this._dropDownTouchScroll=null; 405}}
405else{if(m){this._dropDownTouchScroll=new b.TouchScrollExtender(k); 406this._dropDownTouchScroll.initialize(); 407}}}},set_contentElement:function(k){if(!this._isPredefined&&k.getElementsByTagName("iframe").length==0){this._dockMode=true; 408}if(this.view){this.view.setContent(k); 409}},_setShadowCSSClass:function(k){this.ui.setShadowCssClass(k); 410},get_contentElement:function(){return this._contentElement||(this.ui?this.ui.pendingContent:null); 411},isCreated:function(){return this._popupElement!=null; 412},show:function(){var l=this.isCreated(); 413this._createUI(); 414var k=new Sys.CancelEventArgs(); 415this.setZIndexCss(); 416this.raiseEvent("beforeShow",k); 417if(k.get_cancel()){return; 418}if(this.get_navigateUrl()&&(!l||this.get_reloadOnShow())){this.setUrl(this.get_navigateUrl()); 419}if(!l&&(this.get_initialBehaviors()!=b.WindowBehaviors.None)){this._show(); 420this._afterShow(); 421if(this.isInitialBehaviorEnabled(b.WindowBehaviors.Minimize)){this.minimize(); 422}if(this.isInitialBehaviorEnabled(b.WindowBehaviors.Maximize)){this.maximize(); 423}if(this.isInitialBehaviorEnabled(b.WindowBehaviors.Pin)){this.togglePin(); 424}return; 425}if(this.get_animation()==b.WindowAnimation.None){this._show(); 426this._afterShow(); 427}else{this._playAnimation(); 428}},_show:function(){var o=this; 429if(this.get_offsetElementID()&&!this._offsetElement){var m=$get(this.get_offsetElementID()); 430if(m){this._offsetElement=m; 431}}var l=this._popupBehavior.get_parentElement(); 432if(this._offsetElement&&!this._offsetSet){this._popupBehavior.set_parentElement(this._offsetElement); 433this._offsetSet=true; 434}this.set_visibleTitlebar(this._visibleTitlebar); 435this.set_visibleStatusbar(this._visibleStatusbar); 436if(o.get_enableShadow()){o._setShadowCSSClass(true); 437}else{o._setShadowCSSClass(false); 438}this._reSetWindowPosition(); 439this._popupVisible=true; 440this.setVisible(true); 441var n=this._getStoredBounds(); 442if(this._firstShow&&!n){this.set_width(this.get_width()); 443this.set_height(this.get_height()); 444}else{this._restoreBounds(); 445}if(l!=this._popupBehavior.get_parentElement()){this._popupBehavior.set_parentElement(l); 446}var k=this.get_contentElement(); 447if(!this._isPredefned&&k){$telerik.repaintChildren(k); 448}},_hide:function(){if(!this.get_animation()||this.get_animation()==0){this._afterHide(); 449}else{if(this._enableShadow&&$telerik.isIE){this._setShadowCSSClass(false); 450}var l=Function.createDelegate(this,this._afterHide),m=this.isMaximized(),k=this.get_animationDuration(); 451$telerik.$(this._popupElement).stopTransition().transition({opacity:0},k,"linear",function(){l(m); 452}); 453}},_afterHide:function(k){if(!this._popupBehavior){return; 454}this._manageVisibilityFirefox(true); 455if(k==null){k=this.isMaximized(); 456}var l=this.isMinimized(); 457if(k||l){this.restore(); 458}if($telerik.isFirefox){this.setOverflowVisible(false); 459}this._popupVisible=false; 460if($telerik.isIE9||$telerik.isIE10){this._moveElementToShowOutOfView(); 461}else{this.setVisible(false); 462}this._getWindowController().notifyWindowClosed(this); 463this._isClosing=false; 464},_moveElementToShowOutOfView:function(){if(!this.view){this.initView(); 465}this.view.moveOutOfSight(); 466},get_leftHidingPoint:function(){return this._isRightToLeft?10000:-10000; 467},_afterShow:function(){if($telerik.isIE9||$telerik.isIE10){this._restoreElementToShowStyling(); 468}this._restoreElementToShowOpacity(); 469this.setActive(true); 470if($telerik.isFirefox){this.setOverflowVisible(true); 471}this._registerGlobalBodyEventHandlers(true); 472this._storeBounds(); 473this.raiseEvent("show",new Sys.EventArgs()); 474var k=this.get_animation()!=b.WindowAnimation.None; 475if(this.get_autoSize()&&(this._dockMode||k)){this.autoSize(k); 476}if(this.get_enableAriaSupport()&&this._popupElement&&this.isVisible()){this._popupElement.setAttribute("aria-hidden","false"); 477}},_restoreElementToShowStyling:function(){if(this._popupBehavior){a(this._popupBehavior.get_elementToShow()).css("overflow",""); 478}},_restoreElementToShowOpacity:function(){if(this._popupBehavior){var k=a(this._popupBehavior.get_elementToShow()); 479if(k.css("opacity")==="0"){k.css("opacity",""); 480}}},_playAnimation:function(){var n=Function.createDelegate(this,function(){var x=this._getCalculatedPopupBounds();
481this._setPopupVisible(x.x,x.y); 482var t=$telerik.getBounds(this._popupElement); 483var w=this.get_offsetElementID(); 484if(w){var u=$get(w); 485if(u){var v=$telerik.getBounds(u); 486t.x=v.x; 487t.y=v.y; 488}}$telerik.$(this._popupElement).hide(); 489return t; 490}); 491var k=this._popupElement; 492if(this._enableShadow&&$telerik.isIE){this._setShadowCSSClass(false); 493}var m=this.get_animation(); 494var s=this._openerElement?$telerik.getBounds(this._openerElement):null; 495var o=n(); 496var l=this.get_animationDuration(); 497var r=""+this._position; 498var q=null; 499var p=Function.createDelegate(this,function(){var t=this.get_popupElement(); 500t.style.filter=""; 501if($telerik.isIE7){t.style.removeAttribute("filter"); 502}t.style.opacity=""; 503if(this._enableShadow&&$telerik.isIE&&!$telerik.isIE6){this._setShadowCSSClass(true); 504}this._show(); 505this._afterShow(); 506}); 507b.Animations.playJQueryAnimation(k,m,s,o,r,q,p,l); 508},_onClick:function(k){this.show(); 509return this._cancelEvent(k); 510},_onKeyDown:function(k){var l=this._shortCutManager.isShortCutHit(k); 511if(!l){return; 512}if(this.isActive()){this.fire(l.get_name()); 513}},_cancelEvent:function(k){if(k){k.returnValue=false; 514k.cancelBubble=true; 515k.preventDefault(); 516k.stopPropagation(); 517}return false; 518},_getWindowController:function(){return b.RadWindowController.getInstance(); 519},_getReloadOnShowUrl:function(l){var m="rwndrnd="+Math.random(); 520if(l.indexOf("?")>-1){m="&"+m; 521}else{m="?"+m; 522}var k=l.indexOf("#"); 523l=(k>-1)?l.substr(0,k)+m+l.substr(k):l+m; 524return l; 525},getWindowBounds:function(){return this._getCalculatedPopupBounds(); 526},toString:function(){return"[RadWindow id="+this.get_id()+"]"; 527},center:function(){var k=this._getCentralBounds(); 528this.moveTo(k.x,k.y); 529},moveTo:function(o,p){var l=this._popupElement; 530if(this.isVisible()){this._manageVisibilityFirefox(false); 531}if(l){var k=this.ui.getBounds(); 532var m=this._getRestrictionZoneBounds(); 533if(m){var n=this._checkRestrictionZoneBounds(null,new Telerik.Web.UI.Bounds(o+m.x,p+m.y,k.width,k.height)); 534if(!n){return false; 535}}}o=g(o,10); 536p=g(p,10); 537this._createUI(); 538this._setPopupVisible(o,p); 539this._storeBounds(); 540if(this.isVisible()){this._manageVisibilityFirefox(true); 541}return true; 542},setZIndexCss:function(){var n=this.ui,k=n.container; 543var m=g(k.style.zIndex,10); 544if(!this.isMaximized()){var l=n.get_initialZIndexCss()||Telerik.Web.UI.RadWindowUtils.get_newZindex(m); 545k.style.zIndex=""+l; 546}},setSize:function(l,k){this._firstShow=false; 547this.set_width(l); 548this.set_height(k); 549this._storeBounds(); 550},_calculateBoundsToFit:function(z,m){var p=this._renderMode==b.RenderMode.Lite; 551var A=this.get_minWidth()-this._getHandlesWidth(); 552var y=this._tableElement?(g(this._tableElement.offsetHeight,10)-g(this.get_height(),10)):0; 553var B=this._getTitleElement(); 554if(B){B.style.width="1px"; 555}var k; 556var l; 557var u=z.parentNode; 558var v=u.style.height; 559z.style.height=!p?"1px":""; 560z.style.width="1px"; 561if(p){u.style.height="1px"; 562u.style.width="1px"; 563}if(this._dockMode){z.style.position="absolute"; 564try{var w=z.scrollWidth+$telerik.getBorderBox(z).horizontal; 565l=w>A?w:A; 566k=z.scrollHeight; 567if(this._contentCell){Sys.UI.DomElement.addCssClass(this._contentCell,"rwLoading"); 568}}finally{z.style.position=""; 569}}else{l=m.scrollWidth; 570if(l<A){z.style.width=A+"px"; 571l=m.scrollWidth; 572}k=m.scrollHeight; 573}if(p){u.style.height=v; 574u.style.width=""; 575}var x=this._getRestrictionZoneBounds(); 576var C=x?x:this._getViewportBounds(); 577var E=this._getHandlesWidth()+l; 578var o=this.get_defaultMinHeight()+k; 579if(this._enableShadow&&$telerik.isIE&&!$telerik.isIE6&&this._tableElement){if(y>0){o-=y; 580}}var D=Math.min(E,C.width); 581var n=Math.min(o,C.height); 582var t=this.get_minWidth(); 583var s=this.get_minHeight(); 584var q=g(this.get_maxHeight(),10); 585var r=g(this.get_maxWidth(),10); 586if(t>D){D=t; 587}if(s>n){n=s; 588}if(q&&q<n){n=q; 589}if(r&&r<D){D=r; 590}return{width:D,height:n,contentPageWidth:l,contentPageHeight:k}; 591},_autoSizeBehaviorBounds:function(m,k){var n=this._getRestrictionZoneBounds(); 592var q=n?n:this._getViewportBounds(); 593var l=m; 594if(n){l.y-=n.y; 595l.x-=n.x; 596}if(this.isAutoSizeBehaviorEnabled(b.WindowAutoSizeBehaviors.WidthProportional)){l.x=this.calcPosition(m.x,m.width,k.width,q.width,false); 597l.width=k.width; 598}else{if(this.isAutoSizeBehaviorEnabled(b.WindowAutoSizeBehaviors.Width)){l.width=k.width; 599}}if(this.isAutoSizeBehaviorEnabled(b.WindowAutoSizeBehaviors.HeightProportional)){l.y=this.calcPosition(m.y,m.height,k.height,q.height,true); 600l.height=k.height; 601}else{if(this.isAutoSizeBehaviorEnabled(b.WindowAutoSizeBehaviors.Height)){l.height=k.height; 602}}var o=17; 603if(l.height<k.contentPageHeight){l.width=Math.min(l.width+o,q.width); 604}if(l.width<k.contentPageWidth){l.height=Math.min(l.height+o,q.height); 605}if(!n){this.set_keepInScreenBounds(true); 606}else{if(l.width==n.width){l.x=0; 607}if(l.height==n.height){l.y=0; 608if(this._enableShadow&&$telerik.isIE&&!$telerik.isIE6&&this._tableElement){var p=g(this._tableElement.offsetHeight,10)-g(this.get_height(),10); 609l.height-=p; 610}}}return l; 611},autoSize:function(w){if(this._isClosing||this.isClosed()||this.isMinimized()||this.isMaximized()){return; 612}this.setOverflowVisible(true); 613this._autoSizeInProgress=!this.get_autoSize(); 614var m=this.get_contentFrame(); 615var v=this._getTitleElement();
616var r=this.get_popupElement(); 617var s=$telerik.getBounds(r); 618var k=$telerik.getBorderBox(r); 619var t=this.get_contentElement(); 620var u=t?$telerik.getBorderBox(t):j; 621s.width-=k.horizontal+u.horizontal; 622s.height-=k.vertical+u.vertical; 623var n=null; 624var p=this.get_keepInScreenBounds(); 625if(!this._dockMode){try{n=m.contentWindow.document.documentElement; 626if(!n){return; 627}}catch(o){return false; 628}t=m; 629}var l=this._calculateBoundsToFit(t,n); 630var q=this._autoSizeBehaviorBounds(s,l); 631q.width+=k.horizontal+u.horizontal; 632q.height+=k.vertical+u.vertical; 633this.setOverflowVisible(false); 634if(w){this._autoSizeWithAnimation(q); 635}else{this._restoreRect=null; 636this.setBounds(q); 637this.setOverflowVisible(true); 638if(this._contentCell){Sys.UI.DomElement.removeCssClass(this._contentCell,"rwLoading"); 639}this.raiseEvent("autoSizeEnd",new Sys.EventArgs()); 640}if($telerik.isIE&&m){m.style.overflow="hidden"; 641setTimeout(function(){m.style.overflow=""; 642},0); 643}this.set_keepInScreenBounds(p); 644if(m){t.style.width="100%"; 645t.style.height="100%"; 646if($telerik.isIE9Mode){this.set_height(this.get_height()); 647}}if(v){v.style.width=""; 648}return true; 649},_autoSizeWithAnimation:function(m){var l=this.get_popupElement(); 650if(this._enableShadow&&$telerik.isIE){this._setShadowCSSClass(false); 651}var n=Function.createDelegate(this,function(){if(this.isClosed()){return; 652}var p=this.get_popupElement(); 653p.style.filter=""; 654if($telerik.isIE7){p.style.removeAttribute("filter"); 655}p.style.opacity=""; 656this._restoreRect=null; 657this.setBounds(m); 658this.setOverflowVisible(true); 659if(this._contentCell){Sys.UI.DomElement.removeCssClass(this._contentCell,"rwLoading"); 660}if(this._enableShadow&&$telerik.isIE&&!$telerik.isIE6){this._setShadowCSSClass(true); 661}this.raiseEvent("autoSizeEnd",new Sys.EventArgs()); 662}); 663if(this._tableElement){this._tableElement.style.height="100%"; 664}var k={width:m.width,height:m.height,x:m.x,y:m.y}; 665var o=this._getRestrictionZoneBounds(); 666if(o){k.x+=o.x; 667k.y+=o.y; 668}setTimeout(function(){$telerik.$(l).transition({width:k.width,height:k.height,left:k.x,top:k.y,opacity:1},300,"easeIn",n); 669},0); 670},setBounds:function(k){if(!k){return; 671}this._checkRestrictionZoneBounds=function(){return true; 672}; 673this.moveTo(k.x,k.y); 674this.setSize(k.width,k.height); 675this._checkRestrictionZoneBounds=b.RadWindow.prototype._checkRestrictionZoneBounds; 676},_substractWrappersBorder:function(m,n){var p=this.get_popupElement(); 677var k=this._contentCell; 678if(!p||!k){return m; 679}var o=$telerik.getBorderBox(p); 680var l=$telerik.getBorderBox(k); 681m-=n?(o.horizontal+l.hrizontal):(o.vertical+l.vertical); 682return m; 683},setWidthDockMode:function(k){if(!this._dockMode||!this.get_contentElement()){return; 684}this.view.setContentWidth(k); 685},setHeightDockMode:function(l){var k=this.get_contentElement(); 686if(!this._dockMode||!k){return; 687}this.setContentFixedHeight(l,k); 688},setContentFixedHeight:function(l,k){if(this.isCreated()){this.view.setContentFixedHeight(l,k); 689}},calcPosition:function(o,n,m,q,k){var p=o+Math.round((n-m)/2); 690if(p<0||p+n>q){p=Math.round(Math.abs((q-m)/2)); 691if(this.isAutoSizeBehaviorEnabled(b.WindowAutoSizeBehaviors.Default)){var l=this._dockMode?window:this.BrowserWindow; 692p+=k?Math.max(l.document.documentElement.scrollTop,l.document.body.scrollTop):Math.max(l.document.documentElement.scrollLeft,l.document.body.scrollLeft); 693}}return p; 694},_maintainMaximizedSize:function(){if(this.isVisible()&&this._getRestrictionZoneBounds()){this._reSetWindowPosition(); 695}if(!this.isMaximized()){return; 696}if(this.view){this.view.setMaximizeSize(); 697}},_enablePageScrolling:function(k){if(k){a(f).removeClass(h); 698a(c).removeClass(h); 699}else{a(f).addClass(h); 700a(c).addClass(h); 701}},_getRestrictionZoneBounds:function(){var l=null; 702if(this.get_restrictionZoneID()){var k=$get(this.get_restrictionZoneID()); 703if(k){l=$telerik.getBounds(k); 704l.scrollLeft=0; 705l.scrollTop=0; 706}}return l; 707},_storeBounds:function(){if(!this.isCreated()){return; 708}var k=this._getCurrentBounds(); 709if(this.isMaximized()){return false; 710}if(this.isMinimized()){if(this._restoreRect){k.width=this._restoreRect.width; 711k.height=this._restoreRect.height; 712}else{k.width=this.get_width(); 713k.height=this.get_height(); 714}}if(($telerik.isIE9||$telerik.isIE10)&&this._restoreRect&&k.x==this.get_leftHidingPoint()&&k.y==-10000){k.x=this._restoreRect.x; 715k.y=this._restoreRect.y; 716}this._restoreRect=k; 717},_restoreBounds:function(){if(!this._restoreRect){return; 718}var k=this._restoreRect; 719this.setSize(k.width,k.height); 720this.moveTo(k.x,k.y); 721},_getStoredBounds:function(){if(this._restoreRect){return this._restoreRect; 722}},_deleteStoredBounds:function(){this._restoreRect=null; 723},_getCurrentBounds:function(){var k=this.ui.getBounds(); 724if(this._firstShow!=true){this._updateWindowSize(this._height); 725this._firstShow=true; 726}var l=this._getRestrictionZoneBounds(); 727if(l){k.x-=l.x; 728k.y-=l.y; 729}return k; 730},_getCentralBounds:function(){var k=this._getCurrentBounds(); 731var l=this._getViewportBounds(); 732var m=g((l.width-k.width)/2,10); 733var n=g((l.height-k.height)/2,10); 734k.x=m+l.scrollLeft; 735k.y=n+l.scrollTop; 736return k; 737},_getViewportBounds:function(){var n=this._getRestrictionZoneBounds(); 738if(n){return n; 739}var k=$telerik.getClientBounds(); 740var l=$telerik.getCorrectScrollLeft(d.documentElement)||$telerik.getCorrectScrollLeft(d.body); 741var m=d.documentElement.scrollTop||d.body.scrollTop; 742k.scrollLeft=l; 743k.scrollTop=m; 744if(this.isIE){if(k.width==0){k.width=d.body.clientWidth; 745}if(k.height==0){k.height=d.body.clientHeight; 746}}return k; 747},_getCalculatedPopupBounds:function(){var r=this; 748var k=r.isModal(); 749var p=this._getStoredBounds(); 750if(p){return p; 751}var n=this._getCurrentBounds(); 752var m=this._offsetElement; 753if((!k&&r._top==null&&r._left==null&&!m)||(k&&r.get_centerIfModal())){n=this._getCentralBounds(); 754}else{if(m){n.y=0; 755n.x=0; 756}else{var o=this._getViewportBounds(); 757n.x=o.scrollLeft; 758n.y=o.scrollTop; 759}
759var l=this._left?this._left:0; 760n.x+=l; 761var q=this._top?this._top:0; 762n.y+=q; 763}return n; 764},_checkRestrictionZoneBounds:function(m,k){var l=m; 765if(!l){l=this._getRestrictionZoneBounds(); 766if(!l){return true; 767}}return b.ResizeExtender.containsBounds(l,k); 768},_getTitlebarHeight:function(){if(!this.ui){return 0; 769}return this.ui.getTitlebarHeight(); 770},_reSetWindowPosition:function(){var k=this._getCalculatedPopupBounds(); 771this._setPopupVisible(k.x,k.y); 772},_fixIeHeight:function(n,l){if("CSS1Compat"==d.compatMode){var k=(n.offsetHeight-g(l,10)); 773if(k>0){var m=(g(n.style.height,10)-k); 774if(m>0){n.style.height=m+"px"; 775}}}},_setPopupVisible:function(k,l){var m=this._getRestrictionZoneBounds(); 776if(m){k+=m.x; 777l+=m.y; 778}if(this.isCreated()){this.view.moveTo(k,l); 779}},_isWindowRightToLeft:function(){var l=this._isRightToLeft; 780if(l==null){var k=this.get_element(); 781var m=k.parentNode?k:this._getDefaultParent(); 782l=this._isRightToLeft=$telerik.isRightToLeft(m); 783}return l; 784},_createStatusbarResizer:function(k){if(this.ui){this.ui.createStatusbarResizer(); 785}},_createUI:function(){this.initView(); 786this.ui.createUI(); 787},_getDefaultParent:function(){var k=this.get_formID()?d.getElementById(this.get_formID()):null; 788if(!k){if(d.forms&&d.forms.length>0){k=d.forms[0]; 789}else{k=d.body; 790}}return k; 791},_getStatusMessageElement:function(){if(this.ui){return this.ui.getStatusMessageNode(); 792}},_getTitleCommandButtonsHolder:function(){if(this.ui){return this.ui.getTitleCommandsContainer(); 793}},_getTitleElement:function(){if(this.ui){return this.ui.getTitleNode(); 794}},_getTitleIcon:function(){if(this.ui){return this.ui.getIconNode(); 795}},_getTitleCommandButton:function(k){if(this.ui){return this.ui.getCommandButton(k); 796}},getTitleCommandButton:function(k){return this._getTitleCommandButton(k); 797},_getHandlesWidth:function(){if(!this._handlesWidth&&this.ui){this._handlesWidth=this.ui.getHandlesWidth(); 798}return this._handlesWidth; 799},get_defaultMinWidth:function(){if(this.ui){return this.ui.get_uiMinWidth(); 800}},get_defaultMinHeight:function(){if(this.ui){return this.ui.get_uiMinHeight(); 801}},setOverflowVisible:function(m){if(!m&&this._overflowHidden){return; 802}var n="hidden"; 803var l="hidden"; 804var q="hidden"; 805var p; 806var k; 807if(!this._dockMode){try{var o=this.get_contentFrame(); 808if(o){o.style.overflow=m?"":"hidden"; 809}p=o.contentWindow.document.documentElement; 810if(!p){return; 811}k=o.contentWindow.document.body; 812if(!m){this._oldBodyOverflow=k.style.overflow; 813this._oldDocOverflow=p.style.overflow; 814this._overflowHidden=true; 815}}catch(r){}}if(m){l=this._oldBodyOverflow; 816q=this._oldDocOverflow; 817n="auto"; 818this._overflowHidden=false; 819}if(this._dockMode){this.get_contentElement().style.overflow=n; 820}else{if(p&&k){if(q||q==""){p.style.overflow=q; 821}if(l||l==""){k.style.overflow=l; 822}}}},_manageVisibilityFirefox:function(l){var k=this._popupBehavior; 823if($telerik.isFirefox&&Sys.Browser.version<4&&k){k.set_manageVisibility(l); 824}},_updateTitleWidth:function(){if(this.ui){this.ui.updateTitleWidth(); 825}},_addWindowToDocument:function(){this.view.moveToDefaultParent(); 826},_createBackReference:function(){var m=this; 827if(!m.Argument){m.Argument={}; 828}var l=this._iframe; 829try{l.radWindow=m; 830if(l.contentWindow!=null){l.contentWindow.radWindow=m; 831}}catch(k){}},_getFullSkinName:function(){return"RadWindow RadWindow_"+this.get_skin()+" rwNormalWindow rwTransparentWindow"; 832},_configureMinimizeButton:function(k){var m=(true==k)?this._getLocalizationString("Restore"):this._getLocalizationString("Minimize"); 833var l=(true==k)?this.restore:this._minimize; 834var o=this._getTitleCommandButton("Minimize"); 835if(!(this.isBehaviorEnabled(b.WindowBehaviors.Close))&&o){var p=o.parentNode; 836var n=this._isWindowRightToLeft()?"right":"left"; 837if(true==k){n=(n=="right")?"left":"right"; 838}p.style.styleFloat=n; 839p.style.cssFloat=n; 840}this._registerTitlebarHandlersButton("Minimize",m,l); 841},_configureMaximizeButton:function(k){var m=(true==k)?this._getLocalizationString("Restore"):this._getLocalizationString("Maximize"); 842var l=(true==k)?this.restore:this.maximize; 843this._registerTitlebarHandlersButton("Maximize",m,l); 844}
844,_registerTitlebarHandlersButton:function(l,m,k){if(this.ui){this.ui.changeCommandButtonByName(l,m,Function.createDelegate(this,k)); 845}},isCloned:function(){return this._isCloned; 846},isBehaviorEnabled:function(k){return !!(k&this.get_behaviors()); 847},isInitialBehaviorEnabled:function(k){return !!(k&this.get_initialBehaviors()); 848},isAutoSizeBehaviorEnabled:function(k){return !!(k&this.get_autoSizeBehaviors()); 849},setVisible:function(k){if(!this.view){this.initView(); 850}if(k){this.view.show(); 851}else{this.view.hide(); 852}},isVisible:function(){return this._popupVisible; 853},isModal:function(){return this._modal; 854},isActive:function(){return this.view&&this.view.isActive(); 855},isPinned:function(){var k=this._getTitleCommandButton("Pin"); 856return(k&&Sys.UI.DomElement.containsCssClass(k,"on")); 857},isClosed:function(){return(!this.isVisible()); 858},isMinimized:function(){return(this._popupElement&&Sys.UI.DomElement.containsCssClass(this._popupElement,"rwMinimizedWindow")); 859},isMaximized:function(){return(this._popupElement&&Sys.UI.DomElement.containsCssClass(this._popupElement,"rwMaximizedWindow")); 860},_moveToMinimizeZone:function(){var k=$get(this.get_minimizeZoneID()); 861if(k){if(this.isPinned()){this._isMinimizePinned=true; 862this.togglePin(); 863}this.view.minimizeToZone(k); 864}},_moveToDocument:function(){this.view.revertToDefaultParent(); 865if(this._isMinimizePinned){this._isMinimizePinned=false; 866this.togglePin(); 867}},minimize:function(){this._clearTouchEventIdentifier(); 868if(this._minimize()!==false){this.setActive(true); 869}},_minimize:function(){this._clearTouchEventIdentifier(); 870if(!this.isCreated()){return false; 871}var k=this.onCommand("Minimize"); 872if(!k){return false; 873}if(this.isMaximized()){this._normalizeWindowRootCss(); 874this._restoreBounds(); 875}if(this.view){this.view.minimize(); 876}},restore:function(){var k=this; 877this._clearTouchEventIdentifier(); 878if(!k.isCreated()||k.isClosed()){return; 879}var l=k.onCommand("Restore"); 880if(!l){return; 881}k._configureMinimizeButton(); 882k._configureMaximizeButton(); 883if(k.isMinimized()&&k.get_minimizeZoneID()){k._moveToDocument(); 884}k._normalizeWindowRootCss(); 885k._enablePageScrolling(true); 886k._restoreBounds(); 887k._manageVisibilityFirefox(false); 888k.setVisible(true); 889if(k._enableShadow&&!$telerik.isIE6){k._setShadowCSSClass(true); 890}if(k.get_showOnTopWhenMaximized()&&k._restoreZindex){k._popupElement.style.zIndex=k._restoreZindex; 891if(k.get_modal()&&k._modalExtender){k._modalExtender.updateModalOverlayZIndex(); 892}k._restoreZindex=null; 893}k.setVisible(true); 894k.setActive(true); 895k._manageVisibilityFirefox(true); 896if(this.isVisible()){k._show(); 897}k._restoreDocumentScrollPosition(); 898},_restoreDocumentScrollPosition:function(){var p=this; 899var o=p._restoreOptions; 900var k=a(d); 901var l=d.body; 902var n=function(q,r){if(r&&r>0){k["scroll"+q](r); 903}}; 904var m=function(q,r){if(r&&r>0){l["scroll"+q]=r; 905}}; 906if(o){n("Top",o.documentScrollTop); 907n("Left",o.documentScrollLeft); 908m("Left",o.bodyScrollLeft); 909m("Top",o.bodyScrollTop); 910}},maximize:function(){var k=this; 911this._clearTouchEventIdentifier(); 912if(!this.isCreated()){return; 913}var l=this.onCommand("Maximize"); 914if(!l){return; 915}this._storeBounds(); 916if(this.isMinimized()&&this.get_minimizeZoneID()){this._moveToDocument(); 917}if(this.isMinimized()){this._normalizeWindowRootCss(); 918this._checkRestrictionZoneBounds=function(){return true; 919}; 920this._restoreBounds(); 921this._checkRestrictionZoneBounds=b.RadWindow.prototype._checkRestrictionZoneBounds; 922}k._saveDocumentScrollPosition(); 923k._removeDocumentBodyScrolling(); 924k.view.maximize(); 925if(!k.get_restrictionZoneID()){a(k.get_popupElement()).css({left:0,top:0}); 926}if(!this.isActive()){this.setActive(true); 927}},_saveDocumentScrollPosition:function(){var m=this; 928var k=a(d); 929var l=d.body; 930m._restoreOptions={documentScrollLeft:k.scrollLeft(),documentScrollTop:k.scrollTop(),bodyScrollLeft:l.scrollLeft,bodyScrollTop:l.scrollTop}; 931},_removeDocumentBodyScrolling:function(){var k=d.body; 932k.scrollLeft=0; 933k.scrollTop=0; 934},setActive:function(k){if(this.isCreated()&&this.view){this.view.setActive(k); 935}if(k){this._getWindowController().set_activeWindow(this); 936this.raiseEvent("activate",new Sys.EventArgs()); 937}},togglePin:function(){this._clearTouchEventIdentifier(); 938if(!this.isCreated()){return; 939}var m=this.onCommand("Pin"); 940if(!m){return; 941}this.setActive(true); 942var l=this.isPinned(); 943var k=l?this._getLocalizationString("PinOn"):this._getLocalizationString("PinOff"); 944this.view.toggleCommand("Pin"); 945this._registerTitlebarHandlersButton("Pin",k,this.togglePin); 946b.RadWindowUtils.setPinned(!l,this); 947},reload:function(){this._clearTouchEventIdentifier(); 948if(!this.isCreated()){return; 949}var l=this.onCommand("Reload"); 950if(!l){return; 951}if(!this._iframe){return; 952}this._onWindowUrlChanging(); 953try{this._iframe.contentWindow.location.reload(); 954if(($telerik.isChrome||$telerik.isSafari)&&this._iframe.contentWindow.document.domain!=d.domain){this._onWindowUrlChanged(); 955}}catch(k){this._onWindowUrlChanged(); 956}},fire:function(k){if(k&&typeof(this[k])=="function"){this[k](); 957}else{var l=this.get_windowManager(); 958if(!l){return; 959}if(k&&typeof(l[k])=="function"){l[k](); 960}}},_normalizeWindowRootCss:function(){var l=this._popupElement;
961if(l){$telerik.removeCssClasses(l,["rwMinimizedWindow","rwMaximizedWindow","rwMinimizedWindowShadow"]); 962Sys.UI.DomElement.addCssClass(l,"rwNormalWindow"); 963var k=l._hideWindowedElementsIFrame; 964if(k){Sys.UI.DomElement.removeCssClass(k,"rwMinimizedWindowOverlay"); 965}}this._updateTitleWidth(); 966},close:function(l){if(this.isClosed()){return; 967}var m=new Sys.CancelEventArgs(); 968var n=(typeof(l)!="undefined"&&!(this._isDomEventObject(l)))?l:null; 969m._argument=n; 970m.get_argument=function(){return this._argument; 971}; 972this.raiseEvent("beforeClose",m); 973if(m.get_cancel()){return; 974}this._isClosing=true; 975if($telerik.isIE9Mode&&this.isMaximized()&&this.get_destroyOnClose()){this._callHideWithTimeOut(); 976}else{this.hide(); 977}var k=new Sys.EventArgs(); 978k._argument=n; 979k.get_argument=function(){return this._argument; 980}; 981this.raiseEvent("close",k); 982this._enablePageScrolling(true); 983this._normalizeWindowRootCss(); 984if(this._isDomEventObject(l)){l=null; 985}this._invokeDialogCallBackFunction(l); 986if(this.get_destroyOnClose()&&!this._dockMode){this.dispose(); 987}},_callHideWithTimeOut:function(){window.setTimeout(Function.createDelegate(this,this.hide),0); 988},_invokeDialogCallBackFunction:function(l){var k=this.get_clientCallBackFunction(); 989if(k){if("string"==typeof(k)){k=eval(k); 990}if("function"==typeof(k)){k(this,l); 991}}},_isDomEventObject:function(k){return k instanceof Sys.UI.DomEvent||k instanceof a.Event; 992},onCommand:function(l){var k=new Sys.CancelEventArgs(); 993k._commandName=l; 994k.get_commandName=function(){return this._commandName; 995}; 996this.raise_command(k); 997if(k.get_cancel()){return false; 998}return true; 999},setUrl:function(l){if(this._dockMode){return; 1000}this._createUI(); 1001this.set_navigateUrl(l); 1002var k=l; 1003if(this.get_reloadOnShow()){k=this._getReloadOnShowUrl(k); 1004}this.view.setUrl(k); 1005if(!this._loaded){this._registerIframeLoadHandler(true); 1006}this._loaded=true; 1007},_registerChildPageHandlers:function(k){var l=null; 1008try{l=this._iframe.contentWindow.document; 1009if(l.domain!=d.domain){return; 1010}}catch(m){return; 1011}if(null==l){return; 1012}if(k){this._onChildPageUnloadDelegate=Function.createDelegate(this,this._onChildPageUnload); 1013this._iframe.contentWindow.onunload=this._onChildPageUnloadDelegate; 1014this._onChildPageClickDelegate=Function.createDelegate(this,this._onChildPageClick); 1015$telerik.addExternalHandler(l,"click",this._onChildPageClickDelegate); 1016}else{if(this._onChildPageClickDelegate){$telerik.removeExternalHandler(l,"click",this._onChildPageClickDelegate); 1017this._onChildPageClickDelegate=null; 1018}}},_onChildPageUnload:function(k){this._registerChildPageHandlers(false); 1019if(this._removeFromDOM&&!$telerik.isChrome&&!$telerik.isSafari){this._removeFromDOM=false; 1020var l=this._popupElement; 1021if(l&&l.parentNode){l.parentNode.removeChild(l); 1022}}},_onChildPageClick:function(k){if(!this.isVisible()||this.isClosed()){return; 1023}var l=k.target?k.target:k.srcElement; 1024if(l){if(l.tagName=="INPUT"&&l.type=="button"){return; 1025}else{if(l.tagName=="BUTTON"||l.tagName=="A"){return; 1026}}}this.setActive(true); 1027},_onIframeLoad:function(){this._onWindowUrlChanged(); 1028if($telerik.isFirefox){this.setOverflowVisible(true); 1029}this._registerChildPageHandlers(true); 1030this.raiseEvent("pageLoad",new Sys.EventArgs()); 1031if(this.get_autoSize()){var m=this.get_animation()!=b.WindowAnimation.None; 1032this.autoSize(m); 1033}var l=null; 1034try{l=this._iframe.contentWindow; 1035l.close=Function.createDelegate(this,function(){this.close(); 1036}); 1037}catch(k){return false; 1038}},_onWindowUrlChanging:function(){if(this.isCreated()){this.view.onUrlChanging(); 1039}},_onWindowUrlChanged:function(){if(this.isCreated()){this.view.onUrlChanged(); 1040}},_updatePopupZindex:function(){if(this._popupBehavior){if(this.isVisible()){this._popupBehavior.show(); 1041}}},_updateOpacity:function(){var k=this._dockMode?this.get_contentElement():this.get_contentFrame(); 1042if(k){if(this._opacity<100){if(this._contentCell){this._contentCell.style.background="none transparent"; 1043}var l=k.style; 1044l.filter="alpha(opacity="+this._opacity+")"; 1045l.opacity=(this._opacity/100); 1046}else{if(this._contentCell){this._contentCell.style.background=""; 1047}if($telerik.isIE){if(this._contentCell){this._contentCell.removeAttribute("style"); 1048}k.style.removeAttribute("filter");
1049k.style.removeAttribute("opacity"); 1050}else{k.style.filter=""; 1051k.style.opacity=""; 1052}}}},get_zindex:function(){return this.ui?this.ui.get_zIndexCss():-1; 1053},get_browserWindow:function(){return this._browserWindow; 1054},get_contentFrame:function(){return this._iframe; 1055},get_offsetElementID:function(){return this._offsetElementID; 1056},set_offsetElementID:function(k){if(this._offsetElementID!=k){this._offsetElementID=k; 1057this._offsetElement=$get(k); 1058this._deleteStoredBounds(); 1059this._offsetSet=false; 1060}if(this.isVisible()){this._show(); 1061}},get_openerElementID:function(){return this._openerElementID; 1062},set_openerElementID:function(k){if(this._openerElementID!=k){if(this._openerElement){this._registerOpenerElementHandler(this._openerElement,false); 1063this._openerElement=null; 1064}this._openerElementID=k; 1065if(this._openerElementID){this._openerElement=$get(this._openerElementID); 1066}if(this._openerElement){this._registerOpenerElementHandler(this._openerElement,true); 1067}}},get_left:function(){return this._left; 1068},set_left:function(l){if(this._left!=l){var k=g(l,10); 1069this._left=k||k==0?k:null; 1070}},get_top:function(){return this._top; 1071},set_top:function(l){if(this._top!=l){var k=g(l,10); 1072this._top=k||k==0?k:null; 1073}},get_stylezindex:function(){if(this.ui){return this.ui.get_initialZIndexCss(); 1074}},get_title:function(){return this._title; 1075},set_title:function(k){if(this._title!=k){this._title=k; 1076}if(this.isCreated()){this.view.setTitleText(this._title); 1077}},get_width:function(){return g(this._width,10); 1078},_fixSizeValue:function(k){k=""+k; 1079if(-1==k.indexOf("px")){k=g(k,10); 1080if(!isNaN(k)){k=k+"px"; 1081}else{k=""; 1082}}return k; 1083},set_width:function(p){if(null==p){return false; 1084}if(this.isMaximized()){return false; 1085}var m=this.get_minWidth(); 1086if(m&&m>p){p=m; 1087}var l=g(this.get_maxWidth(),10); 1088if(l&&l<p&&l>m){p=l; 1089}if(this.isVisible()){this._manageVisibilityFirefox(false); 1090}p=this._fixSizeValue(p); 1091if(this.isCreated()){var n=this.ui.getBounds(); 1092var k=g(p,10); 1093if(isNaN(k)){k=n.width; 1094}var o=this._checkRestrictionZoneBounds(null,new Telerik.Web.UI.Bounds(n.x,n.y,k,n.height)); 1095if(!o){return false; 1096}}if(this._width!=p){this._width=p; 1097}if(this._dockMode){this.setWidthDockMode(this.get_width()); 1098}if(this.isCreated()){if(!this.popupElementIsOutOfView()){this._deleteStoredBounds(); 1099}this.view.setWidth(this._width); 1100}this._updateTitleWidth(); 1101this._manageVisibilityFirefox(true); 1102return true; 1103},popupElementIsOutOfView:function(){return !!this.view&&this.view.isOutOfSight(); 1104},get_minWidth:function(){var l=g(this._minWidth,10); 1105if(!this.isCreated()){return l; 1106}var k=this.get_defaultMinWidth(); 1107return(l&&(l>k))?l:k; 1108},set_minWidth:function(k){if(this._minWidth!=k){this._minWidth=k; 1109}},get_minHeight:function(){var l=g(this._minHeight,10); 1110if(!this.isCreated()){return l; 1111}var k=this.get_defaultMinHeight(); 1112return(l&&(l>k))?l:k; 1113},set_minHeight:function(k){if(this._minHeight!=k){this._minHeight=k; 1114}},get_height:function(){return g(this._height,10); 1115},set_height:function(p){var l; 1116if(null==p){return false; 1117}if(this.isMaximized()){return false; 1118}var m=this.get_minHeight(); 1119if(m&&m>p&&(!l||(l&&l>=m))){p=m; 1120}l=g(this.get_maxHeight(),10); 1121if(l&&l<p){p=l; 1122}if(this.isVisible()){this._manageVisibilityFirefox(false); 1123}p=this._fixSizeValue(p); 1124if(this.isCreated()){this._firstShow=false; 1125var k=this.get_contentElement(); 1126if(this._dockMode&&k){k.style.height=""; 1127}var n=this.ui.getBounds(); 1128var o=this._checkRestrictionZoneBounds(null,new Telerik.Web.UI.Bounds(n.x,n.y,n.width,g(p,10))); 1129if(!o){return false; 1130}}if(this._height!=p){this._height=p; 1131}if(this._dockMode){this.setHeightDockMode(this.get_height()); 1132}if(this.isCreated()){if(!this.popupElementIsOutOfView()){this._deleteStoredBounds(); 1133}this.view.setHeight(this._height); 1134this.view.updatePopupZindex(); 1135}this._manageVisibilityFirefox(true); 1136if(this._isiOS5Safari){this.setContentFixedHeight(this.get_height(),this._iframeWrapper); 1137}return true; 1138},_updateWindowSize:function(k,l){if(this.view){this.view.setHeight(k,l); 1139}},get_behaviors:function(){return this._behaviors; 1140},set_behaviors:function(p){if(this._behaviors!=p){this._behaviors=p; 1141}if(null==this._titlebarElement){return; 1142}this._enableMoveResize(false); 1143this._enableMoveResize(true); 1144var l=b.WindowBehaviors; 1145var k=[[this.isBehaviorEnabled(l.Pin),"rwPinButton",this._getLocalizationString("PinOn"),Function.createDelegate(this,this.togglePin)],[this.isBehaviorEnabled(l.Reload),"rwReloadButton",this._getLocalizationString("Reload"),Function.createDelegate(this,this.reload)],[this.isBehaviorEnabled(l.Minimize),"rwMinimizeButton",this._getLocalizationString("Minimize"),Function.createDelegate(this,this._minimize)],[this.isBehaviorEnabled(l.Maximize),"rwMaximizeButton",this._getLocalizationString("Maximize"),Function.createDelegate(this,this.maximize)],[this.isBehaviorEnabled(l.Close),"rwCloseButton",this._getLocalizationString("Close"),Function.createDelegate(this,this.close)]]; 1146var n=[]; 1147for(var o=0; 1148o<k.length; 1149o++){var m=k[o]; 1150if(m[0]){n.push(m.splice(1,3)); 1151}}if(this.view){this._buttonsArray=this.view.setCommandButtons(n); 1152}},addShortcut:function(k,l){if(this._shortCutManager){this._shortCutManager.addShortCut(k.toLowerCase(),l); 1153}else{if(!this.get_shortcuts()){this._shortcuts="[['"+k.toLowerCase()+"', '"+l+"']]"; 1154}this._registerGlobalBodyEventHandlers(true); 1155}},removeShortcut:function(k){if(this._shortCutManager){this._shortCutManager.removeShortCut(k.toLowerCase()); 1156}},getShortcutString:function(l){if(!this._shortCutManager){return null; 1157}var k=this._shortCutManager.findShortCutByName(l.toLowerCase()); 1158return(k&&k.get_shortCutString())?k.get_shortCutString():null; 1159}
1159,isShortcutAdded:function(k){return this.getShortcutString(k.toLowerCase())?true:false; 1160},removeAllShortcutsCommand:function(k){while(this.isShortcutAdded(k)){this.removeShortcut(k.toLowerCase()); 1161}},get_modal:function(){return this._modal; 1162},set_modal:function(k){if(this._modal!=k){this._modal=k; 1163}this._makeModal(this._modal); 1164if(this.isVisible()){this._afterShow(); 1165}},get_visibleTitlebar:function(){return this._visibleTitlebar; 1166},set_visibleTitlebar:function(l){if(this._visibleTitlebar!=l){this._visibleTitlebar=l; 1167}var k=this.get_popupElement(); 1168if(k){l?Sys.UI.DomElement.removeCssClass(k,"rwNoTitleBar"):Sys.UI.DomElement.addCssClass(k,"rwNoTitleBar"); 1169}if(this.ui&&this.ui.titlebar){this.ui.titlebar.style.display=l?"":"none"; 1170if(this.get_enableAriaSupport()){this.ui.titlebar.setAttribute("aria-hidden",!l); 1171}}},get_visibleStatusbar:function(){return this._visibleStatusbar; 1172},set_visibleStatusbar:function(k){if(this._visibleStatusbar!=k){this._visibleStatusbar=k; 1173}if(this.view){if(k){this.view.showStatusbar(); 1174}else{this.view.hideStatusbar(); 1175}}},get_overlay:function(){return this._overlay; 1176},set_overlay:function(k){this._overlay=k; 1177if(this._popupBehavior){this._popupBehavior.set_overlay(this._overlay); 1178}if(this.isVisible()){this._reSetWindowPosition(); 1179}},get_opacity:function(){return this._opacity; 1180},set_opacity:function(k){if(this.get_opacity()!=k){this._opacity=k>100?100:k; 1181this._opacity=k<0?0:k; 1182if(this.isCreated()){this._updateOpacity(); 1183}}},get_iconUrl:function(){return this._iconUrl; 1184},set_iconUrl:function(k){this._iconUrl=k; 1185if(this._titleIconElement){if(!this.get_iconUrl()||this.get_iconUrl()==""){this._titleIconElement.className="rwIcon"; 1186this._titleIconElement.style.background=""; 1187}else{this._titleIconElement.className="rwIcon rwCustomIcon"; 1188this._titleIconElement.style.background="transparent url('"+k+"') no-repeat scroll 0px 0px"; 1189}}},get_renderMode:function(){return this._renderMode; 1190},set_renderMode:function(k){this._renderMode=k; 1191},get_keepInScreenBounds:function(){return this._keepInScreenBounds; 1192},set_keepInScreenBounds:function(k){this._keepInScreenBounds=k; 1193if(this._popupBehavior){this._popupBehavior.set_keepInScreenBounds(this._keepInScreenBounds); 1194}if(this.isVisible()){this._reSetWindowPosition(); 1195}},get_popupElement:function(){return this._popupElement; 1196},set_status:function(l){var k=this._getStatusMessageElement(); 1197if(k){window.setTimeout(function(){k.value=l; 1198},0); 1199}},get_status:function(){var k=this._getStatusMessageElement(); 1200if(k){return k.value; 1201}},raise_command:function(k){this.raiseEvent("command",k); 1202},add_resize:function(k){this.get_events().addHandler("resizeEnd",k); 1203},remove_resize:function(k){this.get_events().removeHandler("resizeEnd",k); 1204},saveClientState:function(){var l=["position"]; 1205var m={}; 1206for(var k=0; 1207k<l.length; 1208k++){m[l[k]]=this["get_"+l[k]](); 1209}return Sys.Serialization.JavaScriptSerializer.serialize(m); 1210},_applyAriaForLayoutTables:function(){var m=this._tableElement; 1211if(m){m.setAttribute("role","presentation"); 1212var s=m.getElementsByTagName("tr"); 1213for(var k=0; 1214k<s.length; 1215k++){var r=s[k]; 1216r.setAttribute("role","presentation"); 1217var p=r.getElementsByTagName("td"); 1218for(var l=0; 1219l<p.length; 1220l++){p[l].setAttribute("role","presentation"); 1221}}}var q=this.ui.titlebar; 1222if(q){q.setAttribute("role","presentation"); 1223}var n=this._statusCell; 1224if(n){var o=n.getElementsByTagName("table")[0]; 1225if(o){o.setAttribute("role","presentation"); 1226}}},_applyAriaSupport:function(){this._applyAriaForLayoutTables(); 1227var k=this.get_popupElement(); 1228k.setAttribute("aria-hidden","true"); 1229k.setAttribute("aria-labelledby",this._getTitleElement().id); 1230if(this._isPredefined){k.setAttribute("role","alertdialog"); 1231k.setAttribute("aria-describedby",this.get_id()+"_content"); 1232}else{k.setAttribute("role","dialog"); 1233}},_clearTouchEventIdentifier:function(){var l=this,k=l._resizeExtender; 1234if(k&&k._touchEventIdentifier){k._touchEventIdentifier=null; 1235}}}; 1236a.registerControlProperties(b.RadWindow,{minimizeZoneID:null,restrictionZoneID:"",minimizeIconUrl:null,clientCallBackFunction:null,navigateUrl:null,localization:null,shortcuts:null,initialBehaviors:b.WindowBehaviors.None,destroyOnClose:false,reloadOnShow:false,showContentDuringLo
1236ad:true,visibleOnPageLoad:false,showOnTopWhenMaximized:true,animation:b.WindowAnimation.None,animationDuration:500,autoSize:false,autoSizeBehaviors:b.WindowAutoSizeBehaviors.Default,windowManager:null,cssClass:"",name:null,skin:"Deafult",formID:null,enableShadow:false,enableAriaSupport:false,maxWidth:null,maxHeight:null,centerIfModal:true}); 1237a.registerControlEvents(b.RadWindow,["command","dragStart","dragEnd","activate","beforeShow","show","pageLoad","close","beforeClose","resizeStart","resizeEnd","autoSizeEnd"]); 1238b.RadWindow.registerClass("Telerik.Web.UI.RadWindow",b.RadWebControl); 1239b.RadWindowUtils._zIndex=3000; 1240b.RadWindowUtils.get_newZindex=function(k){k=g(k,10); 1241if(null==k||isNaN(k)){k=0; 1242}if(b.RadWindowUtils._zIndex<k){b.RadWindowUtils._zIndex=k; 1243}b.RadWindowUtils._zIndex++; 1244return b.RadWindowUtils._zIndex; 1245}; 1246b.RadWindowUtils._pinnedList={}; 1247b.RadWindowUtils.setPinned=function(q,o){if(q){var p=o._getViewportBounds(); 1248var r=o._getCurrentBounds(); 1249o.LeftOffset=r.x-p.scrollLeft; 1250o.TopOffset=r.y-p.scrollTop; 1251var l=window.setInterval(function(){b.RadWindowUtils._updatePinnedElementPosition(o); 1252},100); 1253b.RadWindowUtils._pinnedList[l]=o; 1254}else{var k=null; 1255var n=b.RadWindowUtils._pinnedList; 1256for(var m in n){if(n[m]==o){k=m; 1257break; 1258}}if(null!=k){window.clearInterval(k); 1259b.RadWindowUtils._pinnedList[k]=null; 1260}o.TopOffset=null; 1261o.LeftOffset=null; 1262}}; 1263b.RadWindowUtils._updatePinnedElementPosition=function(l){if(l.isMaximized()||!l.isVisible()){return; 1264}var m=l._getViewportBounds(); 1265var o=l._getCurrentBounds(); 1266var k=(l.LeftOffset!=null)?l.LeftOffset+m.scrollLeft:o.x; 1267var n=(l.TopOffset!=null)?l.TopOffset+m.scrollTop:o.y; 1268if(o.x!=k||o.y!=n){l.moveTo(k,n); 1269}}; 1270})($telerik.$,Telerik.Web.UI); 1271Type.registerNamespace("Telerik.Web.UI.Window"); 1272(function(a,b,c){b.IRenderer=function(){}; 1273b.IRenderer.prototype={createUI:function(){},setContent:function(d){},get_container:function(){},getHandlesWidth:function(){},setShadowCssClass:function(d){},getBounds:function(){},updateTitleWidth:function(){},getTitleNode:function(){},createTitle:function(){},getIconNode:function(){},createIcon:function(){},getTitleCommandsContainer:function(){},createTitleCommandsContainer:function(){},getStatusbar:function(){},createStatusbar:function(){},getStatusMessageNode:function(){},createStatusMessage:function(){},createStatusbarResizer:function(){},getCommandButtons:function(){},getCommandButton:function(){},createCommandButton:function(d){},changeCommandButton:function(d,f,e){},changeCommandButtonByName:function(e,f,d){},clearCommandButtons:function(){},geTitlebarHeight:function(){},get_zIndexCss:function(){},get_initialZIndexCss:function(){},get_uiMinWidth:function(){},get_uiMinHeight:function(){},dispose:function(){}}; 1274b.IRenderer.registerInterface("Telerik.Web.UI.Window.IRenderer"); 1275b.RendererBase=function(d){this.window=d; 1276}; 1277b.RendererBase.prototype={}; 1278b.RendererBase.registerClass("Telerik.Web.UI.Window.RendererBase",null,b.IRenderer); 1279})($telerik.$,Telerik.Web.UI.Window); 1280Type.registerNamespace("Telerik.Web.UI.Window"); 1281(function(a,b,c){b.IView=function(){}; 1282b.IView.prototype={moveTo:function(d,e){},setContent:function(d){},setUrl:function(d){},show:function(){},hide:function(){},isVisible:function(){},maximize:function(){},minimize:function(){},setWidth:function(d){},setHeight:function(){},setMaximizeSize:function(){},setContentFixedHeight:function(){},setContentWidth:function(d){},setTitleText:function(d){},showShadow:function(){},hideShadow:function(){},showStatusbar:function(){},hideStatusbar:function(){},moveOutOfSight:function(){},isOutOfSight:function(){},enableMoveResize:function(d){},disableMoveResize:function(d){},setCommandButtons:function(d){},toggleCommand:function(d){},minimizeToZone:function(d){},moveToDefaultParent:function(){},revertToDefaultParent:function(){},setActive:function(d){},isActive:function(){},onUrlChanging:function(){},onUrlChanged:function(){},updatePopupZindex:function(){},dispose:function(){}}; 1283b.IView.registerInterface("Telerik.Web.UI.Window.IView"); 1284b.ViewBase=function(d){this.window=d; 1285}; 1286b.ViewBase.prototype={};
1287b.ViewBase.registerClass("Telerik.Web.UI.Window.ViewBase",null,b.IView); 1288})($telerik.$,Telerik.Web.UI.Window); 1289(function(a,c,f){Type.registerNamespace("Telerik.Web.UI.Window"); 1290var b=Telerik.Web.UI; 1291c.ClassicRenderer=function(g){c.ClassicRenderer.initializeBase(this,[g]); 1292this.container=this.table=this.titleCell=this.titlebar=this.topResizer=this.commandsContainer=this.title=this.icon=this.statusMessage=this.contentFrame=this.content=this.contentCell=this.bottomResizer=this.statusbar=this.statusCell=null; 1293}; 1294c.ClassicRenderer.prototype={createUI:function(){if(!this.container){var G=this.window.get_id(); 1295var H="RadWindowWrapper_"+G; 1296var t=this.window._isWindowRightToLeft(); 1297var w=document.createElement("div"); 1298w.id=H; 1299w.className=this.window._getFullSkinName(); 1300var o=this.window.get_cssClass(); 1301if(o){Sys.UI.DomElement.addCssClass(w,o); 1302}if(t){Sys.UI.DomElement.addCssClass(w,"RadWindow_rtl"); 1303}if(!this.window._visibleTitlebar){Sys.UI.DomElement.addCssClass(w,"rwNoTitleBar"); 1304}w.style.width=this.window._width; 1305w.style.height=this.window._height; 1306w.setAttribute("unselectable","on"); 1307this.container=this.window._popupElement=w; 1308var z=document.createElement("table"); 1309z.cellSpacing=0; 1310z.cellPadding=0; 1311Sys.UI.DomElement.addCssClass(z,"rwTable"); 1312this.table=this.window._tableElement=z; 1313var k=[]; 1314if(t){k=["rwCorner rwTopRight","rwTitlebar","rwCorner rwTopLeft","rwCorner rwBodyRight","rwWindowContent","rwCorner rwBodyLeft","rwCorner rwBodyRight","rwStatusbar","rwCorner rwBodyLeft","rwCorner rwFooterRight","rwFooterCenter","rwCorner rwFooterLeft"]; 1315}else{k=["rwCorner rwTopLeft","rwTitlebar","rwCorner rwTopRight","rwCorner rwBodyLeft","rwWindowContent","rwCorner rwBodyRight","rwCorner rwBodyLeft","rwStatusbar","rwCorner rwBodyRight","rwCorner rwFooterLeft","rwFooterCenter","rwCorner rwFooterRight"]; 1316}var y=["rwTitleRow","rwContentRow","rwStatusbarRow","rwFooterRow"]; 1317var s=0; 1318for(var p=0; 1319p<4; 1320p++){var x=z.insertRow(-1); 1321x.className=y[p]; 1322for(var u=1; 1323u<=3; 1324u++){var g=x.insertCell(-1); 1325g.innerHTML=" "; 1326g.className=k[s]; 1327s++; 1328}}var C=z.rows[0].cells[1]; 1329C.innerHTML=""; 1330this.titleCell=this.window._titleCell=C; 1331var E=document.createElement("div"); 1332E.className="rwTopResize"; 1333E.innerHTML="<!-- / -->"; 1334this.topResizer=this.window._topResizer=E; 1335this.titleCell.appendChild(this.window._topResizer); 1336var A=d(); 1337A.className="rwTitlebarControls"; 1338this.titlebar=this.window._titlebarElement=A; 1339this.titleCell.appendChild(this.titlebar); 1340var F=this.getIconNode(); 1341var q=this.titlebar.rows[0].insertCell(-1); 1342q.appendChild(F); 1343this.window.set_iconUrl(this.window.get_iconUrl()); 1344var D=this.getTitleNode(); 1345var B=this.titlebar.rows[0].insertCell(-1); 1346B.appendChild(D); 1347this.window.set_title(this.window._title); 1348var l=this.titlebar.rows[0].insertCell(-1); 1349l.noWrap=true; 1350l.style.whiteSpace="nowrap"; 1351l.appendChild(this.window._getTitleCommandButtonsHolder()); 1352var m=z.rows[1].cells[1]; 1353m.vAlign="top"; 1354m.innerHTML=""; 1355this.contentCell=this.window._contentCell=m; 1356if(!(this.window._dockMode||this.window._isPredefined)){Sys.UI.DomElement.addCssClass(this.contentCell,"rwExternalContent"); 1357}if(this.window._enableShadow&&!$telerik.isIE6){this.window._setShadowCSSClass(true); 1358}var v=this.window.get_name(); 1359this.createStatusbar(t); 1360this.container.appendChild(this.window._tableElement); 1361this.container.style.display="none"; 1362this.container.style.position="absolute"; 1363this.window._addWindowToDocument(); 1364this.window._registerTitlebarHandlers(true); 1365this.window.set_visibleTitlebar(this.window._visibleTitlebar); 1366this.window.set_visibleStatusbar(this.window._visibleStatusbar); 1367if(this.window.get_enableAriaSupport()){this.window._applyAriaSupport(); 1368}if(this.window._dockMode){var n=this.content=$get(this.window.get_id()+"_C"); 1369if(n&&n.innerHTML){n.style.display=""; 1370n.style.overflow="auto"; 1371n.style.border="0px"; 1372this.window.set_contentElement(n); 1373this.window.setWidthDockMode(this.window.get_width()); 1374this.window.setHeightDockMode(this.window.get_height()); 1375}}else{var h=($telerik.isIE&&!$telerik.isIE9Mode)?document.createElement("<iframe name='"+v+"'>"):document.createElement("iframe"); 1376h.name=v; 1377h.src="javascript:'<html></html>';"; 1378h.style.width="100%"; 1379h.style.height="100%"; 1380h.style.border="0px"; 1381h.frameBorder="0"; 1382if($telerik.isIE8){h.style.display="block"; 1383}this.contentFrame=this.window._iframe=h; 1384if(($telerik.isMobileSafari||this.window._isiPhoneiPadAppleWebkit)&&!this.window._isPredefined){var r=document.createElement("div"); 1385a(r).addClass("rwIframeWrapperIOS"); 1386r.appendChild(this.contentFrame); 1387this.contentCell.appendChild(r); 1388if(this.window._isiOS5Safari){this.window.setContentFixedHeight(this.window.get_height(),r); 1389}this.window._iframeWrapper=r; 1390}else{this.contentCell.appendChild(this.window._iframe); 1391}this.window._createBackReference(); 1392}this.window._updateOpacity(); 1393}if(!$telerik.isTouchDevice){this.container.style.Transform="none"; 1394this.container.style.BackfaceVisibility="visible"; 1395this.container.style.webkitTransform="none"; 1396this.container.style.webkitBackfaceVisibility="visible"; 1397this.container.style.OTransform="none"; 1398this.container.style.OBackfaceVisibility="visible"; 1399this.container.style.MozTransform="none"; 1400this.container.style.MozBackfaceVisibility="visible"; 1401this.container.style.msTransform="none"; 1402this.container.style.msBackfaceVisibility="visible"; 1403}if(!this.window._popupBehavior){this.window.set_behaviors(this.window._behaviors); 1404this.popupBehavior=this.window._popupBehavior=$create(Telerik.Web.PopupBehavior,{id:(new Date()-100)+"PopupBehavior",parentElement:null,overlay:this.window._overlay,keepInScreenBounds:this.window._keepInScreenBounds},null,null,this.container); 1405}},setContent:function(g){this.contentCell.appendChild(g); 1406g.style.display=""; 1407this.content=this.window._contentElement=g; 1408},get_container:function(){return this.container; 1409},getHandlesWidth:function(){if(!this._handlesWidth){var h=this.table; 1410if(!h){return 0; 1411}var g=parseInt($telerik.getCurrentStyle(h.rows[2].cells[0],"width"),10); 1412if(!g){return 0; 1413}this._handlesWidth=2*g; 1414}return this._handlesWidth; 1415},setShadowCssClass:function(g){if(g){Sys.UI.DomElement.addCssClass(this.container,"rwShadow");
1416Sys.UI.DomElement.addCssClass(this.table,"rwShadow"); 1417}else{Sys.UI.DomElement.removeCssClass(this.container,"rwShadow"); 1418Sys.UI.DomElement.removeCssClass(this.table,"rwShadow"); 1419}},getBounds:function(){var h=this.container; 1420var i=(h.style.display=="none"); 1421h.style.display=""; 1422var g=$telerik.getBounds(h); 1423if(i){h.style.display="none"; 1424}return g; 1425},updateTitleWidth:function(){if(this.window._visibleTitlebar&&!this.window.isMinimized()){var n=this.getTitleNode(); 1426if(!n){return; 1427}n.style.width="1px"; 1428var o=0; 1429var h=this.getTitleCommandsContainer(); 1430var g=h.offsetWidth; 1431if(g>0){var k=h.getElementsByTagName("LI"); 1432if(k.length==0){g=0; 1433}else{if(k[0]&&k[0].offsetWidth>0){g=k.length*k[0].offsetWidth; 1434}}h.style.width=g?g+"px":""; 1435o+=g; 1436}var i=this.getIconNode(); 1437var j=i.offsetWidth; 1438if(j>0&&i.parentNode.tagName=="TD"){i.parentNode.style.width=j+"px"; 1439o+=j; 1440}o+=this.getHandlesWidth(); 1441var l=0; 1442var m=this.titlebar; 1443l=m?m.offsetWidth-o:o; 1444if(l>0){n.style.width=l+"px"; 1445}}},getTitleNode:function(){if(!this.title){this.createTitle(); 1446}return this.title; 1447},createTitle:function(){var g=document.createElement("em"); 1448g.setAttribute("unselectable","on"); 1449if(this.window.get_enableAriaSupport()){g.id=this.window.get_id()+"_title"; 1450g.setAttribute("role","label"); 1451}this.title=this.window._titleElement=g; 1452return g; 1453},getIconNode:function(){if(!this.icon){this.createIcon(); 1454}return this.icon; 1455},createIcon:function(){var g=document.createElement("a"); 1456g.className="rwIcon"; 1457$addHandler(g,"mousedown",this.window._cancelEvent); 1458this.icon=this.window._titleIconElement=g; 1459},getTitleCommandsContainer:function(){if(!this.commandsContainer){this.createTitleCommandsContainer(); 1460}return this.commandsContainer; 1461},createTitleCommandsContainer:function(){var g=document.createElement("ul"); 1462g.className="rwControlButtons"; 1463if(this.window.get_enableAriaSupport()){g.setAttribute("role","presentation"); 1464}this.commandsContainer=this.window._buttonsElement=g; 1465},getStatusMessageNode:function(){if(!this.statusMessage){this.createStatusMessage(); 1466}return this.statusMessage; 1467},createStatusMessage:function(){var g=document.createElement("input"); 1468g.id=this.window.get_id()+"_status"; 1469g.readOnly="readonly"; 1470g.setAttribute("unselectable","on"); 1471g.setAttribute("tabindex","-1"); 1472this.statusMessage=this.window._statusMessageElement=g; 1473},getStatusbar:function(){return this.statusCell||this.createStatusbar; 1474},createStatusbar:function(g){var i=this.table; 1475var h=d(); 1476h.style.width="100%"; 1477this.statusCell=this.window._statusCell=i.rows[2].cells[1]; 1478this.statusbar=this.statusCell.parentNode; 1479this.statusCell.innerHTML=""; 1480this.statusCell.appendChild(h);
1481if(!g){e(h,this.getStatusMessageNode()); 1482}if(this.window.isBehaviorEnabled(b.WindowBehaviors.Resize)){this.createStatusbarResizer(h); 1483}if(g){e(h,this.getStatusMessageNode()); 1484}},createStatusbarResizer:function(){if(this.bottomResizer){return; 1485}var g=this.statusCell.firstChild.rows[0].insertCell(-1); 1486g.style.width="15px"; 1487var h=document.createElement("div"); 1488g.appendChild(h); 1489this.bottomResizer=this.window._bottomResizer=h; 1490},getCommandButtons:function(){return a(this.commandsContainer).find("a[class$='Button']"); 1491},getCommandButton:function(g){if(!g||!this.commandsContainer){return null; 1492}var h=g.toLowerCase(); 1493h=h.charAt(0).toUpperCase()+h.substring(1); 1494g="rw"+h+"Button"; 1495return a("."+g,this.commandsContainer)[0]; 1496},createCommandButton:function(g){var i=document.createElement("li"); 1497var h=document.createElement("a"); 1498h.href="javascript:void(0);"; 1499h.className=g[0]; 1500h.setAttribute("title",g[1]); 1501if(this.window.get_enableAriaSupport()){i.setAttribute("role","presentation"); 1502h.setAttribute("role","button"); 1503}var j=document.createElement("span"); 1504j.innerHTML=g[1]; 1505h.appendChild(j); 1506$telerik.addHandler(h,"click",g[2]); 1507$addHandlers(h,{dblclick:this._cancelEvent,mousedown:this._cancelEvent},this); 1508$telerik.addHandler(h,"click",this._cancelEvent); 1509i.appendChild(h); 1510this.commandsContainer.appendChild(i); 1511return h; 1512},changeCommandButton:function(g,i,h){if(!g){return; 1513}g.setAttribute("title",i); 1514g.innerHTML=i; 1515$telerik.clearHandlers(g); 1516$telerik.addHandler(g,"click",h); 1517$addHandlers(g,{dblclick:this._cancelEvent,mousedown:this._cancelEvent},this); 1518},changeCommandButtonByName:function(h,j,i){var g=this.getCommandButton(h); 1519if(g){this.changeCommandButton(g,j,i); 1520}},clearCommandButtons:function(){var h=a(this.commandsContainer); 1521var g=this.getCommandButtons(); 1522for(var j=0; 1523j<g.length; 1524j++){this.clearCommandButton(g[j]); 1525}h.empty(); 1526},clearCommandButton:function(g){$clearHandlers(g); 1527},getTitlebarHeight:function(){if(!this.table){return 0; 1528}return this.table.rows[0].offsetHeight; 1529},get_zIndexCss:function(){return this.container?this.container.style.zIndex:-1; 1530},get_initialZIndexCss:function(){var g=this.window.get_element(); 1531return g?parseInt(g.style.zIndex||$telerik.getComputedStyle(g,"zIndex"),10):null; 1532},get_uiMinWidth:function(){if(!this._defaultMinWidth){this._defaultMinWidth=this.getHandlesWidth(); 1533if(this.window._visibleTitlebar){this._defaultMinWidth+=this._getTitleBarMinWidth(); 1534}}return this._defaultMinWidth; 1535},_getTitleBarMinWidth:function(){var i=this.table,j=this.title,h=j.style.width,l=this.titleCell,g=this.content,k; 1536if(j){j.style.width="1px"; 1537}if(g){g.style.width="1px"; 1538}i.style.width="1px"; 1539k=l.offsetWidth+l.offsetLeft; 1540j.style.width=h; 1541i.style.width=""; 1542if(g){g.style.width=""; 1543}return k; 1544},get_uiMinHeight:function(){if(!this._defaultMinHeight){var g=Math.ceil(this.getHandlesWidth()/2); 1545this._defaultMinHeight=g; 1546this._defaultMinHeight+=this.window._visibleTitlebar?this.titleCell.offsetHeight:g; 1547this._defaultMinHeight+=this.window._visibleStatusbar?this.statusCell.offsetHeight:0; 1548}return this._defaultMinHeight; 1549},dispose:function(){this.container=this.table=this.titleCell=this.titlebar=this.topResizer=this.commandsContainer=this.title=this.icon=this.statusMessage=this.contentFrame=this.content=this.contentCell=this.bottomResizer=this.statusbar=this.statusCell=null; 1550},_cancelEvent:function(g){var h=this; 1551if(h.window){h.window._clearTouchEventIdentifier(); 1552}return $telerik.cancelRawEvent(g); 1553}}; 1554c.ClassicRenderer.registerClass("Telerik.Web.UI.Window.ClassicRenderer",c.RendererBase,c.IRenderer); 1555function d(){var g=document.createElement("table"); 1556g.align="left"; 1557g.cellSpacing=0; 1558g.cellPadding=0; 1559g.insertRow(-1); 1560return g; 1561}function e(i,h){var j=i.rows[0].insertCell(-1); 1562j.style.width="100%"; 1563j.appendChild(h); 1564var g=document.createElement("label"); 1565g.setAttribute("for",h.id); 1566g.innerHTML="status label"; 1567g.style.display="none"; 1568j.appendChild(g); 1569}})($telerik.$,Telerik.Web.UI.Window); 1570Type.registerNamespace("Telerik.Web.UI.Window"); 1571(function(a,b,e){b.ClassicView=function(f){b.ClassicView.initializeBase(this,[f]); 1572this.ui=this.window.ui; 1573}; 1574b.ClassicView.prototype={moveTo:function(f,g){this.ui.popupBehavior._setCoordinates(f,g); 1575this.ui.popupBehavior.show(); 1576this._removeExplicitMSAjaxWidth(); 1577this.ui.updateTitleWidth(); 1578},show:function(){if(this.ui.popupBehavior){this.ui.popupBehavior.show(); 1579}this._isViewVisible=true; 1580},hide:function(){if(this.ui.popupBehavior){this.ui.popupBehavior.hide(); 1581}this._isViewVisible=false; 1582this._ariaHide(); 1583},isVisible:function(){return this._isViewVisible; 1584},setContent:function(g){var f=this.ui.content; 1585if(f&&g!=f){$telerik.disposeElement(f); 1586f.innerHTML=""; 1587f.appendChild(g); 1588g=f; 1589}this.ui.createUI(); 1590if(this.ui.contentFrame){this.ui.contentFrame.style.display="none"; 1591}else{if(!this.window._dropDownTouchScroll&&Telerik.Web.UI.TouchScrollExtender._getNeedsScrollExtender()){this.window._createTouchScrollExtender(true); 1592}}this.ui.setContent(g); 1593},setUrl:function(g){var f=this.ui.contentFrame; 1594if(!f){return; 1595}f.src=g; 1596this.onUrlChanging(); 1597},maximize:function(){this.ui.setShadowCssClass(false); 1598var f=this.ui.container;
1599$telerik.removeCssClasses(f,["rwNormalWindow","rwMinimizedWindow","rwMinimizedWindowShadow"]); 1600Sys.UI.DomElement.addCssClass(f,"rwMaximizedWindow"); 1601this.window._configureMaximizeButton(true); 1602this.window._configureMinimizeButton(); 1603this.window._maintainMaximizedSize(); 1604this.window._maintainMaximizedSize(); 1605var g=f._hideWindowedElementsIFrame; 1606if(g){Sys.UI.DomElement.removeCssClass(g,"rwMinimizedWindowOverlay"); 1607this.ui.popupBehavior._handleElementResize(); 1608}if(this.window.get_showOnTopWhenMaximized()){var h=f.style.zIndex; 1609if(h){this.window._restoreZindex=h; 1610}f.style.zIndex=100000; 1611}this.ui.updateTitleWidth(); 1612},setMaximizeSize:function(){var g=this.ui.container; 1613if(!g){return; 1614}var k=this.window._getViewportBounds(); 1615g.style.top=(k.scrollTop+k.y)+"px"; 1616g.style.left=(k.scrollLeft+k.x)+"px"; 1617var i=parseInt(this.window.get_maxWidth(),10); 1618var h=parseInt(this.window.get_maxHeight(),10); 1619if(i){k.width=i; 1620}if(h){k.height=h; 1621}$telerik.setSize(g,{width:k.width,height:k.height}); 1622var n=this.window._getRestrictionZoneBounds(); 1623if(!n){this.window._enablePageScrolling(false); 1624}var l=this.window._tableElement; 1625k=$telerik.getContentSize(g); 1626var f=$telerik.getBorderBox(l); 1627var j=$telerik.getPaddingBox(l); 1628var m=k.height-f.vertical-j.vertical; 1629l.style.height=m+"px"; 1630this.window._fixIeHeight(l,m); 1631if(this.window._dockMode){this.window.setWidthDockMode(k.width); 1632this.window.setHeightDockMode(k.height); 1633}this.ui.updateTitleWidth(); 1634if(this.window._isiOS5Safari){this.window.setContentFixedHeight(k.height,this.window._iframeWrapper); 1635}},minimize:function(){this.window._configureMinimizeButton(true); 1636this.window._configureMinimizeButton(true); 1637this.window._enablePageScrolling(true); 1638var f=this.ui.container;
1639$telerik.removeCssClasses(f,["rwNormalWindow","rwMaximizedWindow"]); 1640Sys.UI.DomElement.addCssClass(f,"rwMinimizedWindow"); 1641if(this.window._enableShadow&&!$telerik.isIE6){this.ui.setShadowCssClass(true); 1642Sys.UI.DomElement.addCssClass(f,"rwMinimizedWindowShadow"); 1643}var g=f._hideWindowedElementsIFrame; 1644if(g){Sys.UI.DomElement.addCssClass(g,"rwMinimizedWindowOverlay"); 1645}this.ui.getTitleNode().style.width=""; 1646this.minimizeToZone(this.window.get_minimizeZoneID()); 1647},setWidth:function(g){var f=this.ui.container; 1648var h=parseInt(g,10); 1649f.style.width=(h-$telerik.getBorderBox(f).horizontal)+"px"; 1650this.updatePopupZindex(); 1651},setHeight:function(l,k){var g=this.ui.container; 1652var j=this.ui.table; 1653var h=parseInt(l?l:j.style.height,10); 1654if(true==k){h=j.offsetHeight; 1655}if(parseInt(h,10)==0){return; 1656}var f=$telerik.getBorderBox(g).vertical; 1657h=h>f?h-f:h; 1658var i=h+"px"; 1659j.style.height=i; 1660this._fixTableHeightInIE(j,h); 1661g.style.height=i; 1662},setContentFixedHeight:function(h,f){if(!f){return; 1663}var l=this.ui; 1664var i=this._substractWrappersBorder(h); 1665var m=this.window.isVisible(); 1666var g=l.table.rows[3].cells[1]; 1667var k=l.table.rows[0].cells[1]; 1668var j=l.table.rows[2].cells[1]; 1669i-=m?parseInt($telerik.getBounds(g).height,10):parseInt($telerik.getCurrentStyle(g,"height"),10); 1670if(this.window._visibleTitlebar){i-=m?parseInt($telerik.getBounds(l.titlebar).height,10):parseInt($telerik.getCurrentStyle(l.titlebar,"height"),10); 1671i-=m?parseInt($telerik.getBounds(l.topResizer).height,10):parseInt($telerik.getCurrentStyle(l.topResizer,"height"),10); 1672}else{i-=m?parseInt($telerik.getBounds(k).height,10):parseInt($telerik.getCurrentStyle(k,"height"),10); 1673}if(this.window._visibleStatusbar){i-=m?parseInt($telerik.getBounds(j).height,10):parseInt($telerik.getCurrentStyle(j,"height"),10); 1674}if(i>0){f.style.height=i+"px"; 1675}},setContentWidth:function(f){if(!this.ui.content){return; 1676}var g=this.window._substractWrappersBorder(f)-this.ui.getHandlesWidth(); 1677if(g>0){this.ui.content.style.width=g+"px"; 1678}},setTitleText:function(f){if(!this.ui.title){return; 1679}this.ui.title.innerHTML=f||" "; 1680this.ui.updateTitleWidth(); 1681},showStatusbar:function(){this._displayStatusbar("",true); 1682},hideStatusbar:function(){this._displayStatusbar("none",false); 1683},_displayStatusbar:function(h,f){var g=this.ui.statusbar; 1684d(g,h); 1685if(this._hasAriaSupport()){c(g,f); 1686}},showShadow:function(){this.ui.setShadowCssClass(true); 1687},hideShadow:function(){this.ui.setShadowCssClass(false); 1688},moveOutOfSight:function(){var g=this.ui.popupBehavior; 1689if(g){this.window._storeBounds(); 1690var f=g.get_elementToShow(); 1691a(f).css({display:"",position:"absolute",top:"-10000px",left:this.window.get_leftHidingPoint()+"px",overflow:"hidden"}); 1692if(f._hideWindowedElementsIFrame&&f._hideWindowedElementsIFrame.style){f._hideWindowedElementsIFrame.style.display="none"; 1693}}this._ariaHide(); 1694},isOutOfSight:function(){var f=this.ui.container; 1695if(!f){return false; 1696}var g=parseInt(f.style.left,10); 1697return($telerik.isIE&&($telerik.isIE9||$telerik.isIE10))&&g==this.window.get_leftHidingPoint(); 1698},enableMoveResize:function(f){this.disableMoveResize(f); 1699if(!this.ui.container){return; 1700}var j=this.ui.table.rows; 1701var g={}; 1702var i=this.window._isWindowRightToLeft(); 1703if(f.resize){this.ui.createStatusbarResizer(); 1704this.ui.bottomResizer.style.display=""; 1705if(i){g={nw:j[0].cells[2],n:this.ui.topResizer,ne:j[0].cells[0],w:[j[1].cells[2],j[2].cells[2]],e:[j[1].cells[0],j[2].cells[0]],sw:j[3].cells[2],s:j[3].cells[1],se:[j[3].cells[0],this.ui.bottomResizer]}; 1706}else{g={nw:j[0].cells[0],n:this.ui.topResizer,ne:j[0].cells[2],w:[j[1].cells[0],j[2].cells[0]],e:[j[1].cells[2],j[2].cells[2]],sw:j[3].cells[0],s:j[3].cells[1],se:[j[3].cells[2],this.ui.bottomResizer]}; 1707}}if(f.move){g.move=this.ui.titleCell; 1708}this.resizeExtender=this.window._resizeExtender=new Telerik.Web.UI.ResizeExtender(this.window,this.ui.container,g,this.ui.table); 1709var h=this.window._dockMode?null:this.ui.contentFrame; 1710this.resizeExtender.set_iframeToSkip(h); 1711},disableMoveResize:function(f){if(this.resizeExtender){this.resizeExtender.dispose(); 1712this.resizeExtender=this.window._resizeExtender=null; 1713}if(f.Resize&&this.ui.bottomResizer){this.ui.bottomResizer.style.display="none"; 1714}},setCommandButtons:function(f){var g=[]; 1715this.ui.clearCommandButtons(); 1716for(var h=0; 1717h<f.length; 1718h++){g.push(this.ui.createCommandButton(f[h])); 1719}this.ui.updateTitleWidth(); 1720return g; 1721},toggleCommand:function(g){var f=this.ui.getCommandButton(g); 1722if(!f){return; 1723}Sys.UI.DomElement.toggleCssClass(f,"on"); 1724}
1724,minimizeToZone:function(g){if(!g){return; 1725}if(typeof(g)=="string"){g=$get(g); 1726}var f=this.ui.container; 1727if(f.parentNode!=g){f.parentNode.removeChild(f); 1728g.appendChild(f); 1729this.window.setVisible(true); 1730f.style.position="static"; 1731if($telerik.isIE){f.style.display="inline"; 1732}else{f.style.cssFloat="left"; 1733}}},moveToDefaultParent:function(){var f=this.window._getDefaultParent(); 1734f.insertBefore(this.ui.container,f.firstChild); 1735},revertToDefaultParent:function(){var f=this.ui.container; 1736f.parentNode.removeChild(f); 1737f.style.position="absolute"; 1738if($telerik.isIE){f.style.display=""; 1739}else{f.style.cssFloat=""; 1740}this.moveToDefaultParent(); 1741},setActive:function(g){var f=this.ui.container; 1742if(g){this.window.setZIndexCss(); 1743Sys.UI.DomElement.removeCssClass(f,"rwInactiveWindow"); 1744}else{Sys.UI.DomElement.addCssClass(f,"rwInactiveWindow"); 1745}},isActive:function(){var f=this.ui.container; 1746return(f&&!Sys.UI.DomElement.containsCssClass(f,"rwInactiveWindow")); 1747},onUrlChanging:function(){if(!this.ui.contentFrame){return; 1748}if(this.window.get_showContentDuringLoad()){var g=this.ui.statusMessage; 1749if(g){Sys.UI.DomElement.addCssClass(g,"rwLoading"); 1750}}else{var f=this.ui.contentFrame; 1751var h=f.style; 1752h.position="absolute"; 1753h.top="-10000px"; 1754if($telerik.isIE9Mode){this.setHeight(this.window._height); 1755}if(this.window._isWindowRightToLeft()&&$telerik.isChrome){h.width="1px"; 1756}var i=f.parentNode; 1757Sys.UI.DomElement.addCssClass(i,"rwLoading"); 1758}},onUrlChanged:function(){var i=this.ui.statusMessage,h=this.ui.contentFrame; 1759if(this.window.get_showContentDuringLoad()){if(i){Sys.UI.DomElement.removeCssClass(i,"rwLoading"); 1760}}else{h.style.position=""; 1761if(this.window._isWindowRightToLeft()&&$telerik.isChrome){h.style.width="100%"; 1762}var k=h.parentNode; 1763Sys.UI.DomElement.removeCssClass(k,"rwLoading"); 1764if($telerik.isIE9Mode){if(this.window.isMaximized()){this.window._maintainMaximizedSize(); 1765}else{if(!this.window.isMinimized()){this.setHeight(this.window.get_height()); 1766}}}}if(i){this.window.set_status(this.window.get_navigateUrl()); 1767}try{var f=h.contentWindow.document; 1768var j=f.title; 1769if(j&&j!=this.window.get_title()){this.window.set_title(j.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")); 1770}}catch(g){}},updatePopupZindex:function(){var f=this.ui.popupBehavior; 1771if(f){if(this.window.isVisible()){f.show(); 1772}}},dispose:function(){},_substractWrappersBorder:function(h,i){var k=this.ui.container; 1773var f=this.ui.contentCell; 1774if(!k||!f){return h; 1775}var j=$telerik.getBorderBox(k); 1776var g=$telerik.getBorderBox(f); 1777h-=i?(j.horizontal+g.hrizontal):(j.vertical+g.vertical); 1778return h; 1779},_fixTableHeightInIE:function(i,g){if("CSS1Compat"==document.compatMode){var f=(i.offsetHeight-parseInt(g,10)); 1780if(f>0){var h=(parseInt(i.style.height,10)-f); 1781if(h>0){i.style.height=h+"px"; 1782}}}},_removeExplicitMSAjaxWidth:function(){if(!this.window.get_width()){this.ui.container.style.width=""; 1783}},_ariaHide:function(){if(this.window.get_enableAriaSupport()&&this.ui.container&&!this.window.isVisible()){this.ui.container.setAttribute("aria-hidden","true"); 1784}},_hasAriaSupport:function(){return this.window.get_enableAriaSupport(); 1785}}; 1786b.ClassicView.registerClass("Telerik.Web.UI.Window.ClassicView",b.ViewBase,b.IView); 1787function d(f,g){f&&(f.style.display=g); 1788}function c(f,g){f&&f.setAttribute("aria-hidden",!g); 1789}})($telerik.$,Telerik.Web.UI.Window); 1790(function(a,c,k){Type.registerNamespace("Telerik.Web.UI.Window"); 1791var b=Telerik.Web.UI; 1792var g=".rwCommand"; 1793var i=function(m){return m+g; 1794}; 1795var h=b.EventType; 1796var f=i(h.Down); 1797var l=i(h.Up); 1798var e=i("dblclick"); 1799var d=$telerik.cancelRawEvent; 1800var j=$telerik.preventDefault; 1801c.LightweightRenderer=function(m){c.LightweightRenderer.initializeBase(this,[m]); 1802this.options={skin:this.window.get_skin(),minTitleWidth:30}; 1803this.container=this.titlebar=this.icon=this.title=this.commandsContainer=this.content=this.contentFrame=this.statusbar=this.statusMessage=this.topResizer=this.bottomResizer=null; 1804}; 1805c.LightweightRenderer.prototype={createUI:function(){if(this.container){return; 1806}var z=this.window; 1807var u=z._isWindowRightToLeft(); 1808var m=Sys.UI.DomElement.addCssClass; 1809var n=document.createElement("div"); 1810this._appendToDom(n); 1811this.container=z._popupElement=n; 1812n.id="RadWindowWrapper_"+z.get_id(); 1813n.className=this._getSkinCssClass();
1814var r=z.get_cssClass(); 1815if(r){m(n,r); 1816}if(u){m(n,"rwRtl"); 1817}if(!z._visibleTitlebar){m(n,"rwNoTitleBar"); 1818}this.setShadowCssClass(z._enableShadow); 1819n.setAttribute("unselectable","on"); 1820var o=n.style; 1821o.width=z._width; 1822o.height=z._height; 1823o.position="absolute"; 1824var x=this.titlebar=z._titlebarElement=document.createElement("div"); 1825x.className="rwTitleBar"; 1826n.appendChild(x); 1827var y=document.createElement("div"); 1828y.className="rwTitleWrapper"; 1829x.appendChild(y); 1830y.appendChild(this.getIconNode()); 1831y.appendChild(this.getTitleNode()); 1832z.set_title(z._title); 1833y.appendChild(this.getTitleCommandsContainer()); 1834z._registerTitlebarHandlers(true); 1835z.set_iconUrl(z.get_iconUrl()); 1836var p=this.content=$get(z.get_id()+"_C")||this.pendingContent||document.createElement("div"); 1837if(p){p.style.display="none"; 1838p.className="rwContent"; 1839this.setContent(p); 1840}if(!z._dockMode){var q=p.getElementsByTagName("iframe"); 1841var v=z.get_name(); 1842var s=q.length>0?q[0]:document.createElement(($telerik.isIE&&!$telerik.isIE9Mode)?"<iframe name='"+v+"'>":"iframe"); 1843s.name=v; 1844s.src="javascript:'<html></html>';"; 1845s.style.width="100%"; 1846s.style.height="100%"; 1847s.style.border="0px"; 1848s.frameBorder="0"; 1849if($telerik.isIE8){s.style.display="block"; 1850}this.contentFrame=z._iframe=s; 1851if(($telerik.isMobileSafari||z._isiPhoneiPadAppleWebkit)&&!z._isPredefined){var t=document.createElement("div"); 1852a(t).addClass("rwIframeWrapperIOS"); 1853t.appendChild(this.contentFrame); 1854this.content.appendChild(t); 1855if(z._isiOS5Safari){z.setContentFixedHeight(z.get_height(),t); 1856}z._iframeWrapper=t; 1857}else{this.content.appendChild(this.contentFrame); 1858}Sys.UI.DomElement.addCssClass(this.content,"rwExternalContent"); 1859z._createBackReference(); 1860}var w=this.createStatusbar(); 1861this.container.appendChild(w); 1862if(!z._visibleStatusbar){w.style.display="none"; 1863}z._addWindowToDocument(); 1864if(!$telerik.isTouchDevice){this.container.style.Transform="none"; 1865this.container.style.BackfaceVisibility="visible"; 1866this.container.style.webkitTransform="none"; 1867this.container.style.webkitBackfaceVisibility="visible"; 1868this.container.style.OTransform="none"; 1869this.container.style.OBackfaceVisibility="visible"; 1870this.container.style.MozTransform="none"; 1871this.container.style.MozBackfaceVisibility="visible"; 1872this.container.style.msTransform="none"; 1873this.container.style.msBackfaceVisibility="visible"; 1874}if(!z._popupBehavior){z.set_behaviors(z._behaviors); 1875this.popupBehavior=z._popupBehavior=$create(Telerik.Web.PopupBehavior,{id:((new Date()-100)+"PopupBehavior"),parentElement:null,overlay:z._overlay,keepInScreenBounds:z._keepInScreenBounds},null,null,this.container); 1876}},_appendToDom:function(n){var o=this.window; 1877var m=a(o.get_element()).closest("form"); 1878if(m.length>
18780){m.prepend(n); 1879}else{document.body.appendChild(n); 1880}},_getSkinCssClass:function(){return"RadWindow RadWindow_"+this.options.skin+" rwTransparentWindow rwRoundedCorner"; 1881},setContent:function(m){this._setContent(m); 1882this.content=this.window._contentElement=m; 1883},_setContent:function(n){var m=this.container.children; 1884if(m.length==1){this.container.appendChild(n); 1885}else{this.container.insertBefore(n,m[1]); 1886}n.style.display=""; 1887},get_container:function(){return this.container; 1888},getHandlesWidth:function(){var m=a(this.container); 1889var n=m.css(["paddingLeft","paddingRight"]); 1890var o=parseFloat(n.paddingLeft,10)+parseFloat(n.paddingRight,10); 1891return Math.max(o,12); 1892},setShadowCssClass:function(n){var m=n?Sys.UI.DomElement.addCssClass:Sys.UI.DomElement.removeCssClass; 1893m(this.container,"rwShadow"); 1894},getBounds:function(){var n=this.container; 1895var o=(n.style.display=="none"); 1896n.style.display=""; 1897var m=$telerik.getBounds(n); 1898if(o){n.style.display="none"; 1899}return m; 1900},showContentOverlay:function(){var m=this.contentOverlay; 1901if(!this.contentOverlay){m=this.createContentOverlay(); 1902}m.style.display=""; 1903},hideContentOverlay:function(){if(!this.contentOverlay){return; 1904}this.contentOverlay.style.display="none"; 1905},createContentOverlay:function(){var m=this.content; 1906var n=this.contentOverlay=document.createElement("div"); 1907var o=n.style; 1908o.position="absolute"; 1909o.top=0; 1910o.left=0; 1911o.zIndex="1"; 1912o.backgroundColor="white"; 1913o.filter="alpha(opacity=0)"; 1914o.opacity=0; 1915o.width="100%"; 1916o.height="100%"; 1917m.appendChild(n); 1918return n; 1919},updateTitleWidth:function(){},getTitleNode:function(){if(!this.title){this.createTitle(); 1920}return this.title; 1921},createTitle:function(){var m=document.createElement("h6"); 1922m.setAttribute("unselectable","on"); 1923m.className="rwTitle"; 1924if(this.window.get_enableAriaSupport()){m.id=this.window.get_id()+"_title"; 1925m.setAttribute("role","label"); 1926}this.title=this.window._titleElement=m; 1927},getIconNode:function(){if(!this.icon){this.createIcon(); 1928}return this.icon; 1929},createIcon:function(){var m=document.createElement("span"); 1930m.className="rwIcon"; 1931this.icon=this.window._titleIconElement=m; 1932},getTitleCommandsContainer:function(){if(!this.commandsContainer){this.createTitleCommandsContainer(); 1933}return this.commandsContainer; 1934},createTitleCommandsContainer:function(){var m=document.createElement("ul"); 1935m.className="rwCommands"; 1936if(this.window.get_enableAriaSupport()){m.setAttribute("role","presentation"); 1937}this.commandsContainer=this.window._buttonsElement=m; 1938},getStatusbar:function(){return this.statusbar||this.createStatusbar(); 1939},createStatusbar:function(){var m=this.statusbar=document.createElement("div"); 1940m.className="rwStatusBar"; 1941m.appendChild(this.getStatusMessageNode()); 1942if(this.window.isBehaviorEnabled(b.WindowBehaviors.Resize)){m.appendChild(this.createStatusbarResizer()); 1943}return m; 1944},getStatusMessageNode:function(){if(!this.statusMessage){this.createStatusMessage(); 1945}return this.statusMessage; 1946},createStatusMessage:function(){var m=document.createElement("input"); 1947m.id=this.window.get_id()+"_status"; 1948m.readOnly="readonly"; 1949m.setAttribute("unselectable","on"); 1950m.setAttribute("tabindex","-1"); 1951this.statusMessage=this._statusMessageElement=m; 1952},createStatusbarResizer:function(){if(this.bottomResizer){return; 1953}var m=document.createElement("span"); 1954m.className="rwResize"; 1955this.bottomResizer=m; 1956return m; 1957},removeStatusbarResizer:function(){var n=this; 1958var m=n.bottomResizer; 1959if(!m){return; 1960}m.parentNode.removeChild(m); 1961n.bottomResizer=null; 1962},getCommandButtons:function(){return a(this.commandsContainer).find(".rwCommandButton"); 1963},getCommandButton:function(m){if(!m||!this.commandsContainer){return null; 1964}var n=m.toLowerCase(); 1965n=n.charAt(0).toUpperCase()+n.substring(1); 1966var o=".rw"+n+"Button, .rw"+n; 1967return a(this.commandsContainer).find(o)[0]; 1968},createCommandButton:function(n){var o=document.createElement("li"); 1969o.className="rwListItem"; 1970var m=document.createElement("span"); 1971m.className="rwCommandButton "+n[0]; 1972m.value=m.title=n[1]; 1973this.attachButtonEvents(m,n[2]); 1974o.appendChild(m); 1975this.commandsContainer.appendChild(o); 1976if(this.window.get_enableAriaSupport()){o.setAttribute("role","presentation"); 1977m.setAttribute("role","button"); 1978}return m; 1979},changeCommandButton:function(m,o,n){m.value=m.title=o; 1980$telerik.offEvent(m,g); 1981this.attachButtonEvents(m,n); 1982},attachButtonEvents:function(m,n){$telerik.onEvent(m,f,d); 1983$telerik.onEvent(m,l,j); 1984$telerik.onEvent(m,l,n); 1985$telerik.onEvent(m,e,d); 1986},changeCommandButtonByName:function(o,p,n){var m=this.getCommandButton(o); 1987if(m){this.changeCommandButton(m,p,n); 1988}},clearCommandButtons:function(){var n=a(this.commandsContainer); 1989var m=this.getCommandButtons(); 1990for(var o=0; 1991o<m.length; 1992o++){this.clearCommandButton(m[o]); 1993}n.empty(); 1994},clearCommandButton:function(m){$telerik.clearHandlers(m); 1995},geTitlebarHeight:function(){if(!this.titlebar){return 0; 1996}return this.titlebar.offsetHeight; 1997},get_zIndexCss:function(){return this.container?this.container.style.zIndex:-1; 1998}
1998,get_initialZIndexCss:function(){var m=this.window.get_element(); 1999return m?parseInt(m.style.zIndex||$telerik.getComputedStyle(m,"zIndex"),10):null; 2000},get_uiMinWidth:function(){this._minUIWidth=this.options.minTitleWidth||0; 2001this._minUIWidth+=this.getHandlesWidth(); 2002if(this.commandsContainer){this._minUIWidth+=this.commandsContainer.offsetWidth; 2003}if(this.icon){this._minUIWidth+=this.icon.offsetWidth; 2004}return this._minUIWidth; 2005},get_uiMinHeight:function(){if(!this._minUIHeight){this._minUIHeight=(this.getHandlesWidth()/2)||0; 2006if(this.window._visibleTitlebar){this._minUIHeight+=this.titlebar.offsetHeight; 2007}if(this.window._visibleStatusbar){this._minUIHeight+=this.statusbar.offsetHeight; 2008}}return this._minUIHeight; 2009},dispose:function(){this.container=this.titlebar=this.icon=this.title=this.commandsContainer=this.content=this.contentFrame=this.statusbar=this.statusMessage=this.topResizer=this.bottomResizer=null; 2010},_cancelEvent:function(m){return $telerik.cancelRawEvent(m); 2011},_preventDefault:function(m){if(m.preventDefault){m.preventDefault(); 2012}m.returnValue=false; 2013}}; 2014c.LightweightRenderer.registerClass("Telerik.Web.UI.Window.LightweightRenderer",c.RendererBase,c.IRenderer); 2015})($telerik.$,Telerik.Web.UI.Window); 2016Type.registerNamespace("Telerik.Web.UI.Window"); 2017(function(a,b,h){var e=window; 2018var f=e.parseFloat; 2019var g=e.parseInt; 2020b.LightweightView=function(i){b.LightweightView.initializeBase(this,[i]); 2021this.ui=this.window.ui; 2022}; 2023b.LightweightView.prototype={moveTo:function(i,j){this.ui.popupBehavior._setCoordinates(i,j); 2024this.ui.popupBehavior.show(); 2025this._removeExplicitMSAjaxWidth(); 2026this.ui.updateTitleWidth(); 2027this.window.set_left(i); 2028this.window.set_top(j); 2029},setContent:function(j){var i=this.ui.content; 2030if(i&&j!=i){$telerik.disposeElement(i); 2031i.innerHTML=""; 2032i.appendChild(j); 2033j=i; 2034}if(!this.window.isCreated()){this.ui.pendingContent=j; 2035}this.ui.createUI(); 2036if(this.window._isPredefined&&this.ui.contentFrame){this.ui.contentFrame.style.display="none"; 2037this.ui.contentFrame.style.height=""; 2038}if(this.ui.contentFrame&&this.ui.contentFrame.parentNode!=j){this.ui.contentFrame.style.display="none"; 2039}else{if(!this.window._dropDownTouchScroll&&Telerik.Web.UI.TouchScrollExtender._getNeedsScrollExtender()){this.window._createTouchScrollExtender(true); 2040}}this.ui.setContent(j); 2041},setUrl:function(j){var i=this.ui.contentFrame; 2042if(!i){return; 2043}i.src=j; 2044this.setContentFixedHeight(this.window.get_height(),this.ui.content); 2045this.onUrlChanging(); 2046},show:function(){if(this.ui.popupBehavior){this.ui.popupBehavior.show(); 2047}this._showResizableHandlers(); 2048this._repaintResizable(); 2049this._isViewVisible=true; 2050},hide:function(){if(this.ui.popupBehavior){this.ui.popupBehavior.hide(); 2051}this._hideResizableHandlers(); 2052this._isViewVisible=false; 2053},isVisible:function(){return this._isViewVisible; 2054},maximize:function(){this.ui.setShadowCssClass(false); 2055var i=this.ui.container;
2056$telerik.removeCssClasses(i,["rwNormalWindow","rwMinimizedWindow","rwMinimizedWindowShadow"]); 2057Sys.UI.DomElement.addCssClass(i,"rwMaximizedWindow"); 2058this.window._configureMaximizeButton(true); 2059this.window._configureMinimizeButton(); 2060this.window._maintainMaximizedSize(); 2061this.window._maintainMaximizedSize(); 2062var j=i._hideWindowedElementsIFrame; 2063if(j){Sys.UI.DomElement.removeCssClass(j,"rwMinimizedWindowOverlay"); 2064this.ui.popupBehavior._handleElementResize(); 2065}if(this.window.get_showOnTopWhenMaximized()){var k=i.style.zIndex; 2066if(k){this.window._restoreZindex=k; 2067}i.style.zIndex=100000; 2068}this.ui.updateTitleWidth(); 2069},setMaximizeSize:function(){var i=this.ui.container; 2070if(!i){return; 2071}var l=this.window._getViewportBounds(); 2072i.style.top=(l.scrollTop+l.y)+"px"; 2073i.style.left=(l.scrollLeft+l.x)+"px"; 2074var k=g(this.window.get_maxWidth(),10); 2075var j=g(this.window.get_maxHeight(),10); 2076if(k){l.width=k; 2077}if(j){l.height=j; 2078}$telerik.setSize(i,{width:l.width,height:l.height}); 2079var m=this.window._getRestrictionZoneBounds(); 2080if(!m){this.window._enablePageScrolling(false); 2081}if(this.window._dockMode){this.window.setWidthDockMode(l.width); 2082this.window.setHeightDockMode(l.height); 2083}this.ui.updateTitleWidth(); 2084if(this.ui.contentFrame){this.setContentFixedHeight(l.height,this.ui.content); 2085}},minimize:function(){this.window._configureMinimizeButton(true); 2086this.window._configureMinimizeButton(true); 2087this.window._enablePageScrolling(true); 2088var i=this.ui.container;
2089$telerik.removeCssClasses(i,["rwNormalWindow","rwMaximizedWindow"]); 2090Sys.UI.DomElement.addCssClass(i,"rwMinimizedWindow"); 2091if(this.window._enableShadow&&!$telerik.isIE6){this.ui.setShadowCssClass(true); 2092Sys.UI.DomElement.addCssClass(i,"rwMinimizedWindowShadow"); 2093}var j=i._hideWindowedElementsIFrame; 2094if(j){Sys.UI.DomElement.addCssClass(j,"rwMinimizedWindowOverlay"); 2095}this.setWidth(200); 2096this.setHeight(this.ui.titlebar.offsetHeight); 2097this.ui.getTitleNode().style.width=""; 2098this.minimizeToZone(this.window.get_minimizeZoneID()); 2099},setWidth:function(i){this._setWidth(i); 2100this._repaintResizable(); 2101},_setWidth:function(m){var l=this.ui.container; 2102var i=a(l); 2103var n=g(m,10); 2104var j=f(i.css("border-left-width"),10); 2105var k=f(i.css("border-right-width")); 2106n-=(j+k); 2107n-=this.ui.getHandlesWidth(); 2108l.style.width=n+"px"; 2109},setHeight:function(i){this._setHeight(i); 2110this._repaintResizable(); 2111},_setHeight:function(p){var o=this.ui; 2112var l=o.container; 2113var i=a(l); 2114var n=g(p,10); 2115if(n==0){return; 2116}this.setContentFixedHeight(n,o.content); 2117var j=f(i.css("border-left-width"),10); 2118var k=f(i.css("border-right-width"),10); 2119var m=j+k; 2120m+=o.getHandlesWidth()/2; 2121n=n>m?(n-m):n; 2122l.style.height=n+"px"; 2123},setContentFixedHeight:function(k,j){if(!j){return; 2124}var m=this.ui; 2125var l=this._substractWrappersBorder(k)-(m.getHandlesWidth()/2); 2126var n=this.window.isVisible(); 2127if(this.window._visibleTitlebar){l-=n?g($telerik.getBounds(m.titlebar).height,10):g($telerik.getCurrentStyle(m.titlebar,"height"),10); 2128}var i=$telerik.$(j); 2129l-=f(i.css("padding-top"),10); 2130l-=f(i.css("padding-bottom"),10); 2131l-=f(i.css("border-top-width"),10); 2132l-=f(i.css("border-bottom-width"),10); 2133if(this.window._visibleStatusbar){l-=n?g(m.statusbar.offsetHeight,10):g($telerik.getCurrentStyle(m.statusbar,"height"),10); 2134l-=n?0:g($telerik.getBorderBox(m.statusbar).vertical,10); 2135}if(l>0){j.style.height=l+"px"; 2136}},setContentWidth:function(i){this.ui.content.style.width=""; 2137},setTitleText:function(i){if(!this.ui.title){return; 2138}this.ui.title.innerHTML=i||" "; 2139this.ui.updateTitleWidth(); 2140},showStatusbar:function(){this._displayStatusbar("",true); 2141},hideStatusbar:function(){this._displayStatusbar("none",false); 2142},_displayStatusbar:function(k,i){if(!this.ui.container){return; 2143}var j=this.ui.getStatusbar(); 2144d(j,k); 2145if(this._hasAriaSupport()){c(j,i); 2146}this.setHeight(this.window.get_height()); 2147},showShadow:function(){this.ui.setShadowCssClass(true); 2148},hideShadow:function(){this.ui.setShadowCssClass(false); 2149},moveOutOfSight:function(){var j=this.ui.popupBehavior; 2150if(j){this.window._storeBounds(); 2151var i=j.get_elementToShow(); 2152a(i).css({display:"",position:"absolute",top:"-10000px",left:this.window.get_leftHidingPoint()+"px",overflow:"hidden"}); 2153if(i._hideWindowedElementsIFrame&&i._hideWindowedElementsIFrame.style){i._hideWindowedElementsIFrame.style.display="none"; 2154}}this._ariaHide(); 2155},isOutOfSight:function(){var i=this.ui.container; 2156if(!i){return false; 2157}var j=g(i.style.left,10); 2158return($telerik.isIE&&($telerik.isIE9||$telerik.isIE10))&&j===this.window.get_leftHidingPoint(); 2159},enableMoveResize:function(i){this.disableMoveResize(i); 2160if(i.move&&!this.draggable){this.draggable=new Telerik.Web.UI.Widgets.Draggable(this.ui.container,{handle:this.ui.titlebar,shouldPreventDefault:false}); 2161this.draggable.add_dragStart(Function.createDelegate(this,function(n,k){this._cancelDragSelection(k.get_domEvent()); 2162this.window.setActive(true); 2163var s=this.window.isPinned()||this.window.isMaximized()||(this.window.isMinimized()&&this.window.get_minimizeZoneID()); 2164k.set_cancel(s); 2165if(s){return; 2166}this.restrictBounds=this.window._getRestrictionZoneBounds(); 2167var q=$telerik.getPaddingBox(this.ui.container); 2168if(this.restrictBounds){var l=$telerik.getBorderBox(this.ui.container); 2169var o=this.restrictBounds,p={x:o.x,y:o.y,width:o.width-q.horizontal-l.horizontal,height:o.height-q.vertical-l.vertical},m={minX:p.x,minY:p.y,maxX:p.width+p.x,maxY:p.height+p.y}; 2170var r={x:this.window.get_left(),y:this.window.get_top()}; 2171r.y=Math.max(m.minY,Math.min(m.maxY,r.y)); 2172k._position.y=r.y; 2173this.moveTo(r.x,r.y); 2174n.set_constraints(m); 2175}this.window.raiseEvent("dragStart",new Sys.EventArgs()); 2176})); 2177this.draggable.add_dragging(Function.createDelegate(this,function(l,k){this.ui.showContentOverlay(); 2178$telerik.cancelRawEvent(k.get_domEvent()); 2179k.set_cancel(this.window.isPinned()||this.window.isMaximized()||(this.window.isMinimized()&&this.window.get_minimizeZoneID())); 2180})); 2181this.draggable.add_dragEnd(Function.createDelegate(this,function(l,k){this.ui.hideContentOverlay(); 2182var m=k.get_newPosition(); 2183this.moveTo(m.x,m.y); 2184this.window._storeBounds(); 2185this._repaintResizable(); 2186this.window.raiseEvent("dragEnd",new Sys.EventArgs()); 2187})); 2188}if(i.resize&&!this.resizable){this.resizable=new Telerik.Web.UI.Widgets.Resizable(this.ui.container,{appendHandleToElement:!$telerik.isIE,constraints:{minWidth:this.ui.get_uiMinWidth(),minHeight:this.ui.get_uiMin
2188Height()},handleSize:12,shouldPreventDefault:false}); 2189this.resizable.add_resizeStart(a.proxy(this._resizeStartHandler,this)); 2190this.resizable.add_resizing(a.proxy(this._resizingHandler,this)); 2191this.resizable.add_resizeEnd(a.proxy(this._resizeEndHandler,this)); 2192if(this.ui.bottomResizer&&!this.bottomResizerHandle){var j=new Telerik.Web.UI.Widgets.Handle(this.ui.bottomResizer,"SE",{cursorType:"se-resize"}); 2193j.add_dragStart(a.proxy(this.resizable._handleDragStart,this.resizable)); 2194j.add_dragging(a.proxy(this.resizable._handleDragging,this.resizable)); 2195j.add_dragEnd(a.proxy(this.resizable._handleDragEnd,this.resizable)); 2196this.bottomResizerHandle=j; 2197}}},_resizeStartHandler:function(k,i){this.ui.showContentOverlay(); 2198$telerik.cancelRawEvent(i.get_domEvent()); 2199this.window.setActive(true); 2200if(this.window.isMinimized()||this.window.isMaximized()){i.set_cancel(true); 2201}k.set_constraints({minWidth:this.ui.get_uiMinWidth(),minHeight:this.ui.get_uiMinHeight()}); 2202this.restrictBounds=this.window._getRestrictionZoneBounds(); 2203this.resizeHelper={width:this.window.get_width(),height:this.window.get_height()||this.ui.container.clientHeight,offset:{top:g(this.window.get_top(),10),left:g(this.window.get_left(),10)},borders:$telerik.getBorderBox(this.ui.container)}; 2204var j=new Sys.CancelEventArgs(); 2205this.window.raiseEvent("resizeStart",j); 2206i.set_cancel(j.get_cancel()); 2207},touchCount:0,_resizingHandler:function(o,i){$telerik.cancelRawEvent(i.get_domEvent()); 2208var l=this.restrictBounds,k=this._getResizeBounds(i),j=this.resizeHelper.borders,m={x:k.x-j.left,y:k.y-j.top,width:k.width+j.horizontal,height:k.height+j.vertical}; 2209var n=this.window._checkRestrictionZoneBounds(l,m); 2210k.width=Math.max(o.options.constraints.minWidth,k.width); 2211k.height=Math.max(o.options.constraints.minHeight,k.height); 2212i.set_cancel(true); 2213if(n&&this.touchCount++>0){var p=this.ui.container.style; 2214p.left=k.x+"px"; 2215p.top=k.y+"px"; 2216this._setWidth(k.width); 2217this._setHeight(k.height); 2218this._currentResizeBounds=k; 2219}},_getResizeBounds:function(i){var k=i.get_direction(); 2220var m=function(p){return k.indexOf(p)>-1; 2221}; 2222var j=i.get_delta(); 2223var n=this.resizeHelper; 2224var l=m("N")?-1:1; 2225var o=m("W")?-1:1; 2226return{x:n.offset.left+(m("W")?j.x:0),y:n.offset.top+(m("N")?j.y:0),width:n.width+o*j.x,height:n.height+l*j.y}; 2227},_getMoveBounds:function(i){var j=i.get_newPosition(); 2228var k=this.resizeHelper; 2229return{x:j.x,y:j.y,width:k.width,height:k.height}; 2230},_resizeEndHandler:function(k,i){this.touchCount=0; 2231$telerik.cancelRawEvent(i.get_domEvent()); 2232this.ui.hideContentOverlay(); 2233var j=this._currentResizeBounds; 2234if(j){this.moveTo(g(j.x,10),g(j.y,10)); 2235this.window.set_width(g(j.width,10)); 2236this.window.set_height(g(j.height,10)); 2237}this.window._storeBounds(); 2238this.window.raiseEvent("resizeEnd",new Sys.EventArgs()); 2239this._currentResizeBounds=null; 2240},_showResizableHandlers:function(){if(this.resizable){this.resizable.showHandles(); 2241}},_hideResizableHandlers:function(){if(this.resizable){this.resizable.hideHandles(); 2242}},_repaintResizable:function(){if(this.resizable){this.resizable.repaint(); 2243}},_isDir:function(i,j){return i.indexOf(j)>-1; 2244},disableMoveResize:function(i){if(this.draggable){this.draggable.dispose(); 2245this.draggable=null; 2246}if(this.resizable){if(this.bottomResizerHandle){this.ui.removeStatusbarResizer(); 2247this.bottomResizerHandle.dispose(); 2248this.bottomResizerHandle=null; 2249}this.resizable.dispose(); 2250this.resizable=null; 2251}},setCommandButtons:function(j){var k=[]; 2252this.ui.clearCommandButtons(); 2253for(var l=0; 2254l<j.length; 2255l++){k.push(this.ui.createCommandButton(j[l])); 2256}this.ui.updateTitleWidth(); 2257return k; 2258},toggleCommand:function(j){var i=this.ui.getCommandButton(j); 2259if(!i){return; 2260}Sys.UI.DomElement.toggleCssClass(i,"on"); 2261},minimizeToZone:function(j){if(!j){return; 2262}if(typeof(j)=="string"){j=$get(j); 2263}var i=this.ui.container; 2264if(i.parentNode!=j){i.parentNode.removeChild(i); 2265j.appendChild(i); 2266this.window.setVisible(true); 2267i.style.position="static"; 2268if($telerik.isIE){i.style.display="inline"; 2269}else{i.style.cssFloat="left"; 2270}}},moveToDefaultParent:function(){var i=this.window._getDefaultParent(); 2271i.insertBefore(this.ui.container,i.firstChild); 2272},revertToDefaultParent:function(){var i=this.window._getDefaultParent(); 2273i.insertBefore(this.ui.container,i.firstChild); 2274}
2274,setActive:function(j){var i=this.ui.container; 2275if(j){this.window.setZIndexCss(); 2276Sys.UI.DomElement.removeCssClass(i,"rwInactiveWindow"); 2277}else{Sys.UI.DomElement.addCssClass(i,"rwInactiveWindow"); 2278}this._repaintResizable(); 2279},isActive:function(){var i=this.ui.container; 2280return(i&&!Sys.UI.DomElement.containsCssClass(i,"rwInactiveWindow")); 2281},onUrlChanging:function(){if(!this.ui.contentFrame){return; 2282}if(this.window.get_showContentDuringLoad()){var j=this.ui.statusbar; 2283if(j){Sys.UI.DomElement.addCssClass(j,"rwLoading"); 2284}}else{var i=this.ui.contentFrame; 2285var k=i.style; 2286i.originalPosition=k.position; 2287i.originalHeight=k.height; 2288k.position="absolute"; 2289k.top="-10000px"; 2290if($telerik.isIE9Mode){this.setHeight(this.window._height); 2291}if(this.window._isWindowRightToLeft()&&$telerik.isChrome){k.width="1px"; 2292}Sys.UI.DomElement.addCssClass(this.ui.container,"rwLoading"); 2293}},onUrlChanged:function(){var m=this.ui.statusbar,k=this.ui.contentFrame; 2294if(this.window.get_showContentDuringLoad()){if(m){Sys.UI.DomElement.removeCssClass(m,"rwLoading"); 2295}}else{k.style.position=""; 2296k.style.height=k.originalHeight; 2297k.originalHeight=null; 2298if(this.window._isWindowRightToLeft()&&$telerik.isChrome){k.style.width="100%"; 2299}Sys.UI.DomElement.removeCssClass(this.ui.container,"rwLoading"); 2300if($telerik.isIE9Mode){if(this.window.isMaximized()){this.window._maintainMaximizedSize(); 2301}else{if(!this.window.isMinimized()){this.setHeight(this.window.get_height()); 2302}}}}if(m){this.window.set_status(this.window.get_navigateUrl()); 2303}try{var i=k.contentWindow.document; 2304var l=i.title; 2305if(l&&l!=this.window.get_title()){this.window.set_title(l.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")); 2306}}catch(j){}},updatePopupZindex:function(){var i=this.ui.popupBehavior; 2307if(i){if(this.window.isVisible()){i.show(); 2308}}},dispose:function(){},_substractWrappersBorder:function(i,j){var l=this.ui.container; 2309if(!l){return i; 2310}var k=$telerik.getBorderBox(l); 2311i-=j?k.horizontal:k.vertical; 2312return i; 2313},_removeExplicitMSAjaxWidth:function(){if(!this.window.get_width()){this.ui.container.style.width=""; 2314}},_ariaHide:function(){if(this.window.get_enableAriaSupport()&&this.ui.container&&!this.window.isVisible()){this.ui.container.setAttribute("aria-hidden","true"); 2315}},_cancelDragSelection:function(i){if(!$telerik.isTouchDevice){$telerik.cancelRawEvent(i); 2316}},_hasAriaSupport:function(){return this.window.get_enableAriaSupport(); 2317},_preventDefault:function(i){if(i.preventDefault){i.preventDefault(); 2318}i.returnValue=false; 2319}}; 2320b.LightweightView.registerClass("Telerik.Web.UI.Window.LightweightView",b.ViewBase,b.IView); 2321function d(i,j){i&&(i.style.display=j); 2322}function c(i,j){i&&i.setAttribute("aria-hidden",!j); 2323}})($telerik.$,Telerik.Web.UI.Window); 2324Type.registerNamespace("Telerik.Web.UI.Window"); 2325(function(a,b,c){b.UIFactory={getRenderer:function(d,f){var e=Telerik.Web.UI.RenderMode; 2326if(d==e.Classic){return new b.ClassicRenderer(f); 2327}else{if(d==e.Lite){return new b.LightweightRenderer(f); 2328}}},getView:function(d,f){var e=Telerik.Web.UI.RenderMode; 2329if(d==e.Classic){return new b.ClassicView(f); 2330}else{if(d==e.Lite){return new b.LightweightView(f); 2331}}}}; 2332})($telerik.$,Telerik.Web.UI.Window); 2333(function(a){Type.registerNamespace("Telerik.Web.UI"); 2334var b=Telerik.Web.UI; 2335b.WindowShortCutManager=function(c){b.WindowShortCutManager.initializeBase(this,[c]); 2336}; 2337b.WindowShortCutManager.prototype={}; 2338b.WindowShortCutManager.registerClass("Telerik.Web.UI.WindowShortCutManager",b.ShortCutManager); 2339b.WindowShortCut=function(d,e,c){b.WindowShortCut.initializeBase(this,[d,e,c]); 2340}; 2341b.WindowShortCut.prototype={}; 2342b.WindowShortCut.registerClass("Telerik.Web.UI.WindowShortCut",b.ShortCut); 2343})($telerik.$);
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.