Type.registerNamespace("Telerik.Web"); Telerik.Web.BehaviorBase=function(_1){ Telerik.Web.BehaviorBase.initializeBase(this,[_1]); this._clientStateFieldID=null; this._pageRequestManager=null; this._partialUpdateBeginRequestHandler=null; this._partialUpdateEndRequestHandler=null; }; Telerik.Web.BehaviorBase.prototype={initialize:function(){ Telerik.Web.BehaviorBase.callBaseMethod(this,"initialize"); },dispose:function(){ Telerik.Web.BehaviorBase.callBaseMethod(this,"dispose"); if(this._pageRequestManager){ if(this._partialUpdateBeginRequestHandler){ this._pageRequestManager.remove_beginRequest(this._partialUpdateBeginRequestHandler); this._partialUpdateBeginRequestHandler=null; } if(this._partialUpdateEndRequestHandler){ this._pageRequestManager.remove_endRequest(this._partialUpdateEndRequestHandler); this._partialUpdateEndRequestHandler=null; } this._pageRequestManager=null; } },get_ClientStateFieldID:function(){ return this._clientStateFieldID; },set_ClientStateFieldID:function(_2){ if(this._clientStateFieldID!=_2){ this._clientStateFieldID=_2; this.raisePropertyChanged("ClientStateFieldID"); } },get_ClientState:function(){ if(this._clientStateFieldID){ var _3=document.getElementById(this._clientStateFieldID); if(_3){ return _3.value; } } return null; },set_ClientState:function(_4){ if(this._clientStateFieldID){ var _5=document.getElementById(this._clientStateFieldID); if(_5){ _5.value=_4; } } },registerPartialUpdateEvents:function(){ if(Sys&&Sys.WebForms&&Sys.WebForms.PageRequestManager){ this._pageRequestManager=Sys.WebForms.PageRequestManager.getInstance(); if(this._pageRequestManager){ this._partialUpdateBeginRequestHandler=Function.createDelegate(this,this._partialUpdateBeginRequest); this._pageRequestManager.add_beginRequest(this._partialUpdateBeginRequestHandler); this._partialUpdateEndRequestHandler=Function.createDelegate(this,this._partialUpdateEndRequest); this._pageRequestManager.add_endRequest(this._partialUpdateEndRequestHandler); } } },_partialUpdateBeginRequest:function(_6,_7){ },_partialUpdateEndRequest:function(_8,_9){ }}; Telerik.Web.BehaviorBase.registerClass("Telerik.Web.BehaviorBase",Sys.UI.Behavior); Type.registerNamespace("Telerik.Web"); Telerik.Web.IDragSource=function(){ }; Telerik.Web.IDragSource.prototype={get_dragDataType:function(){ throw Error.notImplemented(); },getDragData:function(){ throw Error.notImplemented(); },get_dragMode:function(){ throw Error.notImplemented(); },onDragStart:function(){ throw Error.notImplemented(); },onDrag:function(){ throw Error.notImplemented(); },onDragEnd:function(){ throw Error.notImplemented(); }}; Telerik.Web.IDragSource.registerInterface("Telerik.Web.IDragSource"); Telerik.Web.IDropTarget=function(){ }; Telerik.Web.IDropTarget.prototype={get_dropTargetElement:function(){ throw Error.notImplemented(); },canDrop:function(){ throw Error.notImplemented(); },drop:function(){ throw Error.notImplemented(); },onDragEnterTarget:function(){ throw Error.notImplemented(); },onDragLeaveTarget:function(){ throw Error.notImplemented(); },onDragInTarget:function(){ throw Error.notImplemented(); }}; Telerik.Web.IDropTarget.registerInterface("Telerik.Web.IDropTarget"); Telerik.Web.DragMode=function(){ throw Error.invalidOperation(); }; Telerik.Web.DragMode.prototype={Copy:0,Move:1}; Telerik.Web.DragMode.registerEnum("Telerik.Web.DragMode"); Telerik.Web.DragDropEventArgs=function(_a,_b,_c){ this._dragMode=_a; this._dataType=_b; this._data=_c; }; Telerik.Web.DragDropEventArgs.prototype={get_dragMode:function(){ return this._dragMode||null; },get_dragDataType:function(){ return this._dataType||null; },get_dragData:function(){ return this._data||null; }}; Telerik.Web.DragDropEventArgs.registerClass("Telerik.Web.DragDropEventArgs"); Telerik.Web._DragDropManager=function(){ this._instance=null; this._events=null; }; Telerik.Web._DragDropManager.prototype={add_dragStart:function(_d){ this.get_events().addHandler("dragStart",_d); },remove_dragStart:function(_e){ this.get_events().removeHandler("dragStart",_e); },get_events:function(){ if(!this._events){ this._events=new Sys.EventHandlerList(); } return this._events; },add_dragStop:function(_f){ this.get_events().addHandler("dragStop",_f); },remove_dragStop:function(_10){ this.get_events().removeHandler("dragStop",_10); },_getInstance:function(){ if(!this._instance){ if(Sys.Browser.agent===Sys.Browser.InternetExplorer){ this._instance=new Telerik.Web.IEDragDropManager(); }else{ this._instance=new Telerik.Web.GenericDragDropManager(); } this._instance.initialize(); this._instance.add_dragStart(Function.createDelegate(this,this._raiseDragStart)); this._instance.add_dragStop(Function.createDelegate(this,this._raiseDragStop)); } return this._instance; },startDragDrop:function(_11,_12,_13){ this._getInstance().startDragDrop(_11,_12,_13); },registerDropTarget:function(_14,_15){ this._getInstance().registerDropTarget(_14,_15); },unregisterDropTarget:function(_16){ this._getInstance().unregisterDropTarget(_16); },dispose:function(){ delete this._events; Sys.Application.unregisterDisposableObject(this); Sys.Application.removeComponent(this); },_raiseDragStart:function(_17,_18){ var _19=this.get_events().getHandler("dragStart"); if(_19){ _19(this,_18); } },_raiseDragStop:function(_1a,_1b){ var _1c=this.get_events().getHandler("dragStop"); if(_1c){ _1c(this,_1b); } }}; Telerik.Web._DragDropManager.registerClass("Telerik.Web._DragDropManager"); Telerik.Web.DragDropManager=new Telerik.Web._DragDropManager(); Telerik.Web.IEDragDropManager=function(){ Telerik.Web.IEDragDropManager.initializeBase(this); this._dropTargets=null; this._radius=10; this._activeDragVisual=null; this._activeContext=null; this._activeDragSource=null; this._underlyingTarget=null; this._oldOffset=null; this._potentialTarget=null; this._isDragging=false; this._mouseUpHandler=null; this._documentMouseMoveHandler=null; this._documentDragOverHandler=null; this._dragStartHandler=null; this._mouseMoveHandler=null; this._dragEnterHandler=null; this._dragLeaveHandler=null; this._dragOverHandler=null; this._dropHandler=null; this._areEventsWired=false; }; Telerik.Web.IEDragDropManager.prototype={add_dragStart:function(_1d){ this.get_events().addHandler("dragStart",_1d); },remove_dragStart:function(_1e){ this.get_events().removeHandler("dragStart",_1e); },add_dragStop:function(_1f){ this.get_events().addHandler("dragStop",_1f); },remove_dragStop:function(_20){ this.get_events().removeHandler("dragStop",_20); },initialize:function(){ Telerik.Web.IEDragDropManager.callBaseMethod(this,"initialize"); this._mouseUpHandler=Function.createDelegate(this,this._onMouseUp); this._documentMouseMoveHandler=Function.createDelegate(this,this._onDocumentMouseMove); this._documentDragOverHandler=Function.createDelegate(this,this._onDocumentDragOver); this._dragStartHandler=Function.createDelegate(this,this._onDragStart); this._mouseMoveHandler=Function.createDelegate(this,this._onMouseMove); this._dragEnterHandler=Function.createDelegate(this,this._onDragEnter); this._dragLeaveHandler=Function.createDelegate(this,this._onDragLeave); this._dragOverHandler=Function.createDelegate(this,this._onDragOver); this._dropHandler=Function.createDelegate(this,this._onDrop); },dispose:function(){ if(this._dropTargets){ for(var i=0;i=r2.x&&r1.x<=(r2.x+r2.width)); var _67=((r1.x+r1.width)>=r2.x&&(r1.x+r1.width)<=r2.x+r2.width); var _68=((r1.x(r2.x+r2.width))); var _69=(r1.y>=r2.y&&r1.y<=(r2.y+r2.height)); var _6a=((r1.y+r1.height)>=r2.y&&(r1.y+r1.height)<=r2.y+r2.height); var _6b=((r1.y(r2.y+r2.height))); if((_66||_67||_68)&&(_69||_6a||_6b)){ return true; } return false; },_prepareForDomChanges:function(){ this._oldOffset=$telerik.getLocation(this._activeDragVisual); },_recoverFromDomChanges:function(){ var _6c=$telerik.getLocation(this._activeDragVisual); if(this._oldOffset.x!=_6c.x||this._oldOffset.y!=_6c.y){ this._activeDragVisual.startingPoint=this.subtractPoints(this._activeDragVisual.startingPoint,this.subtractPoints(this._oldOffset,_6c)); scrollOffset=this.getScrollOffset(this._activeDragVisual,true); var _6d=this.addPoints(this.subtractPoints(document._lastPosition,this._activeDragVisual.startingPoint),scrollOffset); $telerik.setLocation(this._activeDragVisual,_6d); } },addPoints:function(p1,p2){ return {x:p1.x+p2.x,y:p1.y+p2.y}; },subtractPoints:function(p1,p2){ return {x:p1.x-p2.x,y:p1.y-p2.y}; },getScrollOffset:function(_72,_73){ var _74=_72.scrollLeft; var top=_72.scrollTop; if(_73){ var _76=_72.parentNode; while(_76!=null&&_76.scrollLeft!=null){ _74+=_76.scrollLeft; top+=_76.scrollTop; if(_76==document.body&&(_74!=0&&top!=0)){ break; } _76=_76.parentNode; } } return {x:_74,y:top}; },getBrowserRectangle:function(){ var _77=window.innerWidth; var _78=window.innerHeight; if(_77==null){ _77=document.body.clientWidth; } if(_78==null){ _78=document.body.clientHeight; } return {x:0,y:0,width:_77,height:_78}; },getNextSibling:function(_79){ for(_79=_79.nextSibling;_79!=null;_79=_79.nextSibling){ if(_79.innerHTML!=null){ return _79; } } return null; },hasParent:function(_7a){ return (_7a.parentNode!=null&&_7a.parentNode.tagName!=null); }}; Telerik.Web.IEDragDropManager.registerClass("Telerik.Web.IEDragDropManager",Sys.Component); Telerik.Web.IEDragDropManager._getDataObjectsForDropTarget=function(_7b){ if(_7b==null){ return []; } var ev=window._event; var _7d=[]; var _7e=["URL","Text"]; var _7f; for(var i=0;i<_7e.length;i++){ var dt=ev.dataTransfer; if(!dt&&ev.rawEvent){ dt=ev.rawEvent.dataTransfer; } _7f=dt.getData(_7e[i]); if(_7b.canDrop(Telerik.Web.DragMode.Copy,_7e[i],_7f)){ if(_7f){ Array.add(_7d,{type:_7e[i],value:_7f}); } } } return _7d; }; Telerik.Web.GenericDragDropManager=function(){ Telerik.Web.GenericDragDropManager.initializeBase(this); this._dropTargets=null; this._scrollEdgeConst=40; this._scrollByConst=10; this._scroller=null; this._scrollDeltaX=0; this._scrollDeltaY=0; this._activeDragVisual=null; this._activeContext=null; this._activeDragSource=null; this._oldOffset=null; this._potentialTarget=null; this._mouseUpHandler=null; this._mouseMoveHandler=null; this._keyPressHandler=null; this._scrollerTickHandler=null; this._areEventsWired=false; }; Telerik.Web.GenericDragDropManager.prototype={initialize:function(){ Telerik.Web.GenericDragDropManager.callBaseMethod(this,"initialize"); this._mouseUpHandler=Function.createDelegate(this,this._onMouseUp); this._mouseMoveHandler=Function.createDelegate(this,this._onMouseMove); this._keyPressHandler=Function.createDelegate(this,this._onKeyPress); this._scrollerTickHandler=Function.createDelegate(this,this._onScrollerTick); if(Sys.Browser.agent===Sys.Browser.Safari){ Telerik.Web.GenericDragDropManager.__loadSafariCompatLayer(this); } this._scroller=new Telerik.Web.Timer(); this._scroller.set_interval(10); this._scroller.add_tick(this._scrollerTickHandler); },startDragDrop:function(_82,_83,_84){ this._activeDragSource=_82; this._activeDragVisual=_83; this._activeContext=_84; Telerik.Web.GenericDragDropManager.callBaseMethod(this,"startDragDrop",[_82,_83,_84]); },_stopDragDrop:function(_85){ this._scroller.set_enabled(false); Telerik.Web.GenericDragDropManager.callBaseMethod(this,"_stopDragDrop",[_85]); },_drag:function(_86){ Telerik.Web.GenericDragDropManager.callBaseMethod(this,"_drag",[_86]); this._autoScroll(); },_wireEvents:function(){ $addHandler(document,"mouseup",this._mouseUpHandler); $addHandler(document,"mousemove",this._mouseMoveHandler); $addHandler(document,"keypress",this._keyPressHandler); this._areEventsWired=true; },_unwireEvents:function(){ if(!this._areEventsWired){ return; } $removeHandler(document,"keypress",this._keyPressHandler); $removeHandler(document,"mousemove",this._mouseMoveHandler); $removeHandler(document,"mouseup",this._mouseUpHandler); this._areEventsWired=false; },_wireDropTargetEvents:function(_87){ },_unwireDropTargetEvents:function(_88){ },_onMouseUp:function(e){ window._event=e; this._stopDragDrop(false); },_onMouseMove:function(e){ window._event=e; this._drag(); },_onKeyPress:function(e){ window._event=e; var k=e.keyCode?e.keyCode:e.rawEvent.keyCode; if(k==27){ this._stopDragDrop(true); } },_autoScroll:function(){ var ev=window._event; var _8e=this.getBrowserRectangle(); if(_8e.width>0){ this._scrollDeltaX=this._scrollDeltaY=0; if(ev.clientX<_8e.x+this._scrollEdgeConst){ this._scrollDeltaX=-this._scrollByConst; }else{ if(ev.clientX>_8e.width-this._scrollEdgeConst){ this._scrollDeltaX=this._scrollByConst; } } if(ev.clientY<_8e.y+this._scrollEdgeConst){ this._scrollDeltaY=-this._scrollByConst; }else{ if(ev.clientY>_8e.height-this._scrollEdgeConst){ this._scrollDeltaY=this._scrollByConst; } } if(this._scrollDeltaX!=0||this._scrollDeltaY!=0){ this._scroller.set_enabled(true); }else{ this._scroller.set_enabled(false); } } },_onScrollerTick:function(){ var _8f=document.body.scrollLeft; var _90=document.body.scrollTop; window.scrollBy(this._scrollDeltaX,this._scrollDeltaY); var _91=document.body.scrollLeft; var _92=document.body.scrollTop; var _93=this._activeDragVisual; var _94={x:parseInt(_93.style.left)+(_91-_8f),y:parseInt(_93.style.top)+(_92-_90)}; $telerik.setLocation(_93,_94); }}; Telerik.Web.GenericDragDropManager.registerClass("Telerik.Web.GenericDragDropManager",Telerik.Web.IEDragDropManager); if(Sys.Browser.agent===Sys.Browser.Safari){ Telerik.Web.GenericDragDropManager.__loadSafariCompatLayer=function(ddm){ ddm._getScrollOffset=ddm.getScrollOffset; ddm.getScrollOffset=function(_96,_97){ return {x:0,y:0}; }; ddm._getBrowserRectangle=ddm.getBrowserRectangle; ddm.getBrowserRectangle=function(){ var _98=ddm._getBrowserRectangle(); var _99=ddm._getScrollOffset(document.body,true); return {x:_98.x+_99.x,y:_98.y+_99.y,width:_98.width+_99.x,height:_98.height+_99.y}; }; }; } Type.registerNamespace("Telerik.Web"); Type.registerNamespace("Telerik.Web.UI"); Telerik.Web.UI.ModalExtender=function(_9a){ this._windowResizeDelegate=null; this._windowScrollDelegate=null; this._xCoordinate=-1; this._yCoordinate=-1; this._backgroundElement=null; this._foregroundElement=_9a; this._saveTabIndexes=new Array(); this._saveDesableSelect=new Array(); this._tagWithTabIndex=new Array("A","AREA","BUTTON","INPUT","OBJECT","SELECT","TEXTAREA","IFRAME"); }; Telerik.Web.UI.ModalExtender.prototype={dispose:function(){ this.hide(); this._backgroundElement=null; this._foregroundElement=null; },show:function(){ this._attachWindowHandlers(true); var _9b=this._getModalOverlay(); this._foregroundElement.parentNode.appendChild(_9b); _9b.style.zIndex=$telerik.getCurrentStyle(this._foregroundElement,"zIndex",this._foregroundElement.style.zIndex)-1; _9b.style.display=""; this._disableTab(); this._updatePageLayout(); this._updatePageLayout(); },_storeBrowserPosition:function(){ var _9c=document.body; var _9d=document.documentElement; this._browserTop=_9c.scrollTop>_9d.scrollTop?_9c.scrollTop:_9d.scrollTop; this._browserLeft=_9c.scrollLeft>_9d.scrollLeft?_9c.scrollTop:_9d.scrollLeft; },_restoreBrowserPosition:function(_9e,top){ try{ if(null==_9e){ _9e=this._browserLeft; } if(null==top){ top=this._browserTop; } var _a0=document.body; var _a1=document.documentElement; _a0.scrollTop=top; _a0.scrollLeft=_9e; _a1.scrollTop=top; _a1.scrollLeft=_9e; } catch(ex){ } },hide:function(){ this._backgroundElement.style.display="none"; this._restoreTab(); this._attachWindowHandlers(false); },_enableScroll:function(_a2){ if(_a2){ document.body.style.overflow=null!=this._overflow?this._overflow:""; document.documentElement.style.overflow=null!=this._documentOverflow?this._documentOverflow:""; document.body.style.marginRight=""; }else{ this._overflow=document.body.style.overflow; document.body.style.overflow="hidden"; this._documentOverflow=document.documentElement.style.overflow; document.documentElement.style.overflow="hidden"; document.body.style.marginRight="18px"; } },_getModalOverlay:function(){ if(!this._backgroundElement){ var div=document.createElement("div"); div.style.display="none"; div.style.position="absolute"; div.style.left="0px"; div.style.top="0px"; div.style.zIndex=10000; div.style.backgroundColor="#aaaaaa"; div.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=50)"; div.style.opacity=".5"; div.style.mozOpacity=".5"; div.className="TelerikModalOverlay"; this._backgroundElement=div; } return this._backgroundElement; },_attachWindowHandlers:function(_a4){ var _a5=window; if(true==_a4){ this._windowResizeDelegate=Function.createDelegate(this,this._updatePageLayout); $addHandler(_a5,"resize",this._windowResizeDelegate); this._windowScrollDelegate=Function.createDelegate(this,this._updatePageLayout); $addHandler(_a5,"scroll",this._windowScrollDelegate); }else{ if(this._windowResizeDelegate){ $removeHandler(_a5,"resize",this._windowResizeDelegate); } this._windowResizeDelegate=null; if(this._windowScrollDelegate){ $removeHandler(_a5,"scroll",this._windowScrollDelegate); } this._windowScrollDelegate=null; } },_updatePageLayout:function(){ var _a6=(document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft); var _a7=(document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop); var _a8=$telerik.getClientBounds(); var _a9=_a8.width; var _aa=_a8.height; var _ab=this._getModalOverlay(); _ab.style.width=Math.max(Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),_a9)+"px"; _ab.style.height=Math.max(Math.max(document.documentElement.scrollHeight,document.body.scrollHeight),_aa)+"px"; },_disableTab:function(){ var i=0; var _ad; var _ae=new Array(); Array.clear(this._saveTabIndexes); for(var j=0;j_df){ _db.x-=_dc.x+_dc.width-_df+_dd.scrollLeft; _de=true; } if(_dc.x<0){ _db.x-=_dc.x; _de=true; } if(_dc.y<0){ _db.y-=_dc.y; _de=true; } if(_dd.height<_dc.y+_dc.height-_dd.scrollTop){ if(_dd.height-_dc.height>0){ _db.y=_dd.height-_dc.height+_dd.scrollTop; _de=true; } } if(_de){ $telerik.setLocation(elt,_db); _dc=$telerik.getBounds(elt); } } elt.zIndex=1000; if(((Sys.Browser.agent===Sys.Browser.InternetExplorer)&&(Sys.Browser.version<7))||this._overlay){ var _e0=elt._hideWindowedElementsIFrame; if(!_e0){ _e0=document.createElement("iframe"); _e0.src="javascript:'';"; _e0.style.position="absolute"; _e0.style.display="none"; _e0.scrolling="no"; _e0.frameBorder="0"; _e0.tabIndex="-1"; _e0.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)"; elt.parentNode.insertBefore(_e0,elt); elt._hideWindowedElementsIFrame=_e0; this._moveHandler=Function.createDelegate(this,this._onMove); Sys.UI.DomEvent.addHandler(elt,"move",this._moveHandler); } $telerik.setBounds(_e0,_dc); if(Sys.Browser.agent===Sys.Browser.Firefox){ _e0.style.top=parseInt(_dc.y)-_dd.scrollTop+"px"; _e0.style.left=parseInt(_dc.x)-_dd.scrollLeft+"px"; _e0.style.position="fixed"; } if($telerik.quirksMode){ return; } _e0.style.display=elt.style.display; if(elt.currentStyle&&elt.currentStyle.zIndex){ _e0.style.zIndex=elt.currentStyle.zIndex; }else{ if(elt.style.zIndex){ _e0.style.zIndex=elt.style.zIndex; } } } },_getViewportBounds:function(){ var _e1=$telerik.getClientBounds(); var _e2=document.documentElement.scrollLeft||document.body.scrollLeft; var _e3=document.documentElement.scrollTop||document.body.scrollTop; _e1.scrollLeft=_e2; _e1.scrollTop=_e3; return _e1; },_setCoordinates:function(x,y){ var _e6=false; if(x!=this._x){ this._x=x; _e6=true; } if(y!=this._y){ this._y=y; _e6=true; } if($telerik.getVisible(this.get_element())&&_e6&&this._manageVisibility){ this.show(); } },initialize:function(){ Telerik.Web.PopupBehavior.callBaseMethod(this,"initialize"); this.hide(); this.get_element().style.position="absolute"; },dispose:function(){ var elt=this.get_element(); if(elt){ if(this._moveHandler){ Sys.UI.DomEvent.removeHandler(elt,"move",this._moveHandler); this._moveHandler=null; } this._attachWindowHandlers(false); if($telerik.getVisible(elt)&&this._manageVisibility){ this.hide(); } if(this._originalParent){ elt.parentNode.removeChild(elt); this._originalParent.appendChild(elt); this._originalParent=null; } } this._parentElement=null; Telerik.Web.PopupBehavior.callBaseMethod(this,"dispose"); },_onMove:function(){ var elt=this.get_element(); var _e9=elt._hideWindowedElementsIFrame; if(_e9){ if(Sys.Browser.agent===Sys.Browser.Firefox){ var _ea=this._getViewportBounds(); _e9.style.top=parseInt(elt.style.top)-_ea.scrollTop+"px"; _e9.style.left=parseInt(elt.style.left)-_ea.scrollLeft+"px"; _e9.style.position="fixed"; }else{ _e9.style.top=elt.style.top; _e9.style.left=elt.style.left; } } },_handleElementResize:function(){ var elt=this.get_element(); var _ec=elt._hideWindowedElementsIFrame; if(_ec){ var _ed=$telerik.getBounds(elt); $telerik.setBounds(_ec,_ed); } },_attachWindowHandlers:function(_ee){ if(!Sys.Browser.agent===Sys.Browser.Firefox){ return; } var _ef=window; if(true==_ee){ this._windowResizeDelegate=Function.createDelegate(this,this._onMove); $addHandler(_ef,"resize",this._windowResizeDelegate); this._windowScrollDelegate=Function.createDelegate(this,this._onMove); $addHandler(_ef,"scroll",this._windowScrollDelegate); }else{ if(this._windowResizeDelegate){ $removeHandler(_ef,"resize",this._windowResizeDelegate); } this._windowResizeDelegate=null; if(this._windowScrollDelegate){ $removeHandler(_ef,"scroll",this._windowScrollDelegate); } this._windowScrollDelegate=null; } }}; Telerik.Web.PopupBehavior.registerClass("Telerik.Web.PopupBehavior",Telerik.Web.BehaviorBase); Type.registerNamespace("Telerik.Web.UI"); Telerik.Web.UI.ResizeExtender=function(_f0,_f1,_f2,_f3,doc){ this._document=doc?doc:document; this._documentMouseMoveDelegate=null; this._documentMouseUpDelegate=null; this._element=null; this._tableElement=null; this._enabled=true; this._jsOwner=null; this._saveDelegates={}; this.makeResizable(_f0,_f1,_f2,_f3); }; Telerik.Web.UI.ResizeExtender.prototype={dispose:function(){ this._attachDocumentHandlers(false); this._configureHandleElements(false); this._jsOwner=null; },enable:function(_f5){ this._enabled=_f5; },makeResizable:function(_f6,_f7,_f8,_f9){ if(!_f7){ return; } if(this._element){ alert("Element "+_f7.getAttribute("id")+" cannot be made resizable, as the resizeExtender already has the element "+this._element.getAttribute("id")+" associated with it. You must create a new extender resizer object"); return; } this._jsOwner=_f6; this._element=_f7; this._tableElement=_f9; this._resizeHandles=_f8; this._startX=0; this._startY=0; this._cancelResize=true; this._configureHandleElements(true); },_raiseDragEvent:function(_fa,ev){ if(this._jsOwner&&this._jsOwner["on"+_fa]){ return this._jsOwner["on"+_fa](ev); } return true; },_raiseEvent:function(_fc,ev){ if(this._jsOwner&&this._jsOwner["on"+_fc]){ if(!ev){ ev=new Sys.EventArgs(); }else{ if(_fc=="Resize"){ ev=this._resizeDir; }else{ if(_fc=="Resizing"){ ev=this._getProposedBounds(ev); } } } return this._jsOwner["on"+_fc](ev); } return true; },_getProposedBounds:function(b1){ var b2=$telerik.getBounds(this._element); return {x:b1.x||b2.x,y:b1.y||b2.y,width:b1.width||b2.width,height:b1.height||b2.height}; },_resize:function(e){ if(!this._enabled||this._cancelResize){ return false; } var _101=0; var _102=0; var _103=0; var nTop=0; var _105=this._originalBounds; var _106=this._resizeDir.move; if(_106){ _103=_105.x+(e.clientX-this._startX); nTop=_105.y+(e.clientY-this._startY); }else{ if(this._resizeDir.east){ _101=_105.width+(e.clientX-this._startX); }else{ if(this._resizeDir.west){ _103=e.clientX; _101=_105.width-(e.clientX-this._startX); } } if(this._resizeDir.south){ _102=_105.height+(e.clientY-this._startY); }else{ if(this._resizeDir.north){ nTop=e.clientY; _102=_105.height-(e.clientY-this._startY); } } } if(this._offsetLocation){ _103-=this._offsetLocation.x; nTop-=this._offsetLocation.y; } var _107=new Sys.UI.Bounds(_103,nTop,_101,_102); var _108=_106?this._raiseDragEvent("Drag",_107):this._raiseEvent("Resizing",_107); if(false==_108){ return true; } if(_106||_107.x>0){ this._element.style.left=_107.x+"px"; } if(_106||_107.y>0){ this._element.style.top=_107.y+"px"; } if(_107.width>0){ this._element.style.width=_107.width+"px"; } if(_107.height>0){ this._element.style.height=_107.height+"px"; } if(!_106){ this._updateInnerTableSize(); } return true; },_storeStartCoords:function(e){ if(!this._enabled){ return; } this._cancelResize=false; this._startX=e.clientX; this._startY=e.clientY; var _10a=$telerik.getBounds(this._element); this._originalBounds=_10a; var _10b=("relative"==$telerik.getCurrentStyle(this._element.parentNode,"position")); this._offsetLocation=(_10b?$telerik.getLocation(this._element.parentNode):null); var _10c=e.target?e.target:e.srcElement; if(_10c&&_10c.type==3){ _10c=_10c.parentNode; } this._resizeType=$telerik.getCurrentStyle(_10c,"cursor"); this._resizeDir={north:this._resizeType.match(/n.?-/)?1:0,east:this._resizeType.match(/e-/)?1:0,south:this._resizeType.match(/s.?-/)?1:0,west:this._resizeType.match(/w-/)?1:0,move:this._resizeType.match(/move/)?1:0}; if(this._resizeDir.move){ var _10d=this._raiseDragEvent("DragStart"); this._cancelResize=(_10d==false); }else{ this._raiseEvent("ResizeStart"); } if(!this._cancelResize){ this._clearSelection(); this._setIframesVisible(false); this._attachDocumentHandlers(false); this._attachDocumentHandlers(true); } },_updateInnerTableSize:function(){ var dir=this._resizeDir; if(dir.south||dir.north){ var _10f=this._element.style.height; var _110=this._tableElement; if(_110){ _110.style.height=_10f; this._fixIeHeight(_110,_10f); } } },_setIframesVisible:function(_111){ var _112=this._document.getElementsByTagName("IFRAME"); for(var i=0;i<_112.length;i++){ _112[i].style.visibility=_111?"":"hidden"; } },_configureHandleElements:function(_114){ var _115=["nw","n","ne","w","e","sw","s","se","move"]; for(var i=0;i<_115.length;i++){ var _117=_115[i]; var _118=this._resizeHandles[_117]; if(_118){ if(_118 instanceof Array){ for(var j=0;j<_118.length;j++){ this._configureHandle("id"+i+"_"+j,_114,_118[j],_117); } }else{ this._configureHandle("id"+i,_114,_118,_117); } } } if(!_114){ this._saveDelegates={}; } },_configureHandle:function(_11a,_11b,_11c,_11d){ if(_11b){ var _11e=Function.createDelegate(this,this._onHandleMouseDown); $telerik.addExternalHandler(_11c,"mousedown",_11e); this._saveDelegates[_11a]={delegate:_11e,element:_11c}; var _11f=(_11d=="move"?"move":_11d+"-resize"); _11c.style.cursor=_11f; }else{ $telerik.removeExternalHandler(_11c,"mousedown",this._saveDelegates[_11a].delegate); _11c.style.cursor=""; } },_attachDocumentHandlers:function(_120){ var _121=this._document; if(true==_120){ this._documentMouseMoveDelegate=Function.createDelegate(this,this._onDocumentMouseMove); $telerik.addExternalHandler(_121,"mousemove",this._documentMouseMoveDelegate); this._documentMouseUpDelegate=Function.createDelegate(this,this._onDocumentMouseUp); $telerik.addExternalHandler(_121,"mouseup",this._documentMouseUpDelegate); }else{ if(this._documentMouseMoveDelegate){ $telerik.removeExternalHandler(_121,"mousemove",this._documentMouseMoveDelegate); } this._documentMouseMoveDelegate=null; if(this._documentMouseUpDelegate){ $telerik.removeExternalHandler(_121,"mouseup",this._documentMouseUpDelegate); } this._documentMouseUpDelegate=null; } },_onDocumentMouseMove:function(e){ var _123=this._resize(e); if(_123){ return $telerik.cancelRawEvent(e); } },_onDocumentMouseUp:function(e){ var _125=!this._cancelResize; this._cancelResize=true; if(_125){ this._clearSelection(); this._setIframesVisible(true); if(this._resizeDir&&this._resizeDir.move){ this._raiseDragEvent("DragEnd"); }else{ this._raiseEvent("ResizeEnd"); } this._attachDocumentHandlers(false); } },_onHandleMouseDown:function(e){ this._storeStartCoords(e); return $telerik.cancelRawEvent(e); },_clearSelection:function(){ if(this._document.selection&&this._document.selection.empty){ this._document.selection.empty(); } },_fixIeHeight:function(_127,_128){ if("CSS1Compat"==document.compatMode){ var _129=(_127.offsetHeight-parseInt(_128)); if(_129>0){ var _12a=(parseInt(_127.style.height)-_129); if(_12a>0){ _127.style.height=_12a+"px"; } } } }}; Telerik.Web.UI.ResizeExtender.registerClass("Telerik.Web.UI.ResizeExtender",null); if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();