﻿Type.registerNamespace("Telerik.Web.UI");
Telerik.Web.UI.PaneBeforeDockEventArgs=function(){Telerik.Web.UI.PaneBeforeDockEventArgs.initializeBase(this)
};
Telerik.Web.UI.PaneBeforeDockEventArgs.prototype={};
Telerik.Web.UI.PaneBeforeDockEventArgs.registerClass("Telerik.Web.UI.PaneBeforeDockEventArgs",Sys.CancelEventArgs);
Telerik.Web.UI.PaneDockedEventArgs=function(){Telerik.Web.UI.PaneDockedEventArgs.initializeBase(this)
};
Telerik.Web.UI.PaneDockedEventArgs.prototype={};
Telerik.Web.UI.PaneDockedEventArgs.registerClass("Telerik.Web.UI.PaneDockedEventArgs",Sys.EventArgs);
Telerik.Web.UI.PaneBeforeUndockEventArgs=function(){Telerik.Web.UI.PaneBeforeUndockEventArgs.initializeBase(this)
};
Telerik.Web.UI.PaneBeforeUndockEventArgs.prototype={};
Telerik.Web.UI.PaneBeforeUndockEventArgs.registerClass("Telerik.Web.UI.PaneBeforeUndockEventArgs",Sys.CancelEventArgs);
Telerik.Web.UI.PaneUndockedEventArgs=function(){Telerik.Web.UI.PaneUndockedEventArgs.initializeBase(this)
};
Telerik.Web.UI.PaneUndockedEventArgs.prototype={};
Telerik.Web.UI.PaneUndockedEventArgs.registerClass("Telerik.Web.UI.PaneUndockedEventArgs",Sys.EventArgs);
Telerik.Web.UI.RadSlidingPane=function(a){Telerik.Web.UI.RadSlidingPane.initializeBase(this,[a]);
this._title="";
this._enableResize=true;
this._enableDock=true;
this._parentPane=null;
this._resizeBarSize=null;
this._slideBorderSize=0;
this._isExpanded=false;
this._isDocked=false;
this._width=150;
this._height=150;
this._minWidth=60;
this._minHeight=60;
this._isInitialSizeApplied=false;
this._popupBehavior=null;
this._popupElement=null;
this._zone=null;
this._contentElement=null;
this._tableElement=null;
this._tabContainer=null;
this._resizeElement=null;
this.GetContentContainer=this.getContentContainer;
this.GetContent=this.getContent;
this.SetContent=this.setContent;
this.GetDockIconElement=this.getDockIconElement;
this.GetUndockIconElement=this.getUndockIconElement;
this.GetCollapseIconElement=this.getCollapseIconElement;
this.GetSlidingContainerTitle=this.getSlidingContainerTitle;
this.GetSlidingPaneResizeContainer=this.getSlidingPaneResizeContainer;
this.GetTabContainer=this.getTabContainer;
this.HideTab=this.hideTab;
this.ShowTab=this.showTab;
this.IsTabDisplayed=this.isTabDisplayed
};
Telerik.Web.UI.RadSlidingPane.prototype={initialize:function(){Telerik.Web.UI.RadSlidingPane.callBaseMethod(this,"initialize");
this._popupElement=this.get_element();
this._zone=this.get_parent();
this._contentElement=this.getContentContainer();
this._tableElement=this._popupElement.getElementsByTagName("TABLE")[0];
this._tabContainer=this.getTabContainer();
this._resizeElement=this.getSlidingPaneResizeContainer();
var f=this._zone;
var c=this._tabContainer;
$addHandlers(c,{mousedown:f._paneTab_OnMouseDown,mouseover:f._paneTab_OnMouseOver,mouseout:f._paneTab_OnMouseOut},f);
var b=this._popupElement;
$addHandlers(b,{mouseover:this._slidingContainer_OnMouseOver,mouseout:this._slidingContainer_OnMouseOut},this);
var e=this._resizeElement;
$addHandlers(e,{mouseover:this._resizeSlidePane_OnMouseOver,mouseout:this._resizeSlidePane_OnMouseOut,mousedown:this._resizeSlidePane_OnMouseDown},this);
e.setAttribute("unselectable","on");
var a=this.getDockIconElement();
$addHandlers(a,{mouseover:this._dockElement_OnMouseOver,mouseout:this._dockElement_OnMouseOut,mousedown:this._dockElement_OnMouseDown},this);
var d=this.getUndockIconElement();
$addHandlers(d,{mouseover:this._undockElement_OnMouseOver,mouseout:this._undockElement_OnMouseOut,mousedown:this._undockElement_OnMouseDown},this);
var g=this.getCollapseIconElement();
$addHandlers(g,{mouseover:this._collapseElement_OnMouseOver,mouseout:this._collapseElement_OnMouseOut,mousedown:this._collapseElement_OnMouseDown},this);
if(this._scrollingEnabled==null){this._scrollingEnabled=(this._scrolling!=Telerik.Web.UI.SplitterPaneScrolling.None)
}if(this._scrollingEnabled&&this._persistScrollPosition){this._attachScrollHandler()
}this.updateClientState()
},dispose:function(){var e=this._popupBehavior;
if(e){e.dispose();
this._popupBehavior=null
}var i=this._animation;
if(this._expandAnimationEndedDelegate){if(i){i.remove_expandAnimationEnded(this._expandAnimationEndedDelegate)
}this._expandAnimationEndedDelegate=null
}if(i){i.dispose();
this._animation=null
}var f=this._tabContainer;
if(f){$clearHandlers(f)
}var d=this._popupElement;
if(d){$clearHandlers(d)
}this._popupElement=null;
var a=this._resizeElement;
if(a){$clearHandlers(a)
}this._resizeElement=null;
var b=this.getDockIconElement();
if(b){$clearHandlers(b)
}var c=this.getUndockIconElement();
if(c){$clearHandlers(c)
}var g=this.getCollapseIconElement();
if(g){$clearHandlers(g)
}var h=this._contentElement;
if(this._onScrollAttached&&h){$clearHandlers(h)
}this._contentElement=null;
Telerik.Web.UI.RadSlidingPane.callBaseMethod(this,"dispose")
},get_enableResize:function(){return this._enableResize
},set_enableResize:function(a){this._enableResize=a;
this.updateClientState()
},get_enableDock:function(){return this._enableDock
},set_enableDock:function(a){this._enableDock=a;
this.updateClientState()
},set_title:function(a){this._title=a;
var c=this._getTitleContainerElement();
if(c!=null){var d=this._zone;
if(d){c.innerHTML=(!$telerik.isIE&&d._isHorizontalSlide())?a.split("").join("<br/>"):a
}}var b=this.getSlidingContainerTitle();
if(b){b.innerHTML=a
}this.updateClientState()
},get_title:function(){return this._title
},get_expanded:function(){return this._isExpanded
},get_docked:function(){return this._isDocked
},get_parentPane:function(){return this._parentPane
},set_parentPane:function(a){this._parentPane=a
},add_docked:function(a){this.get_events().addHandler("docked",a)
},remove_docked:function(a){this.get_events().removeHandler("docked",a)
},add_undocked:function(a){this.get_events().addHandler("undocked",a)
},remove_undocked:function(a){this.get_events().removeHandler("undocked",a)
},add_beforeDock:function(a){this.get_events().addHandler("beforeDock",a)
},remove_beforeDock:function(a){this.get_events().removeHandler("beforeDock",a)
},add_beforeUndock:function(a){this.get_events().addHandler("beforeUndock",a)
},remove_beforeUndock:function(a){this.get_events().removeHandler("beforePaneUndocked",a)
},getContentContainer:function(){if(!this._contentElement){this._contentElement=$get("RAD_SLIDING_PANE_CONTENT_"+this.get_id())
}return this._contentElement
},get_pane:function(){return this.get_parentPane().get_element()
},get_paneBounds:function(){var a=this.get_pane();
return $telerik.getBounds(a)
},_show:function(a,b){var c=this._popupBehavior;
c._setCoordinates(a,b);
c.show()
},get_slidingPaneBounds:function(){var c=this._popupElement;
var b=(c.style.top==""&&!this._isDocked);
if(b){this._setSlidingContainerSize()
}var a=$telerik.getBounds(c);
return a
},_fixIeHeight:function(a,b){if($telerik.standardsMode){var d=(a.offsetHeight-parseInt(b));
if(d>0){var c=(parseInt(a.style.height)-d);
if(c>0){a.style.height=c+"px"
}}}},getContent:function(){return this._contentElement.innerHTML
},setContent:function(a){this._contentElement.innerHTML=a
},getDockIconElement:function(){return $get("RAD_SPLITTER_SLIDING_PANE_DOCK_"+this.get_id())
},getDockIconWrapperElement:function(){return this.getDockIconElement().parentNode
},getUndockIconElement:function(){return $get("RAD_SPLITTER_SLIDING_PANE_UNDOCK_"+this.get_id())
},getUnDockIconWrapperElement:function(){return this.getUndockIconElement().parentNode
},getCollapseIconElement:function(){return $get("RAD_SPLITTER_SLIDING_PANE_COLLAPSE_"+this.get_id())
},getCollapseIconWrapperElement:function(){return this.getCollapseIconElement().parentNode
},getSlidingContainerTitle:function(){return $get("RAD_SPLITTER_SLIDING_TITLE_"+this.get_id())
},getSlidingPaneResizeContainer:function(){if(!this._resizeElement){this._resizeElement=$get("RAD_SPLITTER_SLIDING_ZONE_RESIZE_"+this.get_id())
}return this._resizeElement
},getTabContainer:function(){if(!this._tabContainer){this._tabContainer=$get("RAD_SLIDING_PANE_TAB_"+this.get_id())
}return this._tabContainer
},hideTab:function(){var a=this._tabContainer;
if(a==null){return
}a.style.display="none"
},showTab:function(){var a=this._tabContainer;
if(a==null){return
}a.style.display=""
},isTabDisplayed:function(){var a=this._tabContainer;
if(a==null){return false
}return(a.style.display!="none")
},_getIsLeftDirection:function(){var b=this._zone;
var a=$telerik.isRightToLeft(b.get_splitter().get_element());
return(b.isLeftDirection()&&!a)||(a&&b.isRightDirection())
},_getIsRightDirection:function(){var b=this._zone;
var a=$telerik.isRightToLeft(b.get_splitter().get_element());
return(b.isRightDirection()&&!a)||(a&&b.isLeftDirection())
},_setTabDefaultState:function(){var a=this._tabContainer;
if(a==null){return false
}Sys.UI.DomElement.removeCssClass(a,"rspPaneTabContainerDocked");
Sys.UI.DomElement.removeCssClass(a,"rspPaneTabContainerExpanded")
},_setTabDockedState:function(){var a=this._tabContainer;
if(a==null){return false
}Sys.UI.DomElement.addCssClass(a,"rspPaneTabContainerDocked")
},_setTabExpandedState:function(){var a=this._tabContainer;
if(a==null){return false
}Sys.UI.DomElement.addCssClass(a,"rspPaneTabContainerExpanded")
},_resizeSlidePane_OnMouseOver:function(b){var a=(this._zone._isHorizontalSlide())?"rspSlideContainerResizeOver":"rspSlideContainerResizeOverHorizontal";
Sys.UI.DomElement.addCssClass(this._resizeElement,a)
},_resizeSlidePane_OnMouseOut:function(b){var a=(this._zone._isHorizontalSlide())?"rspSlideContainerResizeOver":"rspSlideContainerResizeOverHorizontal";
Sys.UI.DomElement.removeCssClass(this._resizeElement,a)
},_resizeSlidePane_OnMouseDown:function(j){j.preventDefault();
j.stopPropagation();
var l=this._zone;
var o=l._isHorizontalSlide();
this._maxDecreaseDelta=(o)?this.get_width()-this.get_minWidth():this.get_height()-this.get_minHeight();
var m=(o)?this.get_maxWidth()-this.get_width():this.get_maxHeight()-this.get_height();
var c=this.get_parentPane();
var a=c._getAvailIncreaseDelta();
var i=this.get_splitter()._getAvailDecreaseDelta(c._indexInPanes,Telerik.Web.UI.SplitterDirection.Forward);
var b=Math.min(i,a);
var d=l.get_dockedPaneId();
if(d!=null){var f=l.getPaneById(d);
b+=(o)?f.get_width():f.get_height()
}b-=(o)?this.get_width():this.get_height();
this._maxIncreaseDelta=Math.min(m,b);
if(this._getIsLeftDirection()||l.isTopDirection()){var n=this._maxIncreaseDelta;
this._maxIncreaseDelta=this._maxDecreaseDelta;
this._maxDecreaseDelta=n
}var g=this._resizeElement;
var k=$telerik.getLocation(g);
if($telerik.isSafari&&o){var h=$telerik.getLocation(g.parentNode);
k.y=h.y
}this._mouseStartX=j.clientX;
this._mouseStartY=j.clientY;
this._handlerStartLeftPos=k.x;
this._handlerStartTopPos=k.y;
this._currentDelta=0;
if(!this._helperBar){this._createResizeHelper()
}this._mouseUpResizeHandler=Function.createDelegate(this,this._resizeSlidePane_OnMouseUp);
this._mouseMoveResizeHandler=Function.createDelegate(this,this._resizeSlidePane_OnMouseMove);
$addHandler(document,"mouseup",this._mouseUpResizeHandler);
$addHandler(document,"mousemove",this._mouseMoveResizeHandler);
this._resizeMode=true;
return false
},_resizeSlidePane_OnMouseUp:function(j){$telerik.cancelRawEvent(j);
$removeHandler(document,"mouseup",this._mouseUpResizeHandler);
$removeHandler(document,"mousemove",this._mouseMoveResizeHandler);
this._resizeMode=false;
var d=this._helperBar;
if(d){d.parentNode.removeChild(d);
this._helperBar=null;
this._helperBarDecoration=null
}var o=this._zone;
var b=o.isTopDirection();
var c=this._getIsLeftDirection();
if(c||b){this._currentDelta*=-1
}if(!this.get_expanded()){return false
}var k=this._currentDelta;
if(k&&k!=0){var m=new Telerik.Web.UI.PaneBeforeResizeEventArgs(k);
this.raiseEvent("beforeResize",m);
if(!m.get_cancel()){var i=null;
var n=null;
var p=o._isHorizontalSlide();
var f=this.get_slidingPaneBounds();
if(p){i=f.width+k
}else{n=f.height+k
}this._setSlidingContainerSize(i,n);
var a=this._popupBehavior.get_x();
var g=this._popupBehavior.get_y();
if(c){a-=k
}else{if(b){g-=k
}}this._show(a,g);
var l=this.get_width();
var h=this.get_height();
if(p){this.set_width(i)
}else{this.set_height(n)
}$telerik.repaintChildren(this);
this.raiseEvent("resized",new Telerik.Web.UI.PaneResizedEventArgs(l,h))
}}return false
},_createResizeHelper:function(){var i=this._zone._isHorizontalSlide();
var e=i?"w-resize":"n-resize";
var b=document.createElement("table");
var d=150;
b.style.position="absolute";
b.style.left=this._handlerStartLeftPos-(i?d:0)+"px";
b.style.top=this._handlerStartTopPos-(!i?d:0)+"px";
b.style.zIndex=this._popupElement.style.zIndex+1;
b.style.cursor=e;
b.style.border="0px none";
b.cellSpacing=0;
b.cellPadding=0;
b.unselectable="on";
document.body.insertBefore(b,document.body.firstChild);
Sys.UI.DomElement.addCssClass(b,"RadSplitter");
var a=document.createElement("tbody");
b.appendChild(a);
var g=document.createElement("tr");
a.appendChild(g);
var h=document.createElement("td");
g.appendChild(h);
var c=document.createElement("div");
c.style.margin=this.get_splitter().isVertical()?"0 150px":"150px 0";
c.style.cursor=e;
c.unselectable="on";
c.innerHTML="<!-- / -->";
h.appendChild(c);
Sys.UI.DomElement.addCssClass(c,"rspHelperBarSlideDrag");
var f=this.get_parentPane();
if(i){$telerik.setOuterHeight(c,f.get_height());
$telerik.setOuterWidth(c,4)
}else{$telerik.setOuterWidth(c,f.get_width());
$telerik.setOuterHeight(c,4)
}this._helperBar=b;
this._helperBarDecoration=c
},_resizeSlidePane_OnMouseMove:function(f){this._resizeMode=true;
var d=this._helperBarDecoration;
Sys.UI.DomElement.removeCssClass(d,"rspHelperBarSlideError");
var i=this._zone._isHorizontalSlide();
var g=(i)?f.clientX-this._mouseStartX:f.clientY-this._mouseStartY;
var h=false;
if(g<((-1)*this._maxDecreaseDelta)){h=true;
g=this._maxDecreaseDelta*(-1)
}else{if(g>this._maxIncreaseDelta){h=true;
g=this._maxIncreaseDelta
}}var a=this._resizeStep;
if(a>0){g-=g%a
}this._currentDelta=g;
var c=this._helperBar;
var b=150;
if(i){c.style.left=this._handlerStartLeftPos+g-b+"px"
}else{c.style.top=this._handlerStartTopPos+g-b+"px"
}if(h){Sys.UI.DomElement.addCssClass(d,"rspHelperBarSlideError")
}return $telerik.cancelRawEvent(f)
},_slidingContainer_OnMouseOut:function(c){if(this.get_docked()||this._resizeMode||this._zone._clickToOpen||!this.get_expanded()){return
}if($telerik.isMouseOverElementEx(this._popupElement,c)){return
}var b=this;
var d=function(){var e=b._zone;
e._paneTabInMover=null;
e.collapsePane(b.get_id())
};
var a=this._zone;
window.clearTimeout(a._paneTabMoutTimeout);
a._paneTabMoutTimeout=window.setTimeout(d,1000)
},_slidingContainer_OnMouseOver:function(a){if(this.get_docked()){return
}if(this._resizeMode){return
}window.clearTimeout(this._zone._paneTabMoutTimeout)
},_dockElement_OnMouseDown:function(a){if(a.button&&a.button!=1){return true
}if(!this.get_expanded()){return
}var b=this._zone;
if(!b.collapsePane(this.get_id(),true)){return
}b.dockPane(this.get_id());
this.getDockIconElement().className="rspSlideHeaderDockIcon"
},_dockElement_OnMouseOver:function(a){if(a.button&&a.button!=1){return true
}Sys.UI.DomElement.addCssClass(this.getDockIconElement(),"rspSlideHeaderDockIconOver")
},_dockElement_OnMouseOut:function(a){if(a.button&&a.button!=1){return true
}Sys.UI.DomElement.removeCssClass(this.getDockIconElement(),"rspSlideHeaderDockIconOver")
},_undockElement_OnMouseDown:function(a){if(a.button&&a.button!=1){return true
}if(!this.get_docked()){return
}this._zone.undockPane(this.get_id())
},_undockElement_OnMouseOver:function(a){if(a.button&&a.button!=1){return true
}Sys.UI.DomElement.addCssClass(this.getUndockIconElement(),"rspSlideHeaderUndockIconOver")
},_undockElement_OnMouseOut:function(a){if(a.button&&a.button!=1){return true
}Sys.UI.DomElement.removeCssClass(this.getUndockIconElement(),"rspSlideHeaderUndockIconOver")
},_collapseElement_OnMouseDown:function(a){if(a.button&&a.button!=1){return true
}if(!this.get_expanded()){return
}var b=this._zone;
b._paneTabInMover=null;
b.collapsePane(this.get_id())
},_collapseElement_OnMouseOver:function(a){if(a.button&&a.button!=1){return true
}Sys.UI.DomElement.addCssClass(this.getCollapseIconElement(),"rspSlideHeaderCollapseIconOver")
},_collapseElement_OnMouseOut:function(a){if(a.button&&a.button!=1){return true
}Sys.UI.DomElement.removeCssClass(this.getCollapseIconElement(),"rspSlideHeaderCollapseIconOver")
},_onExpandAnimationEnded:function(){this._tableElement.style.position="static";
if($telerik.isFirefox){this._configureScrolling();
Sys.UI.DomElement.removeCssClass(this._contentElement,"rspHideContentOverflow")
}if($telerik.getVisible(this.get_element())){this._showOverlayElement(true)
}this.setScrollPos(this._scrollLeft,this._scrollTop);
$telerik.repaintChildren(this);
this.raiseEvent("expanded",new Telerik.Web.UI.PaneExpandedEventArgs())
},_expandSlidingContainer:function(){this._showOverlayElement(false);
if($telerik.isFirefox){var b=this._contentElement;
b.style.overflow="hidden";
Sys.UI.DomElement.addCssClass(b,"rspHideContentOverflow")
}var e=this._tableElement;
var g=$telerik.getOuterSize(e);
var d=Telerik.Web.UI.jSlideDirection.Right;
var f=this._zone;
if(this._getIsLeftDirection()){d=Telerik.Web.UI.jSlideDirection.Left;
e.style.left=g.width+"px"
}else{if(f.isBottomDirection()){d=Telerik.Web.UI.jSlideDirection.Down;
e.style.top=-g.height+"px"
}else{if(f.isTopDirection()){d=Telerik.Web.UI.jSlideDirection.Up;
e.style.top=g.height+"px"
}else{e.style.left=-g.width+"px"
}}}if(!this._animation){var c=new Telerik.Web.UI.AnimationSettings({duration:f._slideDuration});
var a=new Telerik.Web.UI.jSlide(e,c,null,false);
a.initialize();
a.set_direction(d);
this._expandAnimationEndedDelegate=Function.createDelegate(this,this._onExpandAnimationEnded);
a.add_expandAnimationEnded(this._expandAnimationEndedDelegate);
this._animation=a
}this._animation.expand()
},_collapseSlidingContainer:function(){try{this._animation.stop()
}catch(a){}this._hideSlidingContainer();
this.raiseEvent("collapsed",new Telerik.Web.UI.PaneCollapsedEventArgs())
},_setSlidingContainerSize:function(b,e){var d=$telerik.getSize(this._parentPane._contentElement);
var f=this._zone._isVerticalSlide();
if(b==null){b=(!f)?this.get_width():d.width
}if(e==null){e=f?this.get_height():d.height
}var h=this._contentElement;
if($telerik.isSafari){h.style.width=b+"px";
h.style.height=e+"px"
}var c=this._popupElement;
if(parseInt(c.style.width)!=b){c.style.width=b+"px"
}if(parseInt(c.style.height)!=e){c.style.height=e+"px"
}var a=this._getResizeElementSize();
var g={height:(e-this._getHeaderHeight()-(f?a.height:0)),width:(b-(!f?a.width:0))};
this._setContentOuterSize(g);
this._isInitialSizeApplied=true
},_getHeaderHeight:function(){var a=0;
var b=$telerik.getElementByClassName(this._tableElement,"rspSlideTitleContainer","td");
if(b){a=$telerik.getOuterSize(b).height
}return a
},_getResizeElementSize:function(){var a={width:0,height:0};
if(this._enableResize){var b=this._resizeElement;
if("none"!=$telerik.getCurrentStyle(b,"display","")){a=$telerik.getOuterSize(b)
}}return a
},_setContentOuterSize:function(a){var b=this._contentElement;
var d=$telerik.getBorderBox(b);
var e=$telerik.getPaddingBox(b);
var c=$telerik.getMarginBox(b);
a.height-=(d.vertical+e.vertical+c.vertical);
if(parseInt(b.style.height)!=a.height&&a.height>=0){b.style.height=a.height+"px"
}a.width-=(d.horizontal+e.horizontal+c.horizontal);
if(parseInt(b.style.width)!=a.width&&a.width>=0){b.style.width=a.width+"px"
}},_hideSlidingContainer:function(){var a=this._popupElement;
a.style.top="";
a.style.left="";
this._showOverlayElement(false)
},_dockSlidingContainer:function(){this._popupElement.style.position="static";
this._tableElement.style.position="static";
this._showOverlayElement(false)
},_unDockSlidingContainer:function(){this._popupElement.style.position="";
this._tableElement.style.position="";
this._showOverlayElement(true)
},_setSlidingContainerResizable:function(e){var d=this._resizeElement;
var a=this._zone._isVerticalSlide();
if(a){d=d.parentNode
}if(e&&d.style.display==""){return
}if(this._enableResize){var c=this._resizeBarSize;
if(!c){this._resizeBarSize=parseInt((a)?d.offsetHeight:d.offsetWidth);
c=this._resizeBarSize
}if(e){c*=-1
}var b=this._contentElement;
if(a){b.style.height=parseInt(b.style.height)+c+"px"
}else{b.style.width=parseInt(b.style.width)+c+"px"
}}d.style.display=(e)?"":"none"
},_setIconsExpandedState:function(){this._hideAllIcons();
this.getDockIconWrapperElement().style.display=(this.get_enableDock())?"":"none";
this.getCollapseIconWrapperElement().style.display=""
},_setIconsDockedState:function(){this._hideAllIcons();
this.getUnDockIconWrapperElement().style.display=""
},_hideAllIcons:function(){this.getDockIconWrapperElement().style.display="none";
this.getUnDockIconWrapperElement().style.display="none";
this.getCollapseIconWrapperElement().style.display="none"
},_getTitleContainerElement:function(){return $get("RAD_SLIDING_PANE_TEXT_"+this.get_id())
},_dock:function(){if(!this._isInitialSizeApplied){this._setSlidingContainerSize()
}this._setIconsDockedState();
this._setSlidingContainerResizable(false);
this._dockSlidingContainer();
this.setScrollPos(this._scrollLeft,this._scrollTop);
$telerik.repaintChildren(this);
this._isExpanded=false;
this._isDocked=true
},_undock:function(){this._isExpanded=false;
this._isDocked=false;
this._setSlidingContainerResizable(this._enableResize);
this._unDockSlidingContainer();
this._hideSlidingContainer()
},_expand:function(){var e=this._zone;
var g=e.getTabsContainer();
var a=this._popupElement;
if(!this._popupBehavior){var h=(new Date()-100)+"PopupBehavior";
this._popupBehavior=$create(Telerik.Web.PopupBehavior,{id:h,parentElement:g,keepInScreenBounds:false,manageVisibility:false},null,null,a)
}this._setSlidingContainerResizable(this._enableResize);
this._setIconsExpandedState();
var b=0;
var c=0;
var d=this.get_slidingPaneBounds();
var f=$telerik.getSize(g);
if(this._getIsRightDirection()){b=f.width
}else{if(this._getIsLeftDirection()){b=-d.width
}else{if(e.isBottomDirection()){c=f.height
}else{if(e.isTopDirection()){c=-d.height
}}}}this._show(b,c);
this._expandSlidingContainer();
this._isExpanded=true;
this._isDocked=false
},_collapse:function(){this._isExpanded=false;
this._isDocked=false;
this._collapseSlidingContainer()
},saveClientState:function(){var f=this.getScrollPos();
var a={_scrollLeft:f.left,_scrollTop:f.top};
var e=["width","height","title","enableResize","minWidth","maxWidth","minHeight","maxHeight","enableDock"];
for(var c=0,b=e.length;
c<b;
c++){var d=e[c];
a[d]=this["get_"+d]()
}return Sys.Serialization.JavaScriptSerializer.serialize(a)
},_getOverlayElement:function(){return this._popupElement._hideWindowedElementsIFrame
},_showOverlayElement:function(a){var b=this._getOverlayElement();
if(!b){return
}b.style.display=a?"":"none"
}};
Telerik.Web.UI.RadSlidingPane.registerClass("Telerik.Web.UI.RadSlidingPane",Telerik.Web.UI.SplitterPaneBase);
Type.registerNamespace("Telerik.Web.UI");
Telerik.Web.UI.SplitterSlideDirection=function(){};
Telerik.Web.UI.SplitterSlideDirection.prototype={Right:1,Left:2,Top:3,Bottom:4};
Telerik.Web.UI.SplitterSlideDirection.registerEnum("Telerik.Web.UI.SplitterSlideDirection",false);
Telerik.Web.UI.RadSlidingZone=function(a){Telerik.Web.UI.RadSlidingZone.initializeBase(this,[a]);
this._width=null;
this._height=null;
this._clickToOpen=false;
this._resizeStep=0;
this._slideDuration=300;
this._splitter=null;
this._slideDirection=Telerik.Web.UI.SplitterSlideDirection.Right;
this._slidingPanes=[];
this._slidingPanesById=[];
this._dockedPaneId=null;
this._initiallyDockedPaneId=null;
this._expandedPaneId=null;
this.GetPaneById=this.getPaneById;
this.GetTabsContainer=this.getTabsContainer;
this.DockPane=this.dockPane;
this.UndockPane=this.undockPane;
this.GetPanes=this.getPanes;
this.ExpandPane=this.expandPane;
this.CollapsePane=this.collapsePane;
this.IsLeftDirection=this.isLeftDirection;
this.IsRightDirection=this.isRightDirection;
this.IsTopDirection=this.isTopDirection;
this.IsBottomDirection=this.isBottomDirection
};
Telerik.Web.UI.RadSlidingZone.prototype={endUpdate:function(){if(this._width.toString().indexOf("px")>-1){this._width=parseInt(this._width,10)
}if(this._height.toString().indexOf("px")>-1){this._height=parseInt(this._height,10)
}Telerik.Web.UI.RadSlidingZone.callBaseMethod(this,"endUpdate")
},dispose:function(){Telerik.Web.UI.RadSlidingZone.callBaseMethod(this,"dispose")
},initialize:function(){Telerik.Web.UI.RadSlidingZone.callBaseMethod(this,"initialize");
this._splitterLoadedHandler=Function.createDelegate(this,this._splitterLoadedHandler);
this.get_splitter().add_loaded(this._splitterLoadedHandler)
},set_clickToOpen:function(a){this._clickToOpen=a;
this.updateClientState()
},get_clickToOpen:function(){return this._clickToOpen
},set_resizeStep:function(a){this._resizeStep=a;
this.updateClientState()
},get_resizeStep:function(){return this._resizeStep
},set_slideDuration:function(a){this._slideDuration=a;
this.updateClientState()
},get_slideDuration:function(){return this._slideDuration
},get_width:function(){return this._width
},get_height:function(){return this._height
},get_expandedPaneId:function(){return this._expandedPaneId
},get_dockedPaneId:function(){return this._dockedPaneId
},get_splitter:function(){return this._splitter
},set_splitter:function(a){this._splitter=a
},add_loaded:function(a){this.get_events().addHandler("loaded",a)
},remove_loaded:function(a){this.get_events().removeHandler("loaded",a)
},getPaneById:function(a){return this._slidingPanesById[a]
},getTabsContainer:function(){return $get("RAD_SLIDING_ZONE_TABS_CONTAINER_"+this.get_id())
},_getPanesContainer:function(){return $get("RAD_SLIDING_ZONE_PANES_CONTAINER_"+this.get_id())
},dockPane:function(o){var h=this.getPaneById(o);
if(!h||!h.get_enableDock()){return false
}var j=new Telerik.Web.UI.PaneBeforeDockEventArgs();
h.raiseEvent("beforeDock",j);
if(j.get_cancel()){return false
}var d=this._dockedPaneId;
if(d&&!this.undockPane(d)){return false
}var e=this._getPanesContainer();
var c=this.isLeftDirection();
var b=this.isTopDirection();
this._dockingMode=true;
var g=this._getTabsContainerSize();
var a=g+h[this._isHorizontalSlide()?"get_width":"get_height"]();
var i=this.get_parent();
var n=i.getVarSize();
var k=(c||b)?Telerik.Web.UI.SplitterDirection.Backward:Telerik.Web.UI.SplitterDirection.Forward;
var f=n+this.get_splitter()._getAvailIncreaseDelta(i._indexInPanes,k);
a=Math.min(a,f);
var m=a-n;
if(m!=0){i.resize(m,k)
}h._dock();
h._setTabDockedState();
var l=this.get_element();
if(b&&$telerik.isIE&&Sys.Browser.version<8){l.style.marginTop="0"
}else{if(c&&$telerik.isSafari){e.style.width="1px";
setTimeout(function(){e.style.width=""
},0);
l.style.marginLeft="0"
}}this._dockedPaneId=o;
this._dockingMode=false;
this.updateClientState();
h.raiseEvent("docked",new Telerik.Web.UI.PaneDockedEventArgs());
return true
},undockPane:function(k){var b=this.getPaneById(k);
if(!b){return false
}var h=new Telerik.Web.UI.PaneBeforeUndockEventArgs();
b.raiseEvent("beforeUndock",h);
if(h.get_cancel()){return false
}if(!k){k=this._dockedPaneId
}var g=this.get_parent();
if(g.get_collapsed()){return false
}this._dockingMode=true;
b._undock();
b._setTabDefaultState();
this._dockedPaneId=null;
var f=this.isTopDirection();
var c=this.isLeftDirection();
var d=this._getPanesContainer();
var i=this.get_element();
if(f&&$telerik.isIE&&Sys.Browser.version<8){i.style.marginTop="-1px"
}else{if(c&&$telerik.isSafari){d.style.width="1px";
setTimeout(function(){d.style.width=""
},0);
i.style.marginLeft="-1px"
}}var j=g.getVarSize();
var a=j-this._getTabsContainerSize();
var e=(c||f)?Telerik.Web.UI.SplitterDirection.Backward:Telerik.Web.UI.SplitterDirection.Forward;
g.resize(a*(-1),e);
this.updateClientState();
this._dockingMode=false;
b.raiseEvent("undocked",new Telerik.Web.UI.PaneUndockedEventArgs());
this._paneTabInMover=null;
return true
},getPanes:function(){return this._slidingPanes
},expandPane:function(a){if(this._dockedPaneId==a){return false
}var b=this.getPaneById(a);
if(!b){return false
}var c=new Telerik.Web.UI.PaneBeforeExpandEventArgs();
b.raiseEvent("beforeExpand",c);
if(c.get_cancel()){return false
}b._setTabExpandedState();
b._expand();
this._expandedPaneId=a;
this.updateClientState();
return true
},collapsePane:function(a,e){if(this._expandedPaneId!=a){return true
}if(this._dockedPaneId==a){return false
}var d=this.getPaneById(a);
if(!d){return false
}var b=new Telerik.Web.UI.PaneBeforeCollapseEventArgs();
d.raiseEvent("beforeCollapse",b);
if(b.get_cancel()){return false
}d._setTabDefaultState();
var c=d._animation;
if(c){c._stopAnimation()
}if(!e){d._tableElement.style.position=""
}d._collapse();
this._expandedPaneId=null;
this.updateClientState();
this._paneTabInMover=null;
return true
},isLeftDirection:function(a){return(this._slideDirection==Telerik.Web.UI.SplitterSlideDirection.Left)
},isRightDirection:function(){return(this._slideDirection==Telerik.Web.UI.SplitterSlideDirection.Right)
},isTopDirection:function(){return(this._slideDirection==Telerik.Web.UI.SplitterSlideDirection.Top)
},isBottomDirection:function(){return(this._slideDirection==Telerik.Web.UI.SplitterSlideDirection.Bottom)
},_paneTab_OnMouseOver:function(c){if(this._clickToOpen){return
}window.clearTimeout(this._paneTabMoutTimeout);
var a=this._getPaneIdFromTabElement(c.target);
var b=this._expandedPaneId;
if(!a||(a==this._paneTabInMover)||(b&&a==b)){return
}this._paneTabInMover=a;
if(b&&!this.collapsePane(b)){this._paneTabInMover=null;
return
}this.expandPane(a)
},_paneTab_OnMouseOut:function(b){if(this._clickToOpen){return
}var a=this._getPaneIdFromTabElement(b.target);
if(!a){return
}if($telerik.isMouseOverElementEx(this.getPaneById(a).getTabContainer(),b)){return $telerik.cancelRawEvent(b)
}this._paneTabMoutTimeout=setTimeout(Function.createDelegate(this,function(){this._paneTabInMover=null;
this.collapsePane(a)
}),100)
},_paneTab_OnMouseDown:function(c){if(!this._clickToOpen){return
}var b=c.target;
var a=this._getPaneIdFromTabElement(b);
if(this._expandedPaneId==a){this.collapsePane(a)
}else{if(this._expandedPaneId){if(!this.collapsePane(this._expandedPaneId)){return
}}this.expandPane(a)
}},_isHorizontalSlide:function(){return(this._slideDirection==Telerik.Web.UI.SplitterSlideDirection.Left||this._slideDirection==Telerik.Web.UI.SplitterSlideDirection.Right)
},_isVerticalSlide:function(){return !this._isHorizontalSlide()
},_getPaneIdFromTabElement:function(a){while(a&&a.tagName!="DIV"){a=a.parentNode
}if(!a||a.id.indexOf("RAD_SLIDING_PANE_TAB_")==-1){return""
}return a.id.substr("RAD_SLIDING_PANE_TAB_".length)
},_handleBeforeParentPaneResized:function(e,h){if(this._dockingMode){return
}var a=h.get_delta();
if(this._dockedPaneId){var d=this.getPaneById(this._dockedPaneId);
if(!d.get_enableResize()){h.set_cancel(true);
return
}var g=this._getTabsContainerSize();
var j=g+(this._isHorizontalSlide())?d.get_minWidth():d.get_minHeight();
var b=g+(this._isHorizontalSlide())?d.get_maxWidth():d.get_maxHeight();
var c=d.get_slidingPaneBounds();
var f=(this._isHorizontalSlide())?c.width:c.height;
var k=f+a;
if(k>b||k<j){h.set_cancel(true);
return
}var i=new Telerik.Web.UI.PaneBeforeResizeEventArgs(a);
d.raiseEvent("beforeResize",i);
h.set_cancel(i.get_cancel())
}},_getTabsContainerSize:function(){var a=this.getTabsContainer();
return(this._isHorizontalSlide())?a.offsetWidth:a.offsetHeight
},_handleParentPaneResized:function(l,i){var c=this._dockedPaneId;
if(this._dockingMode||!c){return
}var c=this.getPaneById(c);
if(!c.get_enableResize()){return
}var b=c.get_slidingPaneBounds();
var g=b.width;
var d=l.get_width()-i.get_oldWidth();
var f=g+d;
var j=b.height;
var a=l.get_height()-i.get_oldHeight();
var h=j+a;
c._setSlidingContainerSize(f,h);
var k=c.get_width();
var e=i.get_oldHeight();
var h=l.get_height();
c.set_width(f);
c.set_height(h);
c.raiseEvent("resized",new Telerik.Web.UI.PaneResizedEventArgs(k,e))
},_handleSplitterResized:function(a,b){if(this._expandedPaneId){if(a.get_width()!=b.get_oldWidth()||a.get_height()!=b.get_oldHeight()){var c=this._expandedPaneId;
this.collapsePane(c);
this.expandPane(c)
}}},_addPane:function(a){this._slidingPanes[this._slidingPanes.length]=a;
this._slidingPanesById[a.get_id()]=a
},_splitterLoadedHandler:function(){var f=this._getPanesContainer();
var d=this.get_element();
if(this._isVerticalSlide()){f=f.parentNode;
if(this.isTopDirection()&&$telerik.isIE&&Sys.Browser.version<8){d.style.marginTop="-1px"
}}else{if(this.isLeftDirection()&&$telerik.isSafari){d.style.marginLeft="-1px"
}}f.style.display="";
var a=this.get_parent();
a.add_beforeResize(Function.createDelegate(this,this._handleBeforeParentPaneResized));
a.add_resized(Function.createDelegate(this,this._handleParentPaneResized));
var b=this.get_splitter();
b.add_resized(Function.createDelegate(this,this._handleSplitterResized));
var e=this._initiallyDockedPaneId;
if(e!=null){this.dockPane(e)
}var c=this._expandedPaneId;
if(c!=null){this.expandPane(c)
}this.updateClientState();
b.remove_loaded(this._splitterLoadedHandler);
this.raiseEvent("loaded")
},saveClientState:function(){if(this.get_isUpdating()){return null
}var a={dockedPaneId:this._dockedPaneId||"",expandedPaneId:this._expandedPaneId||""};
var e=["clickToOpen","resizeStep","slideDuration"];
for(var c=0,b=e.length;
c<b;
c++){var d=e[c];
a[d]=this["get_"+d]()
}return Sys.Serialization.JavaScriptSerializer.serialize(a)
}};
Telerik.Web.UI.RadSlidingZone.registerClass("Telerik.Web.UI.RadSlidingZone",Telerik.Web.UI.RadWebControl);