﻿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.hideCurrentWindowUnconditionally();
}
});
$addHandler(document.body,"keydown",_1);
Sys.Application.add_unload(function(){
$removeHandler(document.body,"keydown",_1);
});
},hideCurrentWindowUnconditionally:function(){
if(this._activeWindow!=null){
this._activeWindow.hide();
}
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.Window");
Telerik.Web.UI.RadWindow=function(_8){
Telerik.Web.UI.RadWindow.initializeBase(this,[_8]);
this._eventNames=["resize","activate","dragStart","dragEnd","show","pageLoad","close","command"];
this._bodyElement=(Telerik.Web.Browser.renderMode==Telerik.Web.Browser.StandardsMode)?document.documentElement:document.body;
this._openerElement=null;
this._offsetElement=null;
this._popupElement=null;
this._tableElement=null;
this._contentElement=null;
this._contentCell=null;
this._titleElement=null;
this._titleCell=null;
this._titlebarElement=null;
this._statusCell=null;
this._statusMessageElement=null;
this._iframe=null;
this._buttonsElement=null;
this._buttonsArray=[];
this.isIE=(Telerik.Web.Browser.agent==Telerik.Web.Browser.InternetExplorer);
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._clientCallBackFunction=null;
this._reloadOnShow=false;
this._visibleOnPageLoad=false;
this._destroyOnClose=false;
this._visibleTitlebar=true;
this._visibleStatusbar=true;
this._showContentDuringLoad=true;
this._modal=false;
this._iconUrl=null;
this._minimizeIconUrl=null;
this._minimizeZoneID=null;
this._animation=Telerik.Web.UI.WindowAnimation.None;
this._windowAnimation=null;
this._onMouseDownDelegate=null;
this._onClickDelegate=null;
this._onTitlebarDblclickDelegate=null;
this._onTitlebarClickDelegate=null;
this._onWindowResizeDelegate=null;
this._onIframeLoadDelegate=null;
this._onChildPageUnloadDelegate=null;
this._onChildPageClickDelegate=null;
this._onModalShowHandler=null;
this._onModalCloseHandler=null;
this._loaded=false;
this._isCloned=false;
this._restoreRect=null;
this._popupBehavior=null;
this._popupVisible=false;
this._windowManager;
this.GetWindowManager=this.get_windowManager;
this.BrowserWindow=window;
this.GetContentFrame=this.get_contentFrame;
this.GetLeftPosition=function(){
this.getWindowBounds().x;
};
this.GetTopPosition=function(){
this.getWindowBounds().y;
};
this.GetTitlebar=function(){
return this._titleCell;
};
this.GetStatusbar=function(){
return this._statusCell;
};
this.SetOpenerElementId=this.set_openerElementID;
this.SetStatus=this.set_status;
this.GetStatus=this.get_status;
this.SetModal=this.set_modal;
this.SetWidth=this.set_width;
this.SetHeight=this.set_height;
this.GetWidth=this.get_width;
this.GetHeight=this.get_height;
this.SetOffsetElementId=this.set_offsetElementID;
this.SetTitle=this.set_title;
this.MoveTo=this.moveTo;
this.Center=this.center;
this.SetVisible=this.setVisible;
this.SetSize=this.setSize;
this.Show=this.show;
this.Hide=this.hide;
this.GetUrl=this.get_navigateUrl;
this.SetUrl=this.setUrl;
this.Reload=this.reload;
this.SetActive=this.setActive;
this.Minimize=this.minimize;
this.Restore=this.restore;
this.Maximize=this.maximize;
this.Close=this.close;
this.TogglePin=this.togglePin;
this.IsMaximized=this.isMaximized;
this.IsMinimized=this.isMinimized;
this.IsModal=this.isModal;
this.IsClosed=this.isClosed;
this.IsPinned=this.isPinned;
this.IsVisible=this.isVisible;
this.IsActive=this.isActive;
this.IsBehaviorEnabled=this.isBehaviorEnabled;
};
Telerik.Web.UI.RadWindow.prototype={_getLocalization:function(){
return {"Close":"Close","Minimize":"Minimize","Maximize":"Maximize","Reload":"Reload","PinOn":"Pin on","PinOff":"Pin off","Restore":"Restore"};
},_registerIframeLoadHandler:function(_9){
if(!this._iframe){
return;
}
if(_9){
this._onIframeLoadDelegate=Function.createDelegate(this,this._onIframeLoad);
$addHandler(this._iframe,"load",this._onIframeLoadDelegate);
}else{
if(this._onIframeLoadDelegate){
$removeHandler(this._iframe,"load",this._onIframeLoadDelegate);
this._onIframeLoadDelegate=null;
}
}
},_registerWindowResizeHandler:function(_a){
if(_a){
this._onWindowResizeDelegate=Function.createDelegate(this,this._maintainMaximizedSize);
$addHandler(window,"resize",this._onWindowResizeDelegate);
}else{
if(this._onWindowResizeDelegate){
$removeHandler(window,"resize",this._onWindowResizeDelegate);
this._onWindowResizeDelegate=null;
}
}
},_registerOpenerElementHandler:function(_b,_c){
if(!_b){
return;
}
if(true==_c){
this._onClickDelegate=Function.createDelegate(this,this._onClick);
$addHandler(_b,"click",this._onClickDelegate);
}else{
var _d=$removeHandler(_b,"click",this._onClickDelegate);
this._onClickDelegate=null;
}
},_registerTitlebarHandlers:function(_e){
var _f=this._titleCell;
if(_e){
this._onTitlebarDblclickDelegate=Function.createDelegate(this,function(){
if(this.isMinimized()||this.isMaximized()){
this.restore();
}else{
this.maximize();
}
});
this._onTitlebarClickDelegate=Function.createDelegate(this,function(){
this.setActive(true);
});
$addHandler(_f,"dblclick",this._onTitlebarDblclickDelegate);
$addHandler(_f,"click",this._onTitlebarClickDelegate);
}else{
if(this._titleCell){
if(this._onTitlebarDblclickDelegate){
$removeHandler(_f,"dblclick",this._onTitlebarDblclickDelegate);
this._onTitlebarDblclickDelegate=null;
}
if(this._onTitlebarClickDelegate){
$removeHandler(_f,"click",this._onTitlebarClickDelegate);
this._onTitlebarClickDelegate=null;
}
}
}
},_makeModal:function(_10){
if(this._onModalShowHandler){
this.remove_show(this._onModalShowHandler);
this._onModalShowHandler=null;
}
if(this._onModalCloseHandler){
this.remove_close(this._onModalCloseHandler);
this._onModalCloseHandler=null;
}
if(this._modalExtender){
this._modalExtender.dispose();
this._modalExtender=null;
}
if(!_10){
return;
}
if(typeof (Telerik.Web.UI.RadWindowManager)!="undefined"&&Telerik.Web.UI.RadWindowManager.isInstanceOfType(this)){
return;
}
this._onModalShowHandler=function(_11){
if(!_11._modalExtender){
_11._modalExtender=new Telerik.Web.UI.ModalExtender(_11._popupElement);
}
_11._modalExtender.show();
_11.center();
};
this.add_show(this._onModalShowHandler);
this._onModalCloseHandler=function(_12){
window.setTimeout(function(){
if(_12._modalExtender){
_12._modalExtender.hide();
}
},10);
};
this.add_close(this._onModalCloseHandler);
},_makeResizeable:function(_13){
if(this._resizeExtender){
this._resizeExtender.dispose();
this._resizeExtender=null;
}
if(!_13){
return;
}
if(!this._popupElement){
return;
}
if(!this.isBehaviorEnabled(Telerik.Web.UI.WindowBehaviors.Resize)){
return;
}
var _14=this._tableElement.rows;
var _15={nw:_14[0].cells[0],n:this._topResizer,ne:_14[0].cells[2],w:[_14[1].cells[0],_14[2].cells[0]],e:[_14[1].cells[2],_14[2].cells[2]],sw:_14[3].cells[0],s:_14[3].cells[1],se:[_14[3].cells[2],this._bottomResizer]};
this._resizeExtender=new Telerik.Web.UI.ResizeExtender(this,this._popupElement,_15,this._tableElement);
},onResizeEnd:function(){
var _16=this._getCurrentBounds();
this.moveTo(_16.x,_16.y);
this.raiseEvent("resize",new Sys.EventArgs());
},_setIframesVisible:function(_17){
var _18=document.getElementsByTagName("IFRAME");
for(var i=0;i<_18.length;i++){
_18[i].style.visibility=_17?"":"hidden";
}
},_makeMoveable:function(_1a){
var _1b=this._titleCell;
if(_1a&&this.isBehaviorEnabled(Telerik.Web.UI.WindowBehaviors.Move)){
this._onMouseDownDelegate=Function.createDelegate(this,this._mouseDownHandler);
$addHandler(_1b,"mousedown",this._onMouseDownDelegate);
}else{
if(_1b&&this._onMouseDownDelegate){
$removeHandler(_1b,"mousedown",this._onMouseDownDelegate);
this._onMouseDownDelegate=null;
}
}
},_mouseDownHandler:function(e){
window._event=e;
var _1d=(0>Array.indexOf(["input","button","select","textarea","label","a"],e.target.tagName.toLowerCase()));
if(_1d){
this._cancelEvent(e);
var _1e=this._popupElement;
_1e.removeAttribute("unselectable");
this._startDragDrop(_1e);
}
},_startDragDrop:function(_1f){
if(this.isPinned()){
return;
}
var _20=$telerikCommon.getLocationWithScrollOffset(_1f);
Telerik.Web.DomElement.setLocation(_1f,_20);
Telerik.Web.DragDropManager.startDragDrop(this,_1f,null);
},get_dragDataType:function(){
return Telerik.Web.UI.Window.DragDataType;
},getDragData:function(_21){
return this;
},get_dragMode:function(){
return Telerik.Web.DragMode.Move;
},onDragStart:function(){
this._setIframesVisible(false);
this.raiseEvent("dragStart",new Sys.EventArgs());
},onDrag:function(e){
},onDragEnd:function(_23){
this._setIframesVisible(true);
this.raiseEvent("dragEnd",new Sys.EventArgs());
this._storeBounds();
this.setActive(true);
},initialize:function(){
Telerik.Web.UI.RadWindow.callBaseMethod(this,"initialize");
if(this._visibleOnPageLoad){
this.show();
}
this._registerWindowResizeHandler(true);
},dispose:function(){
var _24=this.get_windowManager();
if(_24&&_24.get_preserveClientState()){
_24.saveWindowState(this);
}
if(this._windowAnimation){
this._windowAnimation.dispose();
}
if(this._popupBehavior){
this._popupBehavior.dispose();
this._popupBehavior=null;
}
this._makeMoveable(false);
this._makeResizeable(false);
this._makeModal(false);
this._registerTitlebarHandlers(false);
this._registerWindowResizeHandler(false);
this._registerIframeLoadHandler(false);
if(this._openerElement){
this._registerOpenerElementHandler(this._openerElement,false);
}
this.set_behaviors(Telerik.Web.UI.WindowBehaviors.None);
if(this._iframe){
this._iframe.src="javascript:'<html></html>';";
}
if(this._contentElement){
this._contentElement.innerHTML="";
}
Telerik.Web.UI.RadWindow.callBaseMethod(this,"dispose");
},hide:function(){
this._hide();
return true;
},clone:function(_25,_26){
if(!_25){
alert("Telerik.Web.UI.RadWindow.clone called without providing a name argument");
return;
}
var evs=(_26!=false)?this._getEventsParameter():null;
var _28=this._getPropertiesParameter();
var _29=document.createElement("SPAN");
_29.setAttribute("id",_25);
var wnd=$create(Telerik.Web.UI.RadWindow,_28,evs,null,_29);
wnd.set_name(_25);
wnd._isCloned=true;
return wnd;
},set_contentElement:function(_2b){
this._createUI();
if(this._iframe){
this._iframe.style.display="none";
}
if(_2b.parentNode&&_2b.parentNode.removeChild){
_2b.parentNode.removeChild(_2b);
}
this._contentCell.appendChild(_2b);
_2b.style.display="";
this._contentElement=_2b;
},get_contentElement:function(){
return this._contentElement;
},isCreated:function(){
return this._popupElement!=null;
},show:function(){
var _2c=this.isCreated();
this._createUI();
if(this._navigateUrl&&(!_2c||this._reloadOnShow)){
this.setUrl(this._navigateUrl);
}
if(!_2c&&(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 _2d=$get(this.get_offsetElementID());
if(_2d){
this._offsetElement=_2d;
}
}
this._popupBehavior.set_parentElement(this._bodyElement);
if(this._offsetElement&&!this._offsetSet){
this._popupBehavior.set_parentElement(this._offsetElement);
this._offsetSet=true;
}
this.set_visibleTitlebar(this._visibleTitlebar);
this.set_visibleStatusbar(this._visibleStatusbar);
var _2e=this._getCalculatedPopupBounds();
this._setPopupVisible(_2e.x,_2e.y);
this._popupBehavior.set_parentElement(this._bodyElement);
this._popupVisible=true;
},_hide:function(){
if(this._windowAnimation){
this._windowAnimation.stop();
}
if(this._windowAnimation){
this._windowAnimation.play(true);
}else{
this._afterHide();
}
},_afterHide:function(){
if(!this._popupBehavior){
return;
}
this._popupBehavior.hide(true);
this._popupVisible=false;
this._getWindowController().notifyWindowClosed(this);
this.raiseEvent("close",new Sys.EventArgs());
},_afterShow:function(){
this.setActive(true);
this._storeBounds();
this.raiseEvent("show",new Sys.EventArgs());
},_playAnimation:function(){
var _2f=function(){
var wnd=this.controller;
var _31=wnd._getCalculatedPopupBounds();
wnd._setPopupVisible(_31.x,_31.y);
var _32=Telerik.Web.DomElement.getBounds(wnd._popupElement);
wnd._popupBehavior.hide();
this.set_endBounds(_32);
};
if(!this._windowAnimation){
if(this._animation==Telerik.Web.UI.WindowAnimation.Fade){
this._windowAnimation=new Telerik.Web.UI.Animations.FadeAnimation(this,0.4,null,this._popupElement,null,this._openerElement);
this._windowAnimation.onShowStart=function(){
this.controller._show();
};
}else{
if(this._animation==Telerik.Web.UI.WindowAnimation.Slide){
this._windowAnimation=new Telerik.Web.UI.Animations.SlideAnimation(this,0.2,null,this._popupElement,null,this._openerElement);
this._windowAnimation.onShowStart=_2f;
}else{
if(this._animation==Telerik.Web.UI.WindowAnimation.FlyIn){
this._windowAnimation=new Telerik.Web.UI.Animations.FlyInAnimation(this,null,null,this._popupElement,null,this._openerElement);
this._windowAnimation.onShowStart=_2f;
}else{
if(this._animation==Telerik.Web.UI.WindowAnimation.Resize){
this._windowAnimation=new Telerik.Web.UI.Animations.ResizeAnimation(this,0.2,50,this._popupElement,null,this._openerElement);
this._windowAnimation.onShowStart=_2f;
}
}
}
}
}
if(this._windowAnimation){
this._windowAnimation.onShowEnd=function(){
this.controller._show();
this.controller._afterShow();
};
this._windowAnimation.onHideEnd=function(){
this.controller._afterHide();
};
this._windowAnimation.play();
}
},_onClick:function(e){
this.show();
return this._cancelEvent(e);
},_cancelEvent:function(e){
if(e){
e.returnValue=false;
e.cancelBubble=true;
e.preventDefault();
e.stopPropagation();
}
return false;
},_getWindowController:function(){
return Telerik.Web.UI.RadWindowController.getInstance();
},_getReloadOnShowUrl:function(_35){
var str="rwndrnd="+Math.random();
if(_35.indexOf("?")>-1){
str="&"+str;
}else{
str="?"+str;
}
_35+=str;
return _35;
},_getPropertiesParameter:function(){
if(!this._propertiesParameter){
var _37={};
for(var _38 in Telerik.Web.UI.RadWindow.prototype){
var _39=this[_38];
if(typeof (_39)=="function"&&_38.indexOf("get_")==0){
var _3a=_38.substring(4);
if(null==this["set_"+_3a]){
continue;
}
var _3b=_39.call(this);
if((typeof (_3b)!="boolean")&&(null==_3b||""==_3b)){
continue;
}
_37[_3a]=_3b;
if(_3a=="skin"){
break;
}
}
}
this._propertiesParameter=_37;
}
var _3c=this._cloneObject(this._propertiesParameter);
return _3c;
},_getEventsParameter:function(){
if(!this._eventsParameter){
var _3d={};
var _3e=this.get_events();
var _3f=this._eventNames;
for(var i=0;i<_3f.length;i++){
var _41=_3f[i];
var _42=_3e._getEvent(_41);
if(_42&&typeof (eval(_42)=="function")){
_3d[_41]=eval(_42[0]);
}
}
this._eventsParameter=_3d;
}
return this._eventsParameter;
},_cloneObject:function(_43){
var _44={};
for(var _45 in _43){
_44[_45]=_43[_45];
}
return _44;
},getWindowBounds:function(){
return this._getCalculatedPopupBounds();
},toString:function(){
return "[RadWindow for Prometheus id="+this.get_id()+"]";
},center:function(){
var _46=this._getCentralBounds();
this.moveTo(_46.x,_46.y);
},moveTo:function(x,y){
x=parseInt(x);
y=parseInt(y);
this._setPopupVisible(x,y);
this._storeBounds();
},setSize:function(_49,_4a){
this.set_width(_49);
this.set_height(_4a);
this._storeBounds();
},_maintainMaximizedSize:function(){
if(!this.isMaximized()){
return;
}
var _4b=this._popupElement;
if(!_4b){
return;
}
var _4c=this._getViewportBounds();
_4b.style.top=_4c.scrollTop+"px";
_4b.style.left=_4c.scrollLeft+"px";
this._enablePageScrolling(false);
var _4d=this._tableElement;
_4c=this._getViewportBounds();
_4d.style.height=_4c.height+"px";
this._fixIeHeight(_4d,_4c.height);
},_enablePageScrolling:function(_4e,_4f){
if(_4e){
document.body.style.overflow=_4f?_4f:"";
document.documentElement.style.overflow=_4f?_4f:"";
}else{
document.body.style.overflow="hidden";
document.documentElement.style.overflow="hidden";
}
},_storeBounds:function(){
if(!this.isCreated()){
return;
}
var _50=this._getCurrentBounds();
if(this.isMaximized()){
return false;
}
if(this.isMinimized()){
if(this._restoreRect){
_50.width=this._restoreRect.width;
_50.height=this._restoreRect.height;
}else{
_50.width=this.get_width();
_50.height=this.get_height();
}
}
this._restoreRect=_50;
},_restoreBounds:function(){
if(!this._restoreRect){
return;
}
var _51=this._restoreRect;
this.setSize(_51.width,_51.height);
this.moveTo(_51.x,_51.y);
},_getStoredBounds:function(){
if(this._restoreRect){
return this._restoreRect;
}
},_getCurrentBounds:function(){
var _52=(this._popupElement.style.display=="none")?true:false;
this._popupElement.style.display="";
var _53=Telerik.Web.DomElement.getBounds(this._popupElement);
if(_52){
this._popupElement.style.display="none";
}
return _53;
},_getCentralBounds:function(){
var _54=this._getCurrentBounds();
var _55=this._getViewportBounds();
var x=parseInt((_55.width-_54.width)/2);
var y=parseInt((_55.height-_54.height)/2);
_54.x=x+_55.scrollLeft;
_54.y=y+_55.scrollTop;
return _54;
},_getViewportBounds:function(){
var _58=TelerikCommonScripts.getClientBounds();
var _59=document.documentElement.scrollLeft||document.body.scrollLeft;
var _5a=document.documentElement.scrollTop||document.body.scrollTop;
_58.scrollLeft=_59;
_58.scrollTop=_5a;
return _58;
},_getCalculatedPopupBounds:function(){
var _5b=this._getStoredBounds();
if(_5b){
return _5b;
}
var _5c=this._getCurrentBounds();
var _5d=this._offsetElement;
if(!this._top&&!this._left&&!_5d){
_5c=this._getCentralBounds();
}else{
if(_5d){
_5c.y=0;
_5c.x=0;
}else{
var _5e=this._getViewportBounds();
_5c.x=_5e.scrollLeft;
_5c.y=_5e.scrollTop;
}
var _5f=this._left?this._left:0;
_5c.x+=_5f;
var top=this._top?this._top:0;
_5c.y+=top;
}
return _5c;
},_fixIeHeight:function(_61,_62){
if("CSS1Compat"==document.compatMode){
var _63=(_61.offsetHeight-parseInt(_62));
if(_63>0){
var _64=(parseInt(_61.style.height)-_63);
if(_64>0){
_61.style.height=_64+"px";
}
}
}
},_createUI:function(){
if(!this._popupElement){
var _65=this.get_id();
var _66="RadWindowWrapper_"+_65;
var _67=document.createElement("DIV");
_67.id=_66;
_67.className=this._getFullSkinName();
_67.style.width=this._width;
_67.style.height=this._height;
_67.setAttribute("unselectable","on");
this._popupElement=_67;
var _68=document.createElement("TABLE");
_68.cellSpacing=0;
_68.cellPadding=0;
this._tableElement=_68;
var _69=["corner topleft","titlebar","corner topright","corner bodyleft","windowcontent","corner bodyright","corner bodyleft","statusbar","corner bodyright","corner footerleft","footercenter","corner footerright"];
var _6a=["titlerow","contentrow","statusbarrow","footerrow"];
var _6b=0;
for(var i=0;i<4;i++){
var row=_68.insertRow(-1);
row.className=_6a[i];
for(var j=1;j<=3;j++){
var _6f=row.insertCell(-1);
_6f.innerHTML="&nbsp;";
_6f.className=_69[_6b];
_6b++;
}
}
var _70=_68.rows[0].cells[1];
_70.innerHTML="";
this._titleCell=_70;
var _71=document.createElement("DIV");
_71.className="topresize";
_71.innerHTML="<!-- / -->";
this._topResizer=_71;
this._titleCell.appendChild(this._topResizer);
var _72=document.createElement("TABLE");
_72.align="left";
_72.cellSpacing=0;
_72.cellPadding=0;
_72.insertRow(-1);
var _73=_72.cloneNode(true);
_72.className="titlebarcontrols";
this._titlebarElement=_72;
this._titleCell.appendChild(this._titlebarElement);
var _74=this._getTitleIcon();
var _75=this._titlebarElement.rows[0].insertCell(-1);
_75.appendChild(_74);
var _76=this._getTitleElement();
var _70=this._titlebarElement.rows[0].insertCell(-1);
_70.appendChild(_76);
this.set_title(this._title);
var _77=this._titlebarElement.rows[0].insertCell(-1);
_77.noWrap=true;
_77.style.whiteSpace="nowrap";
_77.appendChild(this._getTitleCommandButtonsHolder());
var _78=_68.rows[1].cells[1];
_78.vAlign="top";
_78.innerHTML="";
this._contentCell=_78;
var _79=this.get_name();
var _7a=(Telerik.Web.Browser.agent==Telerik.Web.Browser.InternetExplorer)?document.createElement("<iframe name='"+_79+"'>"):document.createElement("iframe");
_7a.name=_79;
_7a.src="javascript:'<html></html>';";
_7a.style.width="100%";
_7a.style.height="100%";
_7a.style.border="0px";
_7a.frameBorder="0";
this._iframe=_7a;
this._contentCell.appendChild(this._iframe);
_73.style.width="100%";
this._statusCell=_68.rows[2].cells[1];
this._statusCell.innerHTML="";
this._statusCell.appendChild(_73);
var _7b=_73.rows[0].insertCell(-1);
_7b.style.width="100%";
var _7c=this._getStatusMessageElement();
_7b.appendChild(_7c);
var _7d=_73.rows[0].insertCell(-1);
_7d.style.width="15px";
var _7e=document.createElement("DIV");
_7d.appendChild(_7e);
this._bottomResizer=_7e;
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},null,null,this._popupElement);
}
},_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="controlbuttons";
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 _81=document.createElement("A");
_81.className="windowicon";
this._titleIconElement=_81;
}
return this._titleIconElement;
},_getTitleCommandButton:function(_82){
if(!_82||!this._buttonsArray){
return null;
}
_82=_82.toLowerCase()+"button";
var _83=this._buttonsArray.length;
for(var i=0;i<_83;i++){
var _85=this._buttonsArray[i];
if(_85&&Telerik.Web.DomElement.containsCssClass(_85,_82)){
return _85;
}
}
return null;
},_updateTitleWidth:function(){
if(this._visibleTitlebar){
var _86=this._getTitleElement();
if(!_86){
return;
}
var _87=this._getTitleCommandButtonsHolder();
var _88=_87.offsetWidth;
if(_88>0){
var lis=_87.getElementsByTagName("LI");
if(lis[0]&&lis[0].offsetWidth>0){
_88=lis.length*lis[0].offsetWidth;
}
_87.style.width=_88+"px";
}
var _8a=this._getTitleIcon();
var _8b=_8a.offsetWidth;
if(_8b>0&&_8a.parentNode.tagName=="TD"){
_8a.parentNode.style.width=_8b+"px";
}
}
},_addWindowToDocument:function(){
var _8c=document.getElementById(this._formID);
if(!_8c){
_8c=document.forms[0];
}
_8c.appendChild(this._popupElement);
},_invokeDialogCallBackFunction:function(_8d,_8e){
if(true!=_8e){
this.close();
}
var _8f=this.get_clientCallBackFunction();
if(_8f){
if("string"==typeof (_8f)){
_8f=eval(_8f);
}
if("function"==typeof (_8f)){
_8f(this,_8d);
}
}
},_createBackReference:function(){
var _90=this;
if(!_90.Argument){
_90.Argument={};
}
var _91=this._iframe;
try{
_91.radWindow=_90;
if(_91.contentWindow!=null){
_91.contentWindow.radWindow=_90;
}
}
catch(e){
}
},_getFullSkinName:function(){
return "radwindow radwindow_"+this._skin+" normalwindow transparentwindow";
},_setPopupVisible:function(x,y){
this._popupBehavior.set_x(x);
this._popupBehavior.set_y(y);
this._popupBehavior.show();
if(!this.get_width()){
this._popupElement.style.width="";
}
if(this._firstShow!=true){
this._updateWindowSize(this._height);
this._firstShow=true;
}
this._updateTitleWidth();
},_configureMinimizeButton:function(_94){
var loc=this._getLocalization();
var _96=(true==_94)?loc["Restore"]:loc["Minimize"];
var _97=(true==_94)?this.restore:this.minimize;
this._registerTitlebarHandlersButton("Minimize",_96,_97);
},_configureMaximizeButton:function(_98){
var loc=this._getLocalization();
var _9a=(true==_98)?loc["Restore"]:loc["Maximize"];
var _9b=(true==_98)?this.restore:this.maximize;
this._registerTitlebarHandlersButton("Maximize",_9a,_9b);
},_registerTitlebarHandlersButton:function(_9c,_9d,_9e){
var _9f=this._getTitleCommandButton(_9c);
if(_9f){
var loc=this._getLocalization();
_9f.setAttribute("title",_9d);
_9f.innerHTML=_9d;
$clearHandlers(_9f);
$addHandlers(_9f,{"click":_9e},this);
$addHandler(_9f,"dblclick",this._cancelEvent);
}
},isCloned:function(){
return this._isCloned;
},isBehaviorEnabled:function(_a1){
return _a1&this._behaviors?true:false;
},isInitialBehaviorEnabled:function(_a2){
return _a2&this._initialBehaviors?true:false;
},setVisible:function(_a3){
if(this._popupBehavior){
if(_a3){
this._popupBehavior.show();
}else{
this._popupBehavior.hide();
}
}
},isVisible:function(){
return this._popupVisible;
},isModal:function(){
return this._modal;
},isActive:function(){
return (this._popupElement&&!Telerik.Web.DomElement.containsCssClass(this._popupElement,"inactivewindow"));
},isPinned:function(){
var _a4=this._getTitleCommandButton("Pin");
return (_a4&&Telerik.Web.DomElement.containsCssClass(_a4,"on"));
},isClosed:function(){
return (!this.isVisible());
},isMinimized:function(){
return (this._popupElement&&Telerik.Web.DomElement.containsCssClass(this._popupElement,"minimizedwindow"));
},isMaximized:function(){
return (this._popupElement&&Telerik.Web.DomElement.containsCssClass(this._popupElement,"maximizedwindow"));
},setActive:function(_a5){
var _a6=this._popupElement;
if(!_a5){
Telerik.Web.DomElement.addCssClass(_a6,"inactivewindow");
}else{
var _a7=parseInt(_a6.style.zIndex);
var _a8=Telerik.Web.UI.Window.get_newZindex(_a7);
_a6.style.zIndex=""+_a8;
this._getWindowController().set_activeWindow(this);
if(this.isActive()){
return;
}
Telerik.Web.CommonScripts.removeCssClasses(_a6,["inactivewindow"]);
this.raiseEvent("activate",new Sys.EventArgs());
}
},_moveToMinimizeZone:function(){
var _a9=$get(this.get_minimizeZoneID());
if(_a9){
if(this.isPinned()){
this._isPinned=true;
this.togglePin();
}
var _aa=this._popupElement;
if(_aa.parentNode!=_a9){
_aa.parentNode.removeChild(_aa);
_a9.appendChild(_aa);
this.setVisible(true);
_aa.style.position="static";
if(this.isIE){
_aa.style.display="inline";
}else{
_aa.style.cssFloat="left";
}
this._makeMoveable(false);
}
}
},_moveToDocument:function(){
var _ab=this._popupElement;
_ab.parentNode.removeChild(_ab);
_ab.style.position="absolute";
if(this.isIE){
_ab.style.display="";
}else{
_ab.style.cssFloat="";
}
this._addWindowToDocument();
this._makeMoveable(true);
if(this._isPinned){
this._isPinned=false;
this.togglePin();
}
},minimize:function(){
if(!this.isCreated()){
return;
}
var _ac=this.onCommand("Minimize");
if(!_ac){
return;
}
var _ad=this._popupElement;
Telerik.Web.CommonScripts.removeCssClasses(_ad,["normalwindow","maximizedwindow"]);
Telerik.Web.DomElement.addCssClass(_ad,"minimizedwindow");
this._configureMinimizeButton(true);
this._enablePageScrolling(true);
if(this.get_minimizeZoneID()){
this._moveToMinimizeZone();
}
},restore:function(){
if(!this.isCreated()){
return;
}
var _ae=this.onCommand("Restore");
if(!_ae){
return;
}
this._configureMinimizeButton();
this._configureMaximizeButton();
if(this.isMinimized()&&this.get_minimizeZoneID()){
this._moveToDocument();
}
this._normalizeWindowRootCss();
this._enablePageScrolling(true);
this.setVisible(true);
this._restoreBounds();
this.setVisible(true);
this.setActive(true);
},maximize:function(){
if(!this.isCreated()){
return;
}
var _af=this.onCommand("Maximize");
if(!_af){
return;
}
if(!this.isBehaviorEnabled(Telerik.Web.UI.WindowBehaviors.Maximize)){
return;
}
this._storeBounds();
if(this.isMinimized()&&this.get_minimizeZoneID()){
this._moveToDocument();
}
var _b0=this._popupElement;
Telerik.Web.CommonScripts.removeCssClasses(_b0,["normalwindow","minimizedwindow"]);
Telerik.Web.DomElement.addCssClass(_b0,"maximizedwindow");
_b0.style.width="";
_b0.style.height="";
this._configureMaximizeButton(true);
this._configureMinimizeButton();
this._maintainMaximizedSize();
if(!this.isActive()){
this.setActive(true);
}
},togglePin:function(){
if(!this.isCreated()){
return;
}
var _b1=this.onCommand("Pin");
if(!_b1){
return;
}
var _b2=this._getTitleCommandButton("Pin");
var loc=this._getLocalization();
var _b4=this.isPinned();
var _b5=_b4?loc["PinOff"]:loc["PinOn"];
if(_b2){
Telerik.Web.DomElement.toggleCssClass(_b2,"on");
}
this._registerTitlebarHandlersButton("Pin",_b5,this.togglePin);
Telerik.Web.UI.Window.setPinned(!_b4,this);
},reload:function(){
if(!this.isCreated()){
return;
}
var _b6=this.onCommand("Reload");
if(!_b6){
return;
}
if(!this._iframe){
return;
}
this._onWindowUrlChanging();
try{
this._iframe.contentWindow.location.reload();
}
catch(e){
this._onWindowUrlChanged();
}
},_normalizeWindowRootCss:function(){
var _b7=this._popupElement;
if(_b7){
Telerik.Web.CommonScripts.removeCssClasses(_b7,["minimizedwindow","maximizedwindow"]);
Telerik.Web.DomElement.addCssClass(_b7,"normalwindow");
}
},close:function(_b8){
if(this.isClosed()){
return;
}
this._normalizeWindowRootCss();
this.hide();
this._enablePageScrolling(true);
if(null!=_b8&&!(_b8 instanceof Sys.UI.DomEvent)){
this._invokeDialogCallBackFunction(_b8);
}
if(this._destroyOnClose){
this.dispose();
}
},onCommand:function(_b9){
var _ba=new Sys.CancelEventArgs();
_ba._commandName=_b9;
_ba.get_commandName=function(){
return this._commandName;
};
this.raise_command(_ba);
if(_ba.get_cancel()){
return false;
}
return true;
},setUrl:function(url){
this._createUI();
this._navigateUrl=url;
var _bc=url;
if(this._reloadOnShow){
_bc=this._getReloadOnShowUrl(_bc);
}
this._iframe.src=_bc;
this._onWindowUrlChanging();
if(!this._loaded){
this._registerIframeLoadHandler(true);
}
this._loaded=true;
},_registerChildPageHandlers:function(_bd){
var _be=null;
try{
_be=this._iframe.contentWindow.document;
}
catch(e){
return;
}
if(null==_be){
return;
}
if(_bd){
this._onChildPageUnloadDelegate=Function.createDelegate(this,this._onChildPageUnload);
if(this.isIE){
_be.onunload=this._onChildPageUnloadDelegate;
}else{
this._iframe.contentWindow.onunload=this._onChildPageUnloadDelegate;
}
this._onChildPageClickDelegate=Function.createDelegate(this,this._onChildPageClick);
Telerik.Web.DomElement.addExternalHandler(_be,"click",this._onChildPageClickDelegate);
}else{
if(this._onChildPageClickDelegate){
Telerik.Web.DomElement.removeExternalHandler(_be,"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());
},_onWindowUrlChanging:function(){
var _c2=this._getStatusMessageElement();
if(_c2){
Telerik.Web.DomElement.addCssClass(_c2,"loading");
}
if(!this._showContentDuringLoad){
this._iframe.style.width="0px";
this._iframe.style.height="0px";
}
},_onWindowUrlChanged:function(){
var _c3=this._getStatusMessageElement();
if(_c3){
Telerik.Web.DomElement.removeCssClass(_c3,"loading");
this.set_status(this._navigateUrl);
}
if(!this._showContentDuringLoad){
this._iframe.style.width="100%";
this._iframe.style.height="100%";
}
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_contentFrame:function(){
return this._iframe;
},get_minimizeZoneID:function(){
return this._minimizeZoneID;
},set_minimizeZoneID:function(_c4){
if(this._minimizeZoneID!=_c4){
this._minimizeZoneID=_c4;
}
},get_minimizeIconUrl:function(){
return this._minimizeIconUrl;
},set_minimizeIconUrl:function(_c5){
if(this._minimizeIconUrl!=_c5){
this._minimizeIconUrl=_c5;
}
},get_iconUrl:function(){
return this._iconUrl;
},set_iconUrl:function(_c6){
if(this._iconUrl!=_c6){
this._iconUrl=_c6;
}
},get_clientCallBackFunction:function(){
return this._clientCallBackFunction;
},set_clientCallBackFunction:function(_c7){
if(this._clientCallBackFunction!=_c7){
this._clientCallBackFunction=_c7;
}
},get_navigateUrl:function(){
return this._navigateUrl;
},set_navigateUrl:function(_c8){
if(this._navigateUrl!=_c8){
this._navigateUrl=_c8;
}
},get_targetControl:function(){
return this._openerElement;
},set_targetControl:function(_c9){
if(this._openerElement!=_c9){
this._openerElement=_c9;
}
},get_name:function(){
return this._name;
},set_name:function(_ca){
if(this._name!=_ca){
this._name=_ca;
}
},get_formID:function(){
return this._formID;
},set_formID:function(_cb){
if(this._formID!=_cb){
this._formID=_cb;
}
},get_offsetElementID:function(){
return this._offsetElementID;
},set_offsetElementID:function(_cc){
if(this._offsetElementID!=_cc){
this._offsetElementID=_cc;
}
},get_openerElementID:function(){
return this._openerElementID;
},set_openerElementID:function(_cd){
if(this._openerElementID!=_cd){
if(this._openerElement){
this._registerOpenerElementHandler(this._openerElement,false);
this._openerElement=null;
}
this._openerElementID=_cd;
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(_ce){
if(this._left!=_ce){
this._left=parseInt(_ce);
}
},get_top:function(){
return this._top;
},set_top:function(_cf){
if(this._top!=_cf){
this._top=parseInt(_cf);
}
},get_title:function(){
return this._title;
},set_title:function(_d0){
if(this._title!=_d0){
this._title=_d0;
}
if(null==this._titleElement){
return;
}
this._titleElement.innerHTML=this._title;
this._updateTitleWidth();
},get_width:function(){
return parseInt(this._width);
},_fixSizeValue:function(_d1){
_d1=""+_d1;
if(-1==_d1.indexOf("px")){
_d1=parseInt(_d1);
if(!isNaN(_d1)){
_d1=_d1+"px";
}else{
_d1="";
}
}
return _d1;
},set_width:function(_d2){
if(null==_d2){
return;
}
_d2=this._fixSizeValue(_d2);
if(this._width!=_d2){
this._width=_d2;
}
if(this._popupElement){
this._popupElement.style.width=this._width;
this._updatePopupZindex();
}
},get_height:function(){
return parseInt(this._height);
},set_height:function(_d3){
if(null==_d3){
return;
}
_d3=this._fixSizeValue(_d3);
if(this._height!=_d3){
this._height=_d3;
}
if(this._popupElement){
this._updateWindowSize(this._height);
this._updatePopupZindex();
}
},_updateWindowSize:function(_d4,_d5){
var _d6=this._tableElement;
var _d7=_d4?_d4:_d6.style.height;
if(true==_d5){
_d7=_d6.offsetHeight+"px";
}
if(parseInt(_d7)==0){
return;
}
_d6.style.height=_d7;
this._fixIeHeight(_d6,_d7);
_d6.parentNode.style.height=_d7;
},get_initialBehaviors:function(){
return this._initialBehaviors;
},set_initialBehaviors:function(_d8){
if(this._initialBehaviors!=_d8){
this._initialBehaviors=_d8;
}
},get_behaviors:function(){
return this._behaviors;
},set_behaviors:function(_d9){
if(this._behaviors!=_d9){
this._behaviors=_d9;
}
if(null==this._titlebarElement){
return;
}
this._makeMoveable(false);
this._makeMoveable(true);
this._makeResizeable(false);
this._makeResizeable(true);
if(this._buttonsArray&&this._buttonsArray.length>0){
var len=this._buttonsArray.length;
for(var i=0;i<len;i++){
var _dc=this._buttonsArray[i];
$clearHandlers(_dc);
}
this._buttonsArray=[];
var _dd=this._getTitleCommandButtonsHolder();
_dd.innerHTML="";
}
if(Telerik.Web.UI.WindowBehaviors.None==this._behaviors){
return;
}else{
var loc=this._getLocalization();
var _df=Telerik.Web.UI.WindowBehaviors;
var _e0=[[this.isBehaviorEnabled(_df.Pin),"pinbutton",loc["PinOn"],this.togglePin],[this.isBehaviorEnabled(_df.Reload),"reloadbutton",loc["Reload"],this.reload],[this.isBehaviorEnabled(_df.Minimize),"minimizebutton",loc["Minimize"],this.minimize],[this.isBehaviorEnabled(_df.Maximize),"maximizebutton",loc["Maximize"],this.maximize],[this.isBehaviorEnabled(_df.Close),"closebutton",loc["Close"],this.close]];
for(var i=0;i<_e0.length;i++){
var _e1=_e0[i];
if(!_e1[0]){
continue;
}
var li=document.createElement("LI");
var _e3=document.createElement("A");
_e3.href="javascript:void(0);";
_e3.className=_e1[1];
_e3.setAttribute("title",_e1[2]);
var _e4=document.createElement("SPAN");
_e4.innerHTML=_e1[2];
_e3.appendChild(_e4);
$addHandlers(_e3,{"click":_e1[3]},this);
$addHandler(_e3,"click",this._cancelEvent);
$addHandler(_e3,"dblclick",this._cancelEvent);
li.appendChild(_e3);
this._buttonsElement.appendChild(li);
this._buttonsArray[this._buttonsArray.length]=_e3;
}
}
},get_modal:function(){
return this._modal;
},set_modal:function(_e5){
if(this._modal!=_e5){
this._modal=_e5;
}
this._makeModal(this._modal);
},get_destroyOnClose:function(){
return this._destroyOnClose;
},set_destroyOnClose:function(_e6){
if(this._destroyOnClose!=_e6){
this._destroyOnClose=_e6;
}
},get_reloadOnShow:function(){
return this._reloadOnShow;
},set_reloadOnShow:function(_e7){
if(this._reloadOnShow!=_e7){
this._reloadOnShow=_e7;
}
},get_showContentDuringLoad:function(){
return this._showContentDuringLoad;
},set_showContentDuringLoad:function(_e8){
if(this._showContentDuringLoad!=_e8){
this._showContentDuringLoad=_e8;
}
},get_visibleOnPageLoad:function(){
return this._visibleOnPageLoad;
},set_visibleOnPageLoad:function(_e9){
if(this._visibleOnPageLoad!=_e9){
this._visibleOnPageLoad=_e9;
}
},get_visibleTitlebar:function(){
return this._visibleTitlebar;
},set_visibleTitlebar:function(_ea){
if(this._visibleTitlebar!=_ea){
this._visibleTitlebar=_ea;
}
if(this._titlebarElement){
this._titlebarElement.style.display=_ea?"":"none";
}
},get_visibleStatusbar:function(){
return this._visibleStatusbar;
},set_visibleStatusbar:function(_eb){
if(this._visibleStatusbar!=_eb){
this._visibleStatusbar=_eb;
}
if(this._statusCell){
this._statusCell.parentNode.style.display=_eb?"":"none";
}
},get_animation:function(){
return this._animation;
},set_animation:function(_ec){
if(this._animation!=_ec){
this._animation=_ec;
}
},get_skin:function(){
return this._skin;
},set_skin:function(_ed){
if(_ed&&this._skin!=_ed){
this._skin=_ed;
}
},get_popupElement:function(){
return this._popupElement;
},get_windowManager:function(){
return this._windowManager;
},set_windowManager:function(_ee){
this._windowManager=_ee;
},set_status:function(_ef){
var _f0=this._getStatusMessageElement();
if(_f0){
_f0.value=_ef;
}
},get_status:function(){
var _f1=this._getStatusMessageElement();
if(_f1){
return _f1.value;
}
},add_command:function(_f2){
this.get_events().addHandler("command",_f2);
},remove_command:function(_f3){
this.get_events().removeHandler("command",_f3);
},raise_command:function(_f4){
this.raiseEvent("command",_f4);
},add_dragStart:function(_f5){
this.get_events().addHandler("dragStart",_f5);
},remove_dragStart:function(_f6){
this.get_events().removeHandler("dragStart",_f6);
},add_dragEnd:function(_f7){
this.get_events().addHandler("dragEnd",_f7);
},remove_dragEnd:function(_f8){
this.get_events().removeHandler("dragEnd",_f8);
},add_activate:function(_f9){
this.get_events().addHandler("activate",_f9);
},remove_activate:function(_fa){
this.get_events().removeHandler("activate",_fa);
},add_beforeShow:function(_fb){
this.get_events().addHandler("beforeShow",_fb);
},remove_beforeShow:function(_fc){
this.get_events().removeHandler("beforeShow",_fc);
},add_show:function(_fd){
this.get_events().addHandler("show",_fd);
},remove_show:function(_fe){
this.get_events().removeHandler("show",_fe);
},add_pageLoad:function(_ff){
this.get_events().addHandler("pageLoad",_ff);
},remove_pageLoad:function(_100){
this.get_events().removeHandler("pageLoad",_100);
},add_close:function(_101){
this.get_events().addHandler("close",_101);
},remove_close:function(_102){
this.get_events().removeHandler("close",_102);
},add_resize:function(_103){
this.get_events().addHandler("resize",_103);
},remove_resize:function(_104){
this.get_events().removeHandler("resize",_104);
},saveClientState:function(){
var _105=["position"];
var _106={};
for(var i=0;i<_105.length;i++){
_106[_105[i]]=this["get_"+_105[i]]();
}
return Sys.Serialization.JavaScriptSerializer.serialize(_106);
}};
$telerikCommon.makeCompatible(Telerik.Web.UI.RadWindow);
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.Window._zIndex=99000;
Telerik.Web.UI.Window.get_newZindex=function(_108){
if(null==_108||isNaN(_108)){
_108=0;
}
if(Telerik.Web.UI.Window._zIndex<=_108){
Telerik.Web.UI.Window._zIndex=parseInt(_108);
}
Telerik.Web.UI.Window._zIndex++;
return Telerik.Web.UI.Window._zIndex;
};
Telerik.Web.UI.Window._pinnedList={};
Telerik.Web.UI.Window.setPinned=function(_109,oWnd){
if(_109){
var _10b=oWnd._getViewportBounds();
var _10c=oWnd._getCurrentBounds();
oWnd.LeftOffset=_10c.x-_10b.scrollLeft;
oWnd.TopOffset=_10c.y-_10b.scrollTop;
var _10d=window.setInterval(function(){
Telerik.Web.UI.Window._updatePinnedElementPosition(oWnd);
},100);
Telerik.Web.UI.Window._pinnedList[_10d]=oWnd;
}else{
var _10e=null;
var _10f=Telerik.Web.UI.Window._pinnedList;
for(var name in _10f){
if(_10f[name]==oWnd){
_10e=name;
break;
}
}
if(null!=_10e){
window.clearInterval(_10e);
Telerik.Web.UI.Window._pinnedList[_10e]=null;
}
oWnd.TopOffset=null;
oWnd.LeftOffset=null;
}
};
Telerik.Web.UI.Window._updatePinnedElementPosition=function(oWnd){
if(oWnd.isMaximized()||!oWnd.isVisible()){
return;
}
var _112=oWnd._getViewportBounds();
var _113=oWnd._getCurrentBounds();
var left=(oWnd.LeftOffset!=null)?oWnd.LeftOffset+_112.scrollLeft:_113.x;
var top=(oWnd.TopOffset!=null)?oWnd.TopOffset+_112.scrollTop:_113.y;
oWnd.moveTo(left,top);
};
Telerik.Web.UI.Window.DragDataType="RadWindow";
Telerik.Web.UI.Window._documentDropZone=function(_116){
};
Telerik.Web.UI.Window._documentDropZone.prototype={get_dropTargetElement:function(){
return (Telerik.Web.Browser.renderMode==Telerik.Web.Browser.StandardsMode)?document.body:document.documentElement;
},canDrop:function(_117,_118,dock){
return _118===Telerik.Web.UI.Window.DragDataType;
},drop:function(_11a,_11b,wnd){
},onDragEnterTarget:function(_11d,type,wnd){
},onDragLeaveTarget:function(_120,type,wnd){
},onDragInTarget:function(_123,type,wnd){
}};
Telerik.Web.UI.Window._documentDropZone.registerClass("Telerik.Web.UI.Window._documentDropZone",null,Telerik.Web.IDropTarget);
Telerik.Web.UI.Window.DocumentDropZone=new Telerik.Web.UI.Window._documentDropZone();
Telerik.Web.DragDropManager.registerDropTarget(Telerik.Web.UI.Window.DocumentDropZone,true);


if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();