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);
var _4d=this._getOffsetParentLocation(elt);
_4b={x:_4c.x-_4d.x,y:_4c.y-_4d.y};
}else{
_4c=$telerik.getBounds(_4a);
_4b={x:0,y:0};
}
var _4e=elt.offsetWidth-(elt.clientLeft?elt.clientLeft*2:0);
var _4f=elt.offsetHeight-(elt.clientTop?elt.clientTop*2:0);
var _50;
switch(this._positioningMode){
case Telerik.Web.PositioningMode.Center:
_50={x:Math.round(_4c.width/2-_4e/2),y:Math.round(_4c.height/2-_4f/2)};
break;
case Telerik.Web.PositioningMode.BottomLeft:
_50={x:0,y:_4c.height};
break;
case Telerik.Web.PositioningMode.BottomRight:
_50={x:_4c.width-_4e,y:_4c.height};
break;
case Telerik.Web.PositioningMode.TopLeft:
_50={x:0,y:-elt.offsetHeight};
break;
case Telerik.Web.PositioningMode.TopRight:
_50={x:_4c.width-_4e,y:-elt.offsetHeight};
break;
default:
_50={x:0,y:0};
}
_50.x+=this._x+_4b.x;
_50.y+=this._y+_4b.y;
$telerik.setLocation(elt,_50);
if(this._firstPopup){
elt.style.width=_4e+"px";
}
this._firstPopup=false;
var _51=this._fixPositionInBounds();
this._createOverlay(_51);
},_getViewportBounds:function(){
var _52=$telerik.getClientBounds();
var doc=document.documentElement;
var _54=document.body;
_52.scrollLeft=($telerik.getCorrectScrollLeft(doc)||$telerik.getCorrectScrollLeft(_54));
_52.scrollTop=(doc.scrollTop||_54.scrollTop);
return _52;
},_getOffsetParentLocation:function(_55){
var _56=_55.offsetParent;
if(_56&&_56.tagName.toUpperCase()!="BODY"&&_56.tagName.toUpperCase()!="HTML"){
var _57=$telerik.getLocation(_56);
var _58=$telerik.getBorderBox(_56);
_57.x+=_58.top;
_57.y+=_58.left;
_57.x-=$telerik.getCorrectScrollLeft(_56);
_57.y-=_56.scrollTop;
return _57;
}
return {x:0,y:0};
},_fixPositionInBounds:function(){
var _59=this.get_element();
var _5a=$telerik.getBounds(_59);
if(!this._keepInScreenBounds){
return _5a;
}
var _5b=this._getViewportBounds();
var _5c=false;
var _5d=(_5b.width>_5a.width);
var _5e=(_5b.height>_5a.height);
var _5f=_5b.scrollTop;
var _60=_5b.height+_5f;
var _61=_5b.scrollLeft;
var _62=_5b.width+_61;
if($telerik.isRightToLeft(document.body)){
var _63=document.documentElement.scrollWidth;
_62=_63?_63:document.body.scrollWidth;
}
if(_5a.x<_61||!_5d){
_5a.x=_61;
_5c=true;
}
if(_5a.y<_5f||!_5e){
_5a.y=_5f;
_5c=true;
}
if(_5d&&(_5a.x+_5a.width>_62)){
_5a.x=_62-_5a.width;
_5c=true;
}
if(_5e&&(_60<_5a.y+_5a.height)){
_5a.y=_60-_5a.height;
_5c=true;
}
if(_5c){
var _64=this._getOffsetParentLocation(_59);
_5a.y-=_64.y;
_5a.x-=_64.x;
$telerik.setLocation(_59,_5a);
}
return _5a;
},_createOverlay:function(_65){
if(!$telerik.isIE6&&!this._overlay){
return;
}
var _66=this.get_element();
var _67=_66._hideWindowedElementsIFrame;
if(!_67){
_67=document.createElement("iframe");
_67.src="javascript:'<html></html>';";
_67.style.position="absolute";
_67.style.display="none";
_67.scrolling="no";
_67.frameBorder="0";
_67.tabIndex="-1";
_67.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)";
_66.parentNode.insertBefore(_67,_66);
_66._hideWindowedElementsIFrame=_67;
this._moveHandler=Function.createDelegate(this,this._onMove);
$telerik.addExternalHandler(_66,"move",this._moveHandler);
}
$telerik.setBounds(_67,_65);
if($telerik.isFirefox){
var _68=this._getViewportBounds();
_67.style.top=parseInt(_65.y)-_68.scrollTop+"px";
_67.style.left=parseInt(_65.x)-_68.scrollLeft+"px";
_67.style.position="fixed";
}
if($telerik.quirksMode){
return;
}
_67.style.display=_66.style.display;
var _69=$telerik.getCurrentStyle(_66,"zIndex");
if(_69){
_67.style.zIndex=_69;
}
},_setCoordinates:function(x,y){
var _6c=false;
if(x!=this._x){
this._x=x;
_6c=true;
}
if(y!=this._y){
this._y=y;
_6c=true;
}
if($telerik.getVisible(this.get_element())&&_6c&&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 _6e=elt._hideWindowedElementsIFrame;
if(_6e){
var _6f=_6e.parentNode;
var _70=_6e.nextSibling;
if(_6f){
_6f.removeChild(_6e);
if(_70){
_6f.insertBefore(document.createElement("SPAN"),_70);
}else{
_6f.appendChild(document.createElement("SPAN"));
}
}
}
}
this._parentElement=null;
Telerik.Web.PopupBehavior.callBaseMethod(this,"dispose");
},_onMove:function(){
var elt=this.get_element();
var _72=elt._hideWindowedElementsIFrame;
if(_72){
if(Sys.Browser.agent===Sys.Browser.Firefox){
var _73=this._getViewportBounds();
_72.style.top=parseInt(elt.style.top)-_73.scrollTop+"px";
_72.style.left=parseInt(elt.style.left)-_73.scrollLeft+"px";
_72.style.position="fixed";
}else{
_72.style.top=elt.style.top;
_72.style.left=elt.style.left;
}
}
},_handleElementResize:function(){
var elt=this.get_element();
var _75=elt._hideWindowedElementsIFrame;
if(_75){
var _76=$telerik.getBounds(elt);
$telerik.setBounds(_75,_76);
}
},_attachWindowHandlers:function(_77){
if(!Sys.Browser.agent===Sys.Browser.Firefox){
return;
}
var _78=window;
if(true==_77){
this._windowResizeDelegate=Function.createDelegate(this,this._onMove);
$telerik.addExternalHandler(_78,"resize",this._windowResizeDelegate);
this._windowScrollDelegate=Function.createDelegate(this,this._onMove);
$telerik.addExternalHandler(_78,"scroll",this._windowScrollDelegate);
}else{
if(this._windowResizeDelegate){
$telerik.removeExternalHandler(_78,"resize",this._windowResizeDelegate);
}
this._windowResizeDelegate=null;
if(this._windowScrollDelegate){
$telerik.removeExternalHandler(_78,"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(_79,_7a,_7b,_7c,doc,_7e,_7f){
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(_79,_7a,_7b,_7c,_7e,_7f);
};
Telerik.Web.UI.ResizeExtender.containsBounds=function(_80,_81){
if(!_80||!_81){
return false;
}
var _82=$telerik.containsPoint(_80,_81.x,_81.y);
if(_82){
var x=_81.x+_81.width;
var y=_81.y+_81.height;
_82=$telerik.containsPoint(_80,x,y);
}
return _82;
};
Telerik.Web.UI.ResizeExtender.prototype={dispose:function(){
this._attachDocumentHandlers(false);
this._configureHandleElements(false);
this._jsOwner=null;
},enable:function(_85){
this._enabled=_85;
},set_hideIframes:function(_86){
this._hideIframes=_86;
},get_hideIframes:function(){
return this._hideIframes;
},makeResizable:function(_87,_88,_89,_8a,_8b,_8c){
if(!_88){
return;
}
if(this._element){
alert("Element "+_88.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=_87;
this._element=_88;
this._tableElement=_8a;
this._resizeHandles=_89;
if(_8b){
this._moveCursorType=_8b;
}
if(_8c!=null){
this._autoScrollEnabled=_8c;
}
this._startX=0;
this._startY=0;
this._cancelResize=true;
this._configureHandleElements(true);
},_raiseDragEvent:function(_8d,ev,_8f){
if(this._jsOwner&&this._jsOwner["on"+_8d]){
var _90=ev;
if(!_90){
_90={};
}
_90.element=this._element;
_90.ownerEvent=_8f;
return this._jsOwner["on"+_8d](_90);
}
return true;
},_raiseEvent:function(_91,ev){
if(this._jsOwner&&this._jsOwner["on"+_91]){
if(!ev){
ev=new Sys.EventArgs();
}else{
if(_91=="Resize"){
ev=this._resizeDir;
}else{
if(_91=="Resizing"){
ev=this._getProposedBounds(ev);
}
}
}
return this._jsOwner["on"+_91](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 _96=0;
var _97=0;
var _98=0;
var _99=0;
var _9a=this._originalBounds;
var _9b=this._resizeDir.move;
if(_9b){
_98=_9a.x+(e.clientX-this._startX);
_99=_9a.y+(e.clientY-this._startY);
}else{
if(this._resizeDir.east){
_96=_9a.width+(e.clientX-this._startX);
}else{
if(this._resizeDir.west){
_98=e.clientX-this._leftHandleMouseDelta;
_96=_9a.width-(e.clientX-this._startX);
}
}
if(this._resizeDir.south){
_97=_9a.height+(e.clientY-this._startY);
}else{
if(this._resizeDir.north){
_99=_9a.y+(e.clientY-this._startY);
_97=_9a.height-(e.clientY-this._startY);
}
}
}
if(this._offsetLocation){
_98-=this._offsetLocation.x;
_99-=this._offsetLocation.y;
}
var _9c=new Sys.UI.Bounds(_98,_99,_96,_97);
var _9d=_9b?this._raiseDragEvent("Drag",_9c,e):this._raiseEvent("Resizing",_9c);
if(false==_9d){
return true;
}
if(_9b||_9c.x>0){
this._element.style.left=_9c.x+"px";
}
if(_9b||_9c.y>0){
this._element.style.top=_9c.y+"px";
}
if(_9c.width>0){
this._element.style.width=_9c.width+"px";
}
if(_9c.height>0){
this._element.style.height=_9c.height+"px";
}
if(!_9b){
this._updateInnerTableSize();
}
return true;
},_storeStartCoords:function(e){
if(!this._enabled){
return;
}
this._cancelResize=false;
this._startX=e.clientX;
this._startY=e.clientY;
var _9f=$telerik.getBounds(this._element);
this._originalBounds=_9f;
var _a0=e.target?e.target:e.srcElement;
if(_a0&&_a0.type==3){
_a0=_a0.parentNode;
}
this._resizeType=$telerik.getCurrentStyle(_a0,"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(_a0).x-this._startX);
}
var _a1=this._resizeDir.move?this._raiseDragEvent("DragStart",null,e):this._raiseEvent("ResizeStart");
this._cancelResize=(_a1==false);
var _a2=$telerik.getCurrentStyle(this._element.parentNode,"position");
var _a3=("relative"==_a2)||("absolute"==_a2);
this._offsetLocation=_a3?$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 _a5=this._element.style.height;
var _a6=this._tableElement;
if(_a6){
_a6.style.height=_a5;
this._fixIeHeight(_a6,_a5);
}
}
},_setIframesVisible:function(_a7){
if(!this._hideIframes){
return;
}
var _a8=this._document.getElementsByTagName("IFRAME");
for(var i=0;i<_a8.length;i++){
var _aa=_a8[i];
_aa.style.visibility=_a7?"":"hidden";
if($telerik.isIE){
try{
_aa.contentWindow.document.body.style.visibility=_a7?"":"hidden";
}
catch(ex){
}
}
}
},_configureHandleElements:function(_ab){
var _ac=["nw","n","ne","w","e","sw","s","se",this._moveCursorType];
for(var i=0;i<_ac.length;i++){
var _ae=_ac[i];
var _af=this._resizeHandles[_ae];
if(_af){
if(_af instanceof Array){
for(var j=0;j<_af.length;j++){
this._configureHandle("id"+i+"_"+j,_ab,_af[j],_ae);
}
}else{
this._configureHandle("id"+i,_ab,_af,_ae);
}
}
}
if(!_ab){
this._saveDelegates={};
}
},_configureHandle:function(_b1,_b2,_b3,_b4){
if(_b2){
var _b5=Function.createDelegate(this,this._onHandleMouseDown);
$telerik.addExternalHandler(_b3,"mousedown",_b5);
this._saveDelegates[_b1]={delegate:_b5,element:_b3};
var _b6=(_b4==this._moveCursorType?this._moveCursorType:_b4+"-resize");
_b3.style.cursor=_b6;
}else{
$telerik.removeExternalHandler(_b3,"mousedown",this._saveDelegates[_b1].delegate);
_b3.style.cursor="";
}
},_attachDocumentHandlers:function(_b7){
var _b8=this._document;
if(true==_b7){
this._documentMouseMoveDelegate=Function.createDelegate(this,this._onDocumentMouseMove);
$telerik.addExternalHandler(_b8,"mousemove",this._documentMouseMoveDelegate);
this._documentMouseUpDelegate=Function.createDelegate(this,this._onDocumentMouseUp);
$telerik.addExternalHandler(_b8,"mouseup",this._documentMouseUpDelegate);
}else{
if(this._documentMouseMoveDelegate){
$telerik.removeExternalHandler(_b8,"mousemove",this._documentMouseMoveDelegate);
}
this._documentMouseMoveDelegate=null;
if(this._documentMouseUpDelegate){
$telerik.removeExternalHandler(_b8,"mouseup",this._documentMouseUpDelegate);
}
this._documentMouseUpDelegate=null;
}
},_onDocumentMouseMove:function(e){
var _ba=this._resize(e);
if(this._autoScrollEnabled){
this._autoScroll(e);
}
if(_ba){
return $telerik.cancelRawEvent(e);
}
},_onDocumentMouseUp:function(e){
var _bc=!this._cancelResize;
this._cancelResize=true;
if(_bc){
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(_be,_bf){
if("CSS1Compat"==document.compatMode){
var _c0=(_be.offsetHeight-parseInt(_bf));
if(_c0>0){
var _c1=(parseInt(_be.style.height)-_c0);
if(_c1>0){
_be.style.height=_c1+"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 _c3=$telerik.getClientBounds();
if(_c3.width>0){
this._scrollDeltaX=this._scrollDeltaY=0;
if(ev.clientX<_c3.x+this._scrollEdgeConst){
this._scrollDeltaX=-this._scrollByConst;
}else{
if(ev.clientX>_c3.width-this._scrollEdgeConst){
this._scrollDeltaX=this._scrollByConst;
}
}
if(ev.clientY<_c3.y+this._scrollEdgeConst){
this._scrollDeltaY=-this._scrollByConst;
}else{
if(ev.clientY>_c3.height-this._scrollEdgeConst){
this._scrollDeltaY=this._scrollByConst;
}
}
var _c4=this._scroller;
if(this._scrollDeltaX!=0||this._scrollDeltaY!=0){
this._originalStartX=this._startX;
this._originalStartY=this._startY;
_c4.set_enabled(true);
}else{
if(_c4.get_enabled()){
this._startX=this._originalStartX;
this._startY=this._originalStartY;
}
_c4.set_enabled(false);
}
}
},_onScrollerTick:function(){
var _c5=document.documentElement.scrollLeft||document.body.scrollLeft;
var _c6=document.documentElement.scrollTop||document.body.scrollTop;
window.scrollBy(this._scrollDeltaX,this._scrollDeltaY);
var _c7=document.documentElement.scrollLeft||document.body.scrollLeft;
var _c8=document.documentElement.scrollTop||document.body.scrollTop;
var _c9=_c7-_c5;
var _ca=_c8-_c6;
var _cb=this._element;
var _cc={x:parseInt(_cb.style.left)+_c9,y:parseInt(_cb.style.top)+_ca};
this._startX-=_c9;
this._startY-=_ca;
try{
$telerik.setLocation(_cb,_cc);
}
catch(ex){
}
}};
Telerik.Web.UI.ResizeExtender.registerClass("Telerik.Web.UI.ResizeExtender",null);


if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();