﻿Type.registerNamespace("Telerik.Web.UI");
Telerik.Web.UI.DockMode=function(){
throw Error.notImplemented();
};
Telerik.Web.UI.DockMode.prototype={Floating:1,Docked:2,Default:3};
Telerik.Web.UI.DockMode.registerEnum("Telerik.Web.UI.DockMode");
Telerik.Web.UI.RadDock=function(_1){
Telerik.Web.UI.RadDock.initializeBase(this,[_1]);
this._initialized=false;
this._enableDrag=true;
this._top=0;
this._left=0;
this._autoPostBack=false;
this._dockZoneID=null;
this._title=null;
this._commands=null;
this._closed=false;
this._collapsed=false;
this._pinned=false;
this._index=0;
this._forbiddenZones=[];
this._layoutID=null;
this._handle=null;
this._dockMode=Telerik.Web.UI.DockMode.Default;
this._resizable=false;
this._width="300px";
this._height=null;
this._expandedHeight=0;
this._uniqueID=null;
this._uniqueName=null;
this._grip=null;
this._titleBar=null;
this._commandsContainer=null;
this._contentContainer=null;
this._handle=null;
this._form=null;
this._skin="Default";
this.set_handle=this.set_handle;
this._isCustomHandle=false;
};
Telerik.Web.UI.RadDock.DragDataType="RadDock";
Telerik.Web.UI.RadDock.prototype={_fixIeHeight:function(_2,_3){
if("CSS1Compat"==document.compatMode){
var _4=(_2.offsetHeight-parseInt(_3));
if(_4>0){
var _5=(parseInt(_2.style.height)-_4);
if(_5>0){
_2.style.height=_5+"px";
}
}
}
},_getTopElement:function(){
var _6=null;
var _7=this.get_titleBar();
if(_7){
_6=_7;
}else{
if(this._grip){
_6=this._grip;
}
}
return _6;
},_setResizeLimit:function(){
var _8=0;
var _9=this._getTopElement();
var _a=0;
if(_9){
var _b=$telerik.getBounds(_9);
_8+=_b.height;
}
var _c=this._calculateResizeHandlesSize();
var _d=this.get_element();
this._minHeight=_8+_c.horizontalHeight;
_d.style.minHeight=this._minHeight+"px";
this.get_innerDockElement().style.minHeight=_8+"px";
var _e=this.get_commandsContainer();
var _f=1+_c.verticalWidth;
var _10=_e?$telerik.getBounds(_e).width:0;
var _11=this.get_titleElement();
var _12=_11?$telerik.getMarginBox(_11).horizontal:0;
_f+=_10+_12;
this._minWidth=_f;
_d.style.minWidth=_f+"px";
},_calculateResizeHandlesSize:function(){
if(!this._tableElement){
return null;
}
var _13=this._tableElement.rows;
var _14={n:$telerik.getBounds(_13[0].cells[1]),w:$telerik.getBounds(_13[1].cells[0]),e:$telerik.getBounds(_13[1].cells[2]),s:$telerik.getBounds(_13[2].cells[1])};
var _15={horizontalHeight:_14.n.height+_14.s.height,verticalWidth:_14.w.width+_14.e.width};
return _15;
},_collapseWrapper:function(){
var _16=this._tableElement;
if(_16){
var _17=this.get_contentContainer();
var _18=$telerik.getBounds(_17);
var _19=parseInt(_16.style.height)-_18.height;
_16.style.height=(_19>0?_19:0)+"px";
}
},_removeWrapper:function(){
var _1a=this._tableElement;
if(_1a){
var _1b=this._calculateResizeHandlesSize();
var _1c=this.get_element();
var _1d=this.get_innerDockElement();
_1c.removeChild(_1a);
_1a=null;
_1c.appendChild(_1d);
_1d.style.width="100%";
_1d.style.height="100%";
this._fixTableLayoutSize(this._width,this._height);
}
},_updateSizeValues:function(){
var _1e=this._getBounds();
this._width=_1e.width;
this._height=_1e.height;
},_setWidthHtmlEl:function(_1f,_20){
if(!_20){
_20=this.get_element();
}
if(_1f.toString().indexOf("%")>-1){
_20.style.width=parseInt(_1f)+"%";
}else{
_20.style.width=parseInt(_1f)+"px";
}
},_setHeightHtmlEl:function(_21,_22){
if(!_22){
_22=this.get_element();
}
if(_21.toString().indexOf("%")>-1){
_22.style.height=parseInt(_21)+"%";
}else{
_22.style.height=parseInt(_21)+"px";
}
},_moveElements:function(_23,_24){
while(_23.childNodes&&_23.childNodes.length>0){
var _25=_23.childNodes[0];
_23.removeChild(_25);
_24.appendChild(_25);
}
},_configureHandles:function(_26){
if(!this._tableElement){
return;
}
var _27=["e","s","se"];
var _28=this._resizeExtender._resizeHandles;
for(var i=0;i<_27.length;i++){
var _2a=_27[i];
var _2b=_28[_2a];
if(_2b){
_2b.style.cursor=_26?_2a+"-resize":"";
}
}
},_getFullSkinName:function(){
return " raddock RadDock_"+this._skin+" rdVariableHeight";
},_createResizeWrapper:function(){
var _2c=document.createElement("TABLE");
_2c.id=this.get_id()+"Table";
_2c.className="rdWrapTable";
_2c.width="100%";
_2c.height="100%";
_2c.cellSpacing=0;
_2c.cellPadding=0;
this._tableElement=_2c;
var _2d=["rdTopLeft","rdTopCenter","rdTopRight","rdLeftMiddle","rdCenter","rdRightMiddle","rdBottomLeft","rdBottomCenter","rdBottomRight"];
var _2e=0;
for(var i=0;i<3;i++){
var row=_2c.insertRow(-1);
for(var j=0;j<3;j++){
var _32=row.insertCell(-1);
_32.innerHTML="&nbsp;";
_32.className=_2d[_2e];
_2e++;
}
}
return _2c;
},_fixEmWidth:function(){
if(!this.get_titleBar()){
return;
}
var _33=$telerik.getBounds(this.get_innerDockElement()).width;
var _34=this.get_commandsContainer();
var _35=_34?$telerik.getBounds(_34).width:0;
var _36=this.get_titleElement();
var _37=_33-_35-$telerik.getMarginBox(_36).horizontal;
var _38=_37>0?_37:0;
this._setWidthHtmlEl(_38,_36);
},_makeResizable:function(){
if(this._resizable){
var _39=this.get_element();
var _3a=this._createResizeWrapper();
var _3b=_3a.rows[1].cells[1];
_3b.innerHTML="";
this._moveElements(_39,_3b);
_39.appendChild(_3a);
if(this._resizeExtender){
this._resizeExtender.dispose();
}
var _3c=this._tableElement.rows;
var _3d={e:_3c[1].cells[2],s:_3c[2].cells[1],se:_3c[2].cells[2]};
this._resizeExtender=new Telerik.Web.UI.ResizeExtender(this,this.get_element(),_3d,this._tableElement);
this._setResizeLimit();
this._setSize();
if(this._collapsed||this._dockZoneID){
this._configureHandles(false);
}
}else{
this._removeWrapper();
}
},onResizeStart:function(){
if(this._collapsed||this._dockZoneID){
return;
}
this.get_contentContainer().style.display="none";
this.raise_resizeStart(new Sys.EventArgs());
},onResizing:function(e){
if(this._collapsed||this._dockZoneID){
return false;
}
},onResize:function(e){
var _40=this.get_innerDockElement();
_40.style.display="none";
var _41=$telerik.getBounds(_40.parentNode).width;
_40.style.display="";
this._setWidthHtmlEl(_41,_40);
this._fixEmWidth();
},onResizeEnd:function(){
if(this._collapsed||this._dockZoneID){
return;
}
var _42=this._getBounds();
var _43=_42.width;
var _44=_42.height;
if(_43<this._minWidth){
_43=this._minWidth;
}
if(_44<this._minHeight){
_44=this._minHeight;
}
this._setSize(_43,_44);
this._updateSizeValues();
this.updateClientState();
this.raise_resizeEnd(new Sys.EventArgs());
},getCommand:function(_45){
return this._commands?this._commands[_45]:null;
},get_handle:function(){
return this._handle;
},set_handle:function(_46){
this._isCustomHandle=true;
this._setHandle(_46);
},_setHandle:function(_47){
this._disposeDrag();
this._handle=_47;
this._initializeDrag();
},_repaintHelper:function(){
if(this.get_closed()){
return;
}
this._setContentContainerHeight();
this._setCommandsContainerWidth();
},getInvisibleParent:function(_48){
while(_48!=document){
if("none"==$telerik.getCurrentStyle(_48,"display","")){
return _48;
}
_48=_48.parentNode;
}
return null;
},initialize:function(){
Telerik.Web.UI.RadDock.callBaseMethod(this,"initialize");
this._initializeHtmlElementVariables();
this._initializeCommands();
this._updateToggleCommandsState();
this._setPinUnpinVisibility();
this._setHandle(this._titleBar||this._grip);
var _49=this.get_commandsContainer();
this._commandsContainerWidth=_49?$telerik.getBounds(_49).width:0;
var _4a=this.get_element();
var _4b=_4a.parentNode;
var _4c=this.getInvisibleParent(this.get_element());
isHidden=(_4c!=null);
if(isHidden){
var _4d={position:_4a.style.position,top:_4a.style.top,left:_4a.style.left};
_4a.parentNode.removeChild(_4a);
_4a.style.position="absolute";
_4a.style.top="-5000px";
_4a.style.left="-5000px";
document.body.appendChild(_4a);
}
this._makeResizable();
this._setContentContainerHeight();
if(isHidden){
_4a.style.position=_4d.position;
_4a.style.top=_4d.top;
_4a.style.left=_4d.left;
_4a.parentNode.removeChild(_4a);
_4b.appendChild(_4a);
}
this._intiailize=true;
this.updateClientState();
this.raise_initialize();
},dispose:function(){
this.get_element().RadShow=null;
this._disposeDrag();
Telerik.Web.UI.RadDock.callBaseMethod(this,"dispose");
},undock:function(){
var _4e=this.get_element();
this._form.appendChild(_4e);
var _4f=this._getLocation(_4e);
this.set_left(_4f.x);
this.set_top(_4f.y);
var _50=$find(this.get_dockZoneID());
if(_50){
this.set_dockZoneID("");
_50._resetDockIndices();
this._unfitWidth();
}
this._setPinUnpinVisibility();
this.updateClientState();
},_fitWidth:function(){
this.get_element().style.width="100%";
if(this._tableElement){
this.get_innerDockElement().style.width="100%";
this._tableElement.style.width="100%";
this._fixEmWidth();
}
},_unfitWidth:function(){
this.set_width(this.get_width());
if(this._tableElement){
this._fixEmWidth();
}
},_initializeHtmlElementVariables:function(){
this._grip=$get(this.get_id()+"_G");
this._titleBar=$get(this.get_id()+"_T");
if(this._titleBar){
var _51=this._titleBar.lastChild;
while(_51){
if(_51.className=="rdCommands"){
this._commandsContainer=_51;
break;
}
_51=_51.previousSibling;
}
}
var _52=this.get_element().parentNode;
while(_52){
if(_52.tagName.toLowerCase()==="form"){
this._form=_52;
break;
}
_52=_52.parentNode;
}
},_initializeCommands:function(){
if(!this._commandsContainer){
return;
}
var _53=this._commandsContainer.getElementsByTagName("a");
var _54=this._commands;
if(_54){
this._commands={};
for(var i=0;i<_54.length;i++){
var _56=_54[i];
var _57=eval(_56.clientTypeName);
if(_57==Telerik.Web.UI.DockCommand||_57.inheritsFrom(Telerik.Web.UI.DockCommand)){
_56.radDock=this;
var _58=null;
if(_56.command){
_58={"command":eval(_56.command)};
delete _56.command;
}
var cmd=$create(_57,_56,_58,null,_53[i]);
this._commands[cmd.get_name()]=cmd;
}else{
throw Error.invalidOperation(_56.clientTypeName+" does not inherit from Telerik.Web.UI.DockCommand.");
}
}
}
},_updateToggleCommandsState:function(){
var _5a=this.getCommand("ExpandCollapse");
if(_5a){
_5a.set_state(this.get_collapsed()?2:1);
}
var _5b=this.getCommand("PinUnpin");
if(_5b){
_5b.set_state(this.get_pinned()?2:1);
}
},_setPinUnpinVisibility:function(){
var _5c=this.getCommand("PinUnpin");
if(_5c){
_5c.get_element().style.display=this.get_dockZoneID()?"none":"inline";
}
this._setCommandsContainerWidth();
},_setCommandsContainerWidth:function(){
if(!this._commandsContainer){
return;
}
var _5d=this._commandsContainer.getElementsByTagName("a");
var _5e=0;
for(var i=0;i<_5d.length;i++){
var _60=this._getBoundsWithBorderAndMargin(_5d[i]);
_5e+=_60.width;
}
this._commandsContainer.style.width=_5e+"px";
},_getBoundsWithoutBorder:function(_61){
if(!_61){
_61=this.get_element();
}
var _62=this._getBounds(_61);
var _63=this._getBorderBox(_61);
var _64=_62.width-_63.horizontal;
var _65=_62.height-_63.vertical;
_62.width=_64>0?_64:0;
_62.height=_65>0?_65:0;
return _62;
},_getBoundsWithBorderAndMargin:function(_66){
if(!_66){
_66=this.get_element();
}
var _67=this._getBounds(_66);
var _68=this._getMarginBox(_66);
var _69=this._getBorderBox(_66);
_67.width+=(_68.horizontal+_69.horizontal);
_67.height+=(_68.vertical+_69.vertical);
return _67;
},_getBounds:function(_6a){
if(!_6a){
_6a=this.get_element();
}
return $telerik.getBounds(_6a);
},_getMarginBox:function(_6b){
if(!_6b){
_6b=this.get_element();
}
return $telerik.getMarginBox(_6b);
},_getBorderBox:function(_6c){
if(!_6c){
_6c=this.get_element();
}
return $telerik.getBorderBox(_6c);
},_resetPosition:function(){
var _6d=this.get_element();
_6d.style.top="";
_6d.style.left="";
_6d.originalPosition="relative";
_6d.style.position="relative";
_6d.style.zIndex=this.originalZIndex;
},_setContentContainerHeight:function(){
var _6e=this.get_contentContainer();
if(!Sys.UI.DomElement.containsCssClass(this.get_element(),"rdVariableHeight")||this._resizable){
var _6f=this._getBounds();
var _70=this.get_handle();
if(_70&&!this._isCustomHandle){
var _71=this._getBoundsWithBorderAndMargin(_70);
_6f.height-=_71.height;
}
var _72=this._tableElement?this._calculateResizeHandlesSize().horizontalHeight:2;
var _73=$telerik.getPaddingBox(_6e).vertical;
var _74=_6f.height-_72-_73;
_6e.style.height=(_74<0?0:_74)+"px";
}else{
_6e.style.height="";
}
},_initializeDrag:function(){
this._disposeDrag();
if(this._handle&&this.get_enableDrag()&&!this.get_pinned()){
$addHandlers(this._handle,{"mousedown":this._mouseDownHandler},this);
Sys.UI.DomElement.addCssClass(this._handle,"rdDraggable");
}
},_disposeDrag:function(){
if(this._handle){
$clearHandlers(this._handle);
Sys.UI.DomElement.removeCssClass(this._handle,"rdDraggable");
}
},_mouseDownHandler:function(e){
window._event=e;
var _76=(0>Array.indexOf(["input","button","select","textarea","label","a"],e.target.tagName.toLowerCase()));
if(_76&&this.get_enableDrag()&&!this.get_pinned()){
e.preventDefault();
this._startDragDrop();
}
},_startDragDrop:function(){
var _77=this.get_element();
this.originalZIndex=_77.style.zIndex;
var _78=this._getBounds(_77);
var _79=this._getBorderBox(_77);
_78.width-=_79.horizontal;
_78.height-=_79.vertical;
_77.style.width=_78.width+"px";
_77.style.zIndex="9999999";
var _7a=$telerik.getLocation(_77);
this._form.appendChild(_77);
var _7b=$find(this.get_dockZoneID());
if(_7b){
_7b._showPlaceholder(this);
}
this._setLocation(_7a);
Telerik.Web.DragDropManager.startDragDrop(this,_77,null);
},_restorePosition:function(){
var _7c=$find(this.get_dockZoneID());
if(_7c){
_7c.dock(this,this.get_index());
}else{
this.undock();
}
},_getLocation:function(_7d){
if(!_7d){
_7d=this.get_element();
}
return $telerik.getLocation(_7d);
},_setLocation:function(_7e){
$telerik.setLocation(this.get_element(),_7e);
},_setSize:function(_7f,_80){
var _81=this._getBoundsWithoutBorder();
if(!_7f){
_7f=_81.width;
}
if(!_80){
_80=_81.height;
}
this._setWidthHtmlEl(_7f);
this._setHeightHtmlEl(_80);
if(this._tableElement){
this._fixTableLayoutSize(_7f,_80);
}
},_fixTableLayoutSize:function(_82,_83){
var _84=this.get_contentContainer();
var _85=$telerik.getPaddingBox(_84).vertical;
var _86=this._getTopElement();
var _87=0;
var _88=0;
if(_86){
_87=$telerik.getBounds(_86);
}
var _89=this.get_innerDockElement();
_89.style.display="none";
var _8a=this._tableElement;
if(_8a){
this._setHeightHtmlEl(_83,_8a);
this._fixIeHeight(_8a,_83);
}
var _8b=$telerik.getBounds(_89.parentNode);
this._setWidthHtmlEl(_8b.width,_89);
var _8c=_8b.height-_87.height-_85;
_8c=_8c>0?_8c:0;
this._setHeightHtmlEl(_8c,_84);
if(_8c>0){
_84.style.display="";
}
_89.style.display="";
this._fixEmWidth();
if(this._collapsed){
_89.style.height="auto";
}
},get_contentContainer:function(){
if(!this._contentContainer){
this._contentContainer=$get(this.get_id()+"_C");
}
return this._contentContainer;
},get_titleBar:function(){
if(!this._titleBar){
this._titleBar=$get(this.get_id()+"_T");
}
return this._titleBar;
},get_commandsContainer:function(){
if(!this._commandsContainer){
var _8d=this.get_titleBar();
if(_8d){
this._commandsContainer=_8d.getElementsByTagName("span")[0];
}else{
this._commandsContainer=null;
}
}
return this._commandsContainer;
},get_titleElement:function(){
if(!this._titleElement){
var _8e=this.get_titleBar();
this._titleElement=_8e?_8e.getElementsByTagName("em")[0]:null;
}
return this._titleElement;
},get_innerDockElement:function(){
var _8f=this._tableElement;
if(_8f){
if(_8f.rows.length>1){
var _90=_8f.rows[1].cells[1];
if(_90){
return _90.getElementsByTagName("div")[0];
}
}
}
return this.get_element().getElementsByTagName("div")[0];
},saveClientState:function(){
var _91={Top:this.get_top(),Left:this.get_left(),DockZoneID:this.get_dockZoneID(),Collapsed:this.get_collapsed(),Pinned:this.get_pinned(),Resizable:this.get_resizable(),Closed:this.get_closed(),Width:this.get_width(),Height:this.get_height(),ExpandedHeight:this._expandedHeight,Index:this.get_index()};
return Sys.Serialization.JavaScriptSerializer.serialize(_91);
},conditionalPostback:function(_92){
if(this.get_autoPostBack()){
this.doPostBack(_92);
}
},doPostBack:function(_93){
__doPostBack(this.get_uniqueID(),_93);
},get_dragDataType:function(){
return Telerik.Web.UI.RadDock.DragDataType;
},getDragData:function(_94){
return this;
},get_dragMode:function(){
return Telerik.Web.DragMode.Move;
},onDragStart:function(){
this.get_contentContainer().style.overflow="hidden";
this.raise_dragStart(new Sys.EventArgs());
},onDrag:function(){
this.raise_drag(new Sys.EventArgs());
},onDragEnd:function(_95){
this.get_contentContainer().style.overflow="auto";
this.raise_dragEnd(new Sys.EventArgs());
if(_95){
this._restorePosition();
}
},add_command:function(_96){
this.get_events().addHandler("command",_96);
},remove_command:function(_97){
this.get_events().removeHandler("command",_97);
},raise_command:function(_98){
this.raiseEvent("command",_98);
},add_dragStart:function(_99){
this.get_events().addHandler("dragStart",_99);
},remove_dragStart:function(_9a){
this.get_events().removeHandler("dragStart",_9a);
},raise_dragStart:function(_9b){
this.raiseEvent("dragStart",_9b);
},add_drag:function(_9c){
this.get_events().addHandler("drag",_9c);
},remove_drag:function(_9d){
this.get_events().removeHandler("drag",_9d);
},raise_drag:function(_9e){
this.raiseEvent("drag",_9e);
},add_dragEnd:function(_9f){
this.get_events().addHandler("dragEnd",_9f);
},remove_dragEnd:function(_a0){
this.get_events().removeHandler("dragEnd",_a0);
},raise_dragEnd:function(_a1){
this.raiseEvent("dragEnd",_a1);
},add_dockPositionChanged:function(_a2){
this.get_events().addHandler("dockPositionChanged",_a2);
},remove_dockPositionChanged:function(_a3){
this.get_events().removeHandler("dockPositionChanged",_a3);
},raise_dockPositionChanged:function(_a4){
this.raiseEvent("dockPositionChanged",_a4);
this.conditionalPostback("dockPositionChanged");
},add_dockPositionChanging:function(_a5){
this.get_events().addHandler("dockPositionChanging",_a5);
},remove_dockPositionChanging:function(_a6){
this.get_events().removeHandler("dockPositionChanging",_a6);
},raise_dockPositionChanging:function(_a7){
this.raiseEvent("dockPositionChanging",_a7);
},add_initialize:function(_a8){
this.get_events().addHandler("initialize",_a8);
},remove_initialize:function(_a9){
this.get_events().removeHandler("initialize",_a9);
},raise_initialize:function(_aa){
this.raiseEvent("initialize",_aa);
},add_resizeStart:function(_ab){
this.get_events().addHandler("resizeStart",_ab);
},remove_resizeStart:function(_ac){
this.get_events().removeHandler("resizeStart",_ac);
},raise_resizeStart:function(_ad){
this.raiseEvent("resizeStart",_ad);
},add_resizeEnd:function(_ae){
this.get_events().addHandler("resizeEnd",_ae);
},remove_resizeEnd:function(_af){
this.get_events().removeHandler("resizeEnd",_af);
},raise_resizeEnd:function(_b0){
this.raiseEvent("resizeEnd",_b0);
},get_top:function(){
return this._top;
},set_top:function(_b1){
this._top=_b1;
},get_left:function(){
return this._left;
},set_left:function(_b2){
this._left=_b2;
},get_closed:function(){
return this._closed;
},set_closed:function(_b3){
this._closed=_b3;
var _b4=this.get_element();
_b4.style.display=_b3?"none":"block";
if(!_b3){
this._repaintHelper();
$telerik.repaintChildren(this);
}
},get_collapsed:function(){
return this._collapsed;
},set_collapsed:function(_b5){
this._collapsed=_b5;
this.get_element().style.height=_b5?"auto":this.get_height();
if(this._collapsed){
this._collapseWrapper();
if(this._height){
this._expandedHeight=parseInt(this._height);
}
this._configureHandles(false);
this.addCssClass("rdCollapsed");
}else{
this.removeCssClass("rdCollapsed");
if(this._resizable){
if(this._expandedHeight==0){
this.get_element().style.height="auto";
this._tableElement.style.height="100%";
this.get_contentContainer().style.height="auto";
}
if(!this._dockZoneID){
this._configureHandles(true);
}
this._setSize(null,this._expandedHeight);
this._height=this._expandedHeight;
}
if(this.get_height()==null){
this.addCssClass("rdVariableHeight");
}
}
this._setContentContainerHeight();
if(!this._collapsed){
$telerik.repaintChildren(this);
}
var _b6=this.getCommand("ExpandCollapse");
if(_b6){
_b6.set_state(_b5?2:1);
}
if(this._resizable){
this._height=$telerik.getBounds(this.get_element()).height+"px";
this.updateClientState();
}
},get_autoPostBack:function(){
return this._autoPostBack;
},set_autoPostBack:function(_b7){
this._autoPostBack=_b7;
},get_commands:function(){
return this._commands;
},set_commands:function(_b8){
this._commands=_b8;
},get_dockMode:function(){
return this._dockMode;
},set_dockMode:function(_b9){
this._dockMode=_b9;
},get_dockZoneID:function(){
return this._dockZoneID;
},set_dockZoneID:function(_ba){
if(_ba==""){
if(!this._collapsed){
this._configureHandles(true);
}
}else{
this._configureHandles(false);
}
this._dockZoneID=_ba;
},get_forbiddenZones:function(){
return this._forbiddenZones;
},set_forbiddenZones:function(_bb){
this._forbiddenZones=_bb;
},get_height:function(){
return this._height;
},set_height:function(_bc){
this._height=_bc;
if(this._intiailize){
this._setSize(null,_bc);
}
},get_index:function(){
return this._index;
},set_index:function(_bd){
this._index=_bd;
},get_layoutID:function(){
return this._layoutID;
},set_layoutID:function(_be){
this._layoutID=_be;
},get_enableDrag:function(){
return this._enableDrag;
},set_enableDrag:function(_bf){
this._enableDrag=_bf;
this._initializeDrag();
},get_pinned:function(){
return this._pinned;
},set_pinned:function(_c0){
this._pinned=_c0;
var _c1=this.getCommand("PinUnpin");
if(_c1){
_c1.set_state(_c0?2:1);
}
if($telerik.isIE6){
if(_c0){
this.set_enableDrag(false);
}else{
this.set_enableDrag(true);
}
return;
}
var ddm=Telerik.Web.DragDropManager._getInstance();
var _c3=this.get_element();
_c3.style.position="absolute";
var _c4=$telerik.getScrollOffset(_c3,true);
var _c5=this._getLocation(_c3);
if(_c0){
_c5=ddm.subtractPoints(_c5,_c4);
this._setLocation(_c5);
_c3.style.position="fixed";
this.set_enableDrag(false);
}else{
_c5=ddm.addPoints(_c5,_c4);
this._setLocation(_c5);
this.set_enableDrag(true);
}
},get_title:function(){
return this._title;
},set_title:function(_c6){
this._title=_c6;
},get_uniqueID:function(){
return this._uniqueID;
},set_uniqueID:function(_c7){
this._uniqueID=_c7;
},get_uniqueName:function(){
return this._uniqueName;
},set_uniqueName:function(_c8){
this._uniqueName=_c8;
},get_width:function(){
return this._width;
},set_width:function(_c9){
this._width=_c9;
if(this._initialized&&!this._dockZoneId){
this._setSize(_c9,null);
}
},get_skin:function(){
return this._skin;
},set_skin:function(_ca){
if(_ca&&this._skin!=_ca){
this._skin=_ca;
}
},get_resizable:function(){
return this._resizable;
},set_resizable:function(_cb){
this._resizable=_cb;
if(_cb){
this._makeResizable();
}else{
this._removeWrapper();
}
}};
Telerik.Web.UI.RadDock.registerClass("Telerik.Web.UI.RadDock",Telerik.Web.UI.RadWebControl,Telerik.Web.IDragSource);
Telerik.Web.UI.RadDock.prototype.repaint=function(){
this._repaintHelper();
};
Telerik.Web.UI.DockCommand=function(_cc){
Telerik.Web.UI.DockCommand.initializeBase(this,[_cc]);
this._clientTypeName=null;
this._cssClass="rdCustom";
this._radDock=null;
this._name="Custom";
this._text="Custom";
this._autoPostBack=false;
};
Telerik.Web.UI.DockCommand.prototype={add_command:function(_cd){
this.get_events().addHandler("command",_cd);
},remove_command:function(_ce){
this.get_events().removeHandler("command",_ce);
},raise_command:function(_cf){
var _d0=this.get_events().getHandler("command");
if(_d0){
_d0(this.get_radDock(),_cf);
}
},get_clientTypeName:function(){
return this._clientTypeName;
},set_clientTypeName:function(_d1){
this._clientTypeName=_d1;
},get_cssClass:function(){
return this._cssClass;
},set_cssClass:function(_d2){
this._cssClass=_d2;
},get_name:function(){
return this._name;
},set_name:function(_d3){
this._name=_d3;
},get_text:function(){
return this._text;
},set_text:function(_d4){
this._text=_d4;
},get_autoPostBack:function(){
return this._autoPostBack;
},set_autoPostBack:function(_d5){
this._autoPostBack=_d5;
},get_radDock:function(){
return this._radDock;
},set_radDock:function(_d6){
this._radDock=_d6;
},onCommand:function(e){
var _d8=new Sys.CancelEventArgs();
_d8.command=this;
_d8.Command=this;
this.raise_command(_d8);
if(_d8.get_cancel()){
return;
}
this.get_radDock().raise_command(_d8);
if(_d8.get_cancel()){
return;
}
this.get_radDock().updateClientState();
this.conditionalPostback();
},conditionalPostback:function(){
if(this.get_autoPostBack()){
this.get_radDock().doPostBack(this.get_name());
}
},initialize:function(){
Telerik.Web.UI.DockCommand.callBaseMethod(this,"initialize");
$addHandlers(this.get_element(),{"click":this.onCommand},this);
},dispose:function(){
$clearHandlers(this.get_element());
Telerik.Web.UI.DockCommand.callBaseMethod(this,"dispose");
}};
Telerik.Web.UI.DockCommand.registerClass("Telerik.Web.UI.DockCommand",Sys.UI.Control);
Telerik.Web.UI.DockToggleCommand=function(_d9){
Telerik.Web.UI.DockToggleCommand.initializeBase(this,[_d9]);
this._state=1;
this._alternateCssClass="rdCustom";
this._alternateText="Custom";
this._initialSetState=false;
};
Telerik.Web.UI.DockToggleCommand.prototype={updateState:function(){
var _da=this.get_element();
if(this.get_state()==1){
_da.title=this.get_text();
Sys.UI.DomElement.addCssClass(_da,this.get_cssClass());
Sys.UI.DomElement.removeCssClass(_da,this.get_alternateCssClass());
}else{
_da.title=this.get_alternateText();
Sys.UI.DomElement.addCssClass(_da,this.get_alternateCssClass());
Sys.UI.DomElement.removeCssClass(_da,this.get_cssClass());
}
},get_state:function(){
return this._state;
},set_state:function(_db){
this._state=_db;
if(this._initialSetState){
this.updateState();
}
},get_alternateCssClass:function(){
return this._alternateCssClass;
},set_alternateCssClass:function(_dc){
this._alternateCssClass=_dc;
},get_alternateText:function(){
return this._alternateText;
},set_alternateText:function(_dd){
this._alternateText=_dd;
},initialize:function(){
Telerik.Web.UI.DockToggleCommand.callBaseMethod(this,"initialize");
this._initialSetState=true;
this.updateState();
},dispose:function(){
Telerik.Web.UI.DockToggleCommand.callBaseMethod(this,"dispose");
}};
Telerik.Web.UI.DockToggleCommand.registerClass("Telerik.Web.UI.DockToggleCommand",Telerik.Web.UI.DockCommand);
Telerik.Web.UI.DockCloseCommand=function(_de){
Telerik.Web.UI.DockCloseCommand.initializeBase(this,[_de]);
this._cssClass="rdClose";
this._name="Close";
this._text="Close";
};
Telerik.Web.UI.DockCloseCommand.prototype={onCommand:function(e){
this.get_radDock().set_closed(true);
Telerik.Web.UI.DockCloseCommand.callBaseMethod(this,"onCommand");
}};
Telerik.Web.UI.DockCloseCommand.registerClass("Telerik.Web.UI.DockCloseCommand",Telerik.Web.UI.DockCommand);
Telerik.Web.UI.DockExpandCollapseCommand=function(_e0){
Telerik.Web.UI.DockExpandCollapseCommand.initializeBase(this,[_e0]);
this._cssClass="rdCollapse";
this._alternateCssClass="rdExpand";
this._name="ExpandCollapse";
this._text="Collapse";
this._alternateText="Expand";
};
Telerik.Web.UI.DockExpandCollapseCommand.prototype={onCommand:function(e){
this.get_radDock().set_collapsed(!this.get_radDock().get_collapsed());
Telerik.Web.UI.DockExpandCollapseCommand.callBaseMethod(this,"onCommand");
}};
Telerik.Web.UI.DockExpandCollapseCommand.registerClass("Telerik.Web.UI.DockExpandCollapseCommand",Telerik.Web.UI.DockToggleCommand);
Telerik.Web.UI.DockPinUnpinCommand=function(_e2){
Telerik.Web.UI.DockPinUnpinCommand.initializeBase(this,[_e2]);
this._cssClass="rdUnpin";
this._alternateCssClass="rdPin";
this._name="PinUnpin";
this._text="Pin";
this._alternateText="Unpin";
};
Telerik.Web.UI.DockPinUnpinCommand.prototype={onCommand:function(e){
this.get_radDock().set_pinned(!this.get_radDock().get_pinned());
Telerik.Web.UI.DockPinUnpinCommand.callBaseMethod(this,"onCommand");
}};
Telerik.Web.UI.DockPinUnpinCommand.registerClass("Telerik.Web.UI.DockPinUnpinCommand",Telerik.Web.UI.DockToggleCommand);
Telerik.Web.UI._documentDropZone=function(_e4){
};
Telerik.Web.UI._documentDropZone.prototype={get_dropTargetElement:function(){
return ($telerik.standardsMode)?document.body:document.documentElement;
},canDrop:function(_e5,_e6,_e7){
return (_e6===Telerik.Web.UI.RadDock.DragDataType&&(_e7.get_dockMode()&Telerik.Web.UI.DockMode.Floating)>0);
},drop:function(_e8,_e9,_ea){
var _eb=new Sys.CancelEventArgs();
_ea.raise_dockPositionChanging(_eb);
_ea.get_element().style.zIndex=_ea.originalZIndex;
if(_eb.get_cancel()){
_ea._restorePosition();
}else{
_ea.undock();
_ea.raise_dockPositionChanged(new Sys.EventArgs());
}
},onDragEnterTarget:function(_ec,_ed,_ee){
},onDragLeaveTarget:function(_ef,_f0,_f1){
},onDragInTarget:function(_f2,_f3,_f4){
}};
Telerik.Web.UI._documentDropZone.registerClass("Telerik.Web.UI._documentDropZone",null,Telerik.Web.IDropTarget);
Telerik.Web.UI.DocumentDropZone=new Telerik.Web.UI._documentDropZone();
Telerik.Web.DragDropManager.registerDropTarget(Telerik.Web.UI.DocumentDropZone,true);


if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();