﻿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._enableAnimation=false;
this._animationDuration=300;
this._draggedCssClass="rdDragHelper";
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;
},_isDockRightToLeft:function(){
var _8=this._isRightToLeft;
if(_8==null){
var _9=this.get_element();
if(_9){
_8=this._isRightToLeft=$telerik.isRightToLeft(_9);
}
}
return _8;
},_setResizeLimit:function(){
var _a=0;
var _b=this._getTopElement();
var _c=0;
if(_b){
var _d=$telerik.getBounds(_b);
_a+=_d.height;
}
var _e=this._calculateResizeHandlesSize();
var _f=this.get_element();
this._minHeight=_a+_e.horizontalHeight;
_f.style.minHeight=this._minHeight+"px";
this.get_innerDockElement().style.minHeight=_a+"px";
var _10=this.get_commandsContainer();
var _11=1+_e.verticalWidth;
var _12=_10?$telerik.getBounds(_10).width:0;
var _13=this.get_titleElement();
var _14=_13?$telerik.getMarginBox(_13).horizontal:0;
_11+=_12+_14;
this._minWidth=_11;
_f.style.minWidth=_11+"px";
},_calculateResizeHandlesSize:function(){
if(!this._tableElement){
return null;
}
var _15=this._tableElement.rows;
var _16={n:$telerik.getBounds(_15[0].cells[1]),w:$telerik.getBounds(_15[1].cells[0]),e:$telerik.getBounds(_15[1].cells[2]),s:$telerik.getBounds(_15[2].cells[1])};
var _17={horizontalHeight:_16.n.height+_16.s.height,verticalWidth:_16.w.width+_16.e.width};
return _17;
},_collapseWrapper:function(){
var _18=this._tableElement;
if(_18){
var _19=this.get_contentContainer();
var _1a=$telerik.getBounds(_19);
var _1b=parseInt(_18.style.height)-_1a.height;
_18.style.height=(_1b>0?_1b:0)+"px";
}
},_removeWrapper:function(){
var _1c=this._tableElement;
if(_1c){
var _1d=this._calculateResizeHandlesSize();
var _1e=this.get_element();
var _1f=this.get_innerDockElement();
var _20=this.get_topBorderElement();
var _21=this.get_bottomBorderElement();
_1e.removeChild(_1c);
this._tableElement=null;
_1e.appendChild(_1f);
_1e.appendChild(_20);
_1e.appendChild(_21);
_1f.style.width="100%";
_1f.style.height="100%";
this._fixTableLayoutSize(this._width,this._height);
}
},_updateSizeValues:function(){
var _22=this._getBounds();
this._width=_22.width;
this._height=_22.height;
},_setWidthHtmlEl:function(_23,_24){
if(!_23){
return;
}
if(!_24){
_24=this.get_element();
}
if(_23.toString().indexOf("%")>-1){
_24.style.width=parseInt(_23)+"%";
}else{
_24.style.width=parseInt(_23)+"px";
}
},_setHeightHtmlEl:function(_25,_26){
if(!_26){
_26=this.get_element();
}
if(!_25){
_26.style.height="";
return;
}
if(_25.toString().indexOf("%")>-1){
_26.style.height=parseInt(_25)+"%";
}else{
_26.style.height=parseInt(_25)+"px";
}
},_moveElements:function(_27,_28){
while(_27.childNodes&&_27.childNodes.length>0){
var _29=_27.childNodes[0];
_27.removeChild(_29);
_28.appendChild(_29);
}
},_configureHandles:function(_2a){
if(!this._tableElement){
return;
}
var _2b=["e","s","se"];
var _2c=this._resizeExtender._resizeHandles;
for(var i=0;i<_2b.length;i++){
var _2e=_2b[i];
var _2f=_2c[_2e];
if(_2f){
_2f.style.cursor=_2a?_2e+"-resize":"";
}
}
},_getFullSkinName:function(){
return " RadDock RadDock_"+this._skin+" rdVariableHeight";
},_createResizeWrapper:function(){
var _30=document.createElement("TABLE");
_30.id=this.get_id()+"Table";
_30.className="rdWrapTable";
_30.width="100%";
_30.height="100%";
_30.cellSpacing=0;
_30.cellPadding=0;
this._tableElement=_30;
var _31=["rdTopLeft","rdTopCenter","rdTopRight","rdLeftMiddle","rdCenter","rdRightMiddle","rdBottomLeft","rdBottomCenter","rdBottomRight"];
var _32=0;
for(var i=0;i<3;i++){
var row=_30.insertRow(-1);
for(var j=0;j<3;j++){
var _36=row.insertCell(-1);
_36.innerHTML="&nbsp;";
_36.className=_31[_32];
_32++;
}
}
return _30;
},_fixEmWidth:function(){
if(!this.get_titleBar()){
return;
}
var _37=$telerik.getBounds(this.get_innerDockElement()).width;
var _38=this.get_commandsContainer();
var _39=_38?$telerik.getBounds(_38).width:0;
var _3a=this.get_titleElement();
if(_3a){
var _3b=_37-_39-$telerik.getMarginBox(_3a).horizontal;
if($telerik.isSafari){
_3b=_37-_39-30;
}
var _3c=_3b>0?_3b:0;
this._setWidthHtmlEl(_3c,_3a);
}
},_enableMoveResize:function(){
if(this._resizeExtender){
this._resizeExtender.dispose();
}
var _3d={};
if(this._resizable){
var _3e=this.get_element();
if(!this._tableElement){
var _3f=this._createResizeWrapper();
var _40=_3f.rows[1].cells[1];
_40.innerHTML="";
this._moveElements(_3e,_40);
_3e.appendChild(_3f);
}
var _41=this._tableElement.rows;
if(this._isDockRightToLeft()){
_3d={e:_41[1].cells[0],s:_41[2].cells[1],se:_41[2].cells[0]};
}else{
_3d={e:_41[1].cells[2],s:_41[2].cells[1],se:_41[2].cells[2]};
}
}else{
this._removeWrapper();
}
if(this._handle&&this.get_enableDrag()&&!this.get_pinned()){
_3d["move"]=this._handle;
}
this._resizeExtender=new Telerik.Web.UI.ResizeExtender(this,this.get_element(),_3d,this._tableElement);
if(this._resizable){
this._setResizeLimit();
this._setSize();
if(this._collapsed||this._dockZoneID){
this._configureHandles(false);
}
}
},_makeResizable:function(){
this._enableMoveResize();
},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;
}
var _43=this.get_innerDockElement();
_43.style.display="none";
var _44=$telerik.getBounds(_43.parentNode).width;
_43.style.display="";
this._setWidthHtmlEl(_44,_43);
_43.style.width="auto";
this._fixEmWidth();
},onResizeEnd:function(){
if(this._collapsed||this._dockZoneID){
return;
}
var _45=this._getBounds();
var _46=_45.width;
var _47=_45.height;
if(_46<this._minWidth){
_46=this._minWidth;
}
if(_47<this._minHeight){
_47=this._minHeight;
}
this._setSize(_46,_47);
this._updateSizeValues();
this.updateClientState();
this.raise_resizeEnd(new Sys.EventArgs());
},_initializeDrag:function(){
if(this._handle){
this._disposeDrag();
if(this.get_enableDrag()&&!this.get_pinned()){
Sys.UI.DomElement.addCssClass(this._handle,"rdDraggable");
this._enableMoveResize();
}else{
if(this._resizable){
this._enableMoveResize();
}
}
}
},_disposeDrag:function(){
if(this._handle&&this._resizeExtender){
this._resizeExtender.dispose();
this._resizeExtender=null;
Sys.UI.DomElement.removeCssClass(this._handle,"rdDraggable");
}
},_startDragDrop:function(){
var _48=this.get_element();
this.originalZIndex=_48.style.zIndex;
var _49=this._getBounds(_48);
var _4a=this._getBorderBox(_48);
_49.width-=_4a.horizontal;
_49.height-=_4a.vertical;
_48.style.width=_49.width+"px";
_48.style.zIndex="9999999";
var _4b=$telerik.getLocation(_48);
if(_48.parentNode!=this._form){
this._form.appendChild(_48);
}
var _4c=$find(this.get_dockZoneID());
if(_4c){
_4c._showPlaceholder(this,_4b);
}
this._setLocation(_4b);
},onDragStart:function(){
if(!this.get_enableDrag()||this.get_pinned()){
return false;
}
this.get_contentContainer().style.overflow="hidden";
this.addCssClass(this._draggedCssClass);
this._startDragDrop();
var _4d=this.get_element();
this.raise_dragStart(new Sys.EventArgs());
return true;
},onDrag:function(_4e){
this._hitZone=this.dockingZoneHitTest(_4e.ownerEvent);
this.raise_drag(new Sys.EventArgs());
},onDragEnd:function(_4f){
var _50=this._hitZone;
if(!_50){
var _51=this._getBounds();
_50=this._hitZone=this.dockingZoneHitTest(_4f.ownerEvent);
}
if(_50){
if(_50.canDrop(this)){
_50.drop(this);
}else{
this._restorePosition();
}
}else{
if(this.canDrop()){
this.drop();
}else{
this._restorePosition();
}
}
this.get_contentContainer().style.overflow="auto";
this.removeCssClass(this._draggedCssClass);
this.raise_dragEnd(new Sys.EventArgs());
},get_dockZones:function(){
if(typeof (Telerik.Web.UI.RadDockZonesGlobalArray)=="undefined"){
return [];
}
return Telerik.Web.UI.RadDockZonesGlobalArray;
},dockingZoneHitTest:function(e){
var _53;
var _54=null;
var _55=this.get_dockZones();
for(var i=0;i<_55.length;i++){
_53=_55[i];
if(_53.hitTest(this,e)){
_54=_53;
}
}
return _54;
},canDrop:function(){
return (this.get_dockMode()&Telerik.Web.UI.DockMode.Floating)>0;
},drop:function(){
var _57=new Sys.CancelEventArgs();
this.raise_dockPositionChanging(_57);
this.get_element().style.zIndex=this.originalZIndex;
if(_57.get_cancel()){
this._restorePosition();
}else{
this.undock();
this.raise_dockPositionChanged(new Sys.EventArgs());
}
},getCommand:function(_58){
return this._commands?this._commands[_58]:null;
},get_handle:function(){
return this._handle;
},set_handle:function(_59){
this._isCustomHandle=true;
this._setHandle(_59);
},_setHandle:function(_5a){
this._disposeDrag();
this._handle=_5a;
this._initializeDrag();
},_repaintHelper:function(){
if(this.get_closed()){
return;
}
if(this._resizable&&Sys.UI.DomElement.containsCssClass(this.get_element(),"rdVariableHeight")){
this.get_contentContainer().style.height="";
}else{
this._setContentContainerHeight();
}
this._setCommandsContainerWidth();
},getInvisibleParent:function(_5b){
while(_5b!=document){
if("none"==$telerik.getCurrentStyle(_5b,"display","")){
return _5b;
}
_5b=_5b.parentNode;
}
return null;
},subtractPoints:function(p1,p2){
return {x:p1.x-p2.x,y:p1.y-p2.y};
},addPoints:function(p1,p2){
return {x:p1.x+p2.x,y:p1.y+p2.y};
},initialize:function(){
Telerik.Web.UI.RadDock.callBaseMethod(this,"initialize");
if(this._isDockRightToLeft()){
var _60=this.get_element();
Sys.UI.DomElement.addCssClass(_60,"rdRtl");
Sys.UI.DomElement.addCssClass(_60,"RadDock_"+this._skin+"_rtl");
}
this._initializeHtmlElementVariables();
this._initializeCommands();
this._updateToggleCommandsState();
this._setPinUnpinVisibility();
this._setHandle(this._titleBar||this._grip);
var _61=this.get_commandsContainer();
this._commandsContainerWidth=_61?$telerik.getBounds(_61).width:0;
var _62=this.get_element();
var _63=_62.parentNode;
var _64=this.getInvisibleParent(this.get_element().parentNode);
isHidden=(_64!=null);
if(isHidden){
var _65={position:_62.style.position,top:_62.style.top,left:_62.style.left};
_62.parentNode.removeChild(_62);
_62.style.position="absolute";
_62.style.top="-5000px";
_62.style.left="-5000px";
document.body.appendChild(_62);
}
this._makeResizable();
this._setContentContainerHeight();
if(isHidden){
_62.style.position=_65.position;
_62.style.top=_65.top;
_62.style.left=_65.left;
_62.parentNode.removeChild(_62);
var _66=this.get_dockZone();
if(_66&&Telerik.Web.UI.RadDockZone.isInstanceOfType(_66)){
_63.insertBefore(_62,_66._placeholder);
}else{
_63.appendChild(_62);
}
}
this._initialized=true;
this.updateClientState();
this.raise_initialize();
},undock:function(){
var _67=this.get_element();
if(_67.parentNode!=this._form){
this._form.appendChild(_67);
}
var _68=this._getLocation(_67);
this.set_left(_68.x);
this.set_top(_68.y);
var _69=$find(this.get_dockZoneID());
if(_69){
this.set_dockZoneID("");
_69._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 _6a=this._titleBar.lastChild;
while(_6a){
if(_6a.className=="rdCommands"){
this._commandsContainer=_6a;
break;
}
_6a=_6a.previousSibling;
}
}
var _6b=this.get_element().parentNode;
while(_6b){
if(_6b.tagName.toLowerCase()==="form"){
this._form=_6b;
break;
}
_6b=_6b.parentNode;
}
},_initializeCommands:function(){
if(!this._commandsContainer){
return;
}
var _6c=this._commandsContainer.getElementsByTagName("a");
var _6d=this._commands;
if(_6d){
this._commands={};
for(var i=0;i<_6d.length;i++){
var _6f=_6d[i];
var _70=eval(_6f.clientTypeName);
if(_70==Telerik.Web.UI.DockCommand||_70.inheritsFrom(Telerik.Web.UI.DockCommand)){
_6f.radDock=this;
var _71=null;
if(_6f.command){
_71={"command":eval(_6f.command)};
delete _6f.command;
}
var cmd=$create(_70,_6f,_71,null,_6c[i]);
this._commands[cmd.get_name()]=cmd;
}else{
throw Error.invalidOperation(_6f.clientTypeName+" does not inherit from Telerik.Web.UI.DockCommand.");
}
}
}
},_updateToggleCommandsState:function(){
var _73=this.getCommand("ExpandCollapse");
if(_73){
_73.set_state(this.get_collapsed()?2:1);
}
var _74=this.getCommand("PinUnpin");
if(_74){
_74.set_state(this.get_pinned()?2:1);
}
},_setPinUnpinVisibility:function(){
var _75=this.getCommand("PinUnpin");
if(_75){
_75.get_element().style.display=this.get_dockZoneID()?"none":"inline";
}
this._setCommandsContainerWidth();
},_setCommandsContainerWidth:function(){
if(!this._commandsContainer){
return;
}
var _76=this._commandsContainer.getElementsByTagName("a");
var _77=0;
for(var i=0;i<_76.length;i++){
var _79=this._getBoundsWithBorderAndMargin(_76[i]);
_77+=_79.width;
}
this._commandsContainer.style.width=_77+"px";
},_getBoundsWithoutBorder:function(_7a){
if(!_7a){
_7a=this.get_element();
}
var _7b=this._getBounds(_7a);
var _7c=this._getBorderBox(_7a);
var _7d=_7b.width-_7c.horizontal;
var _7e=_7b.height-_7c.vertical;
_7b.width=_7d>0?_7d:0;
_7b.height=_7e>0?_7e:0;
return _7b;
},_getBoundsWithBorderAndMargin:function(_7f){
if(!_7f){
_7f=this.get_element();
}
var _80=this._getBounds(_7f);
var _81=this._getMarginBox(_7f);
var _82=this._getBorderBox(_7f);
_80.width+=(($telerik.isSafari?0:_81.horizontal)+_82.horizontal);
_80.height+=(_81.vertical+_82.vertical);
return _80;
},_getBounds:function(_83){
if(!_83){
_83=this.get_element();
}
return $telerik.getBounds(_83);
},_getMarginBox:function(_84){
if(!_84){
_84=this.get_element();
}
return $telerik.getMarginBox(_84);
},_getBorderBox:function(_85){
if(!_85){
_85=this.get_element();
}
return $telerik.getBorderBox(_85);
},_resetPosition:function(){
var _86=this.get_element();
_86.style.top="";
_86.style.left="";
_86.originalPosition="relative";
_86.style.position="relative";
if(typeof (this.originalZIndex)=="undefined"){
this.originalZIndex="";
}
_86.style.zIndex=this.originalZIndex;
},_setContentContainerHeight:function(){
var _87=this.get_contentContainer();
if(!_87){
return;
}
if(!Sys.UI.DomElement.containsCssClass(this.get_element(),"rdVariableHeight")||this._resizable){
var _88=this._getBounds();
var _89=this.get_handle();
if(_89&&!this._isCustomHandle){
var _8a=this._getBounds(_89);
_88.height-=_8a.height;
}
var _8b=this._tableElement?this._calculateResizeHandlesSize().horizontalHeight:2;
var _8c=$telerik.getPaddingBox(_87).vertical;
var _8d=_88.height-_8b-_8c;
_87.style.height=(_8d<0?0:_8d)+"px";
}else{
_87.style.height="";
}
},_restorePosition:function(){
var _8e=$find(this.get_dockZoneID());
if(_8e){
_8e.dock(this,this.get_index());
}else{
this.undock();
}
},_getLocation:function(_8f){
if(!_8f){
_8f=this.get_element();
}
return $telerik.getLocation(_8f);
},_setLocation:function(_90){
$telerik.setLocation(this.get_element(),_90);
},_setSize:function(_91,_92){
var _93=this._getBoundsWithoutBorder();
if(!_91){
_91=_93.width;
}
if(!_92){
_92=_93.height;
}
this._setWidthHtmlEl(_91);
this._setHeightHtmlEl(_92);
if(this._tableElement){
this._fixTableLayoutSize(_91,_92);
}else{
this._setContentContainerHeight();
}
},_fixTableLayoutSize:function(_94,_95){
var _96=this.get_contentContainer();
var _97=$telerik.getPaddingBox(_96).vertical;
var _98=this._getTopElement();
var _99={height:0,width:0};
var _9a=0;
if(_98){
_99=$telerik.getBounds(_98);
}
var _9b=this.get_innerDockElement();
_9b.style.display="none";
var _9c=this._tableElement;
if(_9c){
this._setHeightHtmlEl(_95,_9c);
this._fixIeHeight(_9c,_95);
}
var _9d=$telerik.getBounds(_9b.parentNode);
var _94=_9d.width;
if(!this._tableElement){
_94-=this._getBorderBox(_9b).horizontal;
}
this._setWidthHtmlEl(_94,_9b);
var _9e=_9d.height-_99.height-_97;
_9e=_9e>0?_9e:0;
this._setHeightHtmlEl(_9e,_96);
if(_9e>0){
_96.style.display="";
}
_9b.style.display="";
this._fixEmWidth();
if(this._collapsed){
_9b.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 _9f=this.get_titleBar();
if(_9f){
this._commandsContainer=_9f.getElementsByTagName("span")[0];
}else{
this._commandsContainer=null;
}
}
return this._commandsContainer;
},get_titleElement:function(){
if(!this._titleElement){
var _a0=this.get_titleBar();
this._titleElement=_a0?_a0.getElementsByTagName("em")[0]:null;
}
return this._titleElement;
},get_innerDivElement:function(num){
var _a2=this._tableElement;
if(_a2){
if(_a2.rows.length>1){
var _a3=_a2.rows[1].cells[1];
if(_a3){
return _a3.getElementsByTagName("div")[num];
}
}
}
return this.get_element().getElementsByTagName("div")[num];
},get_innerDockElement:function(){
return this.get_innerDivElement(0);
},get_topBorderElement:function(){
return this.get_innerDivElement(3);
},get_bottomBorderElement:function(){
return this.get_innerDivElement(4);
},saveClientState:function(){
var _a4={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(_a4);
},conditionalPostback:function(_a5){
if(this.get_autoPostBack()){
this.doPostBack(_a5);
}
},doPostBack:function(_a6){
__doPostBack(this.get_uniqueID(),_a6);
},add_command:function(_a7){
this.get_events().addHandler("command",_a7);
},remove_command:function(_a8){
this.get_events().removeHandler("command",_a8);
},raise_command:function(_a9){
this.raiseEvent("command",_a9);
},add_dragStart:function(_aa){
this.get_events().addHandler("dragStart",_aa);
},remove_dragStart:function(_ab){
this.get_events().removeHandler("dragStart",_ab);
},raise_dragStart:function(_ac){
this.raiseEvent("dragStart",_ac);
},add_drag:function(_ad){
this.get_events().addHandler("drag",_ad);
},remove_drag:function(_ae){
this.get_events().removeHandler("drag",_ae);
},raise_drag:function(_af){
this.raiseEvent("drag",_af);
},add_dragEnd:function(_b0){
this.get_events().addHandler("dragEnd",_b0);
},remove_dragEnd:function(_b1){
this.get_events().removeHandler("dragEnd",_b1);
},raise_dragEnd:function(_b2){
this.raiseEvent("dragEnd",_b2);
},add_dockPositionChanged:function(_b3){
this.get_events().addHandler("dockPositionChanged",_b3);
},remove_dockPositionChanged:function(_b4){
this.get_events().removeHandler("dockPositionChanged",_b4);
},raise_dockPositionChanged:function(_b5){
this.raiseEvent("dockPositionChanged",_b5);
this.conditionalPostback("dockPositionChanged");
},add_dockPositionChanging:function(_b6){
this.get_events().addHandler("dockPositionChanging",_b6);
},remove_dockPositionChanging:function(_b7){
this.get_events().removeHandler("dockPositionChanging",_b7);
},raise_dockPositionChanging:function(_b8){
this.raiseEvent("dockPositionChanging",_b8);
},add_initialize:function(_b9){
this.get_events().addHandler("initialize",_b9);
},remove_initialize:function(_ba){
this.get_events().removeHandler("initialize",_ba);
},raise_initialize:function(_bb){
this.raiseEvent("initialize",_bb);
},add_resizeStart:function(_bc){
this.get_events().addHandler("resizeStart",_bc);
},remove_resizeStart:function(_bd){
this.get_events().removeHandler("resizeStart",_bd);
},raise_resizeStart:function(_be){
this.raiseEvent("resizeStart",_be);
},add_resizeEnd:function(_bf){
this.get_events().addHandler("resizeEnd",_bf);
},remove_resizeEnd:function(_c0){
this.get_events().removeHandler("resizeEnd",_c0);
},raise_resizeEnd:function(_c1){
this.raiseEvent("resizeEnd",_c1);
},get_top:function(){
return this._top;
},set_top:function(_c2){
if(_c2!=""){
_c2=parseInt(_c2);
if(this._initialized){
this.get_element().style.top=_c2+"px";
}
}
this._top=_c2;
this.updateClientState();
},get_left:function(){
return this._left;
},set_left:function(_c3){
if(_c3!=""){
_c3=parseInt(_c3);
if(this._initialized){
this.get_element().style.left=_c3+"px";
}
}
this._left=_c3;
this.updateClientState();
},get_closed:function(){
return this._closed;
},set_closed:function(_c4,_c5){
_c5=_c5?_c5:false;
this._closed=_c4;
var _c6=this.get_element();
var _c7=this.get_contentContainer();
var _c8=this;
var _c9=this.get_enableAnimation()?this._animationDuration:0;
if(!_c5){
_c9=0;
}
if(_c4){
$telerik.$(_c6).hide(_c9,function(){
_c6.style.display="none";
_c8.updateClientState();
Telerik.Web.UI.DockCloseCommand.callBaseMethod(_c8.getCommand("Close"),"onCommand");
});
}else{
_c7.style.height="auto";
$telerik.$(_c6).show(_c9,function(){
_c8.set_height(_c8.get_height());
_c8._repaintHelper();
$telerik.repaintChildren(_c8);
_c8.updateClientState();
Telerik.Web.UI.DockCloseCommand.callBaseMethod(_c8.getCommand("Close"),"onCommand");
});
}
},get_collapsed:function(){
return this._collapsed;
},set_collapsed:function(_ca,_cb){
_cb=_cb?_cb:false;
var _cc=this._collapsed;
this._collapsed=_ca;
if(!this._initialized){
return;
}
var _cd=this;
var _ce=this.get_element();
var _cf=this._tableElement;
var _d0=this.get_contentContainer();
var _d1=_cd.get_innerDockElement();
var _d2=this.get_enableAnimation()?this.get_animationDuration():0;
if(!_cb){
_d2=0;
}
var _d3={};
var _d4=this.getCommand("ExpandCollapse");
_ce.style.height="auto";
if(this._resizable&&_cf){
_cf.style.height="auto";
}
if(this._collapsed){
this._expandedHeight=this._height?parseInt(this._height):parseInt(_cd._getBounds().height);
_d3.height="0px";
$telerik.$(_d0).animate(_d3,_d2,function(){
if(_cd._resizable){
_d1.style.height="auto";
}
_cd._configureHandles(false);
_cd._setContentContainerHeight();
_cd.addCssClass("rdCollapsed");
_d0.style.display="none";
if(_d4){
_d4.set_state(2);
Telerik.Web.UI.DockExpandCollapseCommand.callBaseMethod(_d4,"onCommand");
}
});
}else{
if(_cc&&!this._collapsed&&!this._expandedHeight){
if(this._height){
this._expandedHeight=parseInt(this._height);
}else{
var _d5=_ce.style.height;
var _d6=_d0.style.height;
_ce.style.height="auto";
_d0.style.height="auto";
_d0.style.display="block";
this._expandedHeight=parseInt(_cd._getBounds().height);
_ce.style.height=_d5;
_d0.style.height=_d6;
_d0.style.display="none";
}
}
var _d7=$telerik.getOuterBounds(this.get_titleBar()).height;
var _d8=this._resizable?this._calculateResizeHandlesSize().horizontalHeight:0;
var _d9=parseInt(this._expandedHeight)-_d7-_d8;
_d3.height=_d9+"px";
_d0.style.height="0px";
$telerik.$(_d0).animate(_d3,_d2,function(){
_cd.removeCssClass("rdCollapsed");
_cd._setHeightHtmlEl(_cd._expandedHeight);
if(_cd._resizable){
if(!_cd._dockZoneID){
_cd._configureHandles(true);
}
_d1.style.height="";
}
if(_cd.get_height()==null){
_cd.addCssClass("rdVariableHeight");
}
_cd._setContentContainerHeight();
if(_d4){
_d4.set_state(1);
}
$telerik.repaintChildren(_cd);
if(_cd._resizable){
_cd._height=$telerik.getBounds(_ce).height+"px";
_cd.set_height(_cd._height);
}
_cd.updateClientState();
if(_d4){
Telerik.Web.UI.DockExpandCollapseCommand.callBaseMethod(_d4,"onCommand");
}
});
}
},get_autoPostBack:function(){
return this._autoPostBack;
},set_autoPostBack:function(_da){
this._autoPostBack=_da;
},get_commands:function(){
return this._commands;
},set_commands:function(_db){
this._commands=_db;
},get_dockMode:function(){
return this._dockMode;
},set_dockMode:function(_dc){
this._dockMode=_dc;
},get_dockZoneID:function(){
return this._dockZoneID;
},set_dockZoneID:function(_dd){
if(_dd==""){
if(!this._collapsed){
this._configureHandles(true);
}
}else{
this._configureHandles(false);
}
this._dockZoneID=_dd;
},get_forbiddenZones:function(){
return this._forbiddenZones;
},set_forbiddenZones:function(_de){
this._forbiddenZones=_de;
},get_height:function(){
return this._height;
},set_height:function(_df){
this._height=_df;
this.updateClientState();
if(this._initialized){
this._setSize(null,_df);
if(!this._tableElement){
this.removeCssClass("rdVariableHeight");
}
}
},get_index:function(){
return this._index;
},set_index:function(_e0){
this._index=_e0;
},get_layoutID:function(){
return this._layoutID;
},set_layoutID:function(_e1){
this._layoutID=_e1;
},get_enableDrag:function(){
return this._enableDrag;
},set_enableDrag:function(_e2){
this._enableDrag=_e2;
this._initializeDrag();
},get_enableAnimation:function(){
return this._enableAnimation;
},set_enableAnimation:function(_e3){
this._enableAnimation=_e3;
},get_animationDuration:function(){
return this._animationDuration;
},set_animationDuration:function(_e4){
this._animationDuration=_e4;
},get_pinned:function(){
return this._pinned;
},set_pinned:function(_e5){
this._pinned=_e5;
var _e6=this.getCommand("PinUnpin");
if(_e6){
_e6.set_state(_e5?2:1);
}
if($telerik.isIE6){
if(_e5){
this.set_enableDrag(false);
}else{
this.set_enableDrag(true);
}
return;
}
var _e7=this.get_element();
_e7.style.position="absolute";
var _e8=$telerik.getScrollOffset(_e7,true);
var _e9=this._getLocation(_e7);
if(_e5){
_e9=this.subtractPoints(_e9,_e8);
this._setLocation(_e9);
_e7.style.position="fixed";
this.set_enableDrag(false);
}else{
_e9=this.addPoints(_e9,_e8);
this._setLocation(_e9);
this.set_enableDrag(true);
}
},get_title:function(){
return this._title;
},set_title:function(_ea){
this._title=_ea;
var _eb=this.get_titleElement();
if(_eb){
_eb.innerHTML=_ea;
}
},get_uniqueID:function(){
return this._uniqueID;
},set_uniqueID:function(_ec){
this._uniqueID=_ec;
},get_uniqueName:function(){
return this._uniqueName;
},set_uniqueName:function(_ed){
this._uniqueName=_ed;
},get_width:function(){
return this._width;
},set_width:function(_ee){
this._width=_ee;
this.updateClientState();
if(this._initialized){
this._setSize(_ee,null);
}
},get_skin:function(){
return this._skin;
},set_skin:function(_ef){
if(_ef&&this._skin!=_ef){
this._skin=_ef;
}
},get_resizable:function(){
return this._resizable;
},set_resizable:function(_f0){
this._resizable=_f0;
if(_f0){
this._makeResizable();
}else{
this._removeWrapper();
}
},get_dockZone:function(){
return this._dockZone;
},set_dockZone:function(_f1){
this._dockZone=_f1;
}};
Telerik.Web.UI.RadDock.registerClass("Telerik.Web.UI.RadDock",Telerik.Web.UI.RadWebControl);
Telerik.Web.UI.RadDock.prototype.repaint=function(){
this._repaintHelper();
};
Telerik.Web.UI.DockCommand=function(_f2){
Telerik.Web.UI.DockCommand.initializeBase(this,[_f2]);
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(_f3){
this.get_events().addHandler("command",_f3);
},remove_command:function(_f4){
this.get_events().removeHandler("command",_f4);
},raise_command:function(_f5){
var _f6=this.get_events().getHandler("command");
if(_f6){
_f6(this.get_radDock(),_f5);
}
},get_clientTypeName:function(){
return this._clientTypeName;
},set_clientTypeName:function(_f7){
this._clientTypeName=_f7;
},get_cssClass:function(){
return this._cssClass;
},set_cssClass:function(_f8){
this._cssClass=_f8;
},get_name:function(){
return this._name;
},set_name:function(_f9){
this._name=_f9;
},get_text:function(){
return this._text;
},set_text:function(_fa){
this._text=_fa;
},get_autoPostBack:function(){
return this._autoPostBack;
},set_autoPostBack:function(_fb){
this._autoPostBack=_fb;
},get_radDock:function(){
return this._radDock;
},set_radDock:function(_fc){
this._radDock=_fc;
},onCommand:function(e){
var _fe=new Sys.CancelEventArgs();
_fe.command=this;
_fe.event=e;
_fe.Command=this;
this.raise_command(_fe);
if(_fe.get_cancel()){
return;
}
this.get_radDock().raise_command(_fe);
if(_fe.get_cancel()){
return;
}
this.get_radDock().updateClientState();
this.conditionalPostback();
},onMouseDown:function(e){
$telerik.cancelRawEvent(e);
},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,"mousedown":this.onMouseDown},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(_100){
Telerik.Web.UI.DockToggleCommand.initializeBase(this,[_100]);
this._state=1;
this._alternateCssClass="rdCustom";
this._alternateText="Custom";
this._initialSetState=false;
};
Telerik.Web.UI.DockToggleCommand.prototype={updateState:function(){
var _101=this.get_element();
if(this.get_state()==1){
_101.title=this.get_text();
Sys.UI.DomElement.addCssClass(_101,this.get_cssClass());
Sys.UI.DomElement.removeCssClass(_101,this.get_alternateCssClass());
}else{
_101.title=this.get_alternateText();
Sys.UI.DomElement.addCssClass(_101,this.get_alternateCssClass());
Sys.UI.DomElement.removeCssClass(_101,this.get_cssClass());
}
},get_state:function(){
return this._state;
},set_state:function(_102){
this._state=_102;
if(this._initialSetState){
this.updateState();
}
},get_alternateCssClass:function(){
return this._alternateCssClass;
},set_alternateCssClass:function(_103){
this._alternateCssClass=_103;
},get_alternateText:function(){
return this._alternateText;
},set_alternateText:function(_104){
this._alternateText=_104;
},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(_105){
Telerik.Web.UI.DockCloseCommand.initializeBase(this,[_105]);
this._cssClass="rdClose";
this._name="Close";
this._text="Close";
};
Telerik.Web.UI.DockCloseCommand.prototype={onCommand:function(e){
this.get_radDock().set_closed(true,true);
}};
Telerik.Web.UI.DockCloseCommand.registerClass("Telerik.Web.UI.DockCloseCommand",Telerik.Web.UI.DockCommand);
Telerik.Web.UI.DockExpandCollapseCommand=function(_107){
Telerik.Web.UI.DockExpandCollapseCommand.initializeBase(this,[_107]);
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(),true);
}};
Telerik.Web.UI.DockExpandCollapseCommand.registerClass("Telerik.Web.UI.DockExpandCollapseCommand",Telerik.Web.UI.DockToggleCommand);
Telerik.Web.UI.DockPinUnpinCommand=function(_109){
Telerik.Web.UI.DockPinUnpinCommand.initializeBase(this,[_109]);
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);


if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();