Type.registerNamespace("Telerik.Web.UI");
Telerik.Web.UI.RadWindowControllerClass=function(){
this._activeWindow=null;
this._historyStack=[];
this._registerGlobalBodyEventHandlers();
};
Telerik.Web.UI.RadWindowControllerClass.prototype={getInstance:function(){
return this;
},_registerGlobalBodyEventHandlers:function(){
var _1=Function.createDelegate(null,function(e){
if(e.keyCode==27){
Telerik.Web.UI.RadWindowController.hideCurrentWindowIfNonModal();
}
});
$addHandler(document.documentElement,"keydown",_1);
Sys.Application.add_unload(function(){
$removeHandler(document.documentElement,"keydown",_1);
});
},hideCurrentWindowIfNonModal:function(){
if(this._activeWindow!=null&&this._activeWindow.isModal&&!this._activeWindow.isModal()){
this._activeWindow.close();
}
this._activeWindow=null;
},inactivateCurrentWindow:function(){
if(this._activeWindow!=null){
this._activeWindow.setActive(false);
}
this._activeWindow=null;
},set_activeWindow:function(_3){
if(_3==this._activeWindow){
return;
}
this.inactivateCurrentWindow();
this._activeWindow=_3;
Array.remove(this._historyStack,_3);
Array.add(this._historyStack,_3);
},notifyWindowClosed:function(_4){
if(this._activeWindow==_4){
this._activeWindow=null;
}
Array.remove(this._historyStack,_4);
this._activatePreviousWindow();
},_activatePreviousWindow:function(){
var _5=this._historyStack;
var i=_5.length-1;
for(;i>=0;i--){
var _7=_5[i];
if(!_7){
return;
}
if(_7.isCreated()&&!_7.isClosed()&&!_7.isMinimized()){
_7.setActive(true);
break;
}else{
Array.removeAt(_5,i);
}
}
},get_activeWindow:function(){
return this._activeWindow;
}};
Telerik.Web.UI.RadWindowControllerClass.registerClass("Telerik.Web.UI.RadWindowControllerClass",null);
if(!Telerik.Web.UI.RadWindowController){
Telerik.Web.UI.RadWindowController=new Telerik.Web.UI.RadWindowControllerClass();
}
Type.registerNamespace("Telerik.Web.UI");
Type.registerNamespace("Telerik.Web.UI.RadWindowUtils");
Telerik.Web.UI.RadWindowUtils.Localization={"Close":"Close","Minimize":"Minimize","Maximize":"Maximize","Reload":"Reload","PinOn":"Pin on","PinOff":"Pin off","Restore":"Restore","OK":"OK","Cancel":"Cancel","Yes":"Yes","No":"No"};
Telerik.Web.UI.RadWindow=function(_8){
Telerik.Web.UI.RadWindow.initializeBase(this,[_8]);
this._eventNames=["resize","activate","dragStart","dragEnd","show","pageLoad","close","command"];
this._openerElement=null;
this._offsetElement=null;
this._popupElement=null;
this._tableElement=null;
this._contentElement=null;
this._contentCell=null;
this._titleElement=null;
this._titleCell=null;
this._titlebarElement=null;
this._statusCell=null;
this._statusMessageElement=null;
this._iframe=null;
this._buttonsElement=null;
this._buttonsArray=[];
this.isIE=($telerik.isIE);
this._openerElementID=null;
this._offsetElementID=null;
this._behaviors=Telerik.Web.UI.WindowBehaviors.Default;
this._initialBehaviors=Telerik.Web.UI.WindowBehaviors.None;
this._navigateUrl=null;
this._left="";
this._top="";
this._formID=null;
this._skin="Default";
this._title="";
this._width="300px";
this._height="300px";
this._minimizeZoneID=null;
this._restrictionZoneID="";
this._clientCallBackFunction=null;
this._reloadOnShow=false;
this._visibleOnPageLoad=false;
this._destroyOnClose=false;
this._visibleTitlebar=true;
this._visibleStatusbar=true;
this._showContentDuringLoad=true;
this._modal=false;
this._overlay=false;
this._keepInScreenBounds=false;
this._autoSize=false;
this._iconUrl=null;
this._minimizeIconUrl=null;
this._animation=Telerik.Web.UI.WindowAnimation.None;
this._windowAnimation=null;
this._onMouseDownDelegate=null;
this._onClickDelegate=null;
this._onTitlebarDblclickDelegate=null;
this._onTitlebarClickDelegate=null;
this._onWindowResizeDelegate=null;
this._onIframeLoadDelegate=null;
this._onChildPageUnloadDelegate=null;
this._onChildPageClickDelegate=null;
this._onModalShowHandler=null;
this._onModalCloseHandler=null;
this._loaded=false;
this._isCloned=false;
this._restoreRect=null;
this._popupBehavior=null;
this._popupVisible=false;
this._windowManager;
this._browserWindow=window;
this.GetWindowManager=this.get_windowManager;
this.BrowserWindow=window;
this.GetContentFrame=this.get_contentFrame;
this.GetLeftPosition=function(){
this.getWindowBounds().x;
};
this.GetTopPosition=function(){
this.getWindowBounds().y;
};
this.GetTitlebar=function(){
return this._titleCell;
};
this.GetStatusbar=function(){
return this._statusCell;
};
this.SetOpenerElementId=this.set_openerElementID;
this.SetStatus=this.set_status;
this.GetStatus=this.get_status;
this.SetModal=this.set_modal;
this.SetWidth=this.set_width;
this.SetHeight=this.set_height;
this.GetWidth=this.get_width;
this.GetHeight=this.get_height;
this.SetOffsetElementId=this.set_offsetElementID;
this.SetTitle=this.set_title;
this.MoveTo=this.moveTo;
this.Center=this.center;
this.SetVisible=this.setVisible;
this.SetSize=this.setSize;
this.Show=this.show;
this.Hide=this.hide;
this.GetUrl=this.get_navigateUrl;
this.SetUrl=this.setUrl;
this.Reload=this.reload;
this.SetActive=this.setActive;
this.Minimize=this.minimize;
this.Restore=this.restore;
this.Maximize=this.maximize;
this.Close=this.close;
this.TogglePin=this.togglePin;
this.IsMaximized=this.isMaximized;
this.IsMinimized=this.isMinimized;
this.IsModal=this.isModal;
this.IsClosed=this.isClosed;
this.IsPinned=this.isPinned;
this.IsVisible=this.isVisible;
this.IsActive=this.isActive;
this.IsBehaviorEnabled=this.isBehaviorEnabled;
};
Telerik.Web.UI.RadWindow.prototype={_getLocalization:function(){
return Telerik.Web.UI.RadWindowUtils.Localization;
},_registerIframeLoadHandler:function(_9){
if(!this._iframe){
return;
}
if(_9){
this._onIframeLoadDelegate=Function.createDelegate(this,this._onIframeLoad);
$addHandler(this._iframe,"load",this._onIframeLoadDelegate);
}else{
if(this._onIframeLoadDelegate){
$removeHandler(this._iframe,"load",this._onIframeLoadDelegate);
this._onIframeLoadDelegate=null;
$clearHandlers(this._iframe);
}
}
},_registerWindowResizeHandler:function(_a){
if(_a){
this._onWindowResizeDelegate=Function.createDelegate(this,this._maintainMaximizedSize);
$addHandler(window,"resize",this._onWindowResizeDelegate);
}else{
if(this._onWindowResizeDelegate){
$removeHandler(window,"resize",this._onWindowResizeDelegate);
this._onWindowResizeDelegate=null;
}
}
},_registerOpenerElementHandler:function(_b,_c){
if(!_b){
return;
}
if(true==_c){
this._onClickDelegate=Function.createDelegate(this,this._onClick);
$addHandler(_b,"click",this._onClickDelegate);
}else{
var _d=$removeHandler(_b,"click",this._onClickDelegate);
this._onClickDelegate=null;
}
},_registerTitlebarHandlers:function(_e){
var _f=this._titleCell;
if(_e){
this._onTitlebarDblclickDelegate=Function.createDelegate(this,function(){
if(this.isMinimized()){
this.restore();
}else{
if(this.isBehaviorEnabled(Telerik.Web.UI.WindowBehaviors.Maximize)){
if(this.isMaximized()){
this.restore();
}else{
this.maximize();
}
}
}
});
this._onTitlebarClickDelegate=Function.createDelegate(this,function(){
this.setActive(true);
});
$addHandler(_f,"dblclick",this._onTitlebarDblclickDelegate);
$addHandler(_f,"click",this._onTitlebarClickDelegate);
}else{
if(_f){
if(this._onTitlebarDblclickDelegate){
$removeHandler(_f,"dblclick",this._onTitlebarDblclickDelegate);
this._onTitlebarDblclickDelegate=null;
}
if(this._onTitlebarClickDelegate){
$removeHandler(_f,"click",this._onTitlebarClickDelegate);
this._onTitlebarClickDelegate=null;
}
$clearHandlers(_f);
}
}
},_makeModal:function(_10){
if(this._onModalShowHandler){
this.remove_show(this._onModalShowHandler);
this._onModalShowHandler=null;
}
if(this._onModalCloseHandler){
this.remove_close(this._onModalCloseHandler);
this._onModalCloseHandler=null;
}
if(this._modalExtender){
this._modalExtender.dispose();
this._modalExtender=null;
}
if(!_10){
return;
}
if(typeof (Telerik.Web.UI.RadWindowManager)!="undefined"&&Telerik.Web.UI.RadWindowManager.isInstanceOfType(this)){
return;
}
this._onModalShowHandler=function(_11){
if(!_11._modalExtender){
_11._modalExtender=new Telerik.Web.UI.ModalExtender(_11._popupElement);
}
_11._modalExtender.show();
_11.center();
};
this.add_show(this._onModalShowHandler);
this._onModalCloseHandler=function(_12){
window.setTimeout(function(){
if(_12._modalExtender){
_12._modalExtender.hide();
}
},10);
};
this.add_close(this._onModalCloseHandler);
},_enableMoveResize:function(_13){
if(this._resizeExtender){
this._resizeExtender.dispose();
this._resizeExtender=null;
}
if(!_13){
return;
}
if(!this._popupElement){
return;
}
var _14=this._tableElement.rows;
var _15={};
var _16=this._isWindowRightToLeft();
if(this.isBehaviorEnabled(Telerik.Web.UI.WindowBehaviors.Resize)){
if(_16){
_15={nw:_14[0].cells[2],n:this._topResizer,ne:_14[0].cells[0],w:[_14[1].cells[2],_14[2].cells[2]],e:[_14[1].cells[0],_14[2].cells[0]],sw:_14[3].cells[2],s:_14[3].cells[1],se:[_14[3].cells[0],this._bottomResizer]};
}else{
_15={nw:_14[0].cells[0],n:this._topResizer,ne:_14[0].cells[2],w:[_14[1].cells[0],_14[2].cells[0]],e:[_14[1].cells[2],_14[2].cells[2]],sw:_14[3].cells[0],s:_14[3].cells[1],se:[_14[3].cells[2],this._bottomResizer]};
}
}
if(this.isBehaviorEnabled(Telerik.Web.UI.WindowBehaviors.Move)){
_15["move"]=this._titleCell;
}
this._resizeExtender=new Telerik.Web.UI.ResizeExtender(this,this._popupElement,_15,this._tableElement);
},onResizeStart:function(){
if(this.isMaximized()){
return false;
}
this.setActive(true);
this._cachedDragZoneBounds=this._getRestrictionZoneBounds();
},onResizing:function(_17){
if(!this._cachedDragZoneBounds){
return true;
}
return this._checkRestrictionZoneBounds(this._cachedDragZoneBounds,_17);
},onResizeEnd:function(){
this._cachedDragWindowBounds=null;
var _18=this._getCurrentBounds();
this.moveTo(_18.x,_18.y);
if(this._overlay&&$telerik.isFirefox){
this._popupBehavior._onMove();
}
this.raiseEvent("resize",new Sys.EventArgs());
},onDragStart:function(){
this.setActive(true);
if(this.isPinned()||this.isMaximized()){
return false;
}
if(this.isMinimized()&&this.get_minimizeZoneID()){
return false;
}
this._cachedDragZoneBounds=this._getRestrictionZoneBounds();
this._cachedDragWindowBounds=$telerik.getBounds(this._popupElement);
this.raiseEvent("dragStart",new Sys.EventArgs());
return true;
},onDragEnd:function(_19){
this._cachedDragZoneBounds=null;
this._cachedDragWindowBounds=null;
if(this._overlay&&$telerik.isFirefox){
this._popupBehavior._onMove();
}
this.raiseEvent("dragEnd",new Sys.EventArgs());
var _1a=this._getCurrentBounds();
this.moveTo(_1a.x,_1a.y);
this.setActive(true);
},onDrag:function(_1b){
if(!this._cachedDragZoneBounds){
return true;
}
var _1c=this._cachedDragWindowBounds;
var _1d=this._cachedDragZoneBounds;
_1b.width=_1c.width;
_1b.height=_1c.height;
var _1e=this._checkRestrictionZoneBounds(_1d,_1b);
if(!_1e){
if(_1b.x<=_1d.x){
_1b.x=_1d.x;
}else{
if(_1d.x+_1d.width<=_1b.x+_1c.width){
_1b.x=_1d.x+_1d.width-_1c.width;
}
}
if(_1b.y<=_1d.y){
_1b.y=_1d.y;
}else{
if(_1d.y+_1d.height<=_1b.y+_1c.height){
_1b.y=_1d.y+_1d.height-_1c.height;
}
}
_1e=true;
}
return _1e;
},initialize:function(){
Telerik.Web.UI.RadWindow.callBaseMethod(this,"initialize");
if(this._visibleOnPageLoad){
setTimeout(Function.createDelegate(this,function(){
this.show();
}),0);
}
this._registerWindowResizeHandler(true);
},dispose:function(){
var _1f=this.get_windowManager();
if(_1f){
if(_1f.get_preserveClientState()){
_1f.saveWindowState(this);
}
if(this._destroyOnClose){
_1f.removeWindow(this);
}
}
if(this._windowAnimation){
this._windowAnimation.dispose();
}
this._enableMoveResize(false);
this._makeModal(false);
this._registerTitlebarHandlers(false);
this._registerWindowResizeHandler(false);
this._registerIframeLoadHandler(false);
if(this._openerElement){
this._registerOpenerElementHandler(this._openerElement,false);
}
this.set_behaviors(Telerik.Web.UI.WindowBehaviors.None);
var _20=this._iframe;
if(_20){
_20.radWindow=null;
_20.src="javascript:'<html></html>';";
_20.name="";
_20.removeAttribute("name");
_20.removeAttribute("NAME");
}
if(this._contentElement){
this._contentElement.innerHTML="";
}
var _21=this._popupElement;
if(_21&&_21.parentNode){
_21.parentNode.removeChild(_21);
}
Telerik.Web.UI.RadWindow.callBaseMethod(this,"dispose");
},hide:function(){
this._hide();
return true;
},clone:function(_22,_23){
if(!_22){
alert("Telerik.Web.UI.RadWindow.clone called without providing a name argument");
return;
}
var evs=(_23!=false)?this._getEventsParameter():null;
var _25=this._getPropertiesParameter();
var _26=document.createElement("SPAN");
_26.setAttribute("id",_22);
var wnd=$create(Telerik.Web.UI.RadWindow,_25,evs,null,_26);
wnd.set_name(_22);
wnd._isCloned=true;
return wnd;
},set_contentElement:function(_28){
this._createUI();
if(this._iframe){
this._iframe.style.display="none";
}
if(_28.parentNode&&_28.parentNode.removeChild){
_28.parentNode.removeChild(_28);
}
this._contentCell.appendChild(_28);
_28.style.display="";
this._contentElement=_28;
},get_contentElement:function(){
return this._contentElement;
},isCreated:function(){
return this._popupElement!=null;
},show:function(){
var _29=this.isCreated();
this._createUI();
if(this._navigateUrl&&(!_29||this._reloadOnShow)){
this.setUrl(this._navigateUrl);
}
if(!_29&&(this._initialBehaviors!=Telerik.Web.UI.WindowBehaviors.None)){
this._show();
this._afterShow();
if(this.isInitialBehaviorEnabled(Telerik.Web.UI.WindowBehaviors.Minimize)){
this.minimize();
}
if(this.isInitialBehaviorEnabled(Telerik.Web.UI.WindowBehaviors.Maximize)){
this.maximize();
}
if(this.isInitialBehaviorEnabled(Telerik.Web.UI.WindowBehaviors.Pin)){
this.togglePin();
}
return;
}
if(this._animation==Telerik.Web.UI.WindowAnimation.None){
this._show();
this._afterShow();
}else{
this._playAnimation();
}
},_show:function(){
this.raiseEvent("beforeShow",new Sys.EventArgs());
if(this.get_offsetElementID()&&!this._offsetElement){
var _2a=$get(this.get_offsetElementID());
if(_2a){
this._offsetElement=_2a;
}
}
var _2b=this._popupBehavior.get_parentElement();
if(this._offsetElement&&!this._offsetSet){
this._popupBehavior.set_parentElement(this._offsetElement);
this._offsetSet=true;
}
this.set_visibleTitlebar(this._visibleTitlebar);
this.set_visibleStatusbar(this._visibleStatusbar);
this._reSetWindowPosition();
if(_2b!=this._popupBehavior.get_parentElement()){
this._popupBehavior.set_parentElement(_2b);
}
this._popupVisible=true;
},_hide:function(){
if(!this._animation||this._animation==0){
this._afterHide();
}else{
var fnc=Function.createDelegate(this,this._afterHide);
$telerik.$(this._popupElement).stop().fadeOut(500,fnc);
}
},_afterHide:function(){
if(!this._popupBehavior){
return;
}
if(this.isMaximized()){
this.restore();
}
this._popupBehavior.hide(true);
this._popupVisible=false;
this._getWindowController().notifyWindowClosed(this);
},_afterShow:function(){
this.setActive(true);
this._storeBounds();
this.raiseEvent("show",new Sys.EventArgs());
},_playAnimation:function(){
var _2d=Function.createDelegate(this,function(){
var _2e=this._getCalculatedPopupBounds();
this._setPopupVisible(_2e.x,_2e.y);
var _2f=$telerik.getBounds(this._popupElement);
$telerik.$(this._popupElement).hide();
return _2f;
});
var _30=this._popupElement;
var _31=this._animation;
startBounds=this._openerElement?$telerik.getBounds(this._openerElement):null;
var _32=_2d();
var _33=""+this._position;
onAnimationStart=null;
var _34=Function.createDelegate(this,function(){
this._show();
this._afterShow();
});
Telerik.Web.UI.Animations.playJQueryAnimation(_30,_31,startBounds,_32,_33,onAnimationStart,_34);
},_onClick:function(e){
this.show();
return this._cancelEvent(e);
},_cancelEvent:function(e){
if(e){
e.returnValue=false;
e.cancelBubble=true;
e.preventDefault();
e.stopPropagation();
}
return false;
},_getWindowController:function(){
return Telerik.Web.UI.RadWindowController.getInstance();
},_getReloadOnShowUrl:function(_37){
var str="rwndrnd="+Math.random();
if(_37.indexOf("?")>-1){
str="&"+str;
}else{
str="?"+str;
}
_37+=str;
return _37;
},_getPropertiesParameter:function(){
if(!this._propertiesParameter){
var _39={};
for(var _3a in Telerik.Web.UI.RadWindow.prototype){
var _3b=this[_3a];
if(typeof (_3b)=="function"&&_3a.indexOf("get_")==0){
var _3c=_3a.substring(4);
if(null==this["set_"+_3c]){
continue;
}
var _3d=_3b.call(this);
if(null==_3d){
continue;
}
_39[_3c]=_3d;
if(_3c=="skin"){
break;
}
}
}
this._propertiesParameter=_39;
}
var _3e=this._cloneObject(this._propertiesParameter);
return _3e;
},_getEventsParameter:function(){
if(!this._eventsParameter){
var _3f={};
var _40=this.get_events();
var _41=this._eventNames;
for(var i=0;i<_41.length;i++){
var _43=_41[i];
var _44=_40.getHandler(_43);
if(_44&&typeof (eval(_44))=="function"){
_3f[_43]=eval(_44);
}
}
this._eventsParameter=_3f;
}
return this._eventsParameter;
},_cloneObject:function(_45){
var _46={};
for(var _47 in _45){
_46[_47]=_45[_47];
}
return _46;
},getWindowBounds:function(){
return this._getCalculatedPopupBounds();
},toString:function(){
return "[RadWindow id="+this.get_id()+"]";
},center:function(){
var _48=this._getCentralBounds();
this.moveTo(_48.x,_48.y);
},moveTo:function(x,y){
var _4b=this._popupElement;
if(_4b){
var _4c=$telerik.getBounds(_4b);
var _4d=this._getRestrictionZoneBounds();
if(_4d){
var _4e=this._checkRestrictionZoneBounds(null,new Sys.UI.Bounds(x+_4d.x,y+_4d.y,_4c.width,_4c.height));
if(!_4e){
return false;
}
}
}
x=parseInt(x);
y=parseInt(y);
this._createUI();
this._setPopupVisible(x,y);
this._storeBounds();
return true;
},setSize:function(_4f,_50){
this._firstShow=false;
this.set_width(_4f);
this.set_height(_50);
this._storeBounds();
},autoSize:function(){
var _51=this.get_contentFrame();
var _52=null;
try{
_52=_51.contentWindow.document.documentElement;
}
catch(ex){
return false;
}
var _53=$telerik.getBounds(_51.parentNode);
var _54=this.getWindowBounds();
_51.style.width="1px";
_51.style.height="1px";
var _55=_52.scrollHeight;
var _56=_52.scrollWidth;
var _57=this._getRestrictionZoneBounds();
var _58=_57?_57:this._getViewportBounds();
var _59=_54.width-_53.width+_56;
var _5a=_54.height-_53.height+_55;
var _5b=Math.min(_59,_58.width);
var _5c=Math.min(_5a,_58.height);
var _5d=this.get_keepInScreenBounds();
if(!_57){
this.set_keepInScreenBounds(true);
}
var _5e=16;
if(_5c<_55){
_5b=Math.min(_5b+_5e,_58.width);
}
if(_5b<_56){
_5c=Math.min(_5c+_5e,_58.height);
}
var _5f=this.calcPosition(_54.x,_54.width,_5b,_58.width);
var _60=this.calcPosition(_54.y,_54.height,_5c,_58.height);
var _61={x:_5f+_58.scrollLeft,y:_60+_58.scrollTop,width:_5b,height:_5c};
this.setBounds(_61);
_51.style.width="100%";
_51.style.height="100%";
if($telerik.isIE){
_51.style.overflow="hidden";
setTimeout(function(){
_51.style.overflow="";
},0);
}
this.set_keepInScreenBounds(_5d);
return true;
},setBounds:function(_62){
if(!_62){
return;
}
this._checkRestrictionZoneBounds=function(){
return true;
};
this.moveTo(_62.x,_62.y);
this.setSize(_62.width,_62.height);
this._checkRestrictionZoneBounds=Telerik.Web.UI.RadWindow.prototype._checkRestrictionZoneBounds;
},calcPosition:function(pos,_64,_65,_66){
var _67=pos+Math.round((_64-_65)/2);
if(_67<0||_67+_64>_66){
_67=Math.round(Math.abs((_66-_65)/2));
}
return _67;
},_maintainMaximizedSize:function(){
if(!this.isMaximized()){
return;
}
var _68=this._popupElement;
if(!_68){
return;
}
var _69=this._getViewportBounds();
_68.style.top=(_69.scrollTop+_69.y)+"px";
_68.style.left=(_69.scrollLeft+_69.x)+"px";
$telerik.setSize(_68,{width:_69.width,height:_69.height});
var _6a=this._getRestrictionZoneBounds();
if(!_6a){
this._enablePageScrolling(false);
}
var _6b=this._tableElement;
_69=$telerik.getContentSize(_68);
var _6c=$telerik.getBorderBox(_6b);
var _6d=$telerik.getPaddingBox(_6b);
var _6e=_69.height-_6c.vertical-_6d.vertical;
_6b.style.height=_6e+"px";
this._fixIeHeight(_6b,_6e);
},_enablePageScrolling:function(_6f){
var _70=document.body;
var doc=document.documentElement;
if(_6f){
if(null!=this._documentOverflow){
doc.style.overflow=this._documentOverflow;
}
if(null!=this._bodyOverflow){
_70.style.overflow=this._bodyOverflow;
}
this._documentOverflow=null;
this._bodyOverflow=null;
}else{
if(null==this._documentOverflow){
this._documentOverflow=doc.style.overflow;
}
if(null==this._bodyOverflow){
this._bodyOverflow=_70.style.overflow;
}
_70.style.overflow="hidden";
doc.style.overflow="hidden";
}
},_getRestrictionZoneBounds:function(){
var _72=null;
if(this.get_restrictionZoneID()){
var _73=$get(this.get_restrictionZoneID());
if(_73){
_72=$telerik.getBounds(_73);
_72.scrollLeft=0;
_72.scrollTop=0;
}
}
return _72;
},_storeBounds:function(){
if(!this.isCreated()){
return;
}
var _74=this._getCurrentBounds();
if(this.isMaximized()){
return false;
}
if(this.isMinimized()){
if(this._restoreRect){
_74.width=this._restoreRect.width;
_74.height=this._restoreRect.height;
}else{
_74.width=this.get_width();
_74.height=this.get_height();
}
}
this._restoreRect=_74;
},_restoreBounds:function(){
if(!this._restoreRect){
return;
}
var _75=this._restoreRect;
this.setSize(_75.width,_75.height);
this.moveTo(_75.x,_75.y);
},_getStoredBounds:function(){
if(this._restoreRect){
return this._restoreRect;
}
},_deleteStoredBounds:function(){
this._restoreRect=null;
},_getCurrentBounds:function(){
var _76=(this._popupElement.style.display=="none")?true:false;
this._popupElement.style.display="";
if(this._firstShow!=true){
this._updateWindowSize(this._height);
this._firstShow=true;
}
var _77=$telerik.getBounds(this._popupElement);
if(_76){
this._popupElement.style.display="none";
}
var _78=this._getRestrictionZoneBounds();
if(_78){
_77.x-=_78.x;
_77.y-=_78.y;
}
return _77;
},_getCentralBounds:function(){
var _79=this._getCurrentBounds();
var _7a=this._getViewportBounds();
var x=parseInt((_7a.width-_79.width)/2);
var y=parseInt((_7a.height-_79.height)/2);
_79.x=x+_7a.scrollLeft;
_79.y=y+_7a.scrollTop;
return _79;
},_getViewportBounds:function(){
var _7d=this._getRestrictionZoneBounds();
if(_7d){
return _7d;
}
var _7e=$telerik.getClientBounds();
var _7f=document.documentElement.scrollLeft||document.body.scrollLeft;
var _80=document.documentElement.scrollTop||document.body.scrollTop;
_7e.scrollLeft=_7f;
_7e.scrollTop=_80;
if(this.isIE){
if(_7e.width==0){
_7e.width=document.body.clientWidth;
}
if(_7e.height==0){
_7e.height=document.body.clientHeight;
}
}
return _7e;
},_getCalculatedPopupBounds:function(){
var _81=this._getStoredBounds();
if(_81){
return _81;
}
var _82=this._getCurrentBounds();
var _83=this._offsetElement;
if(!this._top&&!this._left&&!_83){
_82=this._getCentralBounds();
}else{
if(_83){
_82.y=0;
_82.x=0;
}else{
var _84=this._getViewportBounds();
_82.x=_84.scrollLeft;
_82.y=_84.scrollTop;
}
var _85=this._left?this._left:0;
_82.x+=_85;
var top=this._top?this._top:0;
_82.y+=top;
}
return _82;
},_checkRestrictionZoneBounds:function(_87,_88){
var _89=_87;
if(!_89){
_89=this._getRestrictionZoneBounds();
if(!_89){
return true;
}
}
return Telerik.Web.UI.ResizeExtender.containsBounds(_89,_88);
},_reSetWindowPosition:function(){
var _8a=this._getCalculatedPopupBounds();
this._setPopupVisible(_8a.x,_8a.y);
},_fixIeHeight:function(_8b,_8c){
if("CSS1Compat"==document.compatMode){
var _8d=(_8b.offsetHeight-parseInt(_8c));
if(_8d>0){
var _8e=(parseInt(_8b.style.height)-_8d);
if(_8e>0){
_8b.style.height=_8e+"px";
}
}
}
},_setPopupVisible:function(x,y){
var _91=this._getRestrictionZoneBounds();
if(_91){
x+=_91.x;
y+=_91.y;
}
this._popupBehavior._setCoordinates(x,y);
this._popupBehavior.show();
if(!this.get_width()){
this._popupElement.style.width="";
}
this._updateTitleWidth();
},_createDefaultTable:function(){
var _92=document.createElement("TABLE");
_92.align="left";
_92.cellSpacing=0;
_92.cellPadding=0;
_92.insertRow(-1);
return _92;
},_isWindowRightToLeft:function(){
var _93=this._isRightToLeft;
if(_93==null){
var _94=this.get_element();
var _95=_94.parentNode?_94:this._getDefaultParent();
_93=this._isRightToLeft=$telerik.isRightToLeft(_95);
}
return _93;
},_createStatusbarResizer:function(_96){
var _97=_96.rows[0].insertCell(-1);
_97.style.width="15px";
var _98=document.createElement("DIV");
_97.appendChild(_98);
this._bottomResizer=_98;
},_createStatusbarMessageCell:function(_99){
var _9a=_99.rows[0].insertCell(-1);
_9a.style.width="100%";
var _9b=this._getStatusMessageElement();
_9a.appendChild(_9b);
},_createUI:function(){
if(!this._popupElement){
var _9c=this.get_id();
var _9d="RadWindowWrapper_"+_9c;
var _9e=this._isWindowRightToLeft();
var _9f=document.createElement("DIV");
_9f.id=_9d;
_9f.className=this._getFullSkinName();
if(_9e){
Sys.UI.DomElement.addCssClass(_9f,"RadWindow_rtl");
}
_9f.style.width=this._width;
_9f.style.height=this._height;
_9f.setAttribute("unselectable","on");
this._popupElement=_9f;
var _a0=document.createElement("TABLE");
_a0.cellSpacing=0;
_a0.cellPadding=0;
this._tableElement=_a0;
var _a1=[];
if(_9e){
classNames=["rwCorner rwTopRight","rwTitlebar","rwCorner rwTopLeft","rwCorner rwBodyRight","rwWindowContent","rwCorner rwBodyLeft","rwCorner rwBodyRight","rwStatusbar","rwCorner rwBodyLeft","rwCorner rwFooterRight","rwFooterCenter","rwCorner rwFooterLeft"];
}else{
classNames=["rwCorner rwTopLeft","rwTitlebar","rwCorner rwTopRight","rwCorner rwBodyLeft","rwWindowContent","rwCorner rwBodyRight","rwCorner rwBodyLeft","rwStatusbar","rwCorner rwBodyRight","rwCorner rwFooterLeft","rwFooterCenter","rwCorner rwFooterRight"];
}
var _a2=["rwTitleRow","rwContentRow","rwStatusbarRow","rwFooterRow"];
var _a3=0;
for(var i=0;i<4;i++){
var row=_a0.insertRow(-1);
row.className=_a2[i];
for(var j=1;j<=3;j++){
var _a7=row.insertCell(-1);
_a7.innerHTML="&nbsp;";
_a7.className=classNames[_a3];
_a3++;
}
}
var _a8=_a0.rows[0].cells[1];
_a8.innerHTML="";
this._titleCell=_a8;
var _a9=document.createElement("DIV");
_a9.className="rwTopResize";
_a9.innerHTML="<!-- / -->";
this._topResizer=_a9;
this._titleCell.appendChild(this._topResizer);
var _aa=this._createDefaultTable();
_aa.className="rwTitlebarControls";
this._titlebarElement=_aa;
this._titleCell.appendChild(this._titlebarElement);
var _ab=this._getTitleIcon();
var _ac=this._titlebarElement.rows[0].insertCell(-1);
_ac.appendChild(_ab);
var _ad=this._getTitleElement();
var _a8=this._titlebarElement.rows[0].insertCell(-1);
_a8.appendChild(_ad);
this.set_title(this._title);
var _ae=this._titlebarElement.rows[0].insertCell(-1);
_ae.noWrap=true;
_ae.style.whiteSpace="nowrap";
_ae.appendChild(this._getTitleCommandButtonsHolder());
var _af=_a0.rows[1].cells[1];
_af.vAlign="top";
_af.innerHTML="";
this._contentCell=_af;
var _b0=this.get_name();
var _b1=($telerik.isIE)?document.createElement("<iframe name='"+_b0+"'>"):document.createElement("iframe");
_b1.name=_b0;
_b1.src="javascript:'<html></html>';";
_b1.style.width="100%";
_b1.style.height="100%";
_b1.style.border="0px";
_b1.frameBorder="0";
this._iframe=_b1;
this._contentCell.appendChild(this._iframe);
var _b2=this._createDefaultTable();
_b2.style.width="100%";
this._statusCell=_a0.rows[2].cells[1];
this._statusCell.innerHTML="";
this._statusCell.appendChild(_b2);
if(_9e){
this._createStatusbarResizer(_b2);
this._createStatusbarMessageCell(_b2);
}else{
this._createStatusbarMessageCell(_b2);
this._createStatusbarResizer(_b2);
}
this._createBackReference();
this._popupElement.appendChild(this._tableElement);
this._popupElement.style.display="none";
this._popupElement.style.position="absolute";
this._addWindowToDocument();
this.set_behaviors(this._behaviors);
this._registerTitlebarHandlers(true);
this.set_visibleTitlebar(this._visibleTitlebar);
this.set_visibleStatusbar(this._visibleStatusbar);
}
if(!this._popupBehavior){
this._popupBehavior=$create(Telerik.Web.PopupBehavior,{"id":(new Date()-100)+"PopupBehavior","parentElement":null,"overlay":this._overlay,"keepInScreenBounds":this._keepInScreenBounds},null,null,this._popupElement);
}
},_getDefaultParent:function(){
var _b3=this._formID?document.getElementById(this._formID):null;
if(!_b3){
if(document.forms&&document.forms.length>0){
_b3=document.forms[0];
}else{
_b3=document.body;
}
}
return _b3;
},_getStatusMessageElement:function(){
if(null==this._statusMessageElement){
var el=document.createElement("INPUT");
el.readOnly="readonly";
el.setAttribute("unselectable","on");
this._statusMessageElement=el;
}
return this._statusMessageElement;
},_getTitleCommandButtonsHolder:function(){
if(null==this._buttonsElement){
var ul=document.createElement("UL");
ul.className="rwControlButtons";
this._buttonsElement=ul;
}
return this._buttonsElement;
},_getTitleElement:function(){
if(!this._titleElement){
this._titleElement=document.createElement("EM");
this._titleElement.setAttribute("unselectable","on");
}
return this._titleElement;
},_getTitleIcon:function(){
if(null==this._titleIconElement){
var _b6=document.createElement("A");
this._titleIconElement=_b6;
_b6.className="rwIcon";
if(this.get_iconUrl()){
_b6.style.background="transparent url("+this.get_iconUrl()+") no-repeat scroll 0px 0px";
}
}
return this._titleIconElement;
},_getTitleCommandButton:function(_b7){
if(!_b7||!this._buttonsArray){
return null;
}
var _b8=_b7.toLowerCase();
_b8=_b8.charAt(0).toUpperCase()+_b8.substring(1);
_b7="rw"+_b8+"Button";
var _b9=this._buttonsArray.length;
for(var i=0;i<_b9;i++){
var _bb=this._buttonsArray[i];
if(_bb&&Sys.UI.DomElement.containsCssClass(_bb,_b7)){
return _bb;
}
}
return null;
},_updateTitleWidth:function(){
if(this._visibleTitlebar){
var _bc=this._getTitleElement();
if(!_bc){
return;
}
var _bd=this._getTitleCommandButtonsHolder();
var _be=_bd.offsetWidth;
if(_be>0){
var lis=_bd.getElementsByTagName("LI");
if(lis[0]&&lis[0].offsetWidth>0){
_be=lis.length*lis[0].offsetWidth;
}
_bd.style.width=_be+"px";
}
var _c0=this._getTitleIcon();
var _c1=_c0.offsetWidth;
if(_c1>0&&_c0.parentNode.tagName=="TD"){
_c0.parentNode.style.width=_c1+"px";
}
}
},_addWindowToDocument:function(){
var _c2=this._getDefaultParent();
_c2.insertBefore(this._popupElement,_c2.firstChild);
},_createBackReference:function(){
var _c3=this;
if(!_c3.Argument){
_c3.Argument={};
}
var _c4=this._iframe;
try{
_c4.radWindow=_c3;
if(_c4.contentWindow!=null){
_c4.contentWindow.radWindow=_c3;
}
}
catch(e){
}
},_getFullSkinName:function(){
return "RadWindow RadWindow_"+this._skin+" rwNormalWindow rwTransparentWindow";
},_configureMinimizeButton:function(_c5){
var loc=this._getLocalization();
var _c7=(true==_c5)?loc["Restore"]:loc["Minimize"];
var _c8=(true==_c5)?this.restore:this.minimize;
this._registerTitlebarHandlersButton("Minimize",_c7,_c8);
},_configureMaximizeButton:function(_c9){
var loc=this._getLocalization();
var _cb=(true==_c9)?loc["Restore"]:loc["Maximize"];
var _cc=(true==_c9)?this.restore:this.maximize;
this._registerTitlebarHandlersButton("Maximize",_cb,_cc);
},_registerTitlebarHandlersButton:function(_cd,_ce,_cf){
var _d0=this._getTitleCommandButton(_cd);
if(_d0){
var loc=this._getLocalization();
_d0.setAttribute("title",_ce);
_d0.innerHTML=_ce;
$clearHandlers(_d0);
$addHandlers(_d0,{"click":_cf},this);
$addHandler(_d0,"dblclick",this._cancelEvent);
$addHandler(_d0,"mousedown",this._cancelEvent);
}
},isCloned:function(){
return this._isCloned;
},isBehaviorEnabled:function(_d2){
return _d2&this._behaviors?true:false;
},isInitialBehaviorEnabled:function(_d3){
return _d3&this._initialBehaviors?true:false;
},setVisible:function(_d4){
if(this._popupBehavior){
if(_d4){
this._popupBehavior.show();
}else{
this._popupBehavior.hide();
}
}
},isVisible:function(){
return this._popupVisible;
},isModal:function(){
return this._modal;
},isActive:function(){
return (this._popupElement&&!Sys.UI.DomElement.containsCssClass(this._popupElement,"rwInactiveWindow"));
},isPinned:function(){
var _d5=this._getTitleCommandButton("Pin");
return (_d5&&Sys.UI.DomElement.containsCssClass(_d5,"on"));
},isClosed:function(){
return (!this.isVisible());
},isMinimized:function(){
return (this._popupElement&&Sys.UI.DomElement.containsCssClass(this._popupElement,"rwMinimizedWindow"));
},isMaximized:function(){
return (this._popupElement&&Sys.UI.DomElement.containsCssClass(this._popupElement,"rwMaximizedWindow"));
},_moveToMinimizeZone:function(){
var _d6=$get(this.get_minimizeZoneID());
if(_d6){
if(this.isPinned()){
this._isPinned=true;
this.togglePin();
}
var _d7=this._popupElement;
if(_d7.parentNode!=_d6){
_d7.parentNode.removeChild(_d7);
_d6.appendChild(_d7);
this.setVisible(true);
_d7.style.position="static";
if(this.isIE){
_d7.style.display="inline";
}else{
_d7.style.cssFloat="left";
}
}
}
},_moveToDocument:function(){
var _d8=this._popupElement;
_d8.parentNode.removeChild(_d8);
_d8.style.position="absolute";
if(this.isIE){
_d8.style.display="";
}else{
_d8.style.cssFloat="";
}
this._addWindowToDocument();
if(this._isPinned){
this._isPinned=false;
this.togglePin();
}
},minimize:function(){
if(!this.isCreated()){
return;
}
var _d9=this.onCommand("Minimize");
if(!_d9){
return;
}
if(this.isMaximized()){
this._restoreBounds();
}
var _da=this._popupElement;
$telerik.removeCssClasses(_da,["rwNormalWindow","rwMaximizedWindow"]);
Sys.UI.DomElement.addCssClass(_da,"rwMinimizedWindow");
var _db=_da._hideWindowedElementsIFrame;
if(_db){
Sys.UI.DomElement.addCssClass(_db,"rwMinimizedWindowOverlay_"+this._skin);
}
this._configureMinimizeButton(true);
this._enablePageScrolling(true);
if(this.get_minimizeZoneID()){
this._moveToMinimizeZone();
}
},restore:function(){
if(!this.isCreated()||this.isClosed()){
return;
}
var _dc=this.onCommand("Restore");
if(!_dc){
return;
}
this._configureMinimizeButton();
this._configureMaximizeButton();
if(this.isMinimized()&&this.get_minimizeZoneID()){
this._moveToDocument();
}
this._normalizeWindowRootCss();
this._enablePageScrolling(true);
this._restoreBounds();
this.setVisible(true);
if(this._restoreZindex){
this._popupElement.style.zIndex=this._restoreZindex;
this._restoreZindex=null;
}
this.setVisible(true);
this.setActive(true);
},maximize:function(){
if(!this.isCreated()){
return;
}
var _dd=this.onCommand("Maximize");
if(!_dd){
return;
}
this._storeBounds();
if(this.isMinimized()&&this.get_minimizeZoneID()){
this._moveToDocument();
}
var _de=this._popupElement;
$telerik.removeCssClasses(_de,["rwNormalWindow","rwMinimizedWindow"]);
Sys.UI.DomElement.addCssClass(_de,"rwMaximizedWindow");
this._configureMaximizeButton(true);
this._configureMinimizeButton();
this._maintainMaximizedSize();
this._maintainMaximizedSize();
var _df=_de._hideWindowedElementsIFrame;
if(_df){
$telerik.removeCssClasses(_df,["rwMinimizedWindowOverlay_"+this._skin]);
this._popupBehavior._handleElementResize();
}
if(!this.isActive()){
this.setActive(true);
}
if(!this._getRestrictionZoneBounds()){
var _e0=_de.style.zIndex;
if(_e0){
this._restoreZindex=_e0;
}
_de.style.zIndex=100000;
}
},setActive:function(_e1){
var _e2=this._popupElement;
if(!_e1){
Sys.UI.DomElement.addCssClass(_e2,"rwInactiveWindow");
}else{
if(!this.isMaximized()){
var _e3=parseInt(_e2.style.zIndex);
var _e4=Telerik.Web.UI.RadWindowUtils.get_newZindex(_e3);
_e2.style.zIndex=""+_e4;
}
this._getWindowController().set_activeWindow(this);
this.raiseEvent("activate",new Sys.EventArgs());
if(this.isActive()){
return;
}
$telerik.removeCssClasses(_e2,["rwInactiveWindow"]);
}
},togglePin:function(){
if(!this.isCreated()){
return;
}
var _e5=this.onCommand("Pin");
if(!_e5){
return;
}
var _e6=this._getTitleCommandButton("Pin");
var loc=this._getLocalization();
var _e8=this.isPinned();
var _e9=_e8?loc["PinOn"]:loc["PinOff"];
if(_e6){
Sys.UI.DomElement.toggleCssClass(_e6,"on");
}
this._registerTitlebarHandlersButton("Pin",_e9,this.togglePin);
Telerik.Web.UI.RadWindowUtils.setPinned(!_e8,this);
},reload:function(){
if(!this.isCreated()){
return;
}
var _ea=this.onCommand("Reload");
if(!_ea){
return;
}
if(!this._iframe){
return;
}
this._onWindowUrlChanging();
try{
this._iframe.contentWindow.location.reload();
}
catch(e){
this._onWindowUrlChanged();
}
},_normalizeWindowRootCss:function(){
var _eb=this._popupElement;
if(_eb){
$telerik.removeCssClasses(_eb,["rwMinimizedWindow","rwMaximizedWindow"]);
Sys.UI.DomElement.addCssClass(_eb,"rwNormalWindow");
var _ec=_eb._hideWindowedElementsIFrame;
if(_ec){
$telerik.removeCssClasses(_ec,["rwMinimizedWindowOverlay_"+this._skin]);
}
}
},close:function(_ed){
if(this.isClosed()){
return;
}
var _ee=new Sys.CancelEventArgs();
this.raiseEvent("beforeClose",_ee);
if(_ee.get_cancel()){
return;
}
this.hide();
var arg=new Sys.EventArgs();
arg._argument=(_ed&&!(_ed instanceof Sys.UI.DomEvent))?_ed:null;
arg.get_argument=function(){
return this._argument;
};
this.raiseEvent("close",arg);
this._enablePageScrolling(true);
this._normalizeWindowRootCss();
if(_ed instanceof Sys.UI.DomEvent){
_ed=null;
}
this._invokeDialogCallBackFunction(_ed);
if(this._destroyOnClose){
this.dispose();
}
},_invokeDialogCallBackFunction:function(_f0){
var _f1=this.get_clientCallBackFunction();
if(_f1){
if("string"==typeof (_f1)){
_f1=eval(_f1);
}
if("function"==typeof (_f1)){
_f1(this,_f0);
}
}
},onCommand:function(_f2){
var _f3=new Sys.CancelEventArgs();
_f3._commandName=_f2;
_f3.get_commandName=function(){
return this._commandName;
};
this.raise_command(_f3);
if(_f3.get_cancel()){
return false;
}
return true;
},setUrl:function(url){
this._createUI();
this._navigateUrl=url;
var _f5=url;
if(this._reloadOnShow){
_f5=this._getReloadOnShowUrl(_f5);
}
this._iframe.src=_f5;
this._onWindowUrlChanging();
if(!this._loaded){
this._registerIframeLoadHandler(true);
}
this._loaded=true;
},_registerChildPageHandlers:function(_f6){
var _f7=null;
try{
_f7=this._iframe.contentWindow.document;
if(_f7.domain!=document.domain){
return;
}
}
catch(e){
return;
}
if(null==_f7){
return;
}
if(_f6){
this._onChildPageUnloadDelegate=Function.createDelegate(this,this._onChildPageUnload);
if(this.isIE){
_f7.onunload=this._onChildPageUnloadDelegate;
}else{
this._iframe.contentWindow.onunload=this._onChildPageUnloadDelegate;
}
this._onChildPageClickDelegate=Function.createDelegate(this,this._onChildPageClick);
$telerik.addExternalHandler(_f7,"click",this._onChildPageClickDelegate);
}else{
if(this._onChildPageClickDelegate){
$telerik.removeExternalHandler(_f7,"click",this._onChildPageClickDelegate);
this._onChildPageClickDelegate=null;
}
}
},_onChildPageUnload:function(e){
this._registerChildPageHandlers(false);
},_onChildPageClick:function(e){
if(!this.isVisible()||this.isClosed()){
return;
}
var src=e.target?e.target:e.srcElement;
if(src){
if(src.tagName=="INPUT"&&src.type=="button"){
return;
}else{
if(src.tagName=="BUTTON"||src.tagName=="A"){
return;
}
}
}
this.setActive(true);
},_onIframeLoad:function(){
this._onWindowUrlChanged();
this._registerChildPageHandlers(true);
this.raiseEvent("pageLoad",new Sys.EventArgs());
if(this.get_autoSize()){
this.autoSize();
}
},_onWindowUrlChanging:function(){
var _fb=$telerik.isRightToLeft(this._iframe);
if(this._showContentDuringLoad||_fb){
var _fc=this._getStatusMessageElement();
if(_fc){
Sys.UI.DomElement.addCssClass(_fc,"rwLoading");
}
}else{
var _fd=this._iframe.style;
_fd.position="absolute";
_fd.top="-10000px";
_fd.left="-10000px";
var td=this._iframe.parentNode;
Sys.UI.DomElement.addCssClass(td,"rwLoading");
}
},_onWindowUrlChanged:function(){
var _ff=this._getStatusMessageElement();
var _100=$telerik.isRightToLeft(this._iframe);
if(this._showContentDuringLoad||_100){
if(_ff){
Sys.UI.DomElement.removeCssClass(_ff,"rwLoading");
}
}else{
this._iframe.style.position="";
var td=this._iframe.parentNode;
Sys.UI.DomElement.removeCssClass(td,"rwLoading");
}
if(_ff){
this.set_status(this._navigateUrl);
}
try{
if(this._iframe.contentWindow.document.title){
this.set_title(this._iframe.contentWindow.document.title);
}
}
catch(e){
}
},_updatePopupZindex:function(){
if(this._popupBehavior){
if(this.isVisible()){
this._popupBehavior.show();
}
}
},get_zindex:function(){
if(this._popupElement){
return this._popupElement.style.zIndex;
}else{
return -1;
}
},get_browserWindow:function(){
return this._browserWindow;
},get_contentFrame:function(){
return this._iframe;
},get_minimizeZoneID:function(){
return this._minimizeZoneID;
},set_minimizeZoneID:function(_102){
if(this._minimizeZoneID!=_102){
this._minimizeZoneID=_102;
}
},get_restrictionZoneID:function(){
return this._restrictionZoneID;
},set_restrictionZoneID:function(_103){
if(this._restrictionZoneID!=_103){
this._restrictionZoneID=_103;
}
},get_minimizeIconUrl:function(){
return this._minimizeIconUrl;
},set_minimizeIconUrl:function(_104){
if(this._minimizeIconUrl!=_104){
this._minimizeIconUrl=_104;
}
},get_iconUrl:function(){
return this._iconUrl;
},set_iconUrl:function(_105){
if(this._iconUrl!=_105){
this._iconUrl=_105;
}
},get_clientCallBackFunction:function(){
return this._clientCallBackFunction;
},set_clientCallBackFunction:function(_106){
if(this._clientCallBackFunction!=_106){
this._clientCallBackFunction=_106;
}
},get_navigateUrl:function(){
return this._navigateUrl;
},set_navigateUrl:function(_107){
if(this._navigateUrl!=_107){
this._navigateUrl=_107;
}
},get_targetControl:function(){
return this._openerElement;
},set_targetControl:function(_108){
if(this._openerElement!=_108){
this._openerElement=_108;
}
},get_name:function(){
return this._name;
},set_name:function(_109){
if(this._name!=_109){
this._name=_109;
}
},get_formID:function(){
return this._formID;
},set_formID:function(_10a){
if(this._formID!=_10a){
this._formID=_10a;
}
},get_offsetElementID:function(){
return this._offsetElementID;
},set_offsetElementID:function(_10b){
if(this._offsetElementID!=_10b){
this._offsetElementID=_10b;
}
if(this.isVisible()){
this._deleteStoredBounds();
this._offsetSet=false;
this._show();
}
},get_openerElementID:function(){
return this._openerElementID;
},set_openerElementID:function(_10c){
if(this._openerElementID!=_10c){
if(this._openerElement){
this._registerOpenerElementHandler(this._openerElement,false);
this._openerElement=null;
}
this._openerElementID=_10c;
if(this._openerElementID){
this._openerElement=$get(this._openerElementID);
}
if(this._openerElement){
this._registerOpenerElementHandler(this._openerElement,true);
}
}
},get_left:function(){
return this._left;
},set_left:function(_10d){
if(this._left!=_10d){
this._left=parseInt(_10d);
}
},get_top:function(){
return this._top;
},set_top:function(_10e){
if(this._top!=_10e){
this._top=parseInt(_10e);
}
},get_title:function(){
return this._title;
},set_title:function(_10f){
if(this._title!=_10f){
this._title=_10f;
}
if(null==this._titleElement){
return;
}
this._titleElement.innerHTML=this._title;
this._updateTitleWidth();
},get_width:function(){
return parseInt(this._width);
},_fixSizeValue:function(_110){
_110=""+_110;
if(-1==_110.indexOf("px")){
_110=parseInt(_110);
if(!isNaN(_110)){
_110=_110+"px";
}else{
_110="";
}
}
return _110;
},set_width:function(_111){
if(null==_111){
return false;
}
if(this.isMaximized()){
return false;
}
_111=this._fixSizeValue(_111);
var _112=this._popupElement;
if(_112){
var _113=$telerik.getBounds(_112);
var _114=parseInt(_111);
if(isNaN(_114)){
_114=_113.width;
}
var _115=this._checkRestrictionZoneBounds(null,new Sys.UI.Bounds(_113.x,_113.y,_114,_113.height));
if(!_115){
return false;
}
}
if(this._width!=_111){
this._width=_111;
}
if(_112){
this._deleteStoredBounds();
_112.style.width=this._width;
this._updatePopupZindex();
}
return true;
},get_height:function(){
return parseInt(this._height);
},set_height:function(_116){
if(null==_116){
return false;
}
if(this.isMaximized()){
return false;
}
_116=this._fixSizeValue(_116);
var _117=this._popupElement;
if(_117){
var _118=$telerik.getBounds(_117);
var _119=this._checkRestrictionZoneBounds(null,new Sys.UI.Bounds(_118.x,_118.y,_118.width,parseInt(_116)));
if(!_119){
return false;
}
}
if(this._height!=_116){
this._height=_116;
}
if(_117){
this._deleteStoredBounds();
this._updateWindowSize(this._height);
this._updatePopupZindex();
}
return true;
},_updateWindowSize:function(_11a,_11b){
var _11c=this._tableElement;
var _11d=_11a?_11a:_11c.style.height;
if(true==_11b){
_11d=_11c.offsetHeight+"px";
}
if(parseInt(_11d)==0){
return;
}
_11c.style.height=_11d;
this._fixIeHeight(_11c,_11d);
_11c.parentNode.style.height=_11d;
},get_initialBehaviors:function(){
return this._initialBehaviors;
},set_initialBehaviors:function(_11e){
if(this._initialBehaviors!=_11e){
this._initialBehaviors=_11e;
}
},get_behaviors:function(){
return this._behaviors;
},set_behaviors:function(_11f){
if(this._behaviors!=_11f){
this._behaviors=_11f;
}
if(null==this._titlebarElement){
return;
}
this._enableMoveResize(false);
this._enableMoveResize(true);
if(this._buttonsArray&&this._buttonsArray.length>0){
var len=this._buttonsArray.length;
for(var i=0;i<len;i++){
var _122=this._buttonsArray[i];
$clearHandlers(_122);
}
this._buttonsArray=[];
var _123=this._getTitleCommandButtonsHolder();
_123.innerHTML="";
}
if(Telerik.Web.UI.WindowBehaviors.None==this._behaviors){
return;
}else{
var loc=this._getLocalization();
var _125=Telerik.Web.UI.WindowBehaviors;
var _126=[[this.isBehaviorEnabled(_125.Pin),"rwPinButton",loc["PinOn"],this.togglePin],[this.isBehaviorEnabled(_125.Reload),"rwReloadButton",loc["Reload"],this.reload],[this.isBehaviorEnabled(_125.Minimize),"rwMinimizeButton",loc["Minimize"],this.minimize],[this.isBehaviorEnabled(_125.Maximize),"rwMaximizeButton",loc["Maximize"],this.maximize],[this.isBehaviorEnabled(_125.Close),"rwCloseButton",loc["Close"],this.close]];
for(var i=0;i<_126.length;i++){
var info=_126[i];
if(!info[0]){
continue;
}
var li=document.createElement("LI");
var _129=document.createElement("A");
_129.href="javascript:void(0);";
_129.className=info[1];
_129.setAttribute("title",info[2]);
var _12a=document.createElement("SPAN");
_12a.innerHTML=info[2];
_129.appendChild(_12a);
$addHandlers(_129,{"click":info[3],"dblclick":this._cancelEvent,"mousedown":this._cancelEvent},this);
$addHandler(_129,"click",this._cancelEvent);
li.appendChild(_129);
this._buttonsElement.appendChild(li);
this._buttonsArray[this._buttonsArray.length]=_129;
}
}
},get_modal:function(){
return this._modal;
},set_modal:function(_12b){
if(this._modal!=_12b){
this._modal=_12b;
}
this._makeModal(this._modal);
if(this.isVisible()){
this._afterShow();
}
},get_destroyOnClose:function(){
return this._destroyOnClose;
},set_destroyOnClose:function(_12c){
if(this._destroyOnClose!=_12c){
this._destroyOnClose=_12c;
}
},get_reloadOnShow:function(){
return this._reloadOnShow;
},set_reloadOnShow:function(_12d){
if(this._reloadOnShow!=_12d){
this._reloadOnShow=_12d;
}
},get_showContentDuringLoad:function(){
return this._showContentDuringLoad;
},set_showContentDuringLoad:function(_12e){
if(this._showContentDuringLoad!=_12e){
this._showContentDuringLoad=_12e;
}
},get_visibleOnPageLoad:function(){
return this._visibleOnPageLoad;
},set_visibleOnPageLoad:function(_12f){
if(this._visibleOnPageLoad!=_12f){
this._visibleOnPageLoad=_12f;
}
},get_visibleTitlebar:function(){
return this._visibleTitlebar;
},set_visibleTitlebar:function(_130){
if(this._visibleTitlebar!=_130){
this._visibleTitlebar=_130;
}
if(this._titlebarElement){
this._titlebarElement.style.display=_130?"":"none";
}
},get_visibleStatusbar:function(){
return this._visibleStatusbar;
},set_visibleStatusbar:function(_131){
if(this._visibleStatusbar!=_131){
this._visibleStatusbar=_131;
}
if(this._statusCell){
this._statusCell.parentNode.style.display=_131?"":"none";
}
},get_animation:function(){
return this._animation;
},set_animation:function(_132){
if(this._animation!=_132){
this._animation=_132;
}
},get_overlay:function(){
return this._overlay;
},set_overlay:function(_133){
this._overlay=_133;
if(this._popupBehavior){
this._popupBehavior.set_overlay(this._overlay);
}
if(this.isVisible()){
this._reSetWindowPosition();
}
},get_keepInScreenBounds:function(){
return this._keepInScreenBounds;
},set_keepInScreenBounds:function(_134){
this._keepInScreenBounds=_134;
if(this._popupBehavior){
this._popupBehavior.set_keepInScreenBounds(this._keepInScreenBounds);
}
if(this.isVisible()){
this._reSetWindowPosition();
}
},get_autoSize:function(){
return this._autoSize;
},set_autoSize:function(_135){
if(this._autoSize!=_135){
this._autoSize=_135;
}
},get_skin:function(){
return this._skin;
},set_skin:function(_136){
if(_136&&this._skin!=_136){
this._skin=_136;
}
},get_popupElement:function(){
return this._popupElement;
},get_windowManager:function(){
return this._windowManager;
},set_windowManager:function(_137){
this._windowManager=_137;
},set_status:function(_138){
var _139=this._getStatusMessageElement();
if(_139){
window.setTimeout(function(){
_139.value=_138;
},0);
}
},get_status:function(){
var _13a=this._getStatusMessageElement();
if(_13a){
return _13a.value;
}
},add_command:function(_13b){
this.get_events().addHandler("command",_13b);
},remove_command:function(_13c){
this.get_events().removeHandler("command",_13c);
},raise_command:function(args){
this.raiseEvent("command",args);
},add_dragStart:function(_13e){
this.get_events().addHandler("dragStart",_13e);
},remove_dragStart:function(_13f){
this.get_events().removeHandler("dragStart",_13f);
},add_dragEnd:function(_140){
this.get_events().addHandler("dragEnd",_140);
},remove_dragEnd:function(_141){
this.get_events().removeHandler("dragEnd",_141);
},add_activate:function(_142){
this.get_events().addHandler("activate",_142);
},remove_activate:function(_143){
this.get_events().removeHandler("activate",_143);
},add_beforeShow:function(_144){
this.get_events().addHandler("beforeShow",_144);
},remove_beforeShow:function(_145){
this.get_events().removeHandler("beforeShow",_145);
},add_show:function(_146){
this.get_events().addHandler("show",_146);
},remove_show:function(_147){
this.get_events().removeHandler("show",_147);
},add_pageLoad:function(_148){
this.get_events().addHandler("pageLoad",_148);
},remove_pageLoad:function(_149){
this.get_events().removeHandler("pageLoad",_149);
},add_close:function(_14a){
this.get_events().addHandler("close",_14a);
},remove_close:function(_14b){
this.get_events().removeHandler("close",_14b);
},add_beforeClose:function(_14c){
this.get_events().addHandler("beforeClose",_14c);
},remove_beforeClose:function(_14d){
this.get_events().removeHandler("beforeClose",_14d);
},add_resize:function(_14e){
this.get_events().addHandler("resize",_14e);
},remove_resize:function(_14f){
this.get_events().removeHandler("resize",_14f);
},saveClientState:function(){
var _150=["position"];
var _151={};
for(var i=0;i<_150.length;i++){
_151[_150[i]]=this["get_"+_150[i]]();
}
return Sys.Serialization.JavaScriptSerializer.serialize(_151);
}};
Telerik.Web.UI.RadWindow.registerClass("Telerik.Web.UI.RadWindow",Telerik.Web.UI.RadWebControl);
Telerik.Web.UI.WindowAnimation=function(){
throw Error.invalidOperation();
};
Telerik.Web.UI.WindowAnimation.prototype={None:0,Resize:1,Fade:2,Slide:4,FlyIn:8};
Telerik.Web.UI.WindowAnimation.registerEnum("Telerik.Web.UI.WindowAnimation",false);
Telerik.Web.UI.WindowMinimizeMode=function(){
throw Error.invalidOperation();
};
Telerik.Web.UI.WindowMinimizeMode.prototype={SameLocation:1,MinimizeZone:2,Default:1};
Telerik.Web.UI.WindowMinimizeMode.registerEnum("Telerik.Web.UI.WindowMinimizeMode",false);
Telerik.Web.UI.WindowBehaviors=function(){
throw Error.invalidOperation();
};
Telerik.Web.UI.WindowBehaviors.prototype={None:0,Resize:1,Minimize:2,Close:4,Pin:8,Maximize:16,Move:32,Reload:64,Default:(1+2+4+8+16+32+64)};
Telerik.Web.UI.WindowBehaviors.registerEnum("Telerik.Web.UI.WindowBehaviors",false);
Telerik.Web.UI.RadWindowUtils._zIndex=3000;
Telerik.Web.UI.RadWindowUtils.get_newZindex=function(_153){
_153=parseInt(_153);
if(null==_153||isNaN(_153)){
_153=0;
}
if(Telerik.Web.UI.RadWindowUtils._zIndex<_153){
Telerik.Web.UI.RadWindowUtils._zIndex=_153;
}
Telerik.Web.UI.RadWindowUtils._zIndex++;
return Telerik.Web.UI.RadWindowUtils._zIndex;
};
Telerik.Web.UI.RadWindowUtils._pinnedList={};
Telerik.Web.UI.RadWindowUtils.setPinned=function(_154,oWnd){
if(_154){
var _156=oWnd._getViewportBounds();
var _157=oWnd._getCurrentBounds();
oWnd.LeftOffset=_157.x-_156.scrollLeft;
oWnd.TopOffset=_157.y-_156.scrollTop;
var _158=window.setInterval(function(){
Telerik.Web.UI.RadWindowUtils._updatePinnedElementPosition(oWnd);
},100);
Telerik.Web.UI.RadWindowUtils._pinnedList[_158]=oWnd;
}else{
var _159=null;
var _15a=Telerik.Web.UI.RadWindowUtils._pinnedList;
for(var name in _15a){
if(_15a[name]==oWnd){
_159=name;
break;
}
}
if(null!=_159){
window.clearInterval(_159);
Telerik.Web.UI.RadWindowUtils._pinnedList[_159]=null;
}
oWnd.TopOffset=null;
oWnd.LeftOffset=null;
}
};
Telerik.Web.UI.RadWindowUtils._updatePinnedElementPosition=function(oWnd){
if(oWnd.isMaximized()||!oWnd.isVisible()){
return;
}
var _15d=oWnd._getViewportBounds();
var _15e=oWnd._getCurrentBounds();
var left=(oWnd.LeftOffset!=null)?oWnd.LeftOffset+_15d.scrollLeft:_15e.x;
var top=(oWnd.TopOffset!=null)?oWnd.TopOffset+_15d.scrollTop:_15e.y;
oWnd.moveTo(left,top);
};


if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();