﻿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(){
var _2=this.get_element();
Telerik.Web.BehaviorBase.callBaseMethod(this,"dispose");
if(_2&&_2._behaviors&&_2._behaviors.length==0){
_2._behaviors=null;
}
_2=null;
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(_3){
if(this._clientStateFieldID!=_3){
this._clientStateFieldID=_3;
this.raisePropertyChanged("ClientStateFieldID");
}
},get_ClientState:function(){
if(this._clientStateFieldID){
var _4=document.getElementById(this._clientStateFieldID);
if(_4){
return _4.value;
}
}
return null;
},set_ClientState:function(_5){
if(this._clientStateFieldID){
var _6=document.getElementById(this._clientStateFieldID);
if(_6){
_6.value=_5;
}
}
},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(_7,_8){
},_partialUpdateEndRequest:function(_9,_a){
}};
Telerik.Web.BehaviorBase.registerClass("Telerik.Web.BehaviorBase",Sys.UI.Behavior);
Type.registerNamespace("Telerik.Web");
Type.registerNamespace("Telerik.Web.UI");
Telerik.Web.UI.ModalExtender=function(_b){
this._windowResizeDelegate=null;
this._windowScrollDelegate=null;
this._xCoordinate=-1;
this._yCoordinate=-1;
this._backgroundElement=null;
this._foregroundElement=_b;
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 _c=this._getModalOverlay();
var _d=this._foregroundElement;
_d.parentNode.appendChild(_c);
var _e=$telerik.getCurrentStyle(_d,"zIndex");
if(!isNaN(parseInt(_e))){
_c.style.zIndex=_e-1;
}
_c.style.display="";
this._disableTab();
this._updatePageLayout();
this._updatePageLayout();
},_storeBrowserPosition:function(){
var _f=document.body;
var _10=document.documentElement;
this._browserTop=_f.scrollTop>_10.scrollTop?_f.scrollTop:_10.scrollTop;
this._browserLeft=_f.scrollLeft>_10.scrollLeft?_f.scrollTop:_10.scrollLeft;
},_restoreBrowserPosition:function(_11,top){
try{
if(null==_11){
_11=this._browserLeft;
}
if(null==top){
top=this._browserTop;
}
var _13=document.body;
var _14=document.documentElement;
_13.scrollTop=top;
_13.scrollLeft=_11;
_14.scrollTop=top;
_14.scrollLeft=_11;
}
catch(ex){
}
},hide:function(){
this._restoreTab();
this._attachWindowHandlers(false);
var _15=this._backgroundElement;
if(_15){
_15.parentNode.removeChild(_15);
this._backgroundElement=null;
}
},_enableScroll:function(_16){
if(_16){
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";
if($telerik.isRightToLeft(this._foregroundElement)){
div.style.right="0px";
}else{
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.setAttribute("unselectable","on");
div.className="TelerikModalOverlay";
this._backgroundElement=div;
}
return this._backgroundElement;
},_attachWindowHandlers:function(_18){
var _19=window;
if(true==_18){
this._windowResizeDelegate=Function.createDelegate(this,this._updatePageLayout);
$addHandler(_19,"resize",this._windowResizeDelegate);
this._windowScrollDelegate=Function.createDelegate(this,this._updatePageLayout);
$addHandler(_19,"scroll",this._windowScrollDelegate);
}else{
if(this._windowResizeDelegate){
$removeHandler(_19,"resize",this._windowResizeDelegate);
}
this._windowResizeDelegate=null;
if(this._windowScrollDelegate){
$removeHandler(_19,"scroll",this._windowScrollDelegate);
}
this._windowScrollDelegate=null;
}
},_updatePageLayout:function(){
var _1a=(document.documentElement.scrollLeft?$telerik.getCorrectScrollLeft(document.documentElement):$telerik.getCorrectScrollLeft(document.body));
var _1b=(document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop);
var _1c=$telerik.getClientBounds();
var _1d=_1c.width;
var _1e=_1c.height;
var _1f=this._getModalOverlay();
_1f.style.width=Math.max(Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),_1d)+"px";
_1f.style.height=Math.max(Math.max(document.documentElement.scrollHeight,document.body.scrollHeight),_1e)+"px";
},_disableTab:function(){
var i=0;
var _21;
var _22=new Array();
Array.clear(this._saveTabIndexes);
for(var j=0;j<this._tagWithTabIndex.length;j++){
_21=this._foregroundElement.getElementsByTagName(this._tagWithTabIndex[j]);
for(var k=0;k<_21.length;k++){
_22[i]=_21[k];
i++;
}
}
i=0;
for(var j=0;j<this._tagWithTabIndex.length;j++){
_21=document.getElementsByTagName(this._tagWithTabIndex[j]);
for(var k=0;k<_21.length;k++){
if(Array.indexOf(_22,_21[k])==-1){
this._saveTabIndexes[i]={tag:_21[k],index:_21[k].tabIndex};
_21[k].tabIndex="-1";
i++;
}
}
}
i=0;
if((Sys.Browser.agent===Sys.Browser.InternetExplorer)&&(Sys.Browser.version<7)){
var _25=new Array();
for(var j=0;j<this._tagWithTabIndex.length;j++){
_21=this._foregroundElement.getElementsByTagName("SELECT");
for(var k=0;k<_21.length;k++){
_25[i]=_21[k];
i++;
}
}
i=0;
Array.clear(this._saveDesableSelect);
_21=document.getElementsByTagName("SELECT");
for(var k=0;k<_21.length;k++){
if(Array.indexOf(_25,_21[k])==-1){
this._saveDesableSelect[i]={tag:_21[k],visib:$telerik.getCurrentStyle(_21[k],"visibility")};
_21[k].style.visibility="hidden";
i++;
}
}
}
},_restoreTab:function(){
for(var i=0;i<this._saveTabIndexes.length;i++){
this._saveTabIndexes[i].tag.tabIndex=this._saveTabIndexes[i].index;
}
if((Sys.Browser.agent===Sys.Browser.InternetExplorer)&&(Sys.Browser.version<7)){
for(var k=0;k<this._saveDesableSelect.length;k++){
this._saveDesableSelect[k].tag.style.visibility=this._saveDesableSelect[k].visib;
}
}
}};
Telerik.Web.UI.ModalExtender.registerClass("Telerik.Web.UI.ModalExtender",null);
Type.registerNamespace("Telerik.Web");
Telerik.Web.PositioningMode=function(){
throw Error.invalidOperation();
};
Telerik.Web.PositioningMode.prototype={Absolute:0,Center:1,BottomLeft:2,BottomRight:3,TopLeft:4,TopRight:5};
Telerik.Web.PositioningMode.registerEnum("Telerik.Web.PositioningMode");
Telerik.Web.PopupBehavior=function(_28){
Telerik.Web.PopupBehavior.initializeBase(this,[_28]);
this._x=0;
this._y=0;
this._positioningMode=Telerik.Web.PositioningMode.Absolute;
this._parentElement=null;
this._parentElementID=null;
this._moveHandler=null;
this._firstPopup=true;
this._originalParent=null;
this._overlay=false;
this._keepInScreenBounds=true;
this._manageVisibility=true;
};
Telerik.Web.PopupBehavior._ie6pinnedList={};
Telerik.Web.PopupBehavior.prototype={getPageOffset:function(){
var _29={x:($telerik.getCorrectScrollLeft(document.documentElement)||$telerik.getCorrectScrollLeft(document.body)),y:(document.documentElement.scrollTop||document.body.scrollTop)};
return _29;
},pin:function(_2a){
var _2b=this.get_element();
var _2c=this.getPageOffset();
if($telerik.isIE6){
var id=this.get_id();
if(_2a){
if(Telerik.Web.PopupBehavior._ie6pinnedList[id]){
return;
}
var _2e=$telerik.getBounds(_2b);
Telerik.Web.PopupBehavior._ie6pinnedList[id]=window.setInterval(Function.createDelegate(this,function(){
var _2f=this.getPageOffset();
var x=_2e.x-_2c.x+_2f.x;
var y=_2e.y-_2c.y+_2f.y;
var _32=this.get_parentElement();
this.set_parentElement(document.documentElement);
this.set_x(x);
this.set_y(y);
this.show();
this.set_parentElement(_32);
}),130);
}else{
var _33=Telerik.Web.PopupBehavior._ie6pinnedList[id];
if(_33){
window.clearInterval(_33);
}
delete Telerik.Web.PopupBehavior._ie6pinnedList[id];
}
}else{
var _34=_2a?"fixed":"absolute";
if(_2b.style.position==_34){
return;
}
var _2e=$telerik.getBounds(_2b);
if(_2a&&(_2c.x||_2c.y)){
this._x=_2e.x-_2c.x;
this._y=_2e.y-_2c.y;
$telerik.setLocation(_2b,{x:this._x,y:this._y});
}
_2b.style.position=_34;
}
},center:function(){
var _35=this.get_element();
if(this._manageVisibility){
$telerik.setVisible(_35,true);
}
var _36=$telerik.getClientBounds();
var _37=$telerik.getBounds(_35);
var x=parseInt((_36.width-_37.width)/2);
var y=parseInt((_36.height-_37.height)/2);
var _3a=this.get_parentElement();
this.set_parentElement(document.documentElement);
this.set_x(x);
this.set_y(y);
this.show();
this.set_parentElement(_3a);
},get_parentElement:function(){
if(!this._parentElement&&this._parentElementID){
this.set_parentElement($get(this._parentElementID));
Sys.Debug.assert(this._parentElement!=null,String.format("Couldn't find parent element \"{0}\"",this._parentElementID));
}
return this._parentElement;
},set_parentElement:function(_3b){
this._parentElement=_3b;
},get_parentElementID:function(){
if(this._parentElement){
return this._parentElement.id;
}
return this._parentElementID;
},set_parentElementID:function(_3c){
this._parentElementID=_3c;
if(this.get_isInitialized()){
this.set_parentElement($get(_3c));
}
},get_positioningMode:function(){
return this._positioningMode;
},set_positioningMode:function(_3d){
this._positioningMode=_3d;
},get_x:function(){
return this._x;
},set_x:function(_3e){
if(_3e!=this._x){
this._x=_3e;
if($telerik.getVisible(this.get_element())&&this._manageVisibility){
this.show();
}
}
},get_y:function(){
return this._y;
},set_y:function(_3f){
if(_3f!=this._y){
this._y=_3f;
if($telerik.getVisible(this.get_element())&&this._manageVisibility){
this.show();
}
}
},get_overlay:function(){
return this._overlay;
},set_overlay:function(_40){
this._overlay=_40;
this._attachWindowHandlers(false);
if(this._overlay){
this._attachWindowHandlers(true);
}else{
if(!((Sys.Browser.agent===Sys.Browser.InternetExplorer)&&(Sys.Browser.version<7))){
var elt=this.get_element();
var _42=elt._hideWindowedElementsIFrame;
if(_42){
_42.style.display="none";
}
}
}
},get_manageVisibility:function(){
return this._manageVisibility;
},set_manageVisibility:function(_43){
this._manageVisibility=_43;
},get_keepInScreenBounds:function(){
return this._keepInScreenBounds;
},set_keepInScreenBounds:function(_44){
this._keepInScreenBounds=_44;
},hide:function(){
var elt=this.get_element();
if(this._manageVisibility){
$telerik.setVisible(elt,false);
}
if(elt.originalWidth){
elt.style.width=elt.originalWidth+"px";
elt.originalWidth=null;
}
if(Sys.Browser.agent===Sys.Browser.InternetExplorer||this._overlay){
var _46=elt._hideWindowedElementsIFrame;
if(_46){
_46.style.display="none";
}
}
},show:function(){
var elt=this.get_element();
var doc=document.documentElement;
if($telerik.isFirefox){
var _49=$telerik.getCurrentStyle(doc,"overflow");
if("hidden"==_49){
elt.style.left=doc.scrollLeft+"px";
elt.style.top=doc.scrollLeft+"px";
}
}
if(this._manageVisibility){
$telerik.setVisible(elt,true);
}
var _4a=elt.offsetParent||doc;
var _4b;
var _4c;
if(this._parentElement){
_4c=$telerik.getBounds(this._parentElement);
if(_4a.tagName.toUpperCase()!="BODY"&&_4a.tagName.toUpperCase()!="HTML"){
var _4d=$telerik.getLocation(_4a);
var _4e=$telerik.getBorderBox(_4a);
_4d.x+=_4e.top;
_4d.y+=_4e.left;
_4b={x:_4c.x-_4d.x+_4a.scrollLeft,y:_4c.y-_4d.y+_4a.scrollTop};
}else{
_4b={x:_4c.x,y:_4c.y};
}
}else{
_4c=$telerik.getBounds(_4a);
_4b={x:0,y:0};
}
var _4f=elt.offsetWidth-(elt.clientLeft?elt.clientLeft*2:0);
var _50=elt.offsetHeight-(elt.clientTop?elt.clientTop*2:0);
var _51;
switch(this._positioningMode){
case Telerik.Web.PositioningMode.Center:
_51={x:Math.round(_4c.width/2-_4f/2),y:Math.round(_4c.height/2-_50/2)};
break;
case Telerik.Web.PositioningMode.BottomLeft:
_51={x:0,y:_4c.height};
break;
case Telerik.Web.PositioningMode.BottomRight:
_51={x:_4c.width-_4f,y:_4c.height};
break;
case Telerik.Web.PositioningMode.TopLeft:
_51={x:0,y:-elt.offsetHeight};
break;
case Telerik.Web.PositioningMode.TopRight:
_51={x:_4c.width-_4f,y:-elt.offsetHeight};
break;
default:
_51={x:0,y:0};
}
_51.x+=this._x+_4b.x;
_51.y+=this._y+_4b.y;
$telerik.setLocation(elt,_51);
if(this._firstPopup){
elt.style.width=_4f+"px";
}
this._firstPopup=false;
var _52=this._fixPositionInBounds();
this._createOverlay(_52);
},_getViewportBounds:function(){
var _53=$telerik.getClientBounds();
var _54=$telerik.getCorrectScrollLeft(document.documentElement)||$telerik.getCorrectScrollLeft(document.body);
var _55=document.documentElement.scrollTop||document.body.scrollTop;
_53.scrollLeft=_54;
_53.scrollTop=_55;
return _53;
},_fixPositionInBounds:function(){
var _56=this.get_element();
var _57=$telerik.getBounds(_56);
if(!this._keepInScreenBounds){
return _57;
}
var _58=this._getViewportBounds();
var _59=false;
var _5a=(_58.width>_57.width);
var _5b=(_58.height>_57.height);
var _5c=_58.scrollTop;
var _5d=_58.height+_5c;
var _5e=_58.scrollLeft;
var _5f=_58.width+_5e;
if($telerik.isRightToLeft(document.body)){
var _60=document.documentElement.scrollWidth;
_5f=_60?_60:document.body.scrollWidth;
}
if(_57.x<_5e||!_5a){
_57.x=_5e;
_59=true;
}
if(_57.y<_5c||!_5b){
_57.y=_5c;
_59=true;
}
if(_5a&&(_57.x+_57.width>_5f)){
_57.x=_5f-_57.width;
_59=true;
}
if(_5b&&(_5d<_57.y+_57.height)){
_57.y=_5d-_57.height;
_59=true;
}
if(_59){
$telerik.setLocation(_56,_57);
}
return _57;
},_createOverlay:function(_61){
if(!$telerik.isIE6&&!this._overlay){
return;
}
var _62=this.get_element();
var _63=_62._hideWindowedElementsIFrame;
if(!_63){
_63=document.createElement("iframe");
_63.src="javascript:'<html></html>';";
_63.style.position="absolute";
_63.style.display="none";
_63.scrolling="no";
_63.frameBorder="0";
_63.tabIndex="-1";
_63.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)";
_62.parentNode.insertBefore(_63,_62);
_62._hideWindowedElementsIFrame=_63;
this._moveHandler=Function.createDelegate(this,this._onMove);
$telerik.addExternalHandler(_62,"move",this._moveHandler);
}
$telerik.setBounds(_63,_61);
if($telerik.isFirefox){
var _64=this._getViewportBounds();
_63.style.top=parseInt(_61.y)-_64.scrollTop+"px";
_63.style.left=parseInt(_61.x)-_64.scrollLeft+"px";
_63.style.position="fixed";
}
if($telerik.quirksMode){
return;
}
_63.style.display=_62.style.display;
_63.style.zIndex=$telerik.getCurrentStyle(_62,"zIndex");
},_setCoordinates:function(x,y){
var _67=false;
if(x!=this._x){
this._x=x;
_67=true;
}
if(y!=this._y){
this._y=y;
_67=true;
}
if($telerik.getVisible(this.get_element())&&_67&&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){
$telerik.removeExternalHandler(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;
}
var _69=elt._hideWindowedElementsIFrame;
if(_69){
var _6a=_69.parentNode;
var _6b=_69.nextSibling;
if(_6a){
_6a.removeChild(_69);
if(_6b){
_6a.insertBefore(document.createElement("SPAN"),_6b);
}else{
_6a.appendChild(document.createElement("SPAN"));
}
}
}
}
this._parentElement=null;
Telerik.Web.PopupBehavior.callBaseMethod(this,"dispose");
},_onMove:function(){
var elt=this.get_element();
var _6d=elt._hideWindowedElementsIFrame;
if(_6d){
if(Sys.Browser.agent===Sys.Browser.Firefox){
var _6e=this._getViewportBounds();
_6d.style.top=parseInt(elt.style.top)-_6e.scrollTop+"px";
_6d.style.left=parseInt(elt.style.left)-_6e.scrollLeft+"px";
_6d.style.position="fixed";
}else{
_6d.style.top=elt.style.top;
_6d.style.left=elt.style.left;
}
}
},_handleElementResize:function(){
var elt=this.get_element();
var _70=elt._hideWindowedElementsIFrame;
if(_70){
var _71=$telerik.getBounds(elt);
$telerik.setBounds(_70,_71);
}
},_attachWindowHandlers:function(_72){
if(!Sys.Browser.agent===Sys.Browser.Firefox){
return;
}
var _73=window;
if(true==_72){
this._windowResizeDelegate=Function.createDelegate(this,this._onMove);
$telerik.addExternalHandler(_73,"resize",this._windowResizeDelegate);
this._windowScrollDelegate=Function.createDelegate(this,this._onMove);
$telerik.addExternalHandler(_73,"scroll",this._windowScrollDelegate);
}else{
if(this._windowResizeDelegate){
$telerik.removeExternalHandler(_73,"resize",this._windowResizeDelegate);
}
this._windowResizeDelegate=null;
if(this._windowScrollDelegate){
$telerik.removeExternalHandler(_73,"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(_74,_75,_76,_77,doc,_79,_7a){
this._document=doc?doc:document;
this._documentMouseMoveDelegate=null;
this._documentMouseUpDelegate=null;
this._element=null;
this._tableElement=null;
this._moveCursorType="move";
this._enabled=true;
this._jsOwner=null;
this._hideIframes=true;
this._autoScrollEnabled=true;
this._saveDelegates={};
this.makeResizable(_74,_75,_76,_77,_79,_7a);
};
Telerik.Web.UI.ResizeExtender.containsBounds=function(_7b,_7c){
if(!_7b||!_7c){
return false;
}
var _7d=$telerik.containsPoint(_7b,_7c.x,_7c.y);
if(_7d){
var x=_7c.x+_7c.width;
var y=_7c.y+_7c.height;
_7d=$telerik.containsPoint(_7b,x,y);
}
return _7d;
};
Telerik.Web.UI.ResizeExtender.prototype={dispose:function(){
this._attachDocumentHandlers(false);
this._configureHandleElements(false);
this._jsOwner=null;
},enable:function(_80){
this._enabled=_80;
},set_hideIframes:function(_81){
this._hideIframes=_81;
},get_hideIframes:function(){
return this._hideIframes;
},makeResizable:function(_82,_83,_84,_85,_86,_87){
if(!_83){
return;
}
if(this._element){
alert("Element "+_83.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=_82;
this._element=_83;
this._tableElement=_85;
this._resizeHandles=_84;
if(_86){
this._moveCursorType=_86;
}
if(_87!=null){
this._autoScrollEnabled=_87;
}
this._startX=0;
this._startY=0;
this._cancelResize=true;
this._configureHandleElements(true);
},_raiseDragEvent:function(_88,ev,_8a){
if(this._jsOwner&&this._jsOwner["on"+_88]){
var _8b=ev;
if(!_8b){
_8b={};
}
_8b.element=this._element;
_8b.ownerEvent=_8a;
return this._jsOwner["on"+_88](_8b);
}
return true;
},_raiseEvent:function(_8c,ev){
if(this._jsOwner&&this._jsOwner["on"+_8c]){
if(!ev){
ev=new Sys.EventArgs();
}else{
if(_8c=="Resize"){
ev=this._resizeDir;
}else{
if(_8c=="Resizing"){
ev=this._getProposedBounds(ev);
}
}
}
return this._jsOwner["on"+_8c](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 _91=0;
var _92=0;
var _93=0;
var _94=0;
var _95=this._originalBounds;
var _96=this._resizeDir.move;
if(_96){
_93=_95.x+(e.clientX-this._startX);
_94=_95.y+(e.clientY-this._startY);
}else{
if(this._resizeDir.east){
_91=_95.width+(e.clientX-this._startX);
}else{
if(this._resizeDir.west){
_93=e.clientX-this._leftHandleMouseDelta;
_91=_95.width-(e.clientX-this._startX);
}
}
if(this._resizeDir.south){
_92=_95.height+(e.clientY-this._startY);
}else{
if(this._resizeDir.north){
_94=_95.y+(e.clientY-this._startY);
_92=_95.height-(e.clientY-this._startY);
}
}
}
if(this._offsetLocation){
_93-=this._offsetLocation.x;
_94-=this._offsetLocation.y;
}
var _97=new Sys.UI.Bounds(_93,_94,_91,_92);
var _98=_96?this._raiseDragEvent("Drag",_97,e):this._raiseEvent("Resizing",_97);
if(false==_98){
return true;
}
if(_96||_97.x>0){
this._element.style.left=_97.x+"px";
}
if(_96||_97.y>0){
this._element.style.top=_97.y+"px";
}
if(_97.width>0){
this._element.style.width=_97.width+"px";
}
if(_97.height>0){
this._element.style.height=_97.height+"px";
}
if(!_96){
this._updateInnerTableSize();
}
return true;
},_storeStartCoords:function(e){
if(!this._enabled){
return;
}
this._cancelResize=false;
this._startX=e.clientX;
this._startY=e.clientY;
var _9a=$telerik.getBounds(this._element);
this._originalBounds=_9a;
var _9b=e.target?e.target:e.srcElement;
if(_9b&&_9b.type==3){
_9b=_9b.parentNode;
}
this._resizeType=$telerik.getCurrentStyle(_9b,"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:new RegExp(this._moveCursorType).test(this._resizeType)?1:0};
this._leftHandleMouseDelta=0;
if(this._resizeDir.west){
this._leftHandleMouseDelta=Math.abs($telerik.getBounds(_9b).x-this._startX);
}
var _9c=this._resizeDir.move?this._raiseDragEvent("DragStart",null,e):this._raiseEvent("ResizeStart");
this._cancelResize=(_9c==false);
var _9d=$telerik.getCurrentStyle(this._element.parentNode,"position");
var _9e=("relative"==_9d)||("absolute"==_9d);
this._offsetLocation=_9e?$telerik.getLocation(this._element.parentNode):null;
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 _a0=this._element.style.height;
var _a1=this._tableElement;
if(_a1){
_a1.style.height=_a0;
this._fixIeHeight(_a1,_a0);
}
}
},_setIframesVisible:function(_a2){
if(!this._hideIframes){
return;
}
var _a3=this._document.getElementsByTagName("IFRAME");
for(var i=0;i<_a3.length;i++){
var _a5=_a3[i];
_a5.style.visibility=_a2?"":"hidden";
if($telerik.isIE){
try{
_a5.contentWindow.document.body.style.visibility=_a2?"":"hidden";
}
catch(ex){
}
}
}
},_configureHandleElements:function(_a6){
var _a7=["nw","n","ne","w","e","sw","s","se",this._moveCursorType];
for(var i=0;i<_a7.length;i++){
var _a9=_a7[i];
var _aa=this._resizeHandles[_a9];
if(_aa){
if(_aa instanceof Array){
for(var j=0;j<_aa.length;j++){
this._configureHandle("id"+i+"_"+j,_a6,_aa[j],_a9);
}
}else{
this._configureHandle("id"+i,_a6,_aa,_a9);
}
}
}
if(!_a6){
this._saveDelegates={};
}
},_configureHandle:function(_ac,_ad,_ae,_af){
if(_ad){
var _b0=Function.createDelegate(this,this._onHandleMouseDown);
$telerik.addExternalHandler(_ae,"mousedown",_b0);
this._saveDelegates[_ac]={delegate:_b0,element:_ae};
var _b1=(_af==this._moveCursorType?this._moveCursorType:_af+"-resize");
_ae.style.cursor=_b1;
}else{
$telerik.removeExternalHandler(_ae,"mousedown",this._saveDelegates[_ac].delegate);
_ae.style.cursor="";
}
},_attachDocumentHandlers:function(_b2){
var _b3=this._document;
if(true==_b2){
this._documentMouseMoveDelegate=Function.createDelegate(this,this._onDocumentMouseMove);
$telerik.addExternalHandler(_b3,"mousemove",this._documentMouseMoveDelegate);
this._documentMouseUpDelegate=Function.createDelegate(this,this._onDocumentMouseUp);
$telerik.addExternalHandler(_b3,"mouseup",this._documentMouseUpDelegate);
}else{
if(this._documentMouseMoveDelegate){
$telerik.removeExternalHandler(_b3,"mousemove",this._documentMouseMoveDelegate);
}
this._documentMouseMoveDelegate=null;
if(this._documentMouseUpDelegate){
$telerik.removeExternalHandler(_b3,"mouseup",this._documentMouseUpDelegate);
}
this._documentMouseUpDelegate=null;
}
},_onDocumentMouseMove:function(e){
var _b5=this._resize(e);
if(this._autoScrollEnabled){
this._autoScroll(e);
}
if(_b5){
return $telerik.cancelRawEvent(e);
}
},_onDocumentMouseUp:function(e){
var _b7=!this._cancelResize;
this._cancelResize=true;
if(_b7){
this._clearSelection();
this._setIframesVisible(true);
if(this._resizeDir&&this._resizeDir.move){
this._raiseDragEvent("DragEnd",null,e);
}else{
this._raiseEvent("ResizeEnd");
}
this._attachDocumentHandlers(false);
if(this._scroller){
this._scroller.set_enabled(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(_b9,_ba){
if("CSS1Compat"==document.compatMode){
var _bb=(_b9.offsetHeight-parseInt(_ba));
if(_bb>0){
var _bc=(parseInt(_b9.style.height)-_bb);
if(_bc>0){
_b9.style.height=_bc+"px";
}
}
}
},_initializeAutoScroll:function(){
if(this._autoScrollInitialized){
return;
}
this._scrollEdgeConst=40;
this._scrollByConst=10;
this._scroller=null;
this._scrollDeltaX=0;
this._scrollDeltaY=0;
this._scrollerTickHandler=Function.createDelegate(this,this._onScrollerTick);
this._scroller=new Telerik.Web.Timer();
this._scroller.set_interval(10);
this._scroller.add_tick(this._scrollerTickHandler);
this._autoScrollInitialized=true;
},_autoScroll:function(ev){
this._initializeAutoScroll();
var _be=$telerik.getClientBounds();
if(_be.width>0){
this._scrollDeltaX=this._scrollDeltaY=0;
if(ev.clientX<_be.x+this._scrollEdgeConst){
this._scrollDeltaX=-this._scrollByConst;
}else{
if(ev.clientX>_be.width-this._scrollEdgeConst){
this._scrollDeltaX=this._scrollByConst;
}
}
if(ev.clientY<_be.y+this._scrollEdgeConst){
this._scrollDeltaY=-this._scrollByConst;
}else{
if(ev.clientY>_be.height-this._scrollEdgeConst){
this._scrollDeltaY=this._scrollByConst;
}
}
var _bf=this._scroller;
if(this._scrollDeltaX!=0||this._scrollDeltaY!=0){
this._originalStartX=this._startX;
this._originalStartY=this._startY;
_bf.set_enabled(true);
}else{
if(_bf.get_enabled()){
this._startX=this._originalStartX;
this._startY=this._originalStartY;
}
_bf.set_enabled(false);
}
}
},_onScrollerTick:function(){
var _c0=document.documentElement.scrollLeft||document.body.scrollLeft;
var _c1=document.documentElement.scrollTop||document.body.scrollTop;
window.scrollBy(this._scrollDeltaX,this._scrollDeltaY);
var _c2=document.documentElement.scrollLeft||document.body.scrollLeft;
var _c3=document.documentElement.scrollTop||document.body.scrollTop;
var _c4=_c2-_c0;
var _c5=_c3-_c1;
var _c6=this._element;
var _c7={x:parseInt(_c6.style.left)+_c4,y:parseInt(_c6.style.top)+_c5};
this._startX-=_c4;
this._startY-=_c5;
try{
$telerik.setLocation(_c6,_c7);
}
catch(ex){
}
}};
Telerik.Web.UI.ResizeExtender.registerClass("Telerik.Web.UI.ResizeExtender",null);


if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();