Type.registerNamespace("Telerik.Web.UI.Widgets");
Telerik.Web.UI.Widgets.FileListItem=function(_1,_2){
this.parent=_2;
this.type=_1[0];
this.permissions=_1[1];
this.name=_1[2];
this.path=_1[3];
this._url=_1[4]?_1[4]:null;
this.extension=_1[5];
this.size=_1[6];
this.tag=_1[7];
this.shortSize=this.isDirectory()?"&nbsp;":this._getShortSize(this.size);
this.private_CombinedPath=null;
this.private_CombinedPath=_1[7]?_1[7]:null;
this.Attributes=_1[8];
this._itemRow=null;
this._lister=null;
this.children=[];
var _3=_1[9];
for(var i=0;i<_3.length;i++){
this.children[this.children.length]=new Telerik.Web.UI.Widgets.FileListItem(_3[i],this);
}
};
Telerik.Web.UI.Widgets.FileListItem.prototype={getPath:function(){
if(this.private_CombinedPath==null){
var _5=this.path+(this.isDirectory()?this._endWithSlash(this.name):this.name);
var _6=this.parent;
while(_6&&_6.parent!=null){
_5=_6.path+this._endWithSlash(_6.name)+_5;
_6=_6.parent;
}
this.private_CombinedPath=_5;
}
return this.private_CombinedPath;
},isDirectory:function(){
return this.type==Telerik.Web.UI.Widgets.FileItemType.Directory;
},_endWithSlash:function(_7){
if(_7.lastIndexOf("/")==(_7.length-1)){
return _7;
}
return _7+"/";
},getUrl:function(){
if(this._url==null){
return this.getPath();
}else{
return this._url;
}
},isThumbnail:function(_8){
return (this._getOriginalImage(_8)!=null);
},_getOriginalImage:function(_9){
if(this.parent){
for(var i=0;i<this.parent.children.length;i++){
var _b=this.parent.children[i];
if(this.name.toLowerCase()==_b._getThumbnailName(_9).toLowerCase()){
return _b;
}
}
}
return null;
},_getThumbnailName:function(_c){
return this.name.substring(0,this.name.lastIndexOf(this.extension))+_c+this.extension;
},_getShortSize:function(_d){
var _e=_d/1024;
var _f=_e/1024;
if(_f>0.8){
return ""+Math.round(_f*100)/100+" MB";
}
if(_e>0.8){
return ""+Math.round(_e*100)/100+" kB";
}
return ""+_d+" B";
}};
Telerik.Web.UI.Widgets.FileListItem.registerClass("Telerik.Web.UI.Widgets.FileListItem",null);;Type.registerNamespace("Telerik.Web.UI.Widgets");
Telerik.Web.UI.Widgets.FileItemType=function(){
throw Error.notImplemented();
};
Telerik.Web.UI.Widgets.FileItemType.prototype={File:0,Directory:1};
Telerik.Web.UI.Widgets.FileItemType.registerEnum("Telerik.Web.UI.Widgets.FileItemType");
Telerik.Web.UI.Widgets.FileItemPermissions=function(){
throw Error.notImplemented();
};
Telerik.Web.UI.Widgets.FileItemPermissions.prototype={Read:1,Upload:2,Delete:4};
Telerik.Web.UI.Widgets.FileItemPermissions.registerEnum("Telerik.Web.UI.Widgets.FileItemPermissions");
Telerik.Web.UI.Widgets.GenericFileLister=function(_1){
this._rootItem=[];
this._currentDirectory=null;
this._selectedItem=null;
this._loadItemsPostbackReference="";
this._deleteItemPostbackReference="";
this._refreshPostbackReference="";
this._createDirectoryPostbackReference="";
this._itemsTable=null;
this._deleteButton=null;
this._refreshButton=null;
this._uploadFileButton=null;
this._folderPathHolder=null;
this._createNewDirectoryButton=null;
this._confirmNewDirectoryButton=null;
this._cancelNewDirectoryButton=null;
this._newDirectoryPopup=null;
this._newDirectoryName=null;
this._sortExtensionButton=null;
this._sortFilenameButton=null;
this._sortSizeButton=null;
this._currentDirectoryPath="";
this._currentDirectoryTag="";
this._selectedItemPath="";
this._selectedItemTag="";
this._sortDirection="ASC";
this._sortExpression="name";
this._localization={confirmDelete:"Are you sure you want to delete this item?",up:"Up",newFolder:"New Folder",nameExists:"A file or folder with the name specified already exists in the current folder"};
Telerik.Web.UI.Widgets.GenericFileLister.initializeBase(this,[_1]);
};
Telerik.Web.UI.Widgets.GenericFileLister.prototype={initialize:function(){
Telerik.Web.UI.Widgets.GenericFileLister.callBaseMethod(this,"initialize");
this._initializeChildren();
this._appLoadHandler=Function.createDelegate(this,this._appLoadHandler);
Sys.Application.add_load(this._appLoadHandler);
},_appLoadHandler:function(){
Sys.Application.remove_load(this._appLoadHandler);
this._initRoot(this.get_rootItem());
if(this.get_currentDirectory()==this.get_rootItem()&&this.get_currentDirectory().children.length==1){
this._currentDirectory=this.get_rootItem().children[0];
this.updateClientState();
this._clearItems();
}
this._display();
},_getItemForState:function(_2){
if(!_2){
return null;
}
return {Type:_2.type,Tag:_2.tag?_2.tag:"",Path:_2.getPath(),Name:_2.name};
},saveClientState:function(){
var _3={CurrentDirectory:this._getItemForState(this.get_currentDirectory()),SelectedItem:this._getItemForState(this.get_selectedItem())};
return Sys.Serialization.JavaScriptSerializer.serialize(_3);
},_initializeChildren:function(){
this._initializeChildrenReferences();
this._initializeChildrenEvents();
},_initializeChildrenReferences:function(){
this._itemsTable=this._getChildElement("ItemsTable");
this._refreshButton=this._getChildElement("Refresh");
this._deleteButton=this._getChildElement("Delete");
this._uploadFileButton=this._getChildElement("UploadFileColapser");
this._folderPathHolder=this._getChildElement("FolderPath");
this._sortExtensionButton=this._getChildElement("SortExtension");
this._sortFilenameButton=this._getChildElement("SortFilename");
this._sortSizeButton=this._getChildElement("SortSize");
this._createNewDirectoryButton=this._getChildElement("CreateNewDirectory");
this._confirmNewDirectoryButton=this._getChildElement("ConfirmNewDirectory");
this._cancelNewDirectoryButton=this._getChildElement("CancelNewDirectory");
this._newDirectoryPopup=this._getChildElement("NewDirectoryPopup");
this._newDirectoryName=this._getChildElement("NewDirectoryName");
},_initializeChildrenEvents:function(){
$addHandlers(this._refreshButton,{"click":this._refreshClickHandler},this);
$addHandlers(this._deleteButton,{"click":this._deleteClickHandler},this);
$addHandlers(this._uploadFileButton,{"click":this._uploadFileClickHandler},this);
$addHandlers(this._createNewDirectoryButton,{"click":this._createNewDirectoryClickHandler},this);
$addHandlers(this._confirmNewDirectoryButton,{"click":this._confirmNewDirectoryClickHandler},this);
$addHandlers(this._cancelNewDirectoryButton,{"click":this._cancelNewDirectoryClickHandler},this);
$addHandlers(this._sortExtensionButton,{"click":this._sortExtensionHandler},this);
$addHandlers(this._sortFilenameButton,{"click":this._sortFilenameHandler},this);
$addHandlers(this._sortSizeButton,{"click":this._sortSizeHandler},this);
$addHandlers(this._newDirectoryName,{"keyup":this._newDirectoryNameKeyUpHandler},this);
},loadChildItems:function(_4){
this.get_currentDirectory().children=[];
for(var i=0;i<_4.length;i++){
this.get_currentDirectory().children[i]=new Telerik.Web.UI.Widgets.FileListItem(_4[i],this.get_currentDirectory());
}
this._display();
this.raise_directoryChange({Item:this.get_currentDirectory()});
},reloadRoot:function(_6,_7,_8){
this._currentDirectoryPath=_7;
this._currentDirectoryTag=_8;
this._initRoot(_6);
this._clearItems();
this._display();
},reloadCurrentDirectory:function(_9){
this._clearItems();
this.get_currentDirectory().children=[];
for(var i=0;i<_9.length;i++){
this.get_currentDirectory().children[i]=new Telerik.Web.UI.Widgets.FileListItem(_9[i],this.get_currentDirectory());
}
this._display();
this.raise_directoryChange({Item:this.get_currentDirectory()});
},_goToDirectory:function(_b){
this._currentDirectory=_b;
this.updateClientState();
this._clearItems();
if(_b.children.length==0){
eval(this._loadItemsPostbackReference);
}else{
this._display();
this.raise_directoryChange({Item:_b});
}
},_setToolbarButtonEnabledState:function(_c,_d){
_c.parentNode.className=_d?"":"disabledtoolbarbutton";
},_display:function(){
this._setToolbarButtonEnabledState(this._createNewDirectoryButton,this.get_currentDirectory().permissions&Telerik.Web.UI.Widgets.FileItemPermissions.Upload);
this._setToolbarButtonEnabledState(this._uploadFileButton,this.get_currentDirectory().permissions&Telerik.Web.UI.Widgets.FileItemPermissions.Upload);
this._setToolbarButtonEnabledState(this._deleteButton,(this.get_currentDirectory().permissions&Telerik.Web.UI.Widgets.FileItemPermissions.Delete)&&this.get_selectedItem()!=null);
this._folderPathHolder.value=this.get_currentDirectory().getPath();
this._sortItems(this.get_currentDirectory().children);
this._renderDirectory(this.get_currentDirectory());
},_renderDirectory:function(_e){
if(!this._isRoot(_e)){
this._addUpRow();
}
for(var i=0;i<_e.children.length;i++){
var _10=this._getRowsHolder().rows.length;
this._getRowsHolder().insertRow(_10);
var row=this._getRowsHolder().rows[_10];
this._setupItemRow(row,_e.children[i]);
}
},_setupItemRow:function(row,_13){
row.item=_13;
var _14=_13.extension.toLowerCase().substring(1,_13.extension.length);
this._addListCells(row);
this._formatCell(row.cells[0],_14,"fileextension "+_14);
this._formatCell(row.cells[1],_13.name);
this._formatCell(row.cells[2],_13.shortSize,"filesize");
this._formatRow(row);
$addHandlers(row,{"dblclick":this._rowDblClickHandler,"click":this._rowClickHandler},this);
if(_13==this._selectedItem){
this._selectItemRow(row);
}
},_getRowsHolder:function(){
return this._itemsTable.tBodies[0];
},_goUpHandler:function(){
this._goToDirectory(this.get_currentDirectory().parent);
},_deleteClickHandler:function(e){
if(!(this.get_currentDirectory().permissions&Telerik.Web.UI.Widgets.FileItemPermissions.Delete)||this.get_selectedItem()==null){
return;
}
if(confirm(this._localization.confirmDelete)){
eval(this._deleteItemPostbackReference);
}
},_uploadFileClickHandler:function(){
if(this.get_currentDirectory().permissions&Telerik.Web.UI.Widgets.FileItemPermissions.Upload){
this.raise_uploadButtonClick({Directory:this.get_currentDirectory()});
}
},_refreshClickHandler:function(e){
eval(this._refreshPostbackReference);
},_sortExtensionHandler:function(e){
this._sort("extension");
},_sortFilenameHandler:function(e){
this._sort("name");
},_sortSizeHandler:function(e){
this._sort("size");
},_createNewDirectoryClickHandler:function(e){
if(this.get_currentDirectory().permissions&Telerik.Web.UI.Widgets.FileItemPermissions.Upload){
if(this._newDirectoryPopup.style.display=="none"){
this._setToolbarButtonEnabledState(this._confirmNewDirectoryButton,true);
this._newDirectoryName.value=this._localization.newFolder;
this._newDirectoryPopup.style.display="block";
this._newDirectoryName.select();
this._newDirectoryName.focus();
}
}
},_confirmNewDirectoryClickHandler:function(e){
if(this._newDirectoryName.value.trim()==""){
return;
}
for(var i=0;i<this.get_currentDirectory().children.length;i++){
var _1d=this.get_currentDirectory().children[i];
if(_1d.name==this._newDirectoryName.value.trim()){
alert(this._localization.nameExists);
return;
}
}
if(this.get_currentDirectory().permissions&Telerik.Web.UI.Widgets.FileItemPermissions.Upload){
this.updateClientState();
eval(this._createDirectoryPostbackReference);
}
this._newDirectoryPopup.style.display="none";
},_cancelNewDirectoryClickHandler:function(e){
this._newDirectoryPopup.style.display="none";
},_newDirectoryNameKeyUpHandler:function(e){
this._setToolbarButtonEnabledState(this._confirmNewDirectoryButton,this._newDirectoryName.value.trim()!="");
},_rowDblClickHandler:function(e){
var row=this._findRow(e.target);
var _22=row.item;
if(_22.isDirectory()){
row.item=null;
this._goToDirectory(_22);
}else{
this.raise_fileDblClick({Item:_22});
}
},_rowClickHandler:function(e){
var row=this._findRow(e.target);
this._selectItemRow(row);
},_selectItemRow:function(row){
this._clearSelection();
var _26=row.item;
this._selectedItem=_26;
row.className+=" selectedrow";
this._setToolbarButtonEnabledState(this._deleteButton,(this.get_currentDirectory().permissions&Telerik.Web.UI.Widgets.FileItemPermissions.Delete)&&this.get_selectedItem()!=null);
this.updateClientState();
this.raise_itemClick({Item:_26});
},_addUpRow:function(){
var _27=this._getRowsHolder().rows.length;
this._getRowsHolder().insertRow(_27);
var row=this._getRowsHolder().rows[_27];
row.className="folderup";
row.insertCell(0);
row.insertCell(1);
row.insertCell(2);
this._formatCell(row.cells[0],this._localization.up,"fileextension up");
this._formatCell(row.cells[1],"..");
this._formatCell(row.cells[2],"&nbsp;","filesize");
$addHandlers(row,{"dblclick":this._goUpHandler},this);
},_formatRow:function(row){
row.className=row.item.isDirectory()?"listItemRow folder":"listItemRow";
},_formatCell:function(_2a,_2b,_2c){
_2a.innerHTML=_2b;
_2a.title=_2b;
if(_2c){
_2a.className=_2c;
}
_2a.setAttribute("unselectable","on");
},_addListCells:function(row){
for(var i=0;i<3;i++){
row.insertCell(row.cells.length);
}
},_findRow:function(_2f){
var _30=_2f;
while(_30!=null&&_30.tagName.toLowerCase()!="tr"){
_30=_30.parentNode;
}
return _30;
},_clearSelection:function(){
var _31=this._getRowsHolder().rows.length;
for(var i=this._isRoot(this.get_currentDirectory())?0:1;i<_31;i++){
var row=this._getRowsHolder().rows[i];
this._formatRow(row);
}
},_clearItems:function(){
this._selectedItem=null;
var _34=this._getRowsHolder().rows.length;
for(var i=_34-1;i>-1;i--){
var row=this._getRowsHolder().rows[i];
$clearHandlers(row);
row.parentNode.removeChild(row);
}
},_createRootItem:function(){
return {getPath:function(){
return "/";
},children:[],tag:"",type:Telerik.Web.UI.Widgets.FileItemType.Directory,name:"Root"};
},_initRoot:function(_37){
this.set_rootItem(this._createRootItem());
for(var i=0;i<_37.length;i++){
this.get_rootItem().children[i]=new Telerik.Web.UI.Widgets.FileListItem(_37[i],this.get_rootItem());
}
this._selectedItem=this._findItemByUrlRecursive(this._selectedItemPath,this.get_rootItem().children);
if(this._selectedItem){
this._currentDirectory=this._selectedItem.parent;
}else{
this._currentDirectory=this._getCurrentDirectoryRecursive(this.get_rootItem());
}
this.updateClientState();
},_findItemByUrlRecursive:function(url,_3a){
for(var i=0;i<_3a.length;i++){
var _3c=_3a[i];
if(_3c.getUrl()==url){
return _3c;
}
var _3d=null;
if(_3c.isDirectory()){
_3d=this._findItemByUrlRecursive(url,_3c.children);
if(_3d){
return _3d;
}
}
}
return null;
},_getCurrentDirectoryRecursive:function(_3e){
if(_3e.getPath()==this._currentDirectoryPath&&_3e.tag==this._currentDirectoryTag){
return _3e;
}
var _3f=null;
for(var i=0;i<_3e.children.length;i++){
_3f=this._getCurrentDirectoryRecursive(_3e.children[i]);
if(_3f){
return _3f;
}
}
return _3f;
},_sort:function(_41){
if(_41==this._sortExpression){
this._sortDirection=(this._sortDirection=="DESC")?"ASC":"DESC";
}else{
this._sortDirection="ASC";
this._sortExpression=_41;
}
this._applyHeaderSortStyle();
this._clearItems();
this._display();
},_applyHeaderSortStyle:function(){
var _42=this._sortDirection=="ASC"?"sortdescending":"sortascending";
this._sortExtensionButton.className=this._sortExpression=="extension"?_42:"";
this._sortFilenameButton.className=this._sortExpression=="name"?_42:"";
this._sortSizeButton.className=this._sortExpression=="size"?_42:"";
},_sortItems:function(_43){
var me=this;
var _45=function(_46,_47){
return me._compare(_46,_47,me._sortDirection,me._sortExpression);
};
_43.sort(_45);
},_compare:function(_48,_49,_4a,_4b){
var _4c=_49.type-_48.type;
if(_4c==0){
var _4d=(_48.type==1&&_49.type==1)?"name":_4b;
var _4e=(typeof (_48[_4d])=="string")?_48[_4d].toLowerCase():_48[_4d];
var _4f=(typeof (_49[_4d])=="string")?_49[_4d].toLowerCase():_49[_4d];
if(_4e>_4f){
_4c=1;
}else{
if(_4e<_4f){
_4c=-1;
}else{
_4c=0;
}
}
}
return _4a=="ASC"?_4c:-_4c;
},raise_itemClick:function(_50){
this.raiseEvent("itemClick",_50);
},add_itemClick:function(_51){
this.get_events().addHandler("itemClick",_51);
},remove_itemClick:function(_52){
this.get_events().removeHandler("itemClick",_52);
},raise_directoryChange:function(_53){
this.raiseEvent("directoryChange",_53);
},add_directoryChange:function(_54){
this.get_events().addHandler("directoryChange",_54);
},remove_directoryChange:function(_55){
this.get_events().removeHandler("directoryChange",_55);
},raise_fileDblClick:function(_56){
this.raiseEvent("fileDblClick",_56);
},add_fileDblClick:function(_57){
this.get_events().addHandler("fileDblClick",_57);
},remove_fileDblClick:function(_58){
this.get_events().removeHandler("fileDblClick",_58);
},raise_uploadButtonClick:function(_59){
this.raiseEvent("uploadButtonClick",_59);
},add_uploadButtonClick:function(_5a){
this.get_events().addHandler("uploadButtonClick",_5a);
},remove_uploadButtonClick:function(_5b){
this.get_events().removeHandler("uploadButtonClick",_5b);
},get_rootItem:function(){
return this._rootItem;
},set_rootItem:function(_5c){
this._rootItem=_5c;
},_isRoot:function(_5d){
return _5d==this.get_rootItem();
},get_currentDirectory:function(){
return this._currentDirectory;
},get_selectedItem:function(){
return this._selectedItem;
},dispose:function(){
this._itemsTable=null;
$clearHandlers(this._refreshButton);
$clearHandlers(this._deleteButton);
$clearHandlers(this._uploadFileButton);
$clearHandlers(this._createNewDirectoryButton);
$clearHandlers(this._confirmNewDirectoryButton);
$clearHandlers(this._cancelNewDirectoryButton);
$clearHandlers(this._sortExtensionButton);
$clearHandlers(this._sortFilenameButton);
$clearHandlers(this._sortSizeButton);
Telerik.Web.UI.Widgets.GenericFileLister.callBaseMethod(this,"dispose");
}};
$telerik.makeCompatible(Telerik.Web.UI.Widgets.GenericFileLister);
Telerik.Web.UI.Widgets.GenericFileLister.registerClass("Telerik.Web.UI.Widgets.GenericFileLister",Telerik.Web.UI.RadWebControl);;Type.registerNamespace("Telerik.Web.UI.Widgets");
Telerik.Web.UI.Widgets.FileManagerDisplayMode=function(){
throw Error.notImplemented();
};
Telerik.Web.UI.Widgets.FileManagerDisplayMode.prototype={List:0,Upload:1};
Telerik.Web.UI.Widgets.FileManagerDisplayMode.registerEnum("Telerik.Web.UI.Widgets.FileManagerDisplayMode");
Telerik.Web.UI.Widgets.FileManager=function(_1){
Telerik.Web.UI.Widgets.FileManager.initializeBase(this,[_1]);
this._fileUploader=null;
this._uploadButton=null;
this._insertButton=null;
this._cancelButton=null;
this._fileLister=null;
this._filePreviewer=null;
this._buttonArea=null;
this._filePreviewerId="";
this._displayMode=Telerik.Web.UI.Widgets.FileManagerDisplayMode.List;
this._leftPane=null;
this._rightPane=null;
this._clientParameters=null;
};
Telerik.Web.UI.Widgets.FileManager.prototype={initialize:function(){
Telerik.Web.UI.Widgets.FileManager.callBaseMethod(this,"initialize");
this._initializeChildren();
$addHandlers(this._insertButton,{"click":this._insertClickHandler},this);
$addHandlers(this._cancelButton,{"click":this._cancelClickHandler},this);
this._fileListerItemClickHandler=Function.createDelegate(this,this._fileListerItemClickHandler);
this._fileLister.add_itemClick(this._fileListerItemClickHandler);
this._fileListerDirectoryChangeHandler=Function.createDelegate(this,this._fileListerDirectoryChangeHandler);
this._fileLister.add_directoryChange(this._fileListerDirectoryChangeHandler);
this._fileListerUploadButtonClickHandler=Function.createDelegate(this,this._fileListerUploadButtonClickHandler);
this._fileLister.add_uploadButtonClick(this._fileListerUploadButtonClickHandler);
this._fileUploaderBackClickHandler=Function.createDelegate(this,this._fileUploaderBackClickHandler);
this._fileUploader.add_backClick(this._fileUploaderBackClickHandler);
this._fileUploaderCancelClickHandler=Function.createDelegate(this,this._fileUploaderCancelClickHandler);
this._fileUploader.add_cancelClick(this._fileUploaderCancelClickHandler);
},_initializeChildren:function(){
this._fileUploader=this._findChildControl("FileUploader1");
this._insertButton=this._getChildElement("Insert");
this._cancelButton=this._getChildElement("Cancel");
this._fileLister=this._findChildControl("FileLister1");
this._filePreviewer=$find(this._filePreviewerId);
this._buttonArea=this._getChildElement("ButtonArea");
this._leftPane=this._getChildElement("LeftPane");
this._rightPane=this._getChildElement("RightPane");
},_fileListerItemClickHandler:function(_2,_3){
this._filePreviewer.setItem(_3.Item);
this._insertButton.className=_3.Item.type==Telerik.Web.UI.Widgets.FileItemType.Directory?"radECtrlButton OK disabled-button":"radECtrlButton OK";
},_fileListerDirectoryChangeHandler:function(_4,_5){
this._filePreviewer.setItem(_5.Item);
this._insertButton.className=_5.Item.type==Telerik.Web.UI.Widgets.FileItemType.Directory?"radECtrlButton OK disabled-button":"radECtrlButton OK";
},_fileListerUploadButtonClickHandler:function(_6,_7){
this._setDisplayMode(Telerik.Web.UI.Widgets.FileManagerDisplayMode.Upload);
},_fileUploaderBackClickHandler:function(_8,_9){
this._setDisplayMode(Telerik.Web.UI.Widgets.FileManagerDisplayMode.List);
},_fileUploaderCancelClickHandler:function(_a,_b){
this.raise_cancelClick(this._getEventArgs());
},_setDisplayMode:function(_c){
this._displayMode=_c;
var _d=Telerik.Web.UI.Widgets.FileManagerDisplayMode;
this._leftPane.style.display=this._displayMode==_d.List?"":"none";
this._rightPane.style.display=this._leftPane.style.display;
this._buttonArea.style.display=this._leftPane.style.display;
this._fileUploader.get_element().style.display=this._displayMode==_d.Upload?"":"none";
},clientInit:function(_e){
this._clientParameters=_e;
},_getEventArgs:function(){
return {CurrentDirectory:this._fileLister.get_currentDirectory(),SelectedItem:this._fileLister.get_selectedItem(),Result:this._filePreviewer.getResult()};
},_insertClickHandler:function(e){
this.raise_insertClick(this._getEventArgs());
},_cancelClickHandler:function(e){
this.raise_cancelClick(this._getEventArgs());
},get_selectedItem:function(){
return this._fileLister.get_selectedItem();
},get_clientParameters:function(){
return this._clientParameters;
},populateObjectProperties:function(_11){
this._filePreviewer.populateObjectProperties(_11);
},raise_insertClick:function(_12){
this.raiseEvent("insertClick",_12);
},add_insertClick:function(_13){
this.get_events().addHandler("insertClick",_13);
},remove_insertClick:function(_14){
this.get_events().removeHandler("insertClick",_14);
},raise_cancelClick:function(_15){
this.raiseEvent("cancelClick",_15);
},add_cancelClick:function(_16){
this.get_events().addHandler("cancelClick",_16);
},remove_cancelClick:function(_17){
this.get_events().removeHandler("cancelClick",_17);
},dispose:function(){
$clearHandlers(this._insertButton);
$clearHandlers(this._cancelButton);
this._fileLister.remove_itemClick(this._fileListerItemClickHandler);
Telerik.Web.UI.Widgets.FileManager.callBaseMethod(this,"dispose");
}};
$telerik.makeCompatible(Telerik.Web.UI.Widgets.FileManager);
Telerik.Web.UI.Widgets.FileManager.registerClass("Telerik.Web.UI.Widgets.FileManager",Telerik.Web.UI.RadWebControl,Telerik.Web.IParameterConsumer);;Type.registerNamespace("Telerik.Web.UI.Widgets");
Telerik.Web.UI.Widgets.GenericFileUploader=function(_1){
Telerik.Web.UI.Widgets.GenericFileUploader.initializeBase(this,[_1]);
this._backButton=null;
this._uploadButton=null;
this._cancelButton=null;
this._fileUpload=null;
this._uploadPostbackReference="";
this._allowedExtensions={};
this._localization={InvalidFileType:"A file of invalid type selected. Please, select another file to upload."};
};
Telerik.Web.UI.Widgets.GenericFileUploader.prototype={initialize:function(){
Telerik.Web.UI.Widgets.GenericFileUploader.callBaseMethod(this,"initialize");
this._initializeChildren();
},_initializeChildren:function(){
this._backButton=this._getChildElement("BackButton");
$addHandlers(this._backButton,{"click":this._backClickHandler},this);
this._uploadButton=this._getChildElement("UploadButton");
$addHandlers(this._uploadButton,{"click":this._uploadClickHandler},this);
this._cancelButton=this._getChildElement("CancelButton");
$addHandlers(this._cancelButton,{"click":this._cancelClickHandler},this);
this._fileUpload=this._getChildElement("FileUpload");
$addHandlers(this._fileUpload,{"change":this._fileUploadChangeHandler},this);
},_backClickHandler:function(e){
this.raise_backClick();
},_uploadClickHandler:function(e){
if(!this._isSelectedFileExtensionValid()){
alert(this._localization.InvalidFileType);
return;
}
if(this._fileUpload.value.trim()!=""){
$clearHandlers(this._uploadButton);
var _4=this._uploadPostbackReference;
window.setTimeout(function(){
eval(_4);
},0);
}
},_isSelectedFileExtensionValid:function(){
var _5=this._fileUpload.value;
_5="*"+_5.substring(_5.lastIndexOf("."),_5.length);
for(var i in this._allowedExtensions){
if(typeof (this._allowedExtensions[i])!="string"){
continue;
}
if(_5.toLowerCase()==this._allowedExtensions[i].toLowerCase()){
return true;
}
}
return false;
},_cancelClickHandler:function(e){
this.raise_cancelClick({});
},_fileUploadChangeHandler:function(e){
this._uploadButton.className=e.target.value.trim()==""?"radECtrlButton OK disabled-button":"radECtrlButton OK";
},raise_backClick:function(_9){
this.raiseEvent("backClick",_9);
},add_backClick:function(_a){
this.get_events().addHandler("backClick",_a);
},remove_backClick:function(_b){
this.get_events().removeHandler("backClick",_b);
},raise_cancelClick:function(_c){
this.raiseEvent("cancelClick",_c);
},add_cancelClick:function(_d){
this.get_events().addHandler("cancelClick",_d);
},remove_cancelClick:function(_e){
this.get_events().removeHandler("cancelClick",_e);
},dispose:function(){
$clearHandlers(this._backButton);
$clearHandlers(this._uploadButton);
$clearHandlers(this._cancelButton);
$clearHandlers(this._fileUpload);
Telerik.Web.UI.Widgets.GenericFileUploader.callBaseMethod(this,"dispose");
}};
$telerik.makeCompatible(Telerik.Web.UI.Widgets.GenericFileUploader);
Telerik.Web.UI.Widgets.GenericFileUploader.registerClass("Telerik.Web.UI.Widgets.GenericFileUploader",Telerik.Web.UI.RadWebControl);;Type.registerNamespace("Telerik.Web.UI.Widgets");
Telerik.Web.UI.Widgets.FilePreviewer=function(_1){
Telerik.Web.UI.Widgets.FilePreviewer.initializeBase(this,[_1]);
this._item=null;
};
Telerik.Web.UI.Widgets.FilePreviewer.prototype={initialize:function(){
Telerik.Web.UI.Widgets.FilePreviewer.callBaseMethod(this,"initialize");
},setItem:function(_2){
this._item=_2;
},getResult:function(){
return this._item;
},_selectOptionByValue:function(_3,_4,_5,_6){
if(typeof (_6)=="undefined"){
_6=0;
}
if(typeof (_5)=="undefined"){
_5=false;
}
_4=_5?_7:_4.toLowerCase();
_3.selectedIndex=-1;
for(var i=0;i<_3.options.length;i++){
var _7=_3.options[i].value;
_7=_5?_7:_7.toLowerCase();
if(_7==_4){
_3.selectedIndex=i;
return;
}
}
_3.selectedIndex=_6;
},populateObjectProperties:function(_9){
},dispose:function(){
Telerik.Web.UI.Widgets.FilePreviewer.callBaseMethod(this,"dispose");
}};
$telerik.makeCompatible(Telerik.Web.UI.Widgets.FilePreviewer);
Telerik.Web.UI.Widgets.FilePreviewer.registerClass("Telerik.Web.UI.Widgets.FilePreviewer",Telerik.Web.UI.RadWebControl);;Type.registerNamespace("Telerik.Web.UI.Widgets");
Telerik.Web.UI.Widgets.TableWizardControl=function(_1){
Telerik.Web.UI.Widgets.TableWizardControl.initializeBase(this,[_1]);
};
Telerik.Web.UI.Widgets.TableWizardControl.prototype={initialize:function(){
Telerik.Web.UI.Widgets.TableWizardControl.callBaseMethod(this,"initialize");
},_getCellAt:function(_2,_3){
return _2.rows[_3.row].cells[_3.cell];
},_getCellPosition:function(_4,_5){
for(var i=0;i<_4.rows.length;i++){
var _7=_4.rows[i];
for(var j=0;j<_7.cells.length;j++){
if(_5==_7.cells[j]){
return {row:i,cell:j};
}
}
}
return null;
},_walkTable:function(_9,_a,_b,_c){
var _d=function(_e,_f){
if(_f&&typeof (_f)=="function"){
_f(_e);
}
};
var _10=function(_11,_12){
for(var i=0;i<_11.length;i++){
_d(_11[i],_12);
}
};
var _14=function(_15){
_d(_15,_c);
};
var _16=function(row){
_d(row,_b);
_10(row.cells,_14);
};
var _18=function(_19){
_d(_19,_a);
_10(_19.rows,_16);
};
if(_9.tHead){
_10(_9.tHead.rows,_16);
}
_10(_9.tBodies,_18);
},dispose:function(){
Telerik.Web.UI.Widgets.TableWizardControl.callBaseMethod(this,"dispose");
}};
Telerik.Web.UI.Widgets.TableWizardControl.registerClass("Telerik.Web.UI.Widgets.TableWizardControl",Telerik.Web.UI.RadWebControl);;Type.registerNamespace("Telerik.Web.UI.Widgets.Highlighter");
Telerik.Web.UI.Widgets.Highlighter.Match=function(_1,_2,_3){
this._value=_1;
this._index=_2;
this._length=_1.length;
this._cssStyle=_3;
};
Telerik.Web.UI.Widgets.Highlighter.Match.registerClass("Telerik.Web.UI.Widgets.Highlighter.Match");
Telerik.Web.UI.Widgets.Highlighter.Brush=function(){
this._showLineNumbers=true;
this._tabsToSpaces=true;
};
Telerik.Web.UI.Widgets.Highlighter.Brush.prototype={get_showLineNumbers:function(){
return this._showLineNumbers;
},set_showLineNumbers:function(_4){
this._showLineNumbers=_4;
},get_tabsToSpaces:function(){
return this._tabsToSpaces;
},set_tabsToSpaces:function(_5){
this._tabsToSpaces=_5;
},highlight:function(_6){
var _7=function(_8){
return _8.replace(/^\s*(.*?)[\s\n]*$/g,"$1");
};
var _9=function(_a){
return _a.replace(/\n*$/,"").replace(/^\n*/,"");
};
var _b=function(_c){
var _d=_c.split("\n");
var _e=new Array();
var _f=new RegExp("^\\s*","g");
var min=1000;
for(var i=0;i<_d.length&&min>0;i++){
if(_7(_d[i]).length==0){
continue;
}
var _12=_f.exec(_d[i]);
if(_12!=null&&_12.length>0){
min=Math.min(_12[0].length,min);
}
}
if(min>0){
for(var i=0;i<_d.length;i++){
_d[i]=_d[i].substr(min);
}
}
return _d.join("\n");
};
var _13=function(_14,_15,_16){
return _14.substr(_15,_16-_15);
};
var pos=0;
this._originalCode=_6;
this._code=_6;
this._container=document.createElement("DIV");
this._matches=new Array();
if(this.get_tabsToSpaces()==true){
this._code=this._processSmartTabs(this._code);
}
this._processRegexList();
if(this._matches.length==0){
this._formatChunk(this._code,null);
return this._switchToTable();
}
var _18=function(m1,m2){
if(m1._index<m2._index){
return -1;
}else{
if(m1._index>m2._index){
return 1;
}else{
if(m1._length<m2._length){
return -1;
}else{
if(m1._length>m2._length){
return 1;
}
}
}
}
return 0;
};
this._matches=this._matches.sort(_18);
for(var i=0;i<this._matches.length;i++){
if(this._isInside(this._matches[i])){
this._matches[i]=null;
}
}
for(var i=0;i<this._matches.length;i++){
var _1c=this._matches[i];
if(_1c==null||_1c._length==0){
continue;
}
this._formatChunk(_13(this._code,pos,_1c._index),null);
this._formatChunk(_1c._value,_1c._cssStyle);
pos=_1c._index+_1c._length;
}
this._formatChunk(this._code.substr(pos),null);
return this._switchToTable();
},_getMatches:function(_1d,_1e){
var _1f=0;
var _20=null;
while((_20=_1d.exec(this._code))!=null){
this._matches[this._matches.length]=new Telerik.Web.UI.Widgets.Highlighter.Match(_20[0],_20.index,_1e);
}
},_formatChunk:function(str,_22){
var _23=document.createElement("font");
str=str.replace(/&/g,"&amp;");
str=str.replace(/ /g,"&nbsp;");
str=str.replace(/</g,"&lt;");
str=str.replace(/\n/gm,"&nbsp;<br>");
if(_22!=null){
var _24=new RegExp("<br>","gi");
if(_24.test(str)){
var _25=str.split("&nbsp;<br>");
str="";
for(var i=0;i<_25.length;i++){
this._container.innerHTML+=String.format("<font style = \"{0}\">{1}</font>",_22,_25[i]);
if(i+1<_25.length){
this._container.appendChild(document.createElement("BR"));
}
}
}else{
_23.style.cssText=_22;
_23.innerHTML=str;
this._container.appendChild(_23);
}
}else{
_23.style.cssText="font-size: 11px";
_23.innerHTML=str;
this._container.appendChild(_23);
}
},_isInside:function(_27){
if(_27==null||_27._length==0){
return;
}
for(var i=0;i<this._matches.length;i++){
var _29=this._matches[i];
if(_29==null){
continue;
}
if((_27._index>_29._index)&&(_27._index<=_29._index+_29._length)){
return true;
}
}
return false;
},_processRegexList:function(){
for(var i=0;i<this._regexList.length;i++){
this._getMatches(this._regexList[i].regex,this._regexList[i].cssStyle);
}
},_processSmartTabs:function(_2b){
var _2c=_2b.split("\n");
var _2d="";
var _2e=4;
var tab="\t";
var _30=function(_31,pos,_33){
var _34=_31.substr(0,pos);
var _35=_31.substr(pos+1,_31.length);
var _36="";
for(var i=0;i<_33;i++){
_36+=" ";
}
return _34+_36+_35;
};
var _38=function(_39,_3a){
if(_39.indexOf(tab)==-1){
return _39;
}
var pos=0;
while((pos=_39.indexOf(tab))!=-1){
var _3c=_3a-pos%_3a;
_39=_30(_39,pos,_3c);
}
return _39;
};
for(var i=0;i<_2c.length;i++){
_2d+=_38(_2c[i],_2e)+"\n";
}
return _2d;
},_switchToTable:function(){
var _3e=this._container.innerHTML.replace(/<(br)\/?>/gi,"\n");
var _3f=_3e.split("\n");
var _40=[];
_40.push("<table cellpadding=0 cellspacing=0 style=\"width: 99%;\tmargin: 2px 0px 2px 0px;border-collapse: collapse;border-bottom: 2px solid #eee;background-color: #fff;\tborder-width:0px;\">");
if(this.get_showLineNumbers()){
_40.push("<col style=\"font-family: Courier New;font-size: 11px;background-color: #eee;padding-right: 5px; padding-left: 10px; width: 5px; border-right: 1px solid gray; color: gray;text-align: right;vertical-align: top;\"/>");
}
_40.push("<col style=\"font-family: Courier New;font-size: 11px;padding-left: 10px;border-bottom: 1px solid #F7F7F7;white-space:nowrap;\"/>");
for(var i=0,_42=1;i<_3f.length-1;i++,_42++){
_40.push("<tr>");
if(this.get_showLineNumbers()){
_40.push("<td><nobr>"+_42+"</nobr></td>");
}
var _43="";
if((i%2+1)==2){
_43=" style=\"background-color: #F7F7F7;\"";
}
_40.push(String.format("<td {0}>{1}</td>",_43,_3f[i]));
_40.push("</tr>");
}
_40.push("</table>");
return _40.join("");
},_getKeywords:function(str){
return "\\b"+str.replace(/ /g,"\\b|\\b")+"\\b";
}};
Telerik.Web.UI.Widgets.Highlighter.Brush.registerClass("Telerik.Web.UI.Widgets.Highlighter.Brush");
Telerik.Web.UI.Widgets.Highlighter.CSharpBrush=function(){
Telerik.Web.UI.Widgets.Highlighter.CSharpBrush.initializeBase(this);
var _45="abstract as base bool break byte case catch char checked class const "+"continue decimal default delegate do double else enum event explicit "+"extern false finally fixed float for foreach get goto if implicit in int "+"interface internal is lock long namespace new null object operator out "+"override params private protected public readonly ref return sbyte sealed set "+"short sizeof stackalloc static string struct switch this throw true try "+"typeof uint ulong unchecked unsafe ushort using virtual void while";
this._regexList=[{regex:new RegExp("//.*$","gm"),cssStyle:"color: green;"},{regex:new RegExp("/\\*[\\s\\S]*?\\*/","g"),cssStyle:"color: green;"},{regex:new RegExp("\"(?:\\.|[^\\\"\"])*\"","g"),cssStyle:"color: blue;"},{regex:new RegExp("^\\s*#.*","gm"),cssStyle:"color: gray;"},{regex:new RegExp(this._getKeywords(_45),"gm"),cssStyle:"color: blue;"}];
};
Telerik.Web.UI.Widgets.Highlighter.CSharpBrush.registerClass("Telerik.Web.UI.Widgets.Highlighter.CSharpBrush",Telerik.Web.UI.Widgets.Highlighter.Brush);
Telerik.Web.UI.Widgets.Highlighter.DelphiBrush=function(){
Telerik.Web.UI.Widgets.Highlighter.DelphiBrush.initializeBase(this);
var _46="abs addr and ansichar ansistring array as asm begin boolean byte cardinal "+"case char class comp const constructor currency destructor div do double "+"downto else end except exports extended false file finalization finally "+"for function goto if implementation in inherited int64 initialization "+"integer interface is label library longint longword mod nil not object "+"of on or packed pansichar pansistring pchar pcurrency pdatetime pextended "+"pint64 pointer private procedure program property pshortstring pstring "+"pvariant pwidechar pwidestring protected public published raise real real48 "+"record repeat set shl shortint shortstring shr single smallint string then "+"threadvar to true try type unit until uses val var varirnt while widechar "+"widestring with word write writeln xor";
this._regexList=[{regex:new RegExp("\\(\\*[\\s\\S]*?\\*\\)","gm"),cssStyle:"color: #008200; font-style: italic;"},{regex:new RegExp("{(?!\\$)[\\s\\S]*?}","gm"),cssStyle:"color: #008200; font-style: italic;"},{regex:new RegExp("//.*$","gm"),cssStyle:"color: #008200; font-style: italic;"},{regex:new RegExp("'(?:\\.|[^\\''])*'","g"),cssStyle:"color: blue;"},{regex:new RegExp("\\{\\$[a-zA-Z]+ .+\\}","g"),cssStyle:"color: #008284;"},{regex:new RegExp("\\b[\\d\\.]+\\b","g"),cssStyle:"color: blue;"},{regex:new RegExp("\\$[a-zA-Z0-9]+\\b","g"),cssStyle:"color: blue;"},{regex:new RegExp(this._getKeywords(_46),"gm"),cssStyle:"font-weight: bold; color: navy;"}];
};
Telerik.Web.UI.Widgets.Highlighter.DelphiBrush.registerClass("Telerik.Web.UI.Widgets.Highlighter.DelphiBrush",Telerik.Web.UI.Widgets.Highlighter.Brush);
Telerik.Web.UI.Widgets.Highlighter.JScriptBrush=function(){
Telerik.Web.UI.Widgets.Highlighter.JScriptBrush.initializeBase(this);
var _47="abstract boolean break byte case catch char class const continue debugger innerHTML className document window getElementById"+"default delete do double else enum export extends false final finally float "+"for function goto if implements import in instanceof int interface long native "+"new null package private protected public return short static super switch "+"synchronized this throw throws transient true try typeof var void volatile while with";
this._regexList=[{regex:new RegExp("//.*$","gm"),cssStyle:"color: green;"},{regex:new RegExp("/\\*[\\s\\S]*?\\*/","g"),cssStyle:"color: green;"},{regex:new RegExp("\"(?:[^\"\n]|[\"])*?\"","g"),cssStyle:"color: blue;"},{regex:new RegExp("'(?:[^'\n]|['])*?'","g"),cssStyle:"color: blue;"},{regex:new RegExp("^\\s*#.*","gm"),cssStyle:"color: gray;"},{regex:new RegExp(this._getKeywords(_47),"gm"),cssStyle:"color: blue;"}];
};
Telerik.Web.UI.Widgets.Highlighter.JScriptBrush.registerClass("Telerik.Web.UI.Widgets.Highlighter.JScriptBrush",Telerik.Web.UI.Widgets.Highlighter.Brush);
Telerik.Web.UI.Widgets.Highlighter.CSSBrush=function(){
Telerik.Web.UI.Widgets.Highlighter.CSSBrush.initializeBase(this);
var _48="ascent azimuth background-attachment background-color background-image background-position "+"background-repeat background baseline bbox border-collapse border-color border-spacing border-style border-top "+"border-right border-bottom border-left border-top-color border-right-color border-bottom-color border-left-color "+"border-top-style border-right-style border-bottom-style border-left-style border-top-width border-right-width "+"border-bottom-width border-left-width border-width border bottom cap-height caption-side centerline clear clip color "+"content counter-increment counter-reset cue-after cue-before cue cursor definition-src descent direction display "+"elevation empty-cells float font-size-adjust font-family font-size font-stretch font-style font-variant font-weight font "+"height letter-spacing line-height list-style-image list-style-position list-style-type list-style margin-top "+"margin-right margin-bottom margin-left margin marker-offset marks mathline max-height max-width min-height min-width orphans "+"outline-color outline-style outline-width outline overflow padding-top padding-right padding-bottom padding-left padding page "+"page-break-after page-break-before page-break-inside pause pause-after pause-before pitch pitch-range play-during position "+"quotes richness right size slope src speak-header speak-numeral speak-punctuation speak speech-rate stemh stemv stress "+"table-layout text-align text-decoration text-indent text-shadow text-transform unicode-bidi unicode-range units-per-em "+"vertical-align visibility voice-family volume white-space widows width widths word-spacing x-height z-index";
var _49="above absolute all always aqua armenian attr aural auto avoid baseline behind below bidi-override black blink block blue bold bolder "+"both bottom braille capitalize caption center center-left center-right circle close-quote code collapse compact condensed "+"continuous counter counters crop cross crosshair cursive dashed decimal decimal-leading-zero default digits disc dotted double "+"embed embossed e-resize expanded extra-condensed extra-expanded fantasy far-left far-right fast faster fixed format fuchsia "+"gray green groove handheld hebrew help hidden hide high higher icon inline-table inline inset inside invert italic "+"justify landscape large larger left-side left leftwards level lighter lime line-through list-item local loud lower-alpha "+"lowercase lower-greek lower-latin lower-roman lower low ltr marker maroon medium message-box middle mix move narrower "+"navy ne-resize no-close-quote none no-open-quote no-repeat normal nowrap n-resize nw-resize oblique olive once open-quote outset "+"outside overline pointer portrait pre print projection purple red relative repeat repeat-x repeat-y rgb ridge right right-side "+"rightwards rtl run-in screen scroll semi-condensed semi-expanded separate se-resize show silent silver slower slow "+"small small-caps small-caption smaller soft solid speech spell-out square s-resize static status-bar sub super sw-resize "+"table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group teal "+"text-bottom text-top thick thin top transparent tty tv ultra-condensed ultra-expanded underline upper-alpha uppercase upper-latin "+"upper-roman url visible wait white wider w-resize x-fast x-high x-large x-loud x-low x-slow x-small x-soft xx-large xx-small yellow";
var _4a="[mM]onospace [tT]ahoma [vV]erdana [aA]rial [hH]elvetica [sS]ans-serif [sS]erif";
this._regexList=[{regex:new RegExp("/\\*[\\s\\S]*?\\*/","g"),cssStyle:"color: green;"},{regex:new RegExp("\"(?:[^\"\n]|[\"])*?\"","g"),cssStyle:"color: blue;"},{regex:new RegExp("'(?:[^'\n]|['])*?'","g"),cssStyle:"color: blue;"},{regex:new RegExp("\\#[a-zA-Z0-9]{3,6}","g"),cssStyle:"color: blue;"},{regex:new RegExp("(\\d+)(px|pt|:)","g"),cssStyle:"color: blue;"},{regex:new RegExp(this._getKeywords(_48),"gm"),cssStyle:"color: red;"},{regex:new RegExp(this._getKeywords(_49),"g"),cssStyle:"color: blue;"},{regex:new RegExp(this._getKeywords(_4a),"g"),cssStyle:"color: blue;"}];
};
Telerik.Web.UI.Widgets.Highlighter.CSSBrush.registerClass("Telerik.Web.UI.Widgets.Highlighter.CSSBrush",Telerik.Web.UI.Widgets.Highlighter.Brush);
Telerik.Web.UI.Widgets.Highlighter.PhpBrush=function(){
Telerik.Web.UI.Widgets.Highlighter.PhpBrush.initializeBase(this);
var _4b="and or xor __FILE__ __LINE__ array as break case "+"cfunction class const continue declare default die do echo else "+"elseif empty enddeclare endfor endforeach endif endswitch endwhile eval exit "+"extends for foreach function global if include include_once isset list "+"new old_function print require require_once return static switch unset use "+"var while __FUNCTION__ __CLASS__";
this._regexList=[{regex:new RegExp("//.*$","gm"),cssStyle:"color: green;"},{regex:new RegExp("/\\*[\\s\\S]*?\\*/","g"),cssStyle:"color: green;"},{regex:new RegExp("\"(?:[^\"\n]|[\"])*?\"","g"),cssStyle:"color: blue;"},{regex:new RegExp("'(?:[^'\n]|['])*?'","g"),cssStyle:"color: blue;"},{regex:new RegExp("\\$\\w+","g"),cssStyle:"color: #d00;"},{regex:new RegExp(this._getKeywords(_4b),"gm"),cssStyle:"color: blue;"}];
};
Telerik.Web.UI.Widgets.Highlighter.PhpBrush.registerClass("Telerik.Web.UI.Widgets.Highlighter.PhpBrush",Telerik.Web.UI.Widgets.Highlighter.Brush);
Telerik.Web.UI.Widgets.Highlighter.PythonBrush=function(){
Telerik.Web.UI.Widgets.Highlighter.PythonBrush.initializeBase(this);
var _4c="and assert break class continue def del elif else except exec "+"finally for from global if import in is lambda not or object pass print "+"raise return try yield while";
var _4d="self __builtin__ __dict__ __future__ __methods__ __members__ __author__ __email__ __version__"+"__class__ __bases__ __import__ __main__ __name__ __doc__ __self__ __debug__ __slots__ "+"abs append apply basestring bool buffer callable chr classmethod clear close cmp coerce compile complex "+"conjugate copy count delattr dict dir divmod enumerate Ellipsis eval execfile extend False file fileno filter float flush "+"get getattr globals has_key hasarttr hash hex id index input insert int intern isatty isinstance isubclass "+"items iter keys len list locals long map max min mode oct open ord pop pow property range "+"raw_input read readline readlines reduce reload remove repr reverse round seek setattr slice sum "+"staticmethod str super tell True truncate tuple type unichr unicode update values write writelines xrange zip";
var _4e="__abs__ __add__ __and__ __call__ __cmp__ __coerce__ __complex__ __concat__ __contains__ __del__ __delattr__ __delitem__ "+"__delslice__ __div__ __divmod__ __float__ __getattr__ __getitem__ __getslice__ __hash__ __hex__ __eq__ __le__ __lt__ __gt__ __ge__ "+"__iadd__ __isub__ __imod__ __idiv__ __ipow__ __iand__ __ior__ __ixor__ __ilshift__ __irshift__ "+"__invert__ __init__ __int__ __inv__ __iter__ __len__ __long__ __lshift__ __mod__ __mul__ __new__ __neg__ __nonzero__ __oct__ __or__ "+"__pos__ __pow__ __radd__ __rand__ __rcmp__ __rdiv__ __rdivmod__ __repeat__ __repr__ __rlshift__ __rmod__ __rmul__ "+"__ror__ __rpow__ __rrshift__ __rshift__ __rsub__ __rxor__ __setattr__ __setitem__ __setslice__ __str__ __sub__ __xor__";
var _4f="Exception StandardError ArithmeticError LookupError EnvironmentError AssertionError AttributeError EOFError "+"FutureWarning IndentationError OverflowWarning PendingDeprecationWarning ReferenceError RuntimeWarning "+"SyntaxWarning TabError UnicodeDecodeError UnicodeEncodeError UnicodeTranslateError UserWarning Warning "+"IOError ImportError IndexError KeyError KeyboardInterrupt MemoryError NameError NotImplementedError OSError "+"RuntimeError StopIteration SyntaxError SystemError SystemExit TypeError UnboundLocalError UnicodeError ValueError "+"FloatingPointError OverflowError WindowsError ZeroDivisionError";
var _50="NoneType TypeType IntType LongType FloatType ComplexType StringType UnicodeType BufferType TupleType ListType "+"DictType FunctionType LambdaType CodeType ClassType UnboundMethodType InstanceType MethodType BuiltinFunctionType BuiltinMethodType "+"ModuleType FileType XRangeType TracebackType FrameType SliceType EllipsisType";
var _51="anydbm array asynchat asyncore AST base64 binascii binhex bisect bsddb buildtools bz2 "+"BaseHTTPServer Bastion calendar cgi cmath cmd codecs codeop commands compiler copy copy_reg "+"cPickle crypt cStringIO csv curses Carbon CGIHTTPServer ConfigParser Cookie datetime dbhash "+"dbm difflib dircache distutils doctest DocXMLRPCServer email encodings errno exceptions fcntl "+"filecmp fileinput ftplib gc gdbm getopt getpass glob gopherlib gzip heapq htmlentitydefs "+"htmllib httplib HTMLParser imageop imaplib imgfile imghdr imp inspect itertools jpeg keyword "+"linecache locale logging mailbox mailcap marshal math md5 mhlib mimetools mimetypes mimify mmap "+"mpz multifile mutex MimeWriter netrc new nis nntplib nsremote operator optparse os parser pickle pipes "+"popen2 poplib posix posixfile pprint preferences profile pstats pwd pydoc pythonprefs quietconsole "+"quopri Queue random re readline resource rexec rfc822 rgbimg sched select sets sgmllib sha shelve shutil "+"signal site smtplib socket stat statcache string struct symbol sys syslog SimpleHTTPServer "+"SimpleXMLRPCServer SocketServer StringIO tabnanny tarfile telnetlib tempfile termios textwrap "+"thread threading time timeit token tokenize traceback tty types Tkinter unicodedata unittest "+"urllib urllib2 urlparse user UserDict UserList UserString warnings weakref webbrowser whichdb "+"xml xmllib xmlrpclib xreadlines zipfile zlib";
this._regexList=[{regex:new RegExp("#.*$","gm"),cssStyle:"color: green;"},{regex:new RegExp("^\\s*\"\"\"(.|\n)*?\"\"\"\\s*$","gm"),cssStyle:"color: brown;"},{regex:new RegExp("^\\s*'''(.|\n)*?'''\\s*$","gm"),cssStyle:"color: brown;"},{regex:new RegExp("\"\"\"(.|\n)*?\"\"\"","g"),cssStyle:"color: red;"},{regex:new RegExp("'''(.|\n)*?'''","g"),cssStyle:"color: red;"},{regex:new RegExp("\"(?:\\.|[^\\\"\"])*\"","g"),cssStyle:"color: red;"},{regex:new RegExp("'(?:\\.|[^\\''])*'","g"),cssStyle:"color: red;"},{regex:new RegExp(this._getKeywords(_4c),"gm"),cssStyle:"color: blue; font-weight: bold;"},{regex:new RegExp(this._getKeywords(_4d),"gm"),cssStyle:"color: #ff1493;"},{regex:new RegExp(this._getKeywords(_4e),"gm"),cssStyle:"color: #808080;"},{regex:new RegExp(this._getKeywords(_4f),"gm"),cssStyle:"color: brown;"},{regex:new RegExp(this._getKeywords(_50),"gm"),cssStyle:"color: brown; font-style: italic;"},{regex:new RegExp(this._getKeywords(_51),"gm"),cssStyle:"color: #8A2BE2; font-style: italic;"}];
};
Telerik.Web.UI.Widgets.Highlighter.PythonBrush.registerClass("Telerik.Web.UI.Widgets.Highlighter.PythonBrush",Telerik.Web.UI.Widgets.Highlighter.Brush);
Telerik.Web.UI.Widgets.Highlighter.SqlBrush=function(){
Telerik.Web.UI.Widgets.Highlighter.SqlBrush.initializeBase(this);
var _52="abs avg case cast coalesce convert count current_timestamp "+"current_user day isnull left lower month nullif replace right "+"session_user space substring sum system_user upper user year";
var _53="absolute action add after alter as asc at authorization begin bigint "+"binary bit by cascade char character check checkpoint close collate "+"column commit committed connect connection constraint contains continue "+"create cube current current_date current_time cursor database date "+"deallocate dec decimal declare default delete desc distinct double drop "+"dynamic else end end-exec escape except exec execute false fetch first "+"float for force foreign forward free from full function global goto grant "+"group grouping having hour ignore index inner insensitive insert instead "+"int integer intersect into is isolation key last level load local max min "+"minute modify move name national nchar next no numeric of off on only "+"open option order out output partial password precision prepare primary "+"prior privileges procedure public read real references relative repeatable "+"restrict return returns revoke rollback rollup rows rule schema scroll "+"second section select sequence serializable set size smallint static "+"statistics table temp temporary then time timestamp to top transaction "+"translation trigger true truncate uncommitted union unique update values "+"varchar varying view when where with work";
var _54="all and any between cross in join like not null or outer some";
this._regexList=[{regex:new RegExp("--(.*)$","gm"),cssStyle:"color: green;"},{regex:new RegExp("\"(?:\\.|[^\\\"\"])*\"","g"),cssStyle:"color: red;"},{regex:new RegExp("'(?:\\.|[^\\''])*'","g"),cssStyle:"color: red;"},{regex:new RegExp(this._getKeywords(_52),"gmi"),cssStyle:"color: #ff1493;"},{regex:new RegExp(this._getKeywords(_54),"gmi"),cssStyle:"color: #808080;"},{regex:new RegExp(this._getKeywords(_53),"gmi"),cssStyle:"color: blue; "}];
this.CssClass="dp-sql";
};
Telerik.Web.UI.Widgets.Highlighter.SqlBrush.registerClass("Telerik.Web.UI.Widgets.Highlighter.SqlBrush",Telerik.Web.UI.Widgets.Highlighter.Brush);
Telerik.Web.UI.Widgets.Highlighter.VbBrush=function(){
Telerik.Web.UI.Widgets.Highlighter.VbBrush.initializeBase(this);
var _55="AddHandler AddressOf AndAlso Alias And Ansi As Assembly Auto "+"Boolean ByRef Byte ByVal Call Case Catch CBool CByte CChar CDate "+"CDec CDbl Char CInt Class CLng CObj Const CShort CSng CStr CType "+"Date Decimal Declare Default Delegate Dim DirectCast Do Double Each "+"Else ElseIf End Enum Erase Error Event Exit False Finally For Friend "+"Function Get GetType GoSub GoTo Handles If Implements Imports In "+"Inherits Integer Interface Is Let Lib Like Long Loop Me Mod Module "+"MustInherit MustOverride MyBase MyClass Namespace New Next Not Nothing "+"NotInheritable NotOverridable Object On Option Optional Or OrElse "+"Overloads Overridable Overrides ParamArray Preserve Private Property "+"Protected Public RaiseEvent ReadOnly ReDim REM RemoveHandler Resume "+"Return Select Set Shadows Shared Short Single Static Step Stop String "+"Structure Sub SyncLock Then Throw To True Try TypeOf Unicode Until "+"Variant When While With WithEvents WriteOnly Xor";
this._regexList=[{regex:new RegExp("'.*$","gm"),cssStyle:"color: green;"},{regex:new RegExp("\"(?:\\.|[^\\\"\"])*\"","g"),cssStyle:"color: blue;"},{regex:new RegExp("^\\s*#.*","gm"),cssStyle:"color: gray;"},{regex:new RegExp(this._getKeywords(_55),"gm"),cssStyle:"color: blue;"}];
};
Telerik.Web.UI.Widgets.Highlighter.VbBrush.registerClass("Telerik.Web.UI.Widgets.Highlighter.VbBrush",Telerik.Web.UI.Widgets.Highlighter.Brush);
Telerik.Web.UI.Widgets.Highlighter.XmlBrush=function(){
Telerik.Web.UI.Widgets.Highlighter.XmlBrush.initializeBase(this);
};
Telerik.Web.UI.Widgets.Highlighter.XmlBrush.prototype={_processRegexList:function(){
var _56=function(_57,_58){
_57[_57.length]=_58;
};
var _59=0;
var _5a=null;
var _5b=null;
this._getMatches(new RegExp("<\\!\\[[\\w\\s]*?\\[(.|\\s)*?\\]\\]>","gm"),"color: #ff1493;");
this._getMatches(new RegExp("<!--\\s*.*\\s*?-->","gm"),"color: green;");
_5b=new RegExp("([\\w-.]+)\\s*=\\s*(\".*?\"|'.*?'|\\w+)*","gm");
while((_5a=_5b.exec(this._code))!=null){
_56(this._matches,new Telerik.Web.UI.Widgets.Highlighter.Match(_5a[1],_5a.index,"color: red;"));
if(_5a[2]!=undefined){
_56(this._matches,new Telerik.Web.UI.Widgets.Highlighter.Match(_5a[2],_5a.index+_5a[0].indexOf(_5a[2]),"color: blue;"));
}
}
this._getMatches(new RegExp("</*\\?*(?!\\!)|/*\\?*>","gm"),"color: blue;");
_5b=new RegExp("</*\\?*\\s*([\\w-.]+)","gm");
while((_5a=_5b.exec(this._code))!=null){
_56(this._matches,new Telerik.Web.UI.Widgets.Highlighter.Match(_5a[1],_5a.index+_5a[0].indexOf(_5a[1]),"color: black; font-weight: bold;"));
}
}};
Telerik.Web.UI.Widgets.Highlighter.XmlBrush.registerClass("Telerik.Web.UI.Widgets.Highlighter.XmlBrush",Telerik.Web.UI.Widgets.Highlighter.Brush);
Type.registerNamespace("Telerik.Web.UI.Widgets");
Telerik.Web.UI.Widgets.SyntaxHighlighter=function(){
};
Telerik.Web.UI.Widgets.SyntaxHighlighter.registerClass("Telerik.Web.UI.Widgets.SyntaxHighlighter");
Telerik.Web.UI.Widgets.SyntaxHighlighter.brushes={"CSharp":Telerik.Web.UI.Widgets.Highlighter.CSharpBrush,"Delphi":Telerik.Web.UI.Widgets.Highlighter.DelphiBrush,"JScript":Telerik.Web.UI.Widgets.Highlighter.JScriptBrush,"CSS":Telerik.Web.UI.Widgets.Highlighter.CSSBrush,"Php":Telerik.Web.UI.Widgets.Highlighter.PhpBrush,"Python":Telerik.Web.UI.Widgets.Highlighter.PythonBrush,"Sql":Telerik.Web.UI.Widgets.Highlighter.SqlBrush,"Vb":Telerik.Web.UI.Widgets.Highlighter.VbBrush,"Xml":Telerik.Web.UI.Widgets.Highlighter.XmlBrush};
Telerik.Web.UI.Widgets.SyntaxHighlighter.highlight=function(_5c,_5d,_5e){
if(!Telerik.Web.UI.Widgets.SyntaxHighlighter.brushes[_5d]){
return _5c;
}
var _5f=new Telerik.Web.UI.Widgets.SyntaxHighlighter.brushes[_5d]();
_5f.set_showLineNumbers((_5e)?true:false);
return _5f.highlight(_5c);
};;Type.registerNamespace("Telerik.Web.UI.Editor.DialogControls");
Telerik.Web.UI.Editor.DialogControls.FileManagerDialog=function(_1){
Telerik.Web.UI.Editor.DialogControls.FileManagerDialog.initializeBase(this,[_1]);
this._clientParameters=null;
this._fileManager=null;
this._fileManagerID="";
};
Telerik.Web.UI.Editor.DialogControls.FileManagerDialog.prototype={initialize:function(){
Telerik.Web.UI.Editor.DialogControls.FileManagerDialog.callBaseMethod(this,"initialize");
this._initializeChildren();
this._fileManagerInsertClickHandler=Function.createDelegate(this,this._fileManagerInsertClickHandler);
this._fileManager.add_insertClick(this._fileManagerInsertClickHandler);
this._fileManagerCancelClickHandler=Function.createDelegate(this,this._fileManagerCancelClickHandler);
this._fileManager.add_cancelClick(this._fileManagerCancelClickHandler);
},_initializeChildren:function(){
this._fileManager=$find(this._fileManagerID);
},_fileManagerInsertClickHandler:function(_2,_3){
if(_3.SelectedItem&&_3.SelectedItem.type==Telerik.Web.UI.Widgets.FileItemType.File){
window.setTimeout(function(){
Telerik.Web.UI.Dialogs.CommonDialogScript.get_windowReference().close(_3);
},0);
}
},_fileManagerCancelClickHandler:function(_4,_5){
Telerik.Web.UI.Dialogs.CommonDialogScript.get_windowReference().close();
},_stripProtocolAndServerName:function(_6){
var _7=_6.indexOf("//");
if(_7>=0){
_7=_6.indexOf("/",_7+2);
if(_7>=0){
return _6.substring(_7);
}
}
return _6;
},clientInit:function(_8){
this._clientParameters=_8;
var _9=this._fileManager.get_selectedItem();
if(_9&&this._clientParameters.selectedItemUrl){
var _a=this._stripProtocolAndServerName(this._clientParameters.selectedItemUrl);
if(_a==_9.getUrl()){
this._fileManager.populateObjectProperties(this._clientParameters.selectedObject);
}
}
},dispose:function(){
this._fileManager.remove_insertClick(this._fileManagerInsertClickHandler);
this._fileManager.remove_cancelClick(this._fileManagerCancelClickHandler);
Telerik.Web.UI.Editor.DialogControls.FileManagerDialog.callBaseMethod(this,"dispose");
}};
Telerik.Web.UI.Editor.DialogControls.FileManagerDialog.registerClass("Telerik.Web.UI.Editor.DialogControls.FileManagerDialog",Telerik.Web.UI.RadWebControl,Telerik.Web.IParameterConsumer);;Type.registerNamespace("Telerik.Web.UI.Widgets");
Telerik.Web.UI.Widgets.About=function(_1){
Telerik.Web.UI.Widgets.About.initializeBase(this,[_1]);
};
Telerik.Web.UI.Widgets.About.registerClass("Telerik.Web.UI.Widgets.About",Telerik.Web.UI.RadWebControl);;Type.registerNamespace("Telerik.Web.UI.Widgets");
Telerik.Web.UI.Widgets.AccessibleTable=function(_1){
Telerik.Web.UI.Widgets.AccessibleTable.initializeBase(this,[_1]);
this._clientParameters=null;
this._table=null;
this._tableDocument=null;
this._headingRows=0;
this._headingColumns=0;
this._caption="";
this._summary="";
this._captionHalign="";
this._captionValign="";
this._setCellID=false;
this._headingRowsInput=null;
this._headingColumnsInput=null;
this._captionTextArea=null;
this._summaryTextArea=null;
this._setCellIDCheckBox=null;
this._alignmentSelector=null;
this._maxHeadRowsSpan=null;
this._maxHeadColsSpan=null;
};
Telerik.Web.UI.Widgets.AccessibleTable.prototype={initialize:function(){
Telerik.Web.UI.Widgets.AccessibleTable.callBaseMethod(this,"initialize");
this._initializeChildren();
},_initializeChildren:function(){
this._headingRowsInput=$get("headingRows");
this._headingColumnsInput=$get("headingColumns");
this._captionTextArea=$get("CaptionText");
this._summaryTextArea=$get("SummaryText");
this._setCellIDCheckBox=$get("associateCellsWithHeaders");
this._alignmentSelector=$find("alignmentSelector");
this._maxHeadRowsSpan=$get("maxHeadRows");
this._maxHeadColsSpan=$get("maxHeadColumns");
},clientInit:function(_2){
this._clientParameters=_2;
if(this._clientParameters){
if(!this._table){
this._table=this._clientParameters.tableToModify;
}
this._tableDocument=this._clientParameters.tableDocument;
}
this._loadData();
},_loadData:function(){
if(this._table){
if(this._table.caption){
if($telerik.isIE){
this._caption=this._table.caption.innerText;
this._captionHalign=(""==this._table.caption.align?"left":this._table.caption.align);
this._captionValign=(""==this._table.caption.vAlign?"top":this._table.caption.vAlign);
}else{
this._caption=this._table.caption.childNodes[0].nodeValue;
this._captionHalign="center";
this._captionValign=this._table.caption.align;
}
}else{
this._caption="";
this._captionHalign="left";
this._captionValign="top";
}
this._alignmentSelector.setTagName("CAPTION");
this._alignmentSelector.updateValue(this._captionHalign,this._captionValign);
this._summary=this._table.summary;
this._headingRows=this._table.tHead?this._table.tHead.rows.length:0;
this._headingColumns=this._countHeadingColumns();
this._setCellID=this._checkHeadersHasIds()||this._checkCellsHasHeaders();
this._updateData(false);
}
},_countHeadingColumns:function(){
var _3=0;
if(this._table){
var _4=this._getThead();
if(_4){
for(i=0;i<_4.rows.length;i++){
var _5=_4.rows[i];
var _6=_5.getElementsByTagName("TH");
if(_6&&_6.length>_3){
_3=_6.length;
}
}
}
for(k=0;k<this._table.tBodies.length;k++){
var _7=this._table.tBodies[k];
for(i=0;i<_7.rows.length;i++){
var _5=_7.rows[i];
var _6=_5.getElementsByTagName("TH");
if(_6&&_6.length>_3){
_3=_6.length;
}
}
}
}
return _3;
},_checkCellsHasHeaders:function(){
if(this._table){
for(k=0;k<this._table.tBodies.length;k++){
var _8=this._table.tBodies[k];
for(i=0;i<_8.rows.length;i++){
var _9=_8.rows[i];
for(j=0;j<_9.cells.length;j++){
var _a=_9.cells[j];
if(_a.getAttribute("headers")){
return true;
}
}
}
}
}
return false;
},_checkHeadersHasIds:function(){
if(this._table){
for(i=0;i<this._table.rows.length;i++){
var _b=this._table.rows[i];
for(j=0;j<_b.cells.length;j++){
var _c=_b.cells[j];
if("TH"==_c.tagName.toUpperCase()&&""!=_c.id){
return true;
}
}
}
}
return false;
},_updateData:function(_d){
if(_d){
this._headingRows=parseInt(this._headingRowsInput.value);
this._headingColumns=parseInt(this._headingColumnsInput.value);
this._caption=this._captionTextArea.value;
this._summary=this._summaryTextArea.value;
this._captionHalign=this._alignmentSelector.getAlign();
this._captionValign=this._alignmentSelector.getVAlign();
this._setCellID=this._setCellIDCheckBox.checked;
}else{
this._headingRowsInput.value=this._headingRows;
this._headingColumnsInput.value=this._headingColumns;
this._captionTextArea.value=this._caption;
this._summaryTextArea.value=this._summary;
this._alignmentSelector.updateValue(this._captionHalign,this._captionValign);
this._setCellIDCheckBox.checked=this._setCellID;
if(this._table){
var _e=this._table.rows.length;
var _f=(this._table.rows.length>0)?this._table.rows[0].cells.length:0;
this._maxHeadRowsSpan.innerText="(Max. "+_e+")";
this._maxHeadColsSpan.innerText="(Max. "+_f+")";
}
}
},_changeCellType:function(_10,_11){
var _12=false;
if(_10.tagName.toUpperCase()!=_11.toUpperCase()){
var _13=this._tableDocument.createElement(_11.toUpperCase());
this._mergeAttributes(_13,_10);
_10.parentNode.replaceChild(_13,_10);
_12=true;
}
return _12;
},_mergeAttributes:function(_14,_15){
if(_14.mergeAttributes){
_14.mergeAttributes(_15);
}else{
for(var _16 in _15.attributes){
_14.attrName=_15.attributes[_16];
}
}
_14.colSpan=_15.colSpan;
_14.rowSpan=_15.rowSpan;
_14.style.cssText=_15.style.cssText;
_14.innerHTML=_15.innerHTML;
},_updateTable:function(){
if(null!=this._table){
this._updateData(true);
this._updateCaption();
if(this._summary==""){
this._table.removeAttribute("summary",false);
}else{
this._table.summary=this._summary;
}
this._updateThead();
this._updateRows();
this._updateCellIDs();
}
return this._table;
},_updateCaption:function(){
var _17=this._table.caption;
if($telerik.isIE){
if(!_17&&""!=this._caption){
_17=this._table.createCaption();
}
if(_17){
_17.innerText=this._caption;
_17.align=this._captionHalign;
_17.vAlign=this._captionValign;
}
}else{
if(_17){
this._table.removeChild(_17);
_17=null;
}
if(!_17&&""!=this._caption){
var _17=this._tableDocument.createElement("CAPTION");
_17.innerHTML=this._caption;
_17.setAttribute("align",this._captionValign);
this._table.appendChild(_17);
}
}
},_getTableColumns:function(){
var _18=0;
if(null!=this._table&&this._table.rows.length>0){
_18=this._table.rows[0].cells.length;
}
return _18;
},_getThead:function(){
var _19=this._table.getElementsByTagName("THEAD");
if(_19.length>0){
return _19[0];
}else{
return null;
}
},_updateThead:function(){
var _1a=this._getTableColumns();
var _1b=this._getThead();
if(!_1b){
_1b=this._table.createTHead();
}
var _1c=0;
for(i=0;i<this._table.rows.length;i++){
var row=this._table.rows[i];
var _1e=row.parentNode;
var _1f=_1e.tagName.toUpperCase();
if(i<this._headingRows){
if("THEAD"!=_1f){
var _20=_1b.insertRow(_1b.rows.length);
for(j=0;j<row.cells.length;j++){
var _21=this._tableDocument.createElement("TH");
this._mergeAttributes(_21,row.cells[j]);
_20.insertBefore(_21,null);
}
this._table.deleteRow(i+1);
}
}else{
if("THEAD"==_1f){
var _20=this._table.tBodies[0].insertRow(_1c++);
for(j=0;j<row.cells.length;j++){
var _21=_20.insertBefore(this._tableDocument.createElement("TD"),null);
this._mergeAttributes(_21,row.cells[j]);
}
}
}
}
if(this._headingRows<_1b.rows.length){
for(i=_1b.rows.length-1;i>=this._headingRows;i--){
_1b.deleteRow(i);
}
}
},_updateRows:function(){
if(this._table){
for(k=0;k<this._table.tBodies.length;k++){
var _22=this._table.tBodies[k];
for(i=0;i<_22.rows.length;i++){
var row=_22.rows[i];
for(j=0;j<row.cells.length;j++){
var _24=j<this._headingColumns?"TH":"TD";
this._changeCellType(row.cells[j],_24);
}
}
}
}
},_updateCellIDs:function(){
var _25=this._checkHeadersHasIds();
var _26=this._checkCellsHasHeaders();
if(this._table&&this._table.tHead&&(this._setCellID||_25||_26)){
var _27=this._table.id?this._table.id:this._table.uniqueID;
if(!_27){
_27="table";
}
var _28=null;
var _29=0;
if(_25||this._setCellID){
for(i=0;i<this._table.tHead.rows.length;i++){
var row=this._table.tHead.rows[i];
if(!_28){
_28=new Array(row.cells.length);
}
for(j=0;j<row.cells.length;j++){
var _2b=row.cells[j];
if(this._setCellID){
var id=_2b.id?_2b.id:(_27+"_heading_"+_29++);
_2b.id=id;
if(!_28[j]){
_28[j]=id;
}
}else{
_2b.id="";
}
}
}
}
for(k=0;k<this._table.tBodies.length;k++){
var _2d=this._table.tBodies[k];
for(i=0;i<_2d.rows.length;i++){
var row=_2d.rows[i];
for(j=0;j<row.cells.length;j++){
var _2b=row.cells[j];
var _2e=_2b.tagName.toUpperCase();
if("TH"==_2e){
if(this._setCellID){
_2b.id=_2b.id?_2b.id:(_27+"_heading_"+_29++);
}else{
_2b.id="";
}
}else{
if("TD"==_2e&&this._table.tHead.rows.length>0&&_28&&(_26||this._setCellID)){
if(this._setCellID){
_2b.setAttribute("headers",_28[j]);
}else{
_2b.removeAttribute("headers",false);
}
}
}
}
}
}
}
},set_tableToModify:function(_2f){
this._table=_2f;
},dispose:function(){
this._clientParameters=null;
this._table=null;
this._tableDocument=null;
this._headingRowsInput=null;
this._headingColumnsInput=null;
this._captionTextArea=null;
this._summaryTextArea=null;
this._setCellIDCheckBox=null;
this._alignmentSelector=null;
this._maxHeadRowsSpan=null;
this._maxHeadColsSpan=null;
Telerik.Web.UI.Widgets.AccessibleTable.callBaseMethod(this,"dispose");
}};
Telerik.Web.UI.Widgets.AccessibleTable.registerClass("Telerik.Web.UI.Widgets.AccessibleTable",Telerik.Web.UI.RadWebControl,Telerik.Web.IParameterConsumer);;Type.registerNamespace("Telerik.Web.UI.Widgets");
Telerik.Web.UI.Widgets.CellProperties=function(_1){
Telerik.Web.UI.Widgets.CellProperties.initializeBase(this,[_1]);
this._cssClassSelector=null;
this._cellAlignmentSelector=null;
this._backgroundColorPicker=null;
this._bgImageDialogCaller=null;
this._columnWidthBox=null;
this._columnHeightBox=null;
this._columnWrapHolder=null;
this._idHolder=null;
this._editorObject=null;
this._cellToModify=null;
this._clientParameters=null;
this._tablePreviewControl=null;
};
Telerik.Web.UI.Widgets.CellProperties.prototype={initialize:function(){
Telerik.Web.UI.Widgets.CellProperties.callBaseMethod(this,"initialize");
this._initializeChildren();
},_initializeChildren:function(){
this._cssClassSelector=$find("ClassSelectorCellCss");
this._cellAlignmentSelector=$find("alignmentSelectorCellContent");
this._backgroundColorPicker=$find("ColorPickerCellBackground");
this._bgImageDialogCaller=$find("ImageCallerCellBackgroundImage");
this._columnWidthBox=$find("SpinBoxCellWidth");
this._columnHeightBox=$find("SpinBoxCellHeight");
this._columnWrapHolder=$get("CellNoWrap");
this._idHolder=$get("CellId");
this._tablePreviewControl=new Telerik.Web.UI.Widgets.TablePreview();
this._tablePreviewControl.set_previewHolder($get("CellProperties_PreviewTableHolder"));
},clientInit:function(_2){
this._clientParameters=_2;
this._editorObject=this._clientParameters.Editor;
this._cssClasses=this._clientParameters.CellCssClasses;
this._cellAlignmentSelector.setTagName("TD");
this._bgImageDialogCaller.set_editor(this._editorObject);
this._backgroundColorPicker.set_items(this._clientParameters.Colors);
this._cssClassSelector.set_items(this._cssClasses);
this._cssClassSelector.add_valueSelected(this._cssValueSelected);
},_cssValueSelected:function(_3,_4){
if(!_3){
return;
}
var _5=_3.get_name();
if("ApplyClass"==_5){
var _6=_3.get_selectedItem();
_3.updateValue(_6);
}
},set_cellToModify:function(_7){
this._cellToModify=_7;
this._loadPropertyValues(this._cellToModify);
},get_tablePreviewControl:function(){
return this._tablePreviewControl;
},_clear:function(){
var _8=document.createElement("TD");
this._loadPropertyValues(_8);
},_loadPropertyValues:function(_9){
this._cellToModify=_9;
if(this._cellToModify.style.width==""){
this._columnWidthBox.set_value(this._cellToModify.width);
}else{
this._columnWidthBox.set_value(this._cellToModify.style.width);
}
if(this._cellToModify.style.height==""){
this._columnHeightBox.set_value(this._cellToModify.height);
}else{
this._columnHeightBox.set_value(this._cellToModify.style.height);
}
var _a=this._cellToModify.getAttribute("id");
if(_a){
this._idHolder.value=_a;
}else{
this._idHolder.value="";
}
this._cellAlignmentSelector.updateValue(this._cellToModify.align,this._cellToModify.vAlign);
this._columnWrapHolder.checked=this._cellToModify.noWrap;
this._backgroundColorPicker.set_color(this._cellToModify.bgColor);
var _b=this._cellToModify.className;
if(_b==null){
_b="";
}
this._cssClassSelector.updateValue(_b);
if(_b==""){
this._cssClassSelector.set_selectedIndex(0);
}
if(this._bgImageDialogCaller&&this._cellToModify){
var _c=this._cellToModify.getAttribute("background");
if(!_c){
_c="";
}
this._bgImageDialogCaller.set_value(_c);
}
},_updateMultiple:function(_d){
for(var i=0;i<_d.length;i++){
if(!this._update(_d[i])){
return false;
}
}
return true;
},_update:function(_f){
if(typeof (_f)!="undefined"){
this._cellToModify=_f;
}
var _10=this._cellToModify;
if(_10.style.cssText==""){
_10.removeAttribute("style",false);
}
var _11=this._columnWidthBox.get_value();
if(!this._isValueValid(_11)){
return false;
}
_10.removeAttribute("width",false);
_10.style.width=_11?this._convertIntToPixel(_11):"";
var _12=this._columnHeightBox.get_value();
if(!this._isValueValid(_12)){
return false;
}
_10.removeAttribute("height",false);
_10.style.height=_12?this._convertIntToPixel(_12):"";
this._setAttribValue("id",this._idHolder.value);
this._setAttribValue("align",this._cellAlignmentSelector.getAlign());
this._setAttribValue("vAlign",this._cellAlignmentSelector.getVAlign());
this._setAttribValue("bgColor",this._backgroundColorPicker.get_color());
this._setAttribValue("background",this._bgImageDialogCaller.get_value());
var _13=document.all?"className":"class";
this._setAttribValue(_13,(this._cssClassSelector.get_value()!="")?this._cssClassSelector.get_value():null);
_10.noWrap=this._columnWrapHolder.checked;
return true;
},_isValueValid:function(_14){
if(_14==""){
return true;
}
var _15=parseInt(_14,10);
if(!isNaN(_15)){
var _16=(_15+"%"==_14);
var _17=(_15+"px"==_14.toLowerCase());
var _18=(_15.toString()==_14);
if(_16||_17||_18){
return true;
}
}
return false;
},_convertIntToPixel:function(_19){
var _1a=""+_19;
if(_1a.indexOf("%")!=-1){
return _1a;
}else{
_1a=parseInt(_1a);
if(!isNaN(_1a)){
_1a=_1a+"px";
return _1a;
}
}
return _19;
},_setAttribValue:function(_1b,_1c,_1d){
if(_1c||(true==_1d)){
this._cellToModify.setAttribute(_1b,_1c);
}else{
this._cellToModify.removeAttribute(_1b,false);
}
},dispose:function(){
this._clientParameters=null;
this._cssClassSelector=null;
this._cellAlignmentSelector=null;
this._backgroundColorPicker=null;
this._bgImageDialogCaller=null;
this._columnWidthBox=null;
this._columnHeightBox=null;
this._columnWrapHolder=null;
this._cellToModify=null;
this._idHolder=null;
this._editorObject=null;
this._tablePreviewControl=null;
Telerik.Web.UI.Widgets.CellProperties.callBaseMethod(this,"dispose");
}};
Telerik.Web.UI.Widgets.CellProperties.registerClass("Telerik.Web.UI.Widgets.CellProperties",Telerik.Web.UI.RadWebControl,Telerik.Web.IParameterConsumer);;Type.registerNamespace("Telerik.Web.UI.Widgets");
Telerik.Web.UI.Widgets.CodeFormatter=function(_1){
Telerik.Web.UI.Widgets.CodeFormatter.initializeBase(this,[_1]);
this._confirmButton=null;
this._cancelButton=null;
this._previewButton=null;
this._dirtyCode=null;
this._maxSnippetWidth=null;
this._language=null;
this._maxSnippetHeight=null;
this._showLineNumbers=null;
this._previewArea=null;
};
Telerik.Web.UI.Widgets.CodeFormatter.prototype={initialize:function(){
Telerik.Web.UI.Widgets.CodeFormatter.callBaseMethod(this,"initialize");
this._initializeChildren();
},_initializeChildren:function(){
this._confirmButton=this._getChildElement("confirm");
this._cancelButton=this._getChildElement("cancel");
this._previewButton=this._getChildElement("preview");
this._dirtyCode=this._getChildElement("dirtyCode");
this._maxSnippetWidth=this._getChildElement("maxSnippetWidth");
this._language=this._getChildElement("language");
this._maxSnippetHeight=this._getChildElement("maxSnippetHeight");
this._showLineNumbers=this._getChildElement("showLineNumbers");
this._previewArea=this._getChildElement("previewArea");
$addHandlers(this._confirmButton,{"click":this._confirmClickHandler},this);
$addHandlers(this._cancelButton,{"click":this._cancelClickHandler},this);
$addHandlers(this._previewButton,{"click":this._previewClickHandler},this);
},_preview:function(){
this._previewArea.innerHTML=this.getFormattedCode();
},_confirmClickHandler:function(e){
if(this._dirtyCode.value.trim()!=""){
this._preview();
var _3=new Sys.EventArgs();
_3._code=this._previewArea.innerHTML;
_3._width=this.get_maxSnippetWidth();
_3._height=this._getWrapperHeight();
_3.get_code=function(){
return this._code;
};
_3.set_code=function(_4){
this._code=_4;
};
_3.get_width=function(){
return this._width;
};
_3.get_height=function(){
return this._height;
};
this.raise_confirmClick(_3);
}
},_getWrapperHeight:function(){
var _5=20;
var _6=this._previewArea.getElementsByTagName("table")[0];
var _7=_6.offsetHeight+_5;
var _8=this.get_maxSnippetHeight();
return (_7>_8)?_8:_7;
},_cancelClickHandler:function(e){
this.raise_cancelClick();
},_previewClickHandler:function(e){
this._preview();
},get_dirtyCode:function(){
return this._dirtyCode.value;
},set_dirtyCode:function(_b){
this._dirtyCode.value=_b;
},get_maxSnippetWidth:function(){
return this._maxSnippetWidth.value;
},set_maxSnippetWidth:function(_c){
this._maxSnippetWidth.value=_c;
},get_maxSnippetHeight:function(){
return this._maxSnippetHeight.value;
},set_maxSnippetHeight:function(_d){
this._maxSnippetHeight.value=_d;
},get_selectedLanguage:function(){
return this._language.options[this._language.selectedIndex].value;
},set_selectedLanguage:function(_e){
this._language.selectedIndex=-1;
for(var i=0;i<this._language.options.length;i++){
var _10=this._language.options[i];
if(_10.value==_e){
_10.selected=true;
}
}
},get_showLineNumbers:function(){
return this._showLineNumbers.checked;
},set_showLineNumbers:function(_11){
this._showLineNumbers.checked=value;
},raise_confirmClick:function(_12){
this.raiseEvent("confirmClick",_12);
},add_confirmClick:function(_13){
this.get_events().addHandler("confirmClick",_13);
},remove_confirmClick:function(_14){
this.get_events().removeHandler("confirmClick",_14);
},raise_cancelClick:function(_15){
this.raiseEvent("cancelClick",_15);
},add_cancelClick:function(_16){
this.get_events().addHandler("cancelClick",_16);
},remove_cancelClick:function(_17){
this.get_events().removeHandler("cancelClick",_17);
},getFormattedCode:function(){
return Telerik.Web.UI.Widgets.SyntaxHighlighter.highlight(this.get_dirtyCode(),this.get_selectedLanguage(),this.get_showLineNumbers());
},dispose:function(){
$clearHandlers(this._confirmButton);
$clearHandlers(this._cancelButton);
$clearHandlers(this._previewButton);
this._confirmButton=null;
this._cancelButton=null;
this._previewButton=null;
this._dirtyCode=null;
this._maxSnippetWidth=null;
this._language=null;
this._maxSnippetHeight=null;
this._showLineNumbers=null;
this._previewArea=null;
Telerik.Web.UI.Widgets.CodeFormatter.callBaseMethod(this,"dispose");
}};
Telerik.Web.UI.Widgets.CodeFormatter.registerClass("Telerik.Web.UI.Widgets.CodeFormatter",Telerik.Web.UI.RadWebControl);;Type.registerNamespace("Telerik.Web.UI.Widgets");
Telerik.Web.UI.Widgets.DocumentManager=function(_1){
Telerik.Web.UI.Widgets.DocumentManager.initializeBase(this,[_1]);
};
Telerik.Web.UI.Widgets.DocumentManager.prototype={initialize:function(){
Telerik.Web.UI.Widgets.DocumentManager.callBaseMethod(this,"initialize");
},dispose:function(){
Telerik.Web.UI.Widgets.DocumentManager.callBaseMethod(this,"dispose");
}};
$telerik.makeCompatible(Telerik.Web.UI.Widgets.DocumentManager);
Telerik.Web.UI.Widgets.DocumentManager.registerClass("Telerik.Web.UI.Widgets.DocumentManager",Telerik.Web.UI.Widgets.FileManager);;Type.registerNamespace("Telerik.Web.UI.Editor.DialogControls");
Telerik.Web.UI.Editor.DialogControls.DocumentManagerDialog=function(_1){
Telerik.Web.UI.Editor.DialogControls.DocumentManagerDialog.initializeBase(this,[_1]);
};
Telerik.Web.UI.Editor.DialogControls.DocumentManagerDialog.registerClass("Telerik.Web.UI.Editor.DialogControls.DocumentManagerDialog",Telerik.Web.UI.Editor.DialogControls.FileManagerDialog);;Type.registerNamespace("Telerik.Web.UI.Widgets");
Telerik.Web.UI.Widgets.DocumentPreviewer=function(_1){
Telerik.Web.UI.Widgets.DocumentPreviewer.initializeBase(this,[_1]);
this._currentItem=null;
};
Telerik.Web.UI.Widgets.DocumentPreviewer.prototype={initialize:function(){
Telerik.Web.UI.Widgets.DocumentPreviewer.callBaseMethod(this,"initialize");
this._initializeChildren();
},_initializeChildren:function(){
this._documentTooltip=this._getChildElement("DocumentTooltip");
this._documentTargetCombo=this._getChildElement("DocumentTargetCombo");
this._documentFieldset=this._getChildElement("documentFiledset");
this._initializeChildEvents();
},_initializeChildEvents:function(){
$addHandlers(this._documentTargetCombo,{"click":this._targetChangeHandler},this);
},setItem:function(_2){
this._currentItem=_2;
this._documentTooltip.value="";
this._documentTargetCombo.selectedIndex=0;
if(_2.type==Telerik.Web.UI.Widgets.FileItemType.Directory){
this._documentFieldset.style.display="none";
}else{
this._documentFieldset.style.display="";
}
},getResult:function(){
if(this._currentItem&&this._currentItem.type==Telerik.Web.UI.Widgets.FileItemType.File){
var _3=document.createElement("A");
_3.innerHTML=this._currentItem.name;
_3.href=this._currentItem.getUrl();
if(this._documentTooltip.value!=""){
_3.title=this._documentTooltip.value;
}
if(this._documentTargetCombo.value!="_none"){
_3.target=this._documentTargetCombo.value;
}
return _3;
}
return null;
},_targetChangeHandler:function(){
if(this._documentTargetCombo.value=="_custom"){
var _4="Type Custom Target Here";
var _5=prompt(_4,"CustomWindow");
if(_5){
var _6=document.createElement("option");
_6.innerHTML=_5;
_6.setAttribute("selected","selected");
_6.setAttribute("value",_5);
this._documentTargetCombo.getElementsByTagName("optgroup")[1].appendChild(_6);
return;
}
this._documentTargetCombo.selectedIndex=0;
}
},dispose:function(){
$clearHandlers(this._documentTargetCombo);
Telerik.Web.UI.Widgets.DocumentPreviewer.callBaseMethod(this,"dispose");
}};
$telerik.makeCompatible(Telerik.Web.UI.Widgets.DocumentPreviewer);
Telerik.Web.UI.Widgets.DocumentPreviewer.registerClass("Telerik.Web.UI.Widgets.DocumentPreviewer",Telerik.Web.UI.Widgets.FilePreviewer);;Type.registerNamespace("Telerik.Web.UI.Widgets");
Telerik.Web.UI.Widgets.FindAndReplace=function(_1){
Telerik.Web.UI.Widgets.FindAndReplace.initializeBase(this,[_1]);
this._clientParameters=null;
this._findButton=null;
this._rFindButton=null;
this._replaceButton=null;
this._replaceAllButton=null;
this._editorRef=null;
this._contentWindow=null;
this._localization={notFound:"The search string was not found.",notSupported:"The find function is not supported by this browser!",allReplaced:"{0} occurances in the text have been replaced!"};
};
Telerik.Web.UI.Widgets.FindAndReplace.prototype={initialize:function(){
Telerik.Web.UI.Widgets.FindAndReplace.callBaseMethod(this,"initialize");
this._setupChildren();
},dispose:function(){
$clearHandlers(this._findButton);
$clearHandlers(this._rFindButton);
$clearHandlers(this._replaceButton);
$clearHandlers(this._replaceAllButton);
$clearHandlers(this._cancelButtonF);
$clearHandlers(this._cancelButtonR);
this._editorRef=null;
this._contentWindow=null;
this._clientParameters=null;
Telerik.Web.UI.Widgets.FindAndReplace.callBaseMethod(this,"dispose");
},clientInit:function(_2){
this._clientParameters=_2;
this._contentWindow=_2._editor.get_contentWindow();
this._editorRef=_2._editor;
var _3=this.getSelection().getText();
if(_3.indexOf("\n")==-1){
this._rFind.value=_3;
this._find.value=_3;
}else{
}
},_replace:function(_4,_5){
if(this.getSelection().getHtml()){
if($telerik.isIE){
try{
this.getSelection().getRange().duplicate().pasteHTML(_5);
}
catch(uspecifiedError){
this.getSelection().getRange().text=_5;
}
}else{
this._clientParameters._editor.pasteHtml(_5,"FindAndReplace");
}
}
},replaceEngine:function(_6,_7,_8,_9,_a,_b,_c){
_9=_9||"find";
_b=_b||false;
_8=_8||false;
_c=_c||false;
_8=_8||false;
if(this._contentWindow.document.body.innerHTML==""){
this._showMessageBox(this._localization.notFound);
return true;
}
if(_9=="replace"){
this._replace(_6,_7);
_9="find";
}
this.getSelection().collapse(_8);
if($telerik.isIE){
var _d=this.getSelection().getRange();
var _e=0;
if(_a){
_e=_e|2;
}
if(_b){
_e=_e|4;
}
if(!_d.findText){
this._showMessageBox(this._localization.notSupported);
return true;
}
if(_9=="replaceAll"){
var _f=0;
while(_d.findText(_6,_8?-1:1,_e)){
_f++;
_d.scrollIntoView();
_d.select();
this._replace(_6,_7);
}
if(_f>0){
this._showMessageBox(String.format(this._localization.allReplaced,_f));
}else{
this._showMessageBox(this._localization.notFound);
}
return true;
}
if(_d.findText(_6,_8?-1:1,_e)){
_d.scrollIntoView();
_d.select();
}else{
this._showMessageBox(this._localization.notFound);
}
}else{
if(_9=="replaceAll"){
var _f=0;
while(this._contentWindow.find(_6,_b,_8,_c,_a,false,false)){
_f++;
this._replace(_6,_7);
}
if(_f>0){
this._showMessageBox(String.format(this._localization.allReplaced,_f));
}else{
this._showMessageBox(this._localization.notFound);
}
return true;
}
if(!this._contentWindow.find(_6,_b,_8,_c,_a,false,false)){
this._showMessageBox(this._localization.notFound);
}
}
},getSelection:function(){
if($telerik.isIE&&this._editorRef){
this._editorRef.setActive();
this._editorRef.setFocus();
}
return new Telerik.Web.UI.Editor.Selection(this._contentWindow);
},_showMessageBox:function(msg){
window.alert(msg);
},execFind:function(){
var _11="";
var _12=false;
var _13=false;
var _14=false;
if(this._tab.get_selectedIndex()==0){
_11=this._find.value;
_13=this._wholeWordFind.checked;
_14=this._matchCaseReplace.checked;
_12=this._upFind.checked;
}else{
_11=this._rFind.value;
_13=this._wholeWordReplace.checked;
_14=this._matchCaseReplace.checked;
_12=this._upReplace.checked;
}
this.replaceEngine(_11,null,_12,"find",_13,_14,true);
},execReplace:function(){
this.replaceEngine(this._rFind.value,this._rReplace.value,this._upReplace.checked,"replace",this._wholeWordReplace.checked,this._matchCaseReplace.checked,true);
},execReplaceAll:function(){
this.replaceEngine(this._rFind.value,this._rReplace.value,this._upReplace.checked,"replaceAll",this._wholeWordReplace.checked,this._matchCaseReplace.checked,true);
},_setupChildren:function(){
this._tab=this._findChildControl("dialogtabstrip");
this._cancelButtonF=this._getChildElement("CancelButtonF");
this._cancelButtonR=this._getChildElement("CancelButtonR");
this._findButton=this._getChildElement("FindButton");
this._rFindButton=this._getChildElement("rFindButton");
this._replaceButton=this._getChildElement("ReplaceButton");
this._replaceAllButton=this._getChildElement("ReplaceAllButton");
this._upReplace=this._getChildElement("upReplace");
this._upFind=this._getChildElement("upFind");
this._downReplace=this._getChildElement("downReplace");
this._downFind=this._getChildElement("downFind");
this._find=this._getChildElement("find");
this._rFind=this._getChildElement("rFind");
this._rReplace=this._getChildElement("rReplace");
this._wholeWordFind=this._getChildElement("wholeWordFind");
this._wholeWordReplace=this._getChildElement("wholeWordReplace");
this._matchCaseReplace=this._getChildElement("matchCaseReplace");
this._matchCaseFind=this._getChildElement("matchCaseFind");
this._downReplace.checked=true;
this._downFind.checked=true;
this._initializeChildEvents();
this._tab.add_tabChanged(Function.createDelegate(this,this._tabChangedHandler));
},_initializeChildEvents:function(){
$addHandlers(this._rFindButton,{"click":this._findClickHandler},this);
$addHandlers(this._findButton,{"click":this._findClickHandler},this);
$addHandlers(this._replaceButton,{"click":this._replaceClickHandler},this);
$addHandlers(this._replaceAllButton,{"click":this._replaceAllClickHandler},this);
$addHandlers(this._cancelButtonF,{"click":this._cancelClickHandler},this);
$addHandlers(this._cancelButtonR,{"click":this._cancelClickHandler},this);
},_tabChangedHandler:function(_15){
if(this._tab.get_selectedIndex()==0){
this._find.value=this._rFind.value;
this._wholeWordFind.checked=this._wholeWordReplace.checked;
this._matchCaseFind.checked=this._matchCaseReplace.checked;
this._upFind.checked=this._upReplace.checked;
this._downFind.checked=this._downReplace.checked;
}else{
this._rFind.value=this._find.value;
this._matchCaseReplace.checked=this._matchCaseFind.checked;
this._wholeWordReplace.checked=this._wholeWordFind.checked;
this._upReplace.checked=this._upFind.checked;
this._downReplace.checked=this._downFind.checked;
}
},_cancelClickHandler:function(e){
this.raise_cancelClick({});
},raise_cancelClick:function(_17){
this.raiseEvent("cancelClick",_17);
},add_cancelClick:function(_18){
this.get_events().addHandler("cancelClick",_18);
},remove_cancelClick:function(_19){
this.get_events().removeHandler("cancelClick",_19);
},_findClickHandler:function(){
this.execFind();
},_replaceClickHandler:function(){
this.execReplace();
},_replaceAllClickHandler:function(){
this.execReplaceAll();
}};
Telerik.Web.UI.Widgets.FindAndReplace.registerClass("Telerik.Web.UI.Widgets.FindAndReplace",Telerik.Web.UI.RadWebControl,Telerik.Web.IParameterConsumer);;Type.registerNamespace("Telerik.Web.UI.Editor.DialogControls");
Telerik.Web.UI.Editor.DialogControls.FindAndReplaceDialog=function(_1){
Telerik.Web.UI.Editor.DialogControls.FindAndReplaceDialog.initializeBase(this,[_1]);
this._clientParameters=null;
this._findAndReplace=null;
};
Telerik.Web.UI.Editor.DialogControls.FindAndReplaceDialog.prototype={initialize:function(){
Telerik.Web.UI.Editor.DialogControls.FindAndReplaceDialog.callBaseMethod(this,"initialize");
this._initializeChildren();
this._findAndReplaceCancelClickHandler=Function.createDelegate(this,this._findAndReplaceCancelClickHandler);
this._findAndReplace.add_cancelClick(this._findAndReplaceCancelClickHandler);
},_initializeChildren:function(){
this._findAndReplace=this._findChildControl("FindAndReplace");
},_findAndReplaceCancelClickHandler:function(_2,_3){
Telerik.Web.UI.Dialogs.CommonDialogScript.get_windowReference().close();
},clientInit:function(_4){
this._clientParameters=_4;
},dispose:function(){
this._findAndReplace.remove_cancelClick(this._findAndReplaceCancelClickHandler);
Telerik.Web.UI.Editor.DialogControls.FindAndReplaceDialog.callBaseMethod(this,"dispose");
}};
Telerik.Web.UI.Editor.DialogControls.FindAndReplaceDialog.registerClass("Telerik.Web.UI.Editor.DialogControls.FindAndReplaceDialog",Telerik.Web.UI.RadWebControl,Telerik.Web.IParameterConsumer);;Type.registerNamespace("Telerik.Web.UI.Widgets");
Telerik.Web.UI.Widgets.FlashManager=function(_1){
Telerik.Web.UI.Widgets.FlashManager.initializeBase(this,[_1]);
};
Telerik.Web.UI.Widgets.FlashManager.prototype={initialize:function(){
Telerik.Web.UI.Widgets.FlashManager.callBaseMethod(this,"initialize");
},dispose:function(){
Telerik.Web.UI.Widgets.FlashManager.callBaseMethod(this,"dispose");
}};
$telerik.makeCompatible(Telerik.Web.UI.Widgets.FlashManager);
Telerik.Web.UI.Widgets.FlashManager.registerClass("Telerik.Web.UI.Widgets.FlashManager",Telerik.Web.UI.Widgets.FileManager);;Type.registerNamespace("Telerik.Web.UI.Editor.DialogControls");
Telerik.Web.UI.Editor.DialogControls.FlashManagerDialog=function(_1){
Telerik.Web.UI.Editor.DialogControls.FlashManagerDialog.initializeBase(this,[_1]);
};
Telerik.Web.UI.Editor.DialogControls.FlashManagerDialog.registerClass("Telerik.Web.UI.Editor.DialogControls.FlashManagerDialog",Telerik.Web.UI.Editor.DialogControls.FileManagerDialog);;Type.registerNamespace("Telerik.Web.UI.Widgets");
Telerik.Web.UI.Widgets.FlashPreviewer=function(_1){
Telerik.Web.UI.Widgets.FlashPreviewer.initializeBase(this,[_1]);
this._currentItem=null;
this._currentFlashElement=null;
this._propertiesButton=null;
this._previewModeButton=null;
this._flashPropertiesPane=null;
this._flashPreviewPane=null;
this._classIdCheckBox=null;
this._classIDText=null;
this._classIDLi=null;
this._newImageWidth=null;
this._newImageHeight=null;
this._newImageUnits=null;
this._flPlayCheckBox=null;
this._flLoopCheckBox=null;
this._flMenuCheckBox=null;
this._flTranspBgrCheckBox=null;
this._flHtmlAlign=null;
this._flFlashalign=null;
this._flBgrColor=null;
};
Telerik.Web.UI.Widgets.FlashPreviewer.prototype={initialize:function(){
Telerik.Web.UI.Widgets.FlashPreviewer.callBaseMethod(this,"initialize");
this._initializeChildren();
this._initializeChildEvents();
},_initializeChildren:function(){
this._propertiesButton=this._getChildElement("Properties");
this._previewModeButton=this._getChildElement("PreviewMode");
this._flashPropertiesPane=this._getChildElement("flashPropertiesPane");
this._flashPreviewPane=this._getChildElement("flashPreviewPane");
this._classIdCheckBox=this._getChildElement("ClassID");
this._classIDText=this._getChildElement("ClassIDText");
this._classIDLi=this._getChildElement("ClassIDLi");
this._newImageWidth=this._getChildElement("NewImageWidth");
this._newImageHeight=this._getChildElement("NewImageHeight");
this._newImageUnits=this._getChildElement("NewImageUnits");
this._flPlayCheckBox=this._getChildElement("flPlay");
this._flLoopCheckBox=this._getChildElement("flLoop");
this._flMenuCheckBox=this._getChildElement("flMenu");
this._flTranspBgrCheckBox=this._getChildElement("flTranspBgr");
this._flHtmlAlign=this._getChildElement("flHtmlAlign");
this._flFlashalign=this._getChildElement("flFlashalign");
this._flBgrColor=this._getChildElement("flBgrColor");
},_initializeChildEvents:function(){
$addHandlers(this._propertiesButton,{"click":this._propertiesClickHandler},this);
$addHandlers(this._previewModeButton,{"click":this._previewModeClickHandler},this);
$addHandlers(this._classIdCheckBox,{"click":this._classIdClickHandler},this);
},_setToolbarEnabled:function(_2){
var _3=_2?"":"disabledtoolbarbutton";
this._propertiesButton.className=_3;
this._previewModeButton.className=_3;
},_propertiesClickHandler:function(e){
if(this._currentItem&&this._flashPropertiesPane.style.display=="none"){
this._flashPreviewPane.innerHTML="";
this._currentFlashElement=null;
this._switchPanes("none","block");
}
},_classIdClickHandler:function(e){
if(this._classIdCheckBox.checked){
this._classIDLi.style.display="";
}else{
this._classIDLi.style.display="none";
}
},_previewModeClickHandler:function(e){
if(this._currentItem&&this._flashPreviewPane.style.display=="none"){
this._flashPreviewPane.innerHTML=this._createFlashElement();
this._switchPanes("block","none");
}
},_getParams:function(_7){
var _8={};
if(_7=="object"){
_8["Movie"]=this._currentItem.getUrl();
_8["play"]=this._flPlayCheckBox.checked.toString();
}else{
_8["src"]=this._currentItem.getUrl();
if(isNaN(parseInt(this._newImageWidth.value,10))||parseInt(this._newImageWidth.value,10).toString()!=this._newImageWidth.value){
this._newImageWidth.value="150";
}
_8["width"]=this._newImageWidth.value;
if(isNaN(parseInt(this._newImageHeight.value,10))||parseInt(this._newImageHeight.value,10).toString()!=this._newImageHeight.value){
this._newImageHeight.value="150";
}
_8["height"]=this._newImageHeight.value;
_8["type"]="application/x-shockwave-flash";
_8["pluginspage"]="http://www.macromedia.com/go/getflashplayer";
}
_8["quality"]=this._newImageUnits.value;
if(this._flTranspBgrCheckBox.checked){
_8["wmode"]="transparent";
}
_8["loop"]=this._flLoopCheckBox.checked.toString();
_8["menu"]=this._flMenuCheckBox.checked.toString();
if(this._flHtmlAlign.value.toLowerCase()!="baseline"){
_8["align"]=this._flHtmlAlign.value;
}
if(this._flFlashalign.value.toLowerCase()!="lt"){
_8["salign"]=this._flFlashalign.value;
}
if(this._flBgrColor.value.length>0){
_8["bgcolor"]=this._flBgrColor.value;
}
return _8;
},_getObjectAttributes:function(){
var _9={};
if(this._classIdCheckBox.checked&&this._classIDText.value&&this._classIDText.value.length>0){
_9["classid"]=this._classIDText.value;
}else{
_9["classid"]="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";
}
if(isNaN(parseInt(this._newImageWidth.value,10))||parseInt(this._newImageWidth.value,10).toString()!=this._newImageWidth.value){
this._newImageWidth.value="150";
}
_9["width"]=this._newImageWidth.value;
if(isNaN(parseInt(this._newImageHeight.value,10))||parseInt(this._newImageHeight.value,10).toString()!=this._newImageHeight.value){
this._newImageHeight.value="150";
}
_9["height"]=this._newImageHeight.value;
if(this._flHtmlAlign.value&&this._flHtmlAlign.value.toLowerCase()!="baseline"){
_9["align"]=this._flHtmlAlign.value;
}
return _9;
},_createFlashElement:function(){
var sb=new Sys.StringBuilder("");
sb.append("<object");
var _b=this._getObjectAttributes();
for(var _c in _b){
sb.append(String.format(" {0}=\"{1}\"",_c,_b[_c]));
}
sb.append(">");
var _d=this._getParams("object");
for(var _e in _d){
sb.append(String.format("<param name=\"{0}\" value=\"{1}\">",_e,_d[_e]));
}
sb.append("<embed");
_d=this._getParams("embed");
for(var _e in _d){
sb.append(String.format(" {0}=\"{1}\"",_e,_d[_e]));
}
sb.append("></embed>");
sb.append("</object>");
return sb.toString();
},_setInitialValues:function(){
this._classIDLi.style.display="none";
this._classIdCheckBox.checked=false;
this._flashPreviewPane.innerHTML="";
this._currentFlashElement=null;
this._classIDText.value="";
this._newImageWidth.value="150";
this._newImageHeight.value="150";
this._newImageUnits.selectedIndex=0;
this._flPlayCheckBox.checked=true;
this._flLoopCheckBox.checked=false;
this._flMenuCheckBox.checked=false;
this._flTranspBgrCheckBox.checked=true;
this._flHtmlAlign.selectedIndex=0;
this._flFlashalign.selectedIndex=0;
this._flBgrColor.selectedIndex=0;
},_switchPanes:function(_f,_10){
this._flashPreviewPane.style.display=_f;
this._flashPropertiesPane.style.display=_10;
},setItem:function(_11){
this._setInitialValues();
if(_11.type==Telerik.Web.UI.Widgets.FileItemType.Directory){
this._setToolbarEnabled(false);
this._currentItem=null;
this._flashPreviewPane.style.display="none";
this._flashPropertiesPane.style.display="none";
}else{
this._setToolbarEnabled(true);
this._currentItem=_11;
this._switchPanes("none","block");
}
},getResult:function(){
if(this._currentItem&&this._currentItem.type==Telerik.Web.UI.Widgets.FileItemType.File){
return this._createFlashElement();
}
return null;
},populateObjectProperties:function(_12){
if(_12.object){
if(_12.classid){
this._classIdCheckBox.click();
this._classIDText.value=_12.classid;
}
this._newImageWidth.value=(_12.width)?parseInt(_12.width).toString():"";
this._newImageHeight.value=(_12.height)?parseInt(_12.height).toString():"";
this._flPlayCheckBox.checked=_12.object.Playing;
this._flLoopCheckBox.checked=_12.object.Loop;
this._flMenuCheckBox.checked=_12.object.Menu;
this._flTranspBgrCheckBox.checked=_12.object.WMode.toLowerCase()=="transparent";
this._selectOptionByValue(this._newImageUnits,_12.object.Quality2,false,0);
this._selectOptionByValue(this._flHtmlAlign,_12.align,false,0);
this._selectOptionByValue(this._flFlashalign,_12.object.SAlign,false,0);
this._selectOptionByValue(this._flBgrColor,"#"+_12.object.BGColor,false,0);
}
},dispose:function(){
this._setInitialValues();
$clearHandlers(this._propertiesButton);
$clearHandlers(this._previewModeButton);
$clearHandlers(this._classIdCheckBox);
Telerik.Web.UI.Widgets.FlashPreviewer.callBaseMethod(this,"dispose");
}};
$telerik.makeCompatible(Telerik.Web.UI.Widgets.FlashPreviewer);
Telerik.Web.UI.Widgets.FlashPreviewer.registerClass("Telerik.Web.UI.Widgets.FlashPreviewer",Telerik.Web.UI.Widgets.FilePreviewer);;Type.registerNamespace("Telerik.Web.UI.Editor.DialogControls");
Telerik.Web.UI.Editor.DialogControls.FormatCodeBlockDialog=function(_1){
Telerik.Web.UI.Editor.DialogControls.FormatCodeBlockDialog.initializeBase(this,[_1]);
this._clientParameters=null;
this._codeFormatter=null;
};
Telerik.Web.UI.Editor.DialogControls.FormatCodeBlockDialog.prototype={initialize:function(){
Telerik.Web.UI.Editor.DialogControls.FormatCodeBlockDialog.callBaseMethod(this,"initialize");
this._initializeChildren();
},_initializeChildren:function(){
this._codeFormatter=this._findChildControl("codeFormatter");
this._codeFormatterConfirmClickHandler=Function.createDelegate(this,this._codeFormatterConfirmClickHandler);
this._codeFormatter.add_confirmClick(this._codeFormatterConfirmClickHandler);
this._codeFormatterCancelClickHandler=Function.createDelegate(this,this._codeFormatterCancelClickHandler);
this._codeFormatter.add_cancelClick(this._codeFormatterCancelClickHandler);
},_codeFormatterConfirmClickHandler:function(_2,_3){
if(_3.get_code()){
_3.set_code(String.format("<div style='overflow:auto;background-color:white;"+"border:solid 1px #7f9db9;width:{0};height:{1};line-height: 100% !important;"+"font-family: Courier New;font-size: 11px;'>{2}</div>",_3.get_width(),_3.get_height(),_3.get_code()));
Telerik.Web.UI.Dialogs.CommonDialogScript.get_windowReference().close(_3);
}
},_codeFormatterCancelClickHandler:function(_4,_5){
Telerik.Web.UI.Dialogs.CommonDialogScript.get_windowReference().close();
},clientInit:function(_6){
this._clientParameters=_6;
this._codeFormatter.set_dirtyCode(this._clientParameters.dirtyCode);
},dispose:function(){
this._codeFormatter.remove_confirmClick(this._codeFormatterConfirmClickHandler);
this._codeFormatter.remove_cancelClick(this._codeFormatterCancelClickHandler);
Telerik.Web.UI.Editor.DialogControls.FormatCodeBlockDialog.callBaseMethod(this,"dispose");
}};
Telerik.Web.UI.Editor.DialogControls.FormatCodeBlockDialog.registerClass("Telerik.Web.UI.Editor.DialogControls.FormatCodeBlockDialog",Telerik.Web.UI.RadWebControl,Telerik.Web.IParameterConsumer);;Type.registerNamespace("Telerik.Web.UI.Widgets");
Telerik.Web.UI.Widgets.GenericPreviewer=function(_1){
Telerik.Web.UI.Widgets.GenericPreviewer.initializeBase(this,[_1]);
};
Telerik.Web.UI.Widgets.GenericPreviewer.prototype={initialize:function(){
Telerik.Web.UI.Widgets.GenericPreviewer.callBaseMethod(this,"initialize");
},dispose:function(){
Telerik.Web.UI.Widgets.GenericPreviewer.callBaseMethod(this,"dispose");
}};
Telerik.Web.UI.Widgets.GenericPreviewer.registerClass("Telerik.Web.UI.Widgets.GenericPreviewer",Telerik.Web.UI.Widgets.FilePreviewer);;Type.registerNamespace("Telerik.Web.UI.Widgets");
Telerik.Web.UI.Widgets.Help=function(_1){
Telerik.Web.UI.Widgets.Help.initializeBase(this,[_1]);
};
Telerik.Web.UI.Widgets.Help.registerClass("Telerik.Web.UI.Widgets.Help",Telerik.Web.UI.RadWebControl);;Type.registerNamespace("Telerik.Web.UI.Widgets");
Telerik.Web.UI.Widgets.ImageManager=function(_1){
Telerik.Web.UI.Widgets.ImageManager.initializeBase(this,[_1]);
};
Telerik.Web.UI.Widgets.ImageManager.prototype={initialize:function(){
Telerik.Web.UI.Widgets.ImageManager.callBaseMethod(this,"initialize");
},dispose:function(){
Telerik.Web.UI.Widgets.ImageManager.callBaseMethod(this,"dispose");
}};
$telerik.makeCompatible(Telerik.Web.UI.Widgets.ImageManager);
Telerik.Web.UI.Widgets.ImageManager.registerClass("Telerik.Web.UI.Widgets.ImageManager",Telerik.Web.UI.Widgets.FileManager);;Type.registerNamespace("Telerik.Web.UI.Editor.DialogControls");
Telerik.Web.UI.Editor.DialogControls.ImageManagerDialog=function(_1){
Telerik.Web.UI.Editor.DialogControls.ImageManagerDialog.initializeBase(this,[_1]);
};
Telerik.Web.UI.Editor.DialogControls.ImageManagerDialog.registerClass("Telerik.Web.UI.Editor.DialogControls.ImageManagerDialog",Telerik.Web.UI.Editor.DialogControls.FileManagerDialog);;;Type.registerNamespace("Telerik.Web.UI.Widgets");
Telerik.Web.UI.Widgets.ImagePreviewer=function(_1){
Telerik.Web.UI.Widgets.ImagePreviewer.initializeBase(this,[_1]);
this._imageContainer=null;
this._altTextPane=null;
this._altText=null;
this._previewedImage=null;
this._containerBounds=null;
this._originalBounds=null;
this._bestFitButton=null;
this._actualSizeButton=null;
this._zoomInButton=null;
this._zoomOutButton=null;
this._currentItem="";
};
Telerik.Web.UI.Widgets.ImagePreviewer.prototype={initialize:function(){
Telerik.Web.UI.Widgets.ImagePreviewer.callBaseMethod(this,"initialize");
this._initializeChildren();
},_initializeChildren:function(){
this._imageContainer=this._getChildElement("ImageContainer");
this._containerBounds=$telerik.getBounds(this._imageContainer);
this._altTextPane=this._getChildElement("AltTextPane");
this._altText=this._getChildElement("AltText");
this._bestFitButton=this._getChildElement("BestFit");
this._actualSizeButton=this._getChildElement("ActualSize");
this._zoomInButton=this._getChildElement("ZoomIn");
this._zoomOutButton=this._getChildElement("ZoomOut");
this._initializeChildEvents();
},_initializeChildEvents:function(){
$addHandlers(this._bestFitButton,{"click":this._bestFitClickHandler},this);
$addHandlers(this._actualSizeButton,{"click":this._actualSizeClickHandler},this);
$addHandlers(this._zoomInButton,{"click":this._zoomInClickHandler},this);
$addHandlers(this._zoomOutButton,{"click":this._zoomOutClickHandler},this);
},_bestFitClickHandler:function(e){
this._fitImage();
},_actualSizeClickHandler:function(e){
this._adjustImage(this._originalBounds);
},_zoomInClickHandler:function(e){
this._zoom(80);
},_zoomOutClickHandler:function(e){
this._zoom(-40);
},_zoom:function(_6){
this._adjustImage(this._getZoomedSize($telerik.getBounds(this._previewedImage),_6));
},_getZoomedSize:function(_7,_8){
return {width:_7.width*(1+_8/100),height:_7.height*(1+_8/100)};
},_adjustImage:function(_9){
var _a=$telerik.getBounds(this._imageContainer);
var _b=_a.height-_9.height;
_b=_b<0?0:_b/2;
this._previewedImage.width=_9.width;
this._previewedImage.height=_9.height;
this._previewedImage.style.marginTop=_b+"px";
},_setToolbarEnabled:function(_c){
var _d=_c?"":"disabledtoolbarbutton";
this._bestFitButton.className=_d;
this._actualSizeButton.className=_d;
this._zoomInButton.className=_d;
this._zoomOutButton.className=_d;
},setItem:function(_e){
this._imageContainer.innerHTML="";
this._altText.value="";
this._currentItem=_e;
if(_e.type==Telerik.Web.UI.Widgets.FileItemType.Directory){
this._initNoImageItem();
this._setToolbarEnabled(false);
}else{
this._initImageItem(_e);
this._setToolbarEnabled(true);
}
},getResult:function(){
if(this._previewedImage){
this._previewedImage.src=this._currentItem.getUrl();
var _f=this._previewedImage.cloneNode(true);
_f.setAttribute("alt",this._altText.value);
_f.removeAttribute("width");
_f.removeAttribute("height");
_f.style.cssText="";
_f._events={};
_f.removeAttribute("_events");
_f.removeAttribute("width");
_f.removeAttribute("height");
return _f;
}
return null;
},_initImageItem:function(_10){
this._previewedImage=new Image();
this._previewedImage.src=_10.getUrl();
this._previewedImage.style.border="0";
this._previewedImage.style.position="absolute";
this._previewedImage.style.top="-10000px";
this._previewedImage.style.left="-10000px";
this._imageContainer.className="imagePreview";
this._imageContainer.appendChild(this._previewedImage);
this._setupPreviewedImage(false);
this._altText.value="";
this._altTextPane.style.display="block";
},_imageLoadHandler:function(e){
this._setupPreviewedImage(true);
$clearHandlers(e.target);
},_setupPreviewedImage:function(_12){
if(_12||this._previewedImage.complete){
this._originalBounds={width:this._previewedImage.width,height:this._previewedImage.height};
this._fitImage();
this._previewedImage.style.position="";
this._previewedImage.style.top="0px";
this._previewedImage.style.left="0px";
}else{
$addHandlers(this._previewedImage,{"load":this._imageLoadHandler},this);
}
},_initNoImageItem:function(_13){
this._previewedImage=null;
this._originalBounds=null;
this._imageContainer.className="imagePreview noImage";
this._altTextPane.style.display="none";
},_fitImage:function(){
var _14=this._originalBounds.height/(this._containerBounds.height-1);
var _15=this._originalBounds.width/(this._containerBounds.width-1);
var _16=1;
if(this._originalBounds.width>this._containerBounds.width&&this._originalBounds.height>this._containerBounds.height){
_16=_14>=_15?_14:_15;
}else{
if(this._originalBounds.width>this._containerBounds.width){
_16=_15;
}else{
if(this._originalBounds.height>this._containerBounds.height){
_16=_14;
}
}
}
this._adjustImage({width:this._originalBounds.width/_16,height:this._originalBounds.height/_16});
},dispose:function(){
$clearHandlers(this._bestFitButton);
$clearHandlers(this._actualSizeButton);
$clearHandlers(this._zoomInButton);
$clearHandlers(this._zoomOutButton);
Telerik.Web.UI.Widgets.ImagePreviewer.callBaseMethod(this,"dispose");
}};
$telerik.makeCompatible(Telerik.Web.UI.Widgets.ImagePreviewer);
Telerik.Web.UI.Widgets.ImagePreviewer.registerClass("Telerik.Web.UI.Widgets.ImagePreviewer",Telerik.Web.UI.Widgets.FilePreviewer);;Type.registerNamespace("Telerik.Web.UI.Widgets");
Telerik.Web.UI.Widgets.ImageProperties=function(_1){
Telerik.Web.UI.Widgets.ImageProperties.initializeBase(this,[_1]);
this._clientParameters=null;
this._allowedASCII=new Array(8,16,35,36,37,39,45,46);
this._constrainDimentions=false;
this._ratio=0;
};
Telerik.Web.UI.Widgets.ImageProperties.prototype={initialize:function(){
Telerik.Web.UI.Widgets.ImageProperties.callBaseMethod(this,"initialize");
this._setupChildren();
},dispose:function(){
$clearHandlers(this._imageWidth);
$clearHandlers(this._imageHeight);
$clearHandlers(this._constrainButton);
$clearHandlers(this._insertButton);
$clearHandlers(this._cancelButton);
Telerik.Web.UI.Widgets.ImageProperties.callBaseMethod(this,"dispose");
},clientInit:function(_2){
this._originalImage=_2.Element;
this._colors=_2.Colors;
this._editor=_2.Editor;
this._cssClasses=_2.CssClasses;
this._loadImageProperties();
},_loadImageProperties:function(){
var _3=this._originalImage.cloneNode(true);
this._imageWidth.value=this._getOriginalWidth(this._originalImage);
this._imageHeight.value=this._getOriginalHeight(this._originalImage);
this._ratio=this._getOriginalWidth(this._originalImage)/this._getOriginalHeight(this._originalImage);
this._imageSrc.set_value(this._getOriginalSrc(_3));
this._imageSrc.set_editor(this._editor);
this._imageAlt.value=this._getAttribute(_3,"alt");
this._imageLongDecs.value=this._getAttribute(_3,"longDesc");
this._imageAlignment.setTagName("IMG");
this._imageAlignment.updateValue(_3.align,"");
this._verticalSpacingSpinBox.set_value(this._getAttribute(_3,"vspace"));
this._horizontalSpacingSpinBox.set_value(this._getAttribute(_3,"hspace"));
if(_3.border){
this._borderWidthSpinBox.set_value(_3.border);
}
this._colorPicker.set_items(this._colors);
var _4=_3.style.borderColor.toUpperCase();
this._colorPicker.set_color(_4);
this._imageCssClassList.set_items(this._cssClasses);
if(_3.className!=null&&_3.className!=""){
this._imageCssClassList.updateValue(_3.className);
}
},_validateNumber:function(e){
if(window.event!=null){
e=window.event;
}
if(((e.keyCode>=48)&&(e.keyCode<=57))||((e.keyCode>=96)&&(e.keyCode<=105))||(this._inArray(this._allowedASCII,e.keyCode))){
return true;
}else{
if(e.preventDefault){
e.preventDefault();
e.stopPropagation();
}
return false;
}
},_inArray:function(_6,_7){
for(var i=0;i<_6.length;i++){
if(_6[i]===_7){
return true;
}
}
return false;
},_validateDimension:function(e,_a){
if(!this._validateNumber(e)){
return false;
}
if(this._constrainDimentions){
var _b=null;
var _c=null;
var _d=0;
if(_a){
_b=this._imageHeight;
_c=this._imageWidth;
_d=1/this._ratio;
}else{
_b=this._imageWidth;
_c=this._imageHeight;
_d=this._ratio;
}
_b.value=Math.ceil(_c.value*_d);
}
return true;
},_getOriginalSrc:function(_e){
if(!_e){
return "";
}
var _f=_e.getAttribute("src",2);
return _f;
},_getOriginalWidth:function(_10){
if(!_10){
return "";
}
var _11="";
if(_10.style.width){
_11=_10.style.width;
}
if(!_11){
_11=_10.getAttribute("width");
}
if(!_11){
_11=_10.width;
}
if(!_11){
_11=_10.offsetWidth;
}
if(_11){
_11=parseInt(_11);
}
return _11;
},_getOriginalHeight:function(_12){
if(!_12){
return "";
}
var _13="";
if(_12.style.height){
_13=_12.style.height;
}
if(!_13){
_13=_12.getAttribute("height");
}
if(!_13){
_13=_12.height;
}
if(!_13){
_13=_12.offsetHeight;
}
if(_13){
_13=parseInt(_13);
}
return _13;
},_getModifiedImage:function(){
var _14=this._originalImage.ownerDocument.createElement("IMG");
this._setAttribute(_14,"src",this._imageSrc.get_value());
this._setDimensionAttribute(_14,"width",this._imageWidth.value);
this._setDimensionAttribute(_14,"height",this._imageHeight.value);
this._setAttribute(_14,"alt",this._imageAlt.value);
this._setAttribute(_14,"longDesc",this._imageLongDecs.value);
_14.align=this._imageAlignment.getAlign();
this._setIntAttribute(_14,"hspace",this._horizontalSpacingSpinBox.get_value());
this._setIntAttribute(_14,"vspace",this._verticalSpacingSpinBox.get_value());
var _15=parseInt(this._borderWidthSpinBox.get_value());
if(!isNaN(_15)&&_15>=0){
_14.border=_15;
}else{
_14.removeAttribute("border",false);
}
if(this._colorPicker.get_color()){
_14.style.borderColor=this._colorPicker.get_color();
}
this._setClass(_14,this._imageCssClassList);
return _14;
},_setDimensionAttribute:function(_16,_17,_18){
_16.removeAttribute(_17);
if(_16.style.removeAttribute){
_16.style.removeAttribute(_17,false);
}else{
_16.style[_17]=null;
}
var _19=parseInt(_18);
if(_19){
_16.style[_17]=_19+"px";
}
},_isValueValid:function(_1a){
var _1b=parseInt(_1a,10);
if(!isNaN(_1b)){
var _1c=(_1b+"%"==_1a);
var _1d=(_1b+"px"==_1a.toLowerCase());
var _1e=(_1b.toString()==_1a);
if(_1c||_1d||_1e){
return true;
}
}
return false;
},_setIntAttribute:function(_1f,_20,_21){
var _22=parseInt(_21);
if(!isNaN(_22)&&_22>=0){
_1f[_20]=_22;
}else{
_1f.removeAttribute(_20,false);
}
},_getAttribute:function(_23,_24){
var _25="";
if(_23.getAttribute(_24)){
_25=_23.getAttribute(_24);
}
return _25;
},_setAttribute:function(_26,_27,_28){
if(_28.trim()){
_26.setAttribute(_27,_28);
}else{
_26.removeAttribute(_27,false);
}
},_setClass:function(_29,_2a){
if(_2a.get_value()==""){
_29.removeAttribute("className");
}else{
_29.className=_2a.get_value();
}
},_setupChildren:function(){
this._imageWidth=this._getChildElement("ImageWidth");
this._imageHeight=this._getChildElement("ImageHeight");
this._constrainButton=this._getChildElement("ConstrainButton");
this._colorPicker=this._findChildControl("BorderColor");
this._imageAlignment=this._findChildControl("AlignmentSelector");
this._imageAlt=this._getChildElement("ImageAlt");
this._imageLongDecs=this._getChildElement("ImageLongDesc");
this._imageSrc=this._findChildControl("ImageDialogCaller");
this._horizontalSpacingSpinBox=this._findChildControl("hSpacing");
this._verticalSpacingSpinBox=this._findChildControl("vSpacing");
this._borderWidthSpinBox=this._findChildControl("ImageBorderWidth");
this._imageCssClassList=this._findChildControl("ImageCssClass");
this._insertButton=this._getChildElement("InsertButton");
this._cancelButton=this._getChildElement("CancelButton");
this._initializeChildEvents();
},_initializeChildEvents:function(){
$addHandlers(this._imageWidth,{"keyup":this._validateDimensionByWidth},this);
$addHandlers(this._imageWidth,{"keydown":this._validateNumber},this);
$addHandlers(this._imageHeight,{"keyup":this._validateDimensionByHeight},this);
$addHandlers(this._imageHeight,{"keydown":this._validateNumber},this);
$addHandlers(this._constrainButton,{"click":this._constrainClickHandler},this);
$addHandlers(this._insertButton,{"click":this._insertClickHandler},this);
$addHandlers(this._cancelButton,{"click":this._cancelClickHandler},this);
},_constrainClickHandler:function(e){
this._constrainDimentions=!this._constrainDimentions;
if(this._constrainDimentions){
this._imageHeight.value=Math.ceil(this._imageWidth.value/this._ratio);
Sys.UI.DomElement.addCssClass(this._constrainButton.parentNode,"toggle");
}else{
Sys.UI.DomElement.removeCssClass(this._constrainButton.parentNode,"toggle");
}
return $telerik.cancelRawEvent(e);
},_validateDimensionByWidth:function(e){
this._validateDimension(e,true);
},_validateDimensionByHeight:function(e){
this._validateDimension(e,false);
},_insertClickHandler:function(e){
this.raise_insertClick({Result:this._getModifiedImage()});
},_cancelClickHandler:function(e){
this.raise_cancelClick({});
},raise_insertClick:function(_30){
this.raiseEvent("insertClick",_30);
},add_insertClick:function(_31){
this.get_events().addHandler("insertClick",_31);
},remove_insertClick:function(_32){
this.get_events().removeHandler("insertClick",_32);
},raise_cancelClick:function(_33){
this.raiseEvent("cancelClick",_33);
},add_cancelClick:function(_34){
this.get_events().addHandler("cancelClick",_34);
},remove_cancelClick:function(_35){
this.get_events().removeHandler("cancelClick",_35);
}};
$telerik.makeCompatible(Telerik.Web.UI.Widgets.ImageProperties);
Telerik.Web.UI.Widgets.ImageProperties.registerClass("Telerik.Web.UI.Widgets.ImageProperties",Telerik.Web.UI.RadWebControl,Telerik.Web.IParameterConsumer);;Type.registerNamespace("Telerik.Web.UI.Editor.DialogControls");
Telerik.Web.UI.Editor.DialogControls.ImagePropertiesDialog=function(_1){
Telerik.Web.UI.Editor.DialogControls.ImagePropertiesDialog.initializeBase(this,[_1]);
this._clientParameters=null;
this._imageProperties=null;
};
Telerik.Web.UI.Editor.DialogControls.ImagePropertiesDialog.prototype={initialize:function(){
Telerik.Web.UI.Editor.DialogControls.ImagePropertiesDialog.callBaseMethod(this,"initialize");
this._initializeChildren();
this._imagePropertiesInsertClickHandler=Function.createDelegate(this,this._imagePropertiesInsertClickHandler);
this._imageProperties.add_insertClick(this._imagePropertiesInsertClickHandler);
this._imagePropertiesCancelClickHandler=Function.createDelegate(this,this._imagePropertiesCancelClickHandler);
this._imageProperties.add_cancelClick(this._imagePropertiesCancelClickHandler);
},_initializeChildren:function(){
this._imageProperties=this._findChildControl("ImageProperties");
},_imagePropertiesInsertClickHandler:function(_2,_3){
Telerik.Web.UI.Dialogs.CommonDialogScript.get_windowReference().close(_3);
},_imagePropertiesCancelClickHandler:function(_4,_5){
Telerik.Web.UI.Dialogs.CommonDialogScript.get_windowReference().close();
},clientInit:function(_6){
this._clientParameters=_6;
},dispose:function(){
this._imageProperties.remove_insertClick(this._imagePropertiesInsertClickHandler);
this._imageProperties.remove_cancelClick(this._imagePropertiesCancelClickHandler);
Telerik.Web.UI.Editor.DialogControls.ImagePropertiesDialog.callBaseMethod(this,"dispose");
}};
$telerik.makeCompatible(Telerik.Web.UI.Editor.DialogControls.ImagePropertiesDialog);
Telerik.Web.UI.Editor.DialogControls.ImagePropertiesDialog.registerClass("Telerik.Web.UI.Editor.DialogControls.ImagePropertiesDialog",Telerik.Web.UI.RadWebControl,Telerik.Web.IParameterConsumer);;Type.registerNamespace("Telerik.Web.UI.Widgets");
Telerik.Web.UI.Widgets.LinkManager=function(_1){
Telerik.Web.UI.Widgets.LinkManager.initializeBase(this,[_1]);
this._clientParameters=null;
};
Telerik.Web.UI.Widgets.LinkManager.prototype={initialize:function(){
Telerik.Web.UI.Widgets.LinkManager.callBaseMethod(this,"initialize");
this._setupChildren();
},dispose:function(){
$clearHandlers(this._linkType);
$clearHandlers(this._linkTargetCombo);
$clearHandlers(this._existingAnchor);
$clearHandlers(this._insertButton);
$clearHandlers(this._cancelButton);
Telerik.Web.UI.Widgets.LinkManager.callBaseMethod(this,"dispose");
},clientInit:function(_2){
this._clientParameters=_2;
if(this._clientParameters.selectedTabIndex&&this._clientParameters.selectedTabIndex>=0){
this._tab.selectTab(this._clientParameters.selectedTabIndex);
}
this._loadLinkProperties();
this._linkTypeChangeHandler();
},_loadLinkProperties:function(){
var _3=this._clientParameters.realLink;
var _4=_3.getAttribute("href",2);
var _5=this._clientParameters.documentAnchors;
if(this._clientParameters.showText){
this._linkText.value=_3.innerHTML;
this._emailLinkText.value=_3.innerHTML;
this._linkText.parentNode.style.display="";
this._emailLinkText.parentNode.style.display="";
}else{
this._linkText.parentNode.style.display="none";
this._emailLinkText.parentNode.style.display="none";
}
this._loadCssClasses(_3);
if(_4&&_4.match(/^(mailto:)([^\?&]*)/ig)){
this._loadEmailAddressAndSubject();
this._tab.selectTab(2);
return;
}
if(_3.name&&_3.name.trim()!=""){
this._anchorName.value=_3.name;
this._tab.selectTab(1);
return;
}
var _6="http://";
if(_3.href){
_6=_4;
}
this._linkUrl.value=_6;
this._loadLinkType(_6);
this._loadLinkTarget();
this._loadLinkArchor();
this._linkTooltip.value=_3.title;
this._tab.selectTab(0);
},_loadLinkType:function(_7){
for(var i=1;i<this._linkType.options.length;i++){
var _9=this._linkType.options[i].value;
var re=new RegExp("^("+_9+")","gi");
if(re.test(_7)){
this._linkType.options[i].selected=true;
return;
}
}
this._linkType.options[0].selected=true;
},_loadLinkTarget:function(){
var _b=this._clientParameters.realLink.target;
if(!_b){
return;
}
var _c=this._linkTargetCombo.getElementsByTagName("optgroup");
for(var i=0;i<_c.length;i++){
if(_c[i].nodeName.toLowerCase()=="optgroup"){
var _e=_c[i].getElementsByTagName("option");
for(var j=0;j<_e.length;j++){
if(_e[j].nodeName.toLowerCase()=="option"&&_e[j].value.toLowerCase()==_b.toLowerCase()){
_e[j].selected=true;
return;
}
}
}
}
var _10=document.createElement("option");
_10.value=_b;
_10.text=_b;
this._linkTargetCombo.options.add(_10);
_10.selected=true;
},_loadLinkArchor:function(){
var _11=this._clientParameters.documentAnchors;
for(var i=0;i<_11.length;i++){
var _13=new Option(_11[i].name,"#"+_11[i].name);
this._existingAnchor.options.add(_13);
if("#"+_11[i].name.toLowerCase()==this._clientParameters.realLink.getAttribute("href",2).toLowerCase()){
_13.selected=true;
}
}
},_loadCssClasses:function(_14){
var _15=this._clientParameters.CssClasses;
this._linkCssClass.set_items(_15.concat([]));
this._emailCssClass.set_items(_15);
if(_14.className!=null&&_14.className!=""){
this._linkCssClass.updateValue(_14.className);
this._emailCssClass.updateValue(_14.className);
}
},_loadEmailAddressAndSubject:function(){
var _16=this._clientParameters.realLink.getAttribute("href",2);
this._emailAddress.value=RegExp.$2;
if(_16.match(/(\?|&)subject=([^\b]*)/ig)){
var val=RegExp.$2.replace(/&amp;/gi,"&");
this._emailSubject.value=val;
}
},_getModifiedLink:function(){
var _18=this._clientParameters.realLink;
var _19=this._tab.get_selectedIndex();
if(_19==0){
_18.href=this._linkUrl.value;
if(this._linkTargetCombo.value=="_none"){
_18.removeAttribute("target",0);
}else{
_18.target=this._linkTargetCombo.value;
}
if(this._linkText.parentNode.style.display!="none"){
_18.innerHTML=this._linkText.value;
}
if(_18.innerHTML.trim()==""){
_18.innerHTML=_18.href;
}
if(this._linkTooltip.value.trim()==""){
_18.removeAttribute("title",0);
}else{
_18.title=this._linkTooltip.value;
}
this._setClass(_18,this._linkCssClass);
}else{
if(_19==1){
_18.removeAttribute("name");
_18.removeAttribute("NAME");
_18.name=null;
_18.name=this._anchorName.value;
_18["NAME"]=this._anchorName.value;
_18.removeAttribute("href");
_18.removeAttribute("target");
_18.removeAttribute("title");
}else{
_18.href="mailto:"+this._emailAddress.value;
_18.mail=this._emailAddress.value;
if(this._emailSubject.value!=""){
_18.href+="?subject="+this._emailSubject.value;
}
if(this._emailLinkText.parentNode.style.display!="none"){
_18.innerHTML=this._emailLinkText.value;
}
this._setClass(_18,this._emailCssClass);
}
}
return _18;
},_setClass:function(_1a,_1b){
if(_1b.get_value()==""){
_1a.removeAttribute("className",0);
}else{
_1a.className=_1b.get_value();
}
},_setupChildren:function(){
this._linkType=this._getChildElement("LinkType");
this._linkUrl=this._getChildElement("LinkURL");
this._linkText=this._getChildElement("LinkText");
this._linkTargetCombo=this._getChildElement("LinkTargetCombo");
this._existingAnchor=this._getChildElement("ExistingAnchor");
this._linkTooltip=this._getChildElement("LinkTooltip");
this._linkCssClass=this._findChildControl("LinkCssClass");
this._anchorName=this._getChildElement("AnchorName");
this._emailAddress=this._getChildElement("EmailAddress");
this._emailLinkText=this._getChildElement("EmailLinkText");
this._emailSubject=this._getChildElement("EmailSubject");
this._emailCssClass=this._findChildControl("EmailCssClass");
this._insertButton=this._getChildElement("InsertButton");
this._cancelButton=this._getChildElement("CancelButton");
this._tab=this._findChildControl("LinkManagerTab");
this._initializeChildEvents();
},_initializeChildEvents:function(){
this._linkCssClass.add_valueSelected(this._cssValueSelected);
this._emailCssClass.add_valueSelected(this._cssValueSelected);
$addHandlers(this._linkType,{"change":this._linkTypeChangeHandler},this);
$addHandlers(this._linkTargetCombo,{"change":this._linkTargetChangeHandler},this);
$addHandlers(this._existingAnchor,{"change":this._existingAnchorChangeHandler},this);
$addHandlers(this._insertButton,{"click":this._insertClickHandler},this);
$addHandlers(this._cancelButton,{"click":this._cancelClickHandler},this);
},_cssValueSelected:function(_1c,_1d){
if(!_1c){
return;
}
var _1e=_1c.get_name();
if("ApplyClass"==_1e){
var _1f=_1c.get_selectedItem();
_1c.updateValue(_1f);
}
},_linkTypeChangeHandler:function(e){
var _21=this._getChildElement("LinkType");
var _22=this._getChildElement("LinkURL");
var _23=_21.options[_21.selectedIndex].value;
var _24=_22.value;
var _25;
_25=_24.indexOf(":");
if(_25>=0){
_24=_24.substring(_25+1);
}
_25=_24.indexOf("//");
if(_25>=0){
_24=_24.substring(_25+2);
}
if(_23=="other"){
_23="";
}
_22.value=_23+_24;
},_linkTargetChangeHandler:function(e){
if(this._linkTargetCombo.value=="_custom"){
var _27="Type Custom Target Here";
var _28=prompt(_27,"CustomWindow");
if(_28){
var _29=document.createElement("option");
_29.innerHTML=_28;
_29.setAttribute("selected","selected");
_29.setAttribute("value",_28);
this._linkTargetCombo.getElementsByTagName("optgroup")[1].appendChild(_29);
return;
}
this._linkTargetCombo.selectedIndex=0;
}
},_existingAnchorChangeHandler:function(e){
if(this._existingAnchor.selectedIndex!=0){
this._linkUrl.value=this._existingAnchor.value;
}
},_insertClickHandler:function(e){
this.raise_insertClick({realLink:this._getModifiedLink()});
},_cancelClickHandler:function(e){
this.raise_cancelClick({});
},raise_insertClick:function(_2d){
this.raiseEvent("insertClick",_2d);
},add_insertClick:function(_2e){
this.get_events().addHandler("insertClick",_2e);
},remove_insertClick:function(_2f){
this.get_events().removeHandler("insertClick",_2f);
},raise_cancelClick:function(_30){
this.raiseEvent("cancelClick",_30);
},add_cancelClick:function(_31){
this.get_events().addHandler("cancelClick",_31);
},remove_cancelClick:function(_32){
this.get_events().removeHandler("cancelClick",_32);
}};
$telerik.makeCompatible(Telerik.Web.UI.Widgets.LinkManager);
Telerik.Web.UI.Widgets.LinkManager.registerClass("Telerik.Web.UI.Widgets.LinkManager",Telerik.Web.UI.RadWebControl,Telerik.Web.IParameterConsumer);;Type.registerNamespace("Telerik.Web.UI.Editor.DialogControls");
Telerik.Web.UI.Editor.DialogControls.LinkManagerDialog=function(_1){
Telerik.Web.UI.Editor.DialogControls.LinkManagerDialog.initializeBase(this,[_1]);
this._clientParameters=null;
this._linkManager=null;
};
Telerik.Web.UI.Editor.DialogControls.LinkManagerDialog.prototype={initialize:function(){
Telerik.Web.UI.Editor.DialogControls.LinkManagerDialog.callBaseMethod(this,"initialize");
this._initializeChildren();
this._linkManagerInsertClickHandler=Function.createDelegate(this,this._linkManagerInsertClickHandler);
this._linkManager.add_insertClick(this._linkManagerInsertClickHandler);
this._linkManagerCancelClickHandler=Function.createDelegate(this,this._linkManagerCancelClickHandler);
this._linkManager.add_cancelClick(this._linkManagerCancelClickHandler);
},_initializeChildren:function(){
this._linkManager=this._findChildControl("LinkManager");
},_linkManagerInsertClickHandler:function(_2,_3){
Telerik.Web.UI.Dialogs.CommonDialogScript.get_windowReference().close(_3);
},_linkManagerCancelClickHandler:function(_4,_5){
Telerik.Web.UI.Dialogs.CommonDialogScript.get_windowReference().close();
},clientInit:function(_6){
this._clientParameters=_6;
},dispose:function(){
this._linkManager.remove_insertClick(this._linkManagerInsertClickHandler);
this._linkManager.remove_cancelClick(this._linkManagerCancelClickHandler);
Telerik.Web.UI.Editor.DialogControls.LinkManagerDialog.callBaseMethod(this,"dispose");
}};
Telerik.Web.UI.Editor.DialogControls.LinkManagerDialog.registerClass("Telerik.Web.UI.Editor.DialogControls.LinkManagerDialog",Telerik.Web.UI.RadWebControl,Telerik.Web.IParameterConsumer);;Type.registerNamespace("Telerik.Web.UI.Widgets");
Telerik.Web.UI.Widgets.MediaManager=function(_1){
Telerik.Web.UI.Widgets.MediaManager.initializeBase(this,[_1]);
};
Telerik.Web.UI.Widgets.MediaManager.prototype={initialize:function(){
Telerik.Web.UI.Widgets.MediaManager.callBaseMethod(this,"initialize");
},dispose:function(){
Telerik.Web.UI.Widgets.MediaManager.callBaseMethod(this,"dispose");
}};
$telerik.makeCompatible(Telerik.Web.UI.Widgets.MediaManager);
Telerik.Web.UI.Widgets.MediaManager.registerClass("Telerik.Web.UI.Widgets.MediaManager",Telerik.Web.UI.Widgets.FileManager);;Type.registerNamespace("Telerik.Web.UI.Editor.DialogControls");
Telerik.Web.UI.Editor.DialogControls.MediaManagerDialog=function(_1){
Telerik.Web.UI.Editor.DialogControls.MediaManagerDialog.initializeBase(this,[_1]);
};
Telerik.Web.UI.Editor.DialogControls.MediaManagerDialog.registerClass("Telerik.Web.UI.Editor.DialogControls.MediaManagerDialog",Telerik.Web.UI.Editor.DialogControls.FileManagerDialog);;Type.registerNamespace("Telerik.Web.UI.Widgets");
Telerik.Web.UI.Widgets.MediaPreviewer=function(_1){
Telerik.Web.UI.Widgets.MediaPreviewer.initializeBase(this,[_1]);
this._currentItem=null;
this._currentMediaItem=null;
this._properties=null;
this._propertiesButton=null;
this._previewModeButton=null;
this._mediaPropertiesPane=null;
this._mediaPreviewPane=null;
this._classIdCheckBox=null;
this._classIDText=null;
this._classIDLi=null;
this._mediaWidth=null;
this._mediaHeight=null;
this._mediaAlign=null;
this._mediaProperties=null;
this._propertyValuePane=null;
this._propertyValueDescription=null;
this._propertyElementsWithHandlers=new Array();
this._localization={Description:"Description: ",AllowChangeDisplaySize:"This property specifies or retrieves a value indicating whether the display size can be changed.",AllowScan:"This property specifies or retrieves a value indicating whether scanning is enabled for files that support scanning (fast-forwarding and rewinding).",AnimationAtStart:"This property specifies or retrieves a value indicating whether animation runs before the first image displays.",AudioStream:"This property specifies or retrieves the stream number of the current audio stream.",AutoRewind:"This property specifies or retrieves a value indicating whether the Windows Media Player control automatically returns to the clip's starting point after the clip finishes playing or has otherwise stopped.",AutoSize:"This property specifies or retrieves a value indicating whether the Windows Media Player control automatically resizes to accommodate the current media item at the size specified by the DisplaySize property.",AutoStart:"This property specifies or retrieves a value indicating whether to start playing the clip automatically.",Balance:"This property specifies or retrieves a value indicating the stereo balance.",CCActive:"This property specifies or retrieves a value indicating whether closed captioning is on or off.",ClickToPlay:"This property specifies or retrieves a value indicating whether the user can toggle playback on and off by clicking the video image.",ColorKey:"This property specifies or retrieves the color key being used by the DVD playback.",CurrentAngle:"This property specifies or retrieves a number identifying the current camera angle.",CurrentAudioStream:"This property specifies or retrieves a value indicating the current audio stream.",CurrentCCService:"This property specifies or retrieves a value indicating the current closed captioning service.",CurrentMarker:"This property specifies or retrieves the current marker number.",CurrentPosition:"This property specifies or retrieves the clip's current position, in seconds.",CurrentSubpictureStream:"This property specifies or retrieves a value indicating the current subpicture stream.",CursorType:"This property specifies or retrieves a value indicating the current subpicture stream.",DefaultFrame:"This property specifies or retrieves a value representing the default target HTTP frame.",DisplayBackColor:"This property specifies or retrieves the background color of the display panel.",DisplayForeColor:"This property specifies or retrieves the foreground color of the display panel.",DisplayMode:"This property specifies or retrieves a value indicating whether the status bar displays the current position in seconds (Yes) or frames (No).",DisplaySize:"This property specifies or retrieves the size of the image display window.",EnableContextMenu:"This property specifies or retrieves a value indicating whether the context menu appears when the user clicks the right mouse button.",Enabled:"This property specifies or retrieves a value indicating whether the Windows Media Player control is enabled.",EnableFullScreenControls:"This property specifies or retrieves a value indicating whether Windows Media Player displays controls in full-screen mode.",EnablePositionControls:"This property specifies or retrieves a value indicating whether the position controls are enabled on the control bar.",EnableTracker:"This property specifies or retrieves a value indicating whether the trackbar control is enabled.",Hidden:"This property specifies or retrieves a value indicating whether the player is visible in the browser.",InvokeURLs:"This property specifies or retrieves a value indicating whether the Windows Media Player control automatically invokes URLs in a browser (URL flipping).",Language:"This property specifies or retrieves a value indicating the current locale used for national language support.",Mute:"This property specifies or retrieves the current mute state of the Windows Media Player control.",PlayCount:"This property specifies or retrieves the number of times a clip plays.",PreviewMode:"This property specifies or retrieves a value indicating whether Windows Media Player is in preview mode.",Rate:"This property specifies or retrieves the playback rate of the clip.",SelectionEnd:"This property specifies or retrieves the time within the current clip at which playback will stop. This property cannot be set or retrieved until the ReadyState property (read-only) has a value of 4.",SelectionStart:"This property specifies or retrieves the time within the current clip at which playback will begin.",SendErrorEvents:"This property specifies or retrieves a value indicating whether the Windows Media Player control sends error events.",SendKeyboardEvents:"This property specifies or retrieves a value indicating whether the Windows Media Player control sends keyboard events.",SendMouseClickEvents:"This property specifies or retrieves a value indicating whether the Windows Media Player control sends mouse click events.",SendMouseMoveEvents:"This property specifies or retrieves a value indicating whether the Windows Media Player control sends mouse move events.",SendOpenStateChangeEvents:"This property specifies or retrieves a value indicating whether the Windows Media Player control sends open state change events.",SendPlayStateChangeEvents:"This property specifies or retrieves a value indicating whether the Windows Media Player control sends play state change events.",SendWarningEvents:"This property specifies or retrieves a value indicating whether the Windows Media Player control sends warning events.",ShowAudioControls:"This property specifies or retrieves a value indicating whether the audio controls appear on the control bar.",ShowCaptioning:"This property specifies or retrieves a value indicating whether the closed caption area is visible and closed captioning is enabled.",ShowControls:"This property specifies or retrieves a value indicating whether the control bar is visible.",ShowDisplay:"This property specifies or retrieves a value indicating whether the display panel is visible.",ShowGotoBar:"This property specifies or retrieves a value indicating whether the Go To bar is visible.",ShowPositionControls:"This property specifies or retrieves a value indicating whether the position controls appear on the control bar.",ShowStatusBar:"This property specifies or retrieves a value indicating whether the status bar is visible.",ShowTracker:"This property specifies or retrieves a value indicating whether the trackbar is visible.",SubpictureOn:"This property specifies or retrieves a value indicating whether the subpicture is displayed.",TransparentAtStart:"This property specifies or retrieves a value indicating whether the Windows Media Player control is transparent before play begins and after play ends",VideoBorder3D:"This property specifies or retrieves a value indicating whether the three-dimensional video border effect is enabled.",VideoBorderColor:"This property specifies or retrieves the color of the video border.",VideoBorderWidth:"This property specifies or retrieves the width of the video border, in pixels.",Volume:"This property specifies or retrieves the volume, in hundredths of decibels.",Yes:"Yes",No:"No",None:"None",DefaultCaption1:"Default. Caption1",Caption2:"Caption2",Text1:"Text1",Text2:"Text2",ExtendedDataServices:"Extended Data Services (XDS)",Arrowhourglass:"Standard arrow and small hourglass",Standardarrow:"Standard arrow",Crosshair:"Crosshair",TextIbeam:"Text I-beam",SlashedCircle:"Slashed circle",Fourpointedarrow:"Four-pointed arrow",DoublepointedNESW:"Double-pointed arrow NE-SW",DoublepointedNS:"Double-pointed arrow N-S",DoublepointedNWSE:"Double-pointed arrow NW-SE",DoublepointedWE:"Double-pointed arrow pointing W-E",Verticalarrow:"Vertical arrow",Hourglass:"Hourglass",Handpointing:"Hand with pointing index finger",NoColor:"No Color",Black:"Black",Blue:"Blue",Green:"Green",Orange:"Orange",Red:"Red",White:"White",Yellow:"Yellow",Custom:"Custom",Samesize:"Same size as the source image",HalfSourceImage:"W and H are one-half of the source image",DoubleSourceImage:"Double the dimensions of the source image",EntireScreen:"Size of the entire screen",DesignTime:"Size specified at design time",SixteenthScreen:"One-sixteenth the size of the screen",QuarterScreen:"One-quarter the size of the screen",HalfScreen:"Half the size of the screen",NA:"N/A",Note:"Note: ",ValidateNumber:"Please, enter only numeric values.",ValidateNumber10000:"Please, enter a value ranging from \u201310,000 to 10,000.",ValidateNumberHex:"Please, specify a hexadecimal value.",ValidateAudio:"Please, enter a value ranging from zero to seven indicating the current audio stream, or 0xFFFFFFFF if no stream is selected.",ValidateLCID:"Please, specify a numeric value that corresponds to an LCID identifying a locale for national language support.",ValidateNumber10:"Please, enter a value ranging from \u201310.00 to 10.00.",Nosubpicturestream:"There is no subpicture stream",Customh:"Custom - ",AlertValue:"Please, provide valid property value!"};
};
Telerik.Web.UI.Widgets.MediaPreviewer.prototype={initialize:function(){
Telerik.Web.UI.Widgets.MediaPreviewer.callBaseMethod(this,"initialize");
this._initializeChildren();
this._initializeChildEvents();
},_initializeChildren:function(){
this._propertiesButton=this._getChildElement("Properties");
this._previewModeButton=this._getChildElement("PreviewMode");
this._mediaPropertiesPane=this._getChildElement("mediaPropertiesPane");
this._mediaPreviewPane=this._getChildElement("mediaPreviewPane");
this._classIdCheckBox=this._getChildElement("ClassID");
this._classIDText=this._getChildElement("ClassIDText");
this._classIDLi=this._getChildElement("ClassIDLi");
this._mediaWidth=this._getChildElement("mediaWidth");
this._mediaHeight=this._getChildElement("mediaHeight");
this._mediaAlign=this._getChildElement("mediaAlign");
this._mediaProperties=this._getChildElement("mediaProperties");
this._propertyValuePane=this._getChildElement("propertyValuePane");
this._propertyValueDescription=this._getChildElement("propertyValueDescription");
},_initializeChildEvents:function(){
$addHandlers(this._propertiesButton,{"click":this._propertiesClickHandler},this);
$addHandlers(this._previewModeButton,{"click":this._previewModeClickHandler},this);
$addHandlers(this._classIdCheckBox,{"click":this._classIdClickHandler},this);
$addHandlers(this._mediaProperties,{"change":this._propertyChangeHandler},this);
},_propertiesClickHandler:function(e){
if(this._currentItem&&this._mediaPropertiesPane.style.display=="none"){
if(this._currentMediaItem){
this._mediaPreviewPane.innerHTML="";
this._currentMediaItem=null;
}
this._switchPanes("none","block");
}
},_previewModeClickHandler:function(e){
if(this._currentItem&&this._mediaPreviewPane.style.display=="none"){
var _4=this;
setTimeout(function(){
_4._mediaPreviewPane.innerHTML=_4._createMediaElement();
},0);
this._switchPanes("block","none");
}
},_classIdClickHandler:function(e){
if(this._classIdCheckBox.checked){
this._classIDLi.style.display="";
}else{
this._classIDLi.style.display="none";
}
},_propertyChangeHandler:function(e){
this._clearPropertyElementsHandlers();
this._propertyValuePane.innerHTML="";
this._propertyValuePane.style.display="none";
this._changeProperty(this._mediaProperties.value);
},_getParams:function(_7){
var _8={};
if(_7=="object"){
_8["FileName"]=this._currentItem.getUrl();
}else{
_8["src"]=this._currentItem.getUrl();
if(isNaN(parseInt(this._mediaWidth.value,10))||parseInt(this._mediaWidth.value,10).toString()!=this._mediaWidth.value){
this._mediaWidth.value="150";
}
_8["width"]=this._mediaWidth.value;
if(isNaN(parseInt(this._mediaHeight.value,10))||parseInt(this._mediaHeight.value,10).toString()!=this._mediaHeight.value){
this._mediaHeight.value="150";
}
_8["height"]=this._mediaHeight.value;
if(this._currentItem.extension==".qt"){
_8["type"]="movie/quicktime";
_8["pluginspage"]="http://www.apple.com/quicktime/download";
}else{
_8["type"]="application/x-mplayer2";
_8["pluginspage"]="http://www.microsoft.com/Windows/MediaPlayer";
}
}
if(this._mediaAlign.value&&this._mediaAlign.value.toLowerCase()!="baseline"){
_8["align"]=this._mediaAlign.value;
}
var _9=this._getProperties();
for(var _a in _9){
var _b=_9[_a];
if(_b[1]!=null){
_8[_a]=_b[1];
}
}
return _8;
},_getObjectAttributes:function(){
var _c={};
if(this._classIdCheckBox.checked&&this._classIDText.value&&this._classIDText.value.length>0){
_c["classid"]=this._classIDText.value;
}else{
_c["classid"]="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95";
}
if(isNaN(parseInt(this._mediaWidth.value,10))||parseInt(this._mediaWidth.value,10).toString()!=this._mediaWidth.value){
this._mediaWidth.value="150";
}
_c["width"]=this._mediaWidth.value;
if(isNaN(parseInt(this._mediaHeight.value,10))||parseInt(this._mediaHeight.value,10).toString()!=this._mediaHeight.value){
this._mediaHeight.value="150";
}
_c["height"]=this._mediaHeight.value;
if(this._mediaAlign.value&&this._mediaAlign.value.toLowerCase()!="baseline"){
_c["align"]=this._mediaAlign.value;
}
_c["type"]="application/x-oleobject";
return _c;
},_createMediaElement:function(){
var sb=new Sys.StringBuilder("");
sb.append("<object");
var _e=this._getObjectAttributes();
for(var _f in _e){
sb.append(String.format(" {0}=\"{1}\"",_f,_e[_f]));
}
sb.append(">");
var _10=this._getParams("object");
for(var _11 in _10){
sb.append(String.format("<param name=\"{0}\" value=\"{1}\">",_11,_10[_11]));
}
sb.append("<embed");
_10=this._getParams("embed");
for(var _11 in _10){
sb.append(String.format(" {0}=\"{1}\"",_11,_10[_11]));
}
sb.append("></embed>");
sb.append("</object>");
return sb.toString();
},_setInitialValues:function(){
this._classIDLi.style.display="none";
this._classIdCheckBox.checked=false;
this._mediaPreviewPane.innerHTML="";
this._currentMediaItem=null;
this._propertyValuePane.innerHTML="";
this._propertyValuePane.style.display="none";
this._propertyValueDescription.innerHTML=this._localization.NA;
this._clearPropertyElementsHandlers();
this._classIDText.value="";
this._mediaWidth.value="150";
this._mediaHeight.value="150";
this._mediaAlign.selectedIndex=0;
this._mediaProperties.selectedIndex=0;
},_setToolbarEnabled:function(_12){
var _13=_12?"":"disabledtoolbarbutton";
this._propertiesButton.className=_13;
this._previewModeButton.className=_13;
},_switchPanes:function(_14,_15){
this._mediaPreviewPane.style.display=_14;
this._mediaPropertiesPane.style.display=_15;
},setItem:function(_16){
this._setInitialValues();
if(_16.type==Telerik.Web.UI.Widgets.FileItemType.Directory){
this._setToolbarEnabled(false);
this._currentItem=null;
this._mediaPreviewPane.style.display="none";
this._mediaPropertiesPane.style.display="none";
}else{
this._setToolbarEnabled(true);
this._currentItem=_16;
this._switchPanes("none","block");
}
},getResult:function(){
if(this._currentItem&&this._currentItem.type==Telerik.Web.UI.Widgets.FileItemType.File){
return this._createMediaElement();
}
return null;
},populateObjectProperties:function(_17){
if(_17.object){
if(_17.classid){
this._classIdCheckBox.click();
this._classIDText.value=_17.classid;
}
this._mediaWidth.value=(_17.width)?parseInt(_17.width).toString():"";
this._mediaHeight.value=(_17.height)?parseInt(_17.height).toString():"";
this._selectOptionByValue(this._mediaAlign,_17.align,false,0);
}
},_getProperties:function(){
if(!this._properties){
this._properties={"AllowChangeDisplaySize":new Array(this._localization.AllowChangeDisplaySize,null,"radio","boolean","true"),"AllowScan":new Array(this._localization.AllowScan,null,"radio","boolean","true"),"AnimationAtStart":new Array(this._localization.AnimationAtStart,null,"radio","boolean","true"),"AudioStream":new Array(this._localization.AudioStream,null,"text-regexp","^[0-9]*$",this._localization.ValidateNumber,""),"AutoRewind":new Array(this._localization.AutoRewind,null,"radio","boolean","true"),"AutoSize":new Array(this._localization.AutoSize,null,"radio","boolean",""),"AutoStart":new Array(this._localization.AutoStart,null,"radio","boolean","true"),"Balance":new Array(this._localization.Balance,null,"text-range","({text} >= -10000) && ({text} <= 10000)",this._localization.ValidateNumber10000,0),"CCActive":new Array(this._localization.CCActive,null,"radio","boolean","false"),"ClickToPlay":new Array(this._localization.ClickToPlay,null,"radio","boolean","true"),"ColorKey":new Array(this._localization.ColorKey,null,"text","",this._localization.ValidateNumberHex,""),"CurrentAngle":new Array(this._localization.CurrentAngle,null,"select-range",1,9,1),"CurrentAudioStream":new Array(this._localization.CurrentAudioStream,null,"text-range","((({text} >= 0) && ({text} <= 7)) || ({text} == '0xFFFFFFFF'))",this._localization.ValidateAudio,0),"CurrentCCService":new Array(this._localization.CurrentCCService,null,"select",new Array(0,1,2,3,4,5),new Array(this._localization.None,this._localization.DefaultCaption1,this._localization.Caption2,this._localization.Text1,this._localization.Text2,this._localization.ExtendedDataServices),0),"CurrentMarker":new Array(this._localization.CurrentMarker,null,"text-regexp","^[0-9]*$",this._localization.ValidateNumber,0),"CurrentPosition":new Array(this._localization.CurrentPosition,null,"text-regexp","^[0-9]*$",this._localization.ValidateNumber,""),"CurrentSubpictureStream":new Array(this._localization.CurrentSubpictureStream,null,"select-special",new Array(this._localization.Streamisvalid,"range",0,31),new Array(this._localization.Nosubpicturestream,"value",63),0),"CursorType":new Array(this._localization.CursorType,null,"select",new Array(32650,32512,32515,32513,32648,32646,32643,32645,32642,32644,32516,32514,1),new Array(this._localization.Arrowhourglass,this._localization.Standardarrow,this._localization.Crosshair,this._localization.TextIbeam,this._localization.SlashedCircle,this._localization.Fourpointedarrow,this._localization.DoublepointedNESW,this._localization.DoublepointedNS,this._localization.DoublepointedNWSE,this._localization.DoublepointedWE,this._localization.Verticalarrow,this._localization.Hourglass,this._localization.Handpointing),""),"DefaultFrame":new Array(this._localization.DefaultFrame,null,"text","","",""),"DisplayBackColor":new Array(this._localization.DisplayBackColor,null,"select-color",16777215),"DisplayForeColor":new Array(this._localization.DisplayForeColor,null,"select-color",16777215),"DisplayMode":new Array(this._localization.DisplayMode,null,"radio","integer",0),"DisplaySize":new Array(this._localization.DisplaySize,null,"select",new Array(0,1,2,3,4,5,6,7),new Array(this._localization.Samesize,this._localization.HalfSourceImage,this._localization.DoubleSourceImage,this._localization.EntireScreen,this._localization.DesignTime,this._localization.SixteenthScreen,this._localization.QuarterScreen,this._localization.HalfScreen),""),"EnableContextMenu":new Array(this._localization.EnableContextMenu,null,"radio","boolean","true"),"Enabled":new Array(this._localization.Enabled,null,"radio","boolean","true"),"EnableFullScreenControls":new Array(this._localization.EnableFullScreenControls,null,"radio","boolean","true"),"EnablePositionControls":new Array(this._localization.EnablePositionControls,null,"radio","boolean","true"),"EnableTracker":new Array(this._localization.EnableTracker,null,"radio","boolean","true"),"Hidden":new Array(this._localization.Hidden,null,"radio","boolean","false"),"InvokeURLs":new Array(this._localization.InvokeURLs,null,"radio","boolean","true"),"Language":new Array(this._localization.Language,null,"text-regexp","^[0-9]*$",this._localization.ValidateLCID,""),"Mute":new Array(this._localization.Mute,null,"radio","boolean","true"),"PlayCount":new Array(this._localization.PlayCount,null,"text-regexp","^[0-9]*$",this._localization.ValidateNumber,1),"PreviewMode":new Array(this._localization.PreviewMode,null,"radio","boolean","false"),"Rate":new Array(this._localization.Rate,null,"text-range","({text} >= -10) && ({text} <= 10)",this._localization.ValidateNumber10,1),"SelectionEnd":new Array(this._localization.SelectionEnd,null,"text-range","((({text} >= Number.MIN_VALUE) && ({text} <= Number.MAX_VALUE)) || ({text} == ''))",this._localization.ValidateNumber,""),"SelectionStart":new Array(this._localization.SelectionStart,null,"text-range","({text} >= Number.MIN_VALUE) && ({text} <= Number.MAX_VALUE)",this._localization.ValidateNumber,0),"SendErrorEvents":new Array(this._localization.SendErrorEvents,null,"radio","boolean","true"),"SendKeyboardEvents":new Array(this._localization.SendKeyboardEvents,null,"radio","boolean","false"),"SendMouseClickEvents":new Array(this._localization.SendMouseClickEvents,null,"radio","boolean","false"),"SendMouseMoveEvents":new Array(this._localization.SendMouseMoveEvents,null,"radio","boolean","false"),"SendOpenStateChangeEvents":new Array(this._localization.SendOpenStateChangeEvents,null,"radio","boolean","true"),"SendPlayStateChangeEvents":new Array(this._localization.SendPlayStateChangeEvents,null,"radio","boolean","true"),"SendWarningEvents":new Array(this._localization.SendWarningEvents,null,"radio","boolean","true"),"ShowAudioControls":new Array(this._localization.ShowAudioControls,null,"radio","boolean","true"),"ShowCaptioning":new Array(this._localization.ShowCaptioning,null,"radio","boolean","false"),"ShowControls":new Array(this._localization.ShowControls,null,"radio","boolean","true"),"ShowDisplay":new Array(this._localization.ShowDisplay,null,"radio","boolean","false"),"ShowGotoBar":new Array(this._localization.ShowGotoBar,null,"radio","boolean","false"),"ShowPositionControls":new Array(this._localization.ShowPositionControls,null,"radio","boolean","true"),"ShowStatusBar":new Array(this._localization.ShowStatusBar,null,"radio","boolean","false"),"ShowTracker":new Array(this._localization.ShowTracker,null,"radio","boolean","true"),"SubpictureOn":new Array(this._localization.SubpictureOn,null,"radio","boolean",""),"TransparentAtStart":new Array(this._localization.TransparentAtStart,null,"radio","boolean","false"),"VideoBorder3D":new Array(this._localization.VideoBorder3D,null,"radio","boolean","false"),"VideoBorderColor":new Array(this._localization.VideoBorderColor,null,"select-color",0),"VideoBorderWidth":new Array(this._localization.VideoBorderWidth,null,"text-regexp","^[0-9]*$",this._localization.ValidateNumber,0),"Volume":new Array(this._localization.Volume,null,"text-range","({text} >= -10000) && ({text} <= 10000)",this._localization.ValidateNumber10000,-600)};
}
return this._properties;
},_createText:function(_18){
var _19=document.createElement("INPUT");
this._propertyElementsWithHandlers.push(_19);
$addHandlers(_19,{"keydown":this._changeTextHandler,"blur":this._validateTextHandler},this);
_19.id="textProperty";
_19.type="text";
_19.value=_18;
_19.className="flatTextBox";
return _19;
},_changeTextHandler:function(e){
var _1b=this;
var _1c=e.target;
window.setTimeout(function(){
_1b._changeValue(_1c);
},100);
return true;
},_validateTextHandler:function(e){
var _1e=e.target;
var _1f=this._getProperties()[this._mediaProperties.value];
var _20=_1f[3];
var _21=(_1f[2]=="text-regexp")?true:false;
try{
if(_21){
var re=new RegExp(_20,"gi");
if(re.test(_1e.value)){
return true;
}
}else{
if(_20==""){
return true;
}else{
if(eval(_20.replace(/\{text\}/gi,_1e.value))){
return true;
}
}
}
}
catch(e){
}
alert(this._localization.AlertValue);
_1e.focus();
return false;
},_createRadio:function(id,_24,_25){
var _26;
if(document.all){
_26=document.createElement("<INPUT NAME='booleanGroup'"+((_24==_25.toString())?" CHECKED":"")+">");
}else{
_26=document.createElement("INPUT");
_26.name="booleanGroup";
if(_24==_25.toString()){
_26.setAttribute("checked",true);
}
}
this._propertyElementsWithHandlers.push(_26);
$addHandlers(_26,{"click":this._changeValueHandler},this);
_26.type="radio";
_26.id=id;
_26.value=_24;
return _26;
},_createLabel:function(_27,_28){
var _29=document.createElement("LABEL");
_29.htmlFor=_27;
_29.innerHTML=_28;
return _29;
},_convertColor:function(_2a){
_2a=parseInt(_2a);
_2a=_2a.toString(16);
if(_2a.length<6){
var _2b="000000".substring(0,(6-_2a.length));
_2a="#"+_2b.concat(_2a).toUpperCase();
}else{
_2a="#"+_2a.toUpperCase();
}
return _2a;
},_selectOption:function(_2c,_2d){
var _2e=false;
if((_2d!=null)&&(_2d.toString()!="")){
var _2f=_2c.getElementsByTagName("OPTION");
for(var i=0;i<_2f.length;i++){
if(_2f[i].value.toString().toUpperCase()==_2d.toString().toUpperCase()){
try{
_2f[i].selected=true;
}
catch(exc){
}
_2e=true;
break;
}
}
}else{
_2c.selectedIndex=0;
}
return _2e;
},_changeValueHandler:function(e){
this._changeValue(e.target);
},_changeColorHandler:function(e){
var _33=e.target;
if(_33.value==""){
}
this._changeValue(e.target);
},_changeValue:function(_34){
var _35=this._getProperties()[this._mediaProperties.value];
_35[1]=_34.value;
},_changeProperty:function(_36){
var _37=this._getProperties()[_36];
if(_36!=""){
this._propertyValueDescription.innerHTML=this._localization.Description+_37[0];
switch(_37[2]){
case "radio":
var _38=((_37[1]==null)?_37[4]:_37[1]);
switch(_37[3]){
case "boolean":
var _39=new Array("true","false");
var _3a=new Array(this._localization.Yes,this._localization.No);
break;
case "integer":
var _39=new Array(0,1);
var _3a=new Array(this._localization.Yes,this._localization.No);
break;
}
for(var i=0;i<_39.length;i++){
var div=document.createElement("DIV");
div.appendChild(this._createRadio("booleanGroup"+i,_39[i],_38));
div.appendChild(this._createLabel("booleanGroup"+i,_3a[i]));
this._propertyValuePane.appendChild(div);
}
break;
case "select":
var _38=(_37[1]==null)?_37[5]:_37[1];
var _3d=document.createElement("SELECT");
this._propertyElementsWithHandlers.push(_3d);
$addHandlers(_3d,{"change":this._changeValueHandler},this);
var _39=_37[3];
var _3a=_37[4];
for(var i=0;i<_39.length;i++){
var _3e=document.createElement("OPTION");
_3e.innerHTML=_3a[i];
_3e.value=_39[i];
_3d.appendChild(_3e);
}
this._selectOption(_3d,_38);
this._propertyValuePane.appendChild(_3d);
break;
case "select-range":
var _38=((_37[1]==null)?_37[5]:_37[1]);
var _3d=document.createElement("SELECT");
this._propertyElementsWithHandlers.push(_3d);
$addHandlers(_3d,{"change":this._changeValueHandler},this);
for(var i=_37[3];i<=_37[4];i++){
var _3e=document.createElement("OPTION");
_3e.innerHTML=i;
_3e.value=i;
_3d.appendChild(_3e);
}
this._selectOption(_3d,_38);
this._propertyValuePane.appendChild(_3d);
break;
case "select-special":
var _38=(_37[1]==null)?_37[5]:_37[1];
var _3d=document.createElement("SELECT");
this._propertyElementsWithHandlers.push(_3d);
$addHandlers(_3d,{"change":this._changeValueHandler},this);
for(var i=3;i<(_37.length-1);i++){
var _3f=document.createElement("OPTGROUP");
_3f.label=_37[i][0];
_3d.appendChild(_3f);
switch(_37[i][1]){
case "range":
for(var j=_37[i][2];j<=_37[i][3];j++){
var _3e=document.createElement("OPTION");
_3e.innerHTML=j;
_3e.value=j;
_3f.appendChild(_3e);
}
break;
case "value":
var _3e=document.createElement("OPTION");
_3e.innerHTML=_37[i][2];
_3e.value=_37[i][2];
_3f.appendChild(_3e);
break;
}
}
this._selectOption(_3d,_38);
this._propertyValuePane.appendChild(_3d);
break;
case "select-color":
var _38=((_37[1]==null)?_37[3]:_37[1]);
var _3d=document.createElement("SELECT");
this._propertyElementsWithHandlers.push(_3d);
$addHandlers(_3d,{"change":this._changeColorHandler},this);
_3d.style.width="140px";
var _39=new Array("000000","0000FF","008000","FFA500","FF0000","FFFFFF","FFFF00");
var _3a=new Array(this._localization.Black,this._localization.Blue,this._localization.Green,this._localization.Orange,this._localization.Red,this._localization.White,this._localization.Yellow);
var _41=new Array();
for(var i=0;i<_39.length;i++){
var _3e=document.createElement("OPTION");
if(_39[i]==""){
_3e.value="";
}else{
_3e.value=eval("0x"+_39[i]);
_3e.style.backgroundColor="#"+_39[i];
}
_3e.innerHTML=_3a[i];
_3d.appendChild(_3e);
_41[_41.length]=_3e;
}
this._propertyValuePane.appendChild(_3d);
if(!this._selectOption(_3d,parseInt(_38))){
_3e=document.createElement("OPTION");
color=this._convertColor(_38);
_3e.innerHTML=this._localization.Customh+color;
_3e.value=_38;
_3e.style.backgroundColor=color;
_3d.insertBefore(_3e,_41[6]);
_3d.selectedIndex=6;
}
break;
case "text":
var _38=((_37[1]==null)?_37[5]:_37[1]);
var _42=this._createText(_38);
this._propertyValuePane.appendChild(_42);
if(_37[4]!=""){
this._propertyValueDescription.innerHTML+=this._localization.Note+_37[4];
}
break;
case "text-regexp":
var _38=((_37[1]==null)?_37[5]:_37[1]);
var _42=this._createText(_38);
this._propertyValuePane.appendChild(_42);
this._propertyValueDescription.innerHTML+=this._localization.Note+_37[4];
break;
case "text-range":
var _38=((_37[1]==null)?_37[5]:_37[1]);
var _42=this._createText(_38);
this._propertyValuePane.appendChild(_42);
this._propertyValueDescription.innerHTML+=this._localization.Note+_37[4];
break;
}
this._propertyValuePane.style.display="block";
}else{
this._propertyValueDescription.innerHTML=this._localization.NA;
}
},_clearPropertyElementsHandlers:function(){
var _43=this._propertyElementsWithHandlers.pop();
while(_43){
$clearHandlers(_43);
_43=this._propertyElementsWithHandlers.pop();
}
},dispose:function(){
this._setInitialValues();
$clearHandlers(this._propertiesButton);
$clearHandlers(this._previewModeButton);
$clearHandlers(this._classIdCheckBox);
$clearHandlers(this._mediaProperties);
Telerik.Web.UI.Widgets.MediaPreviewer.callBaseMethod(this,"dispose");
}};
$telerik.makeCompatible(Telerik.Web.UI.Widgets.MediaPreviewer);
Telerik.Web.UI.Widgets.MediaPreviewer.registerClass("Telerik.Web.UI.Widgets.MediaPreviewer",Telerik.Web.UI.Widgets.FilePreviewer);;Type.registerNamespace("Telerik.Web.UI.Editor.DialogControls");
Telerik.Web.UI.Editor.DialogControls.MozillaPasteHelper=function(_1){
Telerik.Web.UI.Editor.DialogControls.MozillaPasteHelper.initializeBase(this,[_1]);
this._holder=null;
this._document=null;
this._container=null;
this._confirmButton=null;
this._cancelButton=null;
};
Telerik.Web.UI.Editor.DialogControls.MozillaPasteHelper.prototype={initialize:function(){
Telerik.Web.UI.Editor.DialogControls.MozillaPasteHelper.callBaseMethod(this,"initialize");
this._initChildren();
},_initChildren:function(){
this._holder=this._getChildElement("holder");
if(this._holder.tagName.toLowerCase()=="iframe"){
this._document=this._holder.contentWindow.document;
this._document.write("<html><head></head><body></body></html>");
this._document.close();
this._document.designMode="on";
}
this._setupBody=Function.createDelegate(this,this._setupBody);
window.setTimeout(this._setupBody,0);
this._confirmButton=this._getChildElement("confirm");
this._cancelButton=this._getChildElement("cancel");
$addHandlers(this._confirmButton,{"click":this._confirmButtonClickHandler},this);
$addHandlers(this._cancelButton,{"click":this._cancelButtonClickHandler},this);
},_setupBody:function(){
if(this._holder.tagName.toLowerCase()=="iframe"){
this._container=this._document.body;
this._container.style.margin="0px";
this._container.style.padding="0px";
}else{
this._container=this._holder;
}
},_confirmButtonClickHandler:function(e){
var _3=new Sys.EventArgs();
_3._content=this._container.tagName.toLowerCase()=="textarea"?this._container.value:this._container.innerHTML;
_3.get_content=function(){
return this._content;
};
Telerik.Web.UI.Dialogs.CommonDialogScript.get_windowReference().close(_3);
},_cancelButtonClickHandler:function(e){
Telerik.Web.UI.Dialogs.CommonDialogScript.get_windowReference().close();
},dispose:function(){
$clearHandlers(this._confirmButton);
$clearHandlers(this._cancelButton);
this._container=null;
this._document=null;
this._pasteContainer=null;
this._confirmButton=null;
this._cancelButton=null;
Telerik.Web.UI.Editor.DialogControls.MozillaPasteHelper.callBaseMethod(this,"dispose");
}};
Telerik.Web.UI.Editor.DialogControls.MozillaPasteHelper.registerClass("Telerik.Web.UI.Editor.DialogControls.MozillaPasteHelper",Telerik.Web.UI.RadWebControl);;Type.registerNamespace("Telerik.Web.UI.Widgets");
Telerik.Web.UI.Widgets.PageProperties=function(_1){
Telerik.Web.UI.Widgets.PageProperties.initializeBase(this,[_1]);
this._clientParameters=null;
this._editorRef=null;
this._editorDocument=null;
this._editorHead=null;
this._editorBase=null;
this._pageTitle=null;
this._baseLocation=null;
this._pageDescription=null;
this._pageKeywords=null;
this._pageBodyClassName=null;
this._colorPicker=null;
this._imageCaller=null;
this._pageMarginTop=null;
this._pageMarginBottom=null;
this._pageMarginLeft=null;
this._pageMarginRight=null;
this._confirmButton=null;
this._cancelButton=null;
this._oMetaNames={description:null,keywords:null};
};
Telerik.Web.UI.Widgets.PageProperties.prototype={initialize:function(){
Telerik.Web.UI.Widgets.PageProperties.callBaseMethod(this,"initialize");
this._initializeChildren();
},_initializeChildren:function(){
this._pageTitle=$get("PageTitle");
this._baseLocation=$get("BaseLocation");
this._pageDescription=$get("PageDescription");
this._pageKeywords=$get("PageKeywords");
this._pageBodyClassName=$find("PageBodyClassName");
this._pageMarginTop=$get("PageMarginTop");
this._pageMarginBottom=$get("PageMarginBottom");
this._pageMarginLeft=$get("PageMarginLeft");
this._pageMarginRight=$get("PageMarginRight");
this._confirmButton=$get("confirm");
this._cancelButton=$get("cancel");
this._pageBodyClassName.add_valueSelected(this._cssValueSelected);
$addHandlers(this._confirmButton,{"click":this._confirmButtonClickHandler},this);
$addHandlers(this._cancelButton,{"click":this._cancelButtonClickHandler},this);
},_confirmButtonClickHandler:function(e){
this._updateEditorDocument();
var _3=new Sys.EventArgs();
Telerik.Web.UI.Dialogs.CommonDialogScript.get_windowReference().close(_3);
},_cancelButtonClickHandler:function(e){
Telerik.Web.UI.Dialogs.CommonDialogScript.get_windowReference().close();
},_cssValueSelected:function(_5,_6){
if(!_5){
return;
}
var _7=_5.get_name();
if("ApplyClass"==_7){
var _8=_5.get_selectedItem();
_5.updateValue(_8);
}
},clientInit:function(_9){
this._clientParameters=_9;
this._editorRef=this._clientParameters.Editor;
this._cssClasses=_9.CssClasses;
this._editorDocument=this._editorRef.get_document();
this._editorHead=this._editorDocument.getElementsByTagName("HEAD")[0];
this._colorPicker=$find("ColorPicker");
this._colorPicker.set_items(this._clientParameters.Colors);
this._imageCaller=$find("ImageCaller");
this._imageCaller.set_editor(this._editorRef);
this._loadData();
},_getMetaTag:function(_a){
var _b=this._editorDocument.getElementsByTagName("META");
_a=_a.toLowerCase();
var _c=null;
for(var i=0;i<_b.length;i++){
var _e=_b[i];
var _f=(""+_e.getAttribute("name")).toLowerCase();
if(_a==_f){
_c=_e;
}
}
return _c;
},_getAttribute:function(_10,_11){
if(!_10||!_11){
return "";
}
return _10.getAttribute(_11);
},_loadData:function(){
if(this._editorDocument){
this._pageTitle.value=this._editorDocument.title;
this._pageDescription.value="";
this._pageKeywords.value="";
var _12=this._getMetaTag("Description");
if(_12){
this._oMetaNames["Description"]=_12.getAttribute("content");
this._pageDescription.value=this._oMetaNames["Description"];
}
_12=this._getMetaTag("Keywords");
if(_12){
this._oMetaNames["Keywords"]=_12.getAttribute("content");
this._pageKeywords.value=this._oMetaNames["Keywords"];
}
var _13=this._editorDocument.body.className;
this._pageBodyClassName.set_items(this._cssClasses);
if(_13!=null&&_13!=""){
this._pageBodyClassName.updateValue(_13);
}
var _14=this._editorDocument.body.getAttribute("background");
if(!_14){
_14="";
}
this._imageCaller.set_value(_14);
var _15=this._editorDocument.getElementsByTagName("BASE");
if(_15.length>0){
this._editorBase=_15[0];
this._baseLocation.value=this._editorBase.getAttribute("href");
}
this._pageMarginTop.value=this._getAttribute(this._editorDocument.body,"topMargin");
this._pageMarginBottom.value=this._getAttribute(this._editorDocument.body,"bottomMargin");
this._pageMarginLeft.value=this._getAttribute(this._editorDocument.body,"leftMargin");
this._pageMarginRight.value=this._getAttribute(this._editorDocument.body,"rightMargin");
var _16=this._editorDocument.body.bgColor;
this._colorPicker.set_color(_16);
}
},_updateEditorMetaTag:function(_17,_18){
var _19=null;
if(!this._oMetaNames[_17]&&_18){
if(document.all){
_19=this._editorHead.appendChild(this._editorDocument.createElement("<META NAME='"+_17+"'></META>"));
}else{
_19=this._editorHead.appendChild(this._editorDocument.createElement("META"));
_19.setAttribute("name",_17);
}
}else{
_19=this._getMetaTag(_17);
}
if(_19){
_19.setAttribute("content",_18);
}
},_updateEditorDocument:function(){
this._editorDocument.title=this._pageTitle.value;
if(!document.all){
var _1a=this._editorDocument.getElementsByTagName("HEAD")[0];
var _1b=_1a.getElementsByTagName("title")[0];
if(!_1b){
var _1b=this._editorDocument.createElement("title");
_1a.appendChild(_1b);
}
if(_1b.firstChild){
_1b.removeChild(_1b.firstChild);
}
_1b.appendChild(this._editorDocument.createTextNode(this._pageTitle.value));
}
this._updateEditorMetaTag("Description",this._pageDescription.value);
this._updateEditorMetaTag("Keywords",this._pageKeywords.value);
this._setClass(this._editorDocument.body,this._pageBodyClassName);
var _1c=this._baseLocation.value;
if(!this._editorBase&&_1c){
this._editorBase=this._editorHead.appendChild(this._editorDocument.createElement("BASE"));
}
this._setAttribute(this._editorBase,"href",_1c);
this._editorDocument.body.bgColor=this._colorPicker.get_color();
this._setAttribute(this._editorDocument.body,"background",this._imageCaller.get_value());
this._setAttribute(this._editorDocument.body,"topMargin",this._pageMarginTop.value);
this._setAttribute(this._editorDocument.body,"bottomMargin",this._pageMarginBottom.value);
this._setAttribute(this._editorDocument.body,"leftMargin",this._pageMarginLeft.value);
this._setAttribute(this._editorDocument.body,"rightMargin",this._pageMarginRight.value);
if(this._editorRef){
this._editorRef.set_fullPage(true);
}
},_setClass:function(_1d,_1e){
if(_1e.get_value()==""){
_1d.removeAttribute("className");
}else{
_1d.className=_1e.get_value();
}
},_setAttribute:function(_1f,_20,_21){
if(!_1f||!_20){
return;
}
if(_21){
_1f.setAttribute(_20,_21);
}else{
_1f.removeAttribute(_20);
}
},dispose:function(){
$clearHandlers(this._confirmButton);
$clearHandlers(this._cancelButton);
this._clientParameters=null;
this._editorRef=null;
this._editorDocument=null;
this._editorHead=null;
this._editorBase=null;
this._pageTitle=null;
this._baseLocation=null;
this._pageDescription=null;
this._pageKeywords=null;
this._pageBodyClassName=null;
this._colorPicker=null;
this._imageCaller=null;
this._pageMarginTop=null;
this._pageMarginBottom=null;
this._pageMarginLeft=null;
this._pageMarginRight=null;
this._confirmButton=null;
this._cancelButton=null;
Telerik.Web.UI.Widgets.PageProperties.callBaseMethod(this,"dispose");
}};
Telerik.Web.UI.Widgets.PageProperties.registerClass("Telerik.Web.UI.Widgets.PageProperties",Telerik.Web.UI.RadWebControl,Telerik.Web.IParameterConsumer);;Type.registerNamespace("Telerik.Web.UI.Widgets");
Telerik.Web.UI.Widgets.SimpleTabStrip=function(_1){
Telerik.Web.UI.Widgets.SimpleTabStrip.initializeBase(this,[_1]);
this._links=[];
this._tabs=[];
this._disabledTabs=[];
this._containers=[];
this._clickHandler=null;
this._selectedIndex=-1;
};
Telerik.Web.UI.Widgets.SimpleTabStrip.prototype={initialize:function(){
Telerik.Web.UI.Widgets.SimpleTabStrip.callBaseMethod(this,"initialize");
this._initializeTabs();
},_initializeTabs:function(){
var _2=$get(this.get_id());
var _3=_2.getElementsByTagName("A");
if(!this._clickHandler){
var _4=this;
var _5=function(e){
if(!this||!_4){
return;
}
var _7=this.getAttribute("rel");
for(var i=0;i<_4._containers.length;i++){
if(_4._containers[i]==_7){
_4.selectTab(i);
break;
}
}
};
this._clickHandler=_5;
}
for(var i=0;i<_3.length;i++){
var _a=_3[i];
var _b=_a.getAttribute("rel");
if(_b){
Array.add(this._links,_a);
Array.add(this._tabs,_a.parentNode);
Array.add(this._containers,_b);
Array.add(this._disabledTabs,false);
var _c=new RegExp("(^|\\s)selectedtab(\\s|$)");
if(_a.parentNode.className&&_c.test(_a.parentNode.className)&&this._selectedIndex==-1){
this._selectedIndex=i;
}else{
var _d=_2.ownerDocument.getElementById(_b);
if(_d){
_d.style.display="none";
}
}
$addHandler(_a,"click",this._clickHandler);
}
}
},disableTab:function(_e){
this._disabledTabs[_e]=true;
},enableTab:function(_f){
this._disabledTabs[_f]=false;
},selectTab:function(_10){
if(this._disabledTabs[_10]){
return;
}
var _11=this._tabs[this._selectedIndex];
var _12=this._containers[this._selectedIndex];
_11.className=_11.className.replace(/(^|\s)selectedtab(\s|$)/,"$1$2");
_11.ownerDocument.getElementById(_12).style.display="none";
this._tabs[_10].className=this._tabs[_10].className+"selectedtab";
this._tabs[_10].ownerDocument.getElementById(this._containers[_10]).style.display="";
this._selectedIndex=_10;
this.raiseEvent("tabChanged");
},get_selectedIndex:function(){
return this._selectedIndex;
},add_tabChanged:function(_13){
this.get_events().addHandler("tabChanged",_13);
},remove_tabChanged:function(_14){
this.get_events().removeHandler("tabChanged",_14);
},dispose:function(){
if(this._clickHandler){
for(var i=0;i<this._links.length;i++){
$removeHandler(this._links[i],"click",this._clickHandler);
}
this._clickHandler=null;
}
Array.clear(this._links);
Array.clear(this._tabs);
Array.clear(this._containers);
Array.clear(this._disabledTabs);
Telerik.Web.UI.Widgets.SimpleTabStrip.callBaseMethod(this,"dispose");
}};
Telerik.Web.UI.Widgets.SimpleTabStrip.registerClass("Telerik.Web.UI.Widgets.SimpleTabStrip",Telerik.Web.UI.RadWebControl);;Type.registerNamespace("Telerik.Web.UI.Widgets");
Telerik.Web.UI.Widgets.SpinBox=function(_1){
Telerik.Web.UI.Widgets.SpinBox.initializeBase(this,[_1]);
this._textInput=null;
this._increaseButton=null;
this._decreaseButton=null;
this._maxValue=10;
this._minValue=-10;
};
Telerik.Web.UI.Widgets.SpinBox.prototype={initialize:function(){
Telerik.Web.UI.Widgets.SpinBox.callBaseMethod(this,"initialize");
this._initializeChildren();
},_initializeChildren:function(){
this._textInput=this._getChildElement("TextInput");
this._increaseButton=this._getChildElement("Increase");
this._decreaseButton=this._getChildElement("Decrease");
$addHandlers(this._increaseButton,{"click":this._increaseButtonClickHandler},this);
$addHandlers(this._decreaseButton,{"click":this._decreaseButtonClickHandler},this);
},_increaseButtonClickHandler:function(){
var _2=new Sys.CancelEventArgs();
this.raise_valueIncrease(_2);
if(!_2.get_cancel()){
this._addValue(1);
}
},_decreaseButtonClickHandler:function(){
var _3=new Sys.CancelEventArgs();
this.raise_valueDecrease(_3);
if(!_3.get_cancel()){
this._addValue(-1);
}
},_addValue:function(_4){
var _5=this._getIntValue()+_4;
if(_5>this._maxValue||_5<this._minValue){
return;
}
this.set_value(_5);
},_setButtonsEnabledState:function(){
this._increaseButton.className=this._getIntValue()==this._maxValue?"disabled-button":"";
this._decreaseButton.className=this._getIntValue()==this._minValue?"disabled-button":"";
},_getIntValue:function(){
return this.get_value()?this.get_value():0;
},raise_valueIncrease:function(_6){
this.raiseEvent("valueIncrease",_6);
},add_valueIncrease:function(_7){
this.get_events().addHandler("valueIncrease",_7);
},remove_valueIncrease:function(_8){
this.get_events().removeHandler("valueIncrease",_8);
},raise_valueDecrease:function(_9){
this.raiseEvent("valueDecrease",_9);
},add_valueDecrease:function(_a){
this.get_events().addHandler("valueDecrease",_a);
},remove_valueDecrease:function(_b){
this.get_events().removeHandler("valueDecrease",_b);
},get_value:function(){
return parseInt(this._textInput.value);
},set_value:function(_c){
if(_c>this._maxValue||_c<this.minValue){
throw Error.invalidOperation("value cannot be smaller than minValue and bigger than maxValue!");
return;
}
this._textInput.value=_c;
this._setButtonsEnabledState();
},get_minValue:function(){
return this._minValue;
},set_minValue:function(_d){
this._minValue=_d;
this._setButtonsEnabledState();
},get_maxValue:function(){
return this._maxValue;
},set_maxValue:function(_e){
this._maxValue=_e;
this._setButtonsEnabledState();
},dispose:function(){
$clearHandlers(this._increaseButton);
$clearHandlers(this._decreaseButton);
Telerik.Web.UI.Widgets.SpinBox.callBaseMethod(this,"dispose");
}};
Telerik.Web.UI.Widgets.SpinBox.registerClass("Telerik.Web.UI.Widgets.SpinBox",Telerik.Web.UI.RadWebControl);;Type.registerNamespace("Telerik.Web.UI.Widgets");
Telerik.Web.UI.Widgets.TableBorder=function(_1){
Telerik.Web.UI.Widgets.TableBorder.initializeBase(this,[_1]);
this._clientParameters=null;
this._colorPickerTableBorder=null;
this._spinBoxTableBorder=null;
this._previewTable=null;
this._table=null;
this._allFourSides=null;
this._allRowsAndColomns=null;
this._noBorders=null;
this._noInteriorBorders=null;
this._leftSide=null;
this._betweenColumns=null;
this._rightSide=null;
this._leftAndRightSide=null;
this._topAndBottomSide=null;
this._topSide=null;
this._betweenRows=null;
this._bottomSide=null;
};
var TABLE_BORDER_CONTROL=null;
Telerik.Web.UI.Widgets.TableBorder.prototype={initialize:function(){
Telerik.Web.UI.Widgets.TableBorder.callBaseMethod(this,"initialize");
this._initializeChildren();
this._initializeChildEvents();
},_initializeChildren:function(){
this._spinBoxTableBorder=$find("SpinBoxTableBorder");
this._spinBoxTableBorder.add_valueSelected(this._changeBorderWidth);
this._previewTable=$get("previewTable");
this._allFourSides=$get("AllFourSides");
this._allRowsAndColomns=$get("AllRowsAndColomns");
this._noBorders=$get("NoBorders");
this._noInteriorBorders=$get("NoInteriorBorders");
this._leftSide=$get("LeftSide");
this._betweenColumns=$get("BetweenColumns");
this._rightSide=$get("RightSide");
this._leftAndRightSide=$get("LeftAndRightSide");
this._topAndBottomSide=$get("TopAndBottomSide");
this._topSide=$get("TopSide");
this._betweenRows=$get("BetweenRows");
this._bottomSide=$get("BottomSide");
TABLE_BORDER_CONTROL=this;
},_initializeChildEvents:function(){
$addHandlers(this._allFourSides,{"click":this._allFourSidesHandler},this);
$addHandlers(this._allRowsAndColomns,{"click":this._allRowsAndColomnsHandler},this);
$addHandlers(this._noBorders,{"click":this._noBordersHandler},this);
$addHandlers(this._noInteriorBorders,{"click":this._noInteriorBordersHandler},this);
$addHandlers(this._leftSide,{"click":this._leftSideHandler},this);
$addHandlers(this._betweenColumns,{"click":this._betweenColumnsHandler},this);
$addHandlers(this._rightSide,{"click":this._rightSideHandler},this);
$addHandlers(this._leftAndRightSide,{"click":this._leftAndRightSideHandler},this);
$addHandlers(this._topAndBottomSide,{"click":this._topAndBottomSideHandler},this);
$addHandlers(this._topSide,{"click":this._topSideHandler},this);
$addHandlers(this._betweenRows,{"click":this._betweenRowsHandler},this);
$addHandlers(this._bottomSide,{"click":this._bottomSideHandler},this);
},clientInit:function(_2){
this._clientParameters=_2;
this._colorPickerTableBorder=$find("ColorPickerTableBorder");
this._colorPickerTableBorder.set_items(this._clientParameters.Colors);
this._colorPickerTableBorder.add_valueSelected(this._changeBorderColor);
if(!this._table){
this._table=this._clientParameters.tableToModify;
}
this._loadData();
},_allFourSidesHandler:function(e){
this._setFrame("border");
},_allRowsAndColomnsHandler:function(e){
this._setRules("all");
},_noBordersHandler:function(e){
this._setFrame("void");
},_noInteriorBordersHandler:function(e){
this._setRules("none");
},_leftSideHandler:function(e){
this._setFrame("lhs");
},_betweenColumnsHandler:function(e){
this._setRules("cols");
},_rightSideHandler:function(e){
this._setFrame("rhs");
},_leftAndRightSideHandler:function(e){
this._setFrame("vsides");
},_topAndBottomSideHandler:function(e){
this._setFrame("hsides");
},_topSideHandler:function(e){
this._setFrame("above");
},_betweenRowsHandler:function(e){
this._setRules("rows");
},_bottomSideHandler:function(e){
this._setFrame("below");
},_changeBorderWidth:function(_f){
TABLE_BORDER_CONTROL._setBorderSize(_f.get_value());
},_changeBorderColor:function(_10){
TABLE_BORDER_CONTROL._setBorderColor(_10.get_color());
},_loadData:function(){
if(this._table){
var _11=parseInt(this._table.border);
if(isNaN(_11)){
this._previewTable.removeAttribute("border");
this._previewTable.className="tblBorderTestTable";
}else{
this._previewTable.border=_11;
this._previewTable.className="tblBorderTestTableWithBorder";
}
}
this._previewTable.rules=this._table?this._table.rules:"all";
this._previewTable.frame=this._table?this._table.frame:"border";
var _12=(this._table?this._table.getAttribute("borderColor"):"");
if(!_12){
_12="";
}
this._previewTable.setAttribute("borderColor",_12);
this._spinBoxTableBorder.set_value(this._previewTable.border);
this._colorPickerTableBorder.set_color(this._previewTable.getAttribute("borderColor"));
},_updateTarget:function(){
if(null!=this._table&&null!=this._previewTable){
var _13=this._getFrame();
if(_13){
this._table.frame=_13;
}else{
this._table.removeAttribute("frame");
}
var _14=this._getRules();
if(_14){
this._table.rules=_14;
}else{
this._table.removeAttribute("rules");
}
if(this._previewTable.border!=""){
this._table.border=this._previewTable.border;
}else{
this._table.removeAttribute("border");
}
var _15=this._previewTable.getAttribute("borderColor");
if(!_15){
_15="";
}
this._table.setAttribute("borderColor",_15);
return this._table;
}
return null;
},_setBorderSize:function(_16){
if(null!=this._previewTable){
if(_16<0){
this._previewTable.removeAttribute("border");
}else{
if(_16>1000){
_16=1000;
}
this._previewTable.border=_16;
}
this._previewTable.className=(this._previewTable.border>0)?"tblBorderTestTableWithBorder":"tblBorderTestTable";
}
},_setBorderColor:function(_17){
if(null!=this._previewTable){
if(""!=_17&&(!this._previewTable.border||0==parseInt(this._previewTable.border))){
this._spinBoxTableBorder.set_value("1");
this._changeBorderWidth(this._spinBoxTableBorder);
}
this._previewTable.setAttribute("borderColor",_17);
}
},_getFrame:function(){
if(null!=this._previewTable&&"border"!=this._previewTable.frame&&"box"!=this._previewTable.frame){
return this._previewTable.frame;
}else{
return "";
}
},_getRules:function(){
if(null!=this._previewTable&&"all"!=this._previewTable.rules){
return this._previewTable.rules;
}else{
return "";
}
},_getBorderSize:function(){
if(null!=this._previewTable){
return this._previewTable.border;
}else{
return 0;
}
},_setFrame:function(_18){
if(null!=this._previewTable){
if("void"!=_18&&""!=_18&&0==parseInt(this._previewTable.border)){
this._spinBoxTableBorder.set_value("1");
this._changeBorderWidth(this._spinBoxTableBorder);
}
this._previewTable.frame=_18;
}
},_setRules:function(_19){
if(null!=this._previewTable){
if("none"!=_19&&""!=_19&&0==parseInt(this._previewTable.border)){
this._spinBoxTableBorder.set_value("1");
this._changeBorderWidth(this._spinBoxTableBorder);
}
this._previewTable.rules=_19;
}
},set_tableToModify:function(_1a){
this._table=_1a;
},_disposeChildEvents:function(){
$clearHandlers(this._allFourSides);
$clearHandlers(this._allRowsAndColomns);
$clearHandlers(this._noBorders);
$clearHandlers(this._noInteriorBorders);
$clearHandlers(this._leftSide);
$clearHandlers(this._betweenColumns);
$clearHandlers(this._rightSide);
$clearHandlers(this._leftAndRightSide);
$clearHandlers(this._topAndBottomSide);
$clearHandlers(this._topSide);
$clearHandlers(this._betweenRows);
$clearHandlers(this._bottomSide);
},dispose:function(){
this._disposeChildEvents();
this._clientParameters=null;
this._colorPickerTableBorder=null;
this._spinBoxTableBorder=null;
this._previewTable=null;
this._table=null;
this._allFourSides=null;
this._allRowsAndColomns=null;
this._noBorders=null;
this._noInteriorBorders=null;
this._leftSide=null;
this._betweenColumns=null;
this._rightSide=null;
this._leftAndRightSide=null;
this._topAndBottomSide=null;
this._topSide=null;
this._betweenRows=null;
this._bottomSide=null;
TABLE_BORDER_CONTROL=null;
Telerik.Web.UI.Widgets.TableBorder.callBaseMethod(this,"dispose");
}};
Telerik.Web.UI.Widgets.TableBorder.registerClass("Telerik.Web.UI.Widgets.TableBorder",Telerik.Web.UI.RadWebControl,Telerik.Web.IParameterConsumer);;Type.registerNamespace("Telerik.Web.UI.Widgets");
Telerik.Web.UI.Widgets.TableDesign=function(_1){
Telerik.Web.UI.Widgets.TableDesign.initializeBase(this,[_1]);
this._clientParameters=null;
this._currentRowSpan=1;
this._currentColSpan=1;
this._spinBoxColumns=null;
this._spinBoxColumnSpan=null;
this._spinBoxRows=null;
this._spinBoxRowSpan=null;
this._selectedCell=null;
this._selectedCellIndex=-1;
this._victimColumns=new Array();
this._victimRows=new Array();
this._rowsCount=0;
this._tableToModify=null;
this._tablePreviewControl=null;
this._tableWizardDialog=null;
};
var TABLE_DESIGN_CONTROL=null;
Telerik.Web.UI.Widgets.TableDesign.prototype={initialize:function(){
Telerik.Web.UI.Widgets.TableDesign.callBaseMethod(this,"initialize");
TABLE_DESIGN_CONTROL=this;
this._initializeChildren();
},_initializeChildren:function(){
this._spinBoxColumns=$find("SpinBoxColumns");
this._spinBoxColumns.set_visibleInput(false);
this._spinBoxColumns.set_width("");
this._spinBoxColumns.add_valueSelected(this._changeColumns);
this._spinBoxColumnSpan=$find("SpinBoxColumnSpan");
this._spinBoxColumnSpan.set_visibleInput(false);
this._spinBoxColumnSpan.set_width("");
this._spinBoxColumnSpan.add_valueSelected(this._changeColumnSpan);
this._spinBoxRows=$find("SpinBoxRows");
this._spinBoxRows.set_visibleInput(false);
this._spinBoxRows.set_width("");
this._spinBoxRows.add_valueSelected(this._changeRows);
this._spinBoxRowSpan=$find("SpinBoxRowSpan");
this._spinBoxRowSpan.set_visibleInput(false);
this._spinBoxRowSpan.set_width("");
this._spinBoxRowSpan.add_valueSelected(this._changeRowSpan);
this._tablePreviewControl=new Telerik.Web.UI.Widgets.TablePreview();
this._tablePreviewControl.set_previewHolder($get("TableDesign_PreviewTableHolder"));
var _2=this;
this._tablePreviewControl._onSelectedCellChanged=function anon(){
_2._onSelectedCellChanged();
};
},clientInit:function(_3){
this._clientParameters=_3;
this._tableToModify=this._clientParameters.originalTable;
this._loadData();
},_changeColumns:function(_4,_5){
var _6=_5.get_oldValue();
var _7=_5.get_newValue();
var _8=_7-_6;
if(_8==1){
TABLE_DESIGN_CONTROL._addNewColumn();
}else{
if(_8==-1){
TABLE_DESIGN_CONTROL._deleteLastColumn();
}
}
},_changeColumnSpan:function(_9,_a){
var _b=_a.get_oldValue();
var _c=_a.get_newValue();
var _d=_c-_b;
if(_d==1){
TABLE_DESIGN_CONTROL._increaseColSpan();
}else{
if(_d==-1){
TABLE_DESIGN_CONTROL._decreaseColSpan();
}
}
},_changeRows:function(_e,_f){
var _10=_f.get_oldValue();
var _11=_f.get_newValue();
var _12=_11-_10;
if(_12==1){
TABLE_DESIGN_CONTROL._addNewRow();
}else{
if(_12==-1){
TABLE_DESIGN_CONTROL._deleteLastRow();
}
}
},_changeRowSpan:function(_13,_14){
var _15=_14.get_oldValue();
var _16=_14.get_newValue();
var _17=_16-_15;
if(_17==1){
TABLE_DESIGN_CONTROL._increaseRowSpan();
}else{
if(_17==-1){
TABLE_DESIGN_CONTROL._decreaseRowSpan();
}
}
},_loadData:function(){
if(this._tableToModify){
this._rowsCount=this._tableToModify.rows.length;
}
this._selectedCellIndex=0;
this._tablePreviewControl._updateTable(this._tableToModify,this._selectedCell);
this._checkButtonAvailability();
this._spinBoxColumns.set_value(2);
this._spinBoxColumnSpan.set_value(this._currentColSpan);
this._spinBoxRows.set_value(2);
this._spinBoxRowSpan.set_value(this._currentRowSpan);
},_onSelectedCellChanged:function(){
this._synchronizeSelectedCell();
this._checkButtonAvailability();
},_synchronizeSelectedCell:function(){
var _18=this._tablePreviewControl.get_selectedCell();
var _19=this._tablePreviewControl.get_previewTable();
var _1a=_19.rows;
this._selectedCell=null;
this._selectedCellIndex=-1;
for(var i=0;i<_1a.length;i++){
var _1c=_1a[i].cells;
for(var j=0;j<_1c.length;j++){
if(_1c[j]==_18){
this._selectedCell=this._tableToModify.rows[i].cells[j];
this._selectedCellIndex=j;
if(this._tableWizardDialog){
this._tableWizardDialog._synchronizeSelection(this._selectedCell,this._selectedCellIndex);
}
return;
}
}
}
},_checkButtonAvailability:function(){
var _1e=this._tablePreviewControl.get_previewTable();
var _1f=this._tablePreviewControl.get_selectedCell();
if(this._getNamedNodesLength(_1e.firstChild,"TR")>1){
this._spinBoxRows.set_enabledDecrease(true);
}else{
this._spinBoxRows.set_enabledDecrease(false);
}
if(this._getMaxColumns()>1){
this._spinBoxColumns.set_enabledDecrease(true);
}else{
this._spinBoxColumns.set_enabledDecrease(false);
}
var _20=this._findNextNamedSibling(_1f,"TD");
if((_1f)&&(_20)&&(_1f.offsetTop==_20.offsetTop)&&((_1f.offsetLeft+_1f.offsetWidth+1)==_20.offsetLeft)){
var i;
var _22=_1e.rows;
var _23=_20;
this._currentColSpan=this._getColSpan(_23);
this._victimColumns=new Array(this._getEquivalentModelTableCell(_23));
for(i=this._getRowSpan(_23);i<this._getRowSpan(_1f);i+=this._getRowSpan(_23)){
_23=this._getCellByOffset(this._findNextNamedSibling(_1f.parentNode,"TR"),_20.offsetLeft);
this._victimColumns[this._victimColumns.length]=this._getEquivalentModelTableCell(_23);
if(this._getColSpan(_23)!=this._currentColSpan){
i=0;
break;
}
}
if(this._getRowSpan(_1f)==i){
this._spinBoxColumnSpan.set_enabledIncrease(true);
}else{
this._spinBoxColumnSpan.set_enabledIncrease(false);
}
}else{
this._spinBoxColumnSpan.set_enabledIncrease(false);
}
if((_1f)&&(_1f.colSpan>1)){
this._spinBoxColumnSpan.set_enabledDecrease(true);
}else{
this._spinBoxColumnSpan.set_enabledDecrease(false);
}
try{
var row=_1e.rows[this._getNamedNodeIndex(_1f.parentNode,"TR")+this._getRowSpan(_1f)];
if((_1f)&&(row)){
var _23=this._getCellByOffset(row,_1f.offsetLeft);
if(_23){
var i;
var _22=_1e.rows;
this._currentRowSpan=this._getRowSpan(_23);
this._victimRows=new Array(this._getEquivalentModelTableCell(_23));
for(i=this._getColSpan(_23);i<this._getColSpan(_1f);i+=this._getColSpan(_23)){
_23=this._findNextNamedSibling(_23,"TD");
this._victimRows[this._victimRows.length]=this._getEquivalentModelTableCell(_23);
if(this._getRowSpan(_23)!=this._currentRowSpan){
i=0;
break;
}
}
if(this._getColSpan(_1f)==i){
this._spinBoxRowSpan.set_enabledIncrease(true);
}else{
this._spinBoxRowSpan.set_enabledIncrease(false);
}
}else{
this._spinBoxRowSpan.set_enabledIncrease(false);
}
}else{
this._spinBoxRowSpan.set_enabledIncrease(false);
}
}
catch(exc){
this._spinBoxRowSpan.set_enabledIncrease(false);
}
if((_1f)&&(this._getRowSpan(_1f)>1)){
this._spinBoxRowSpan.set_enabledDecrease(true);
}else{
this._spinBoxRowSpan.set_enabledDecrease(false);
}
},_getNamedNodesLength:function(_25,_26){
var _27=0;
if(_25){
for(var i=0;i<_25.childNodes.length;i++){
if(_25.childNodes[i].nodeName==_26){
_27++;
}
}
}
return _27;
},_getMaxColumns:function(){
var _29=0;
var _2a=this._tableToModify.rows[0];
if(_2a){
var _2b=_2a.cells;
for(var i=0;i<_2b.length;i++){
var _2d=_2b[i];
var _2e=_2d.colSpan>0?_2d.colSpan:1;
_29+=_2e;
}
}
return _29;
},_findNextNamedSibling:function(_2f,_30){
if(_2f!=null){
var _31=_2f.nextSibling;
while(_31!=null){
if(_31.nodeName==_30){
return _31;
}
_31=_31.nextSibling;
}
}
return null;
},_getRowSpan:function(_32){
if(!_32){
return;
}
return _32.rowSpan>0?_32.rowSpan:1;
},_getColSpan:function(_33){
if(!_33){
return;
}
return _33.colSpan>0?_33.colSpan:1;
},_getEquivalentModelTableCell:function(_34){
var _35=this._tablePreviewControl.get_previewTable();
var _36=_35.rows;
for(var i=0;i<_36.length;i++){
var _38=_36[i].cells;
for(var j=0;j<_38.length;j++){
if(_38[j]==_34){
return this._tableToModify.rows[i].cells[j];
}
}
}
},_getCellByOffset:function(row,_3b){
var _3c=row.cells;
for(var i=0;i<_3c.length;i++){
if(_3c[i].offsetLeft==_3b){
return _3c[i];
}
}
return null;
},_getNamedNodeIndex:function(_3e,_3f){
if(_3e.parentNode&&_3e.parentNode.childNodes){
var _40=_3e.parentNode.childNodes;
var _41=0;
for(var i=0;i<_40.length;i++){
if(_40[i]==_3e){
return _41;
}else{
if(_40[i].nodeName==_3f){
_41++;
}
}
}
}
return -1;
},_removeNamedChild:function(_43,_44,_45){
var _46=0;
for(var i=0;i<_43.childNodes.length;i++){
if(_43.childNodes[i].nodeName==_44){
if((_46==_45)||(i==_43.childNodes.length-1)){
_43.removeChild(_43.childNodes[i]);
break;
}
_46++;
}
}
},_deleteLastColumn:function(){
var _48=this._tablePreviewControl.get_previewTable().rows;
var _49=this._tableToModify.rows;
for(var i=0;i<this._rowsCount;i++){
var _4b=_48[i].cells;
var _4c=_49[i].cells;
if((_4b.length>1)||((_4b.length==1)&&(_4b[0].offsetLeft!=(this._tablePreviewControl.get_previewTable().cellSpacing+1)))){
if(_4b[_4b.length-1].colSpan>1){
_4b[_4b.length-1].colSpan--;
_4c[_4c.length-1].colSpan--;
}else{
this._removeNamedChild(_48[i],"TD",_48[i].getElementsByTagName("TD").length-1);
this._removeNamedChild(_49[i],"TD",_49[i].getElementsByTagName("TD").length-1);
}
}
}
this._checkButtonAvailability();
},_deleteLastRow:function(){
var _4d=this._tablePreviewControl.get_previewTable();
var _4e=_4d.rows;
var _4f=this._tableToModify.rows;
for(var i=0;i<this._rowsCount;i++){
var _51=_4e[i].cells;
var _52=_4f[i].cells;
for(var j=0;j<_51.length;j++){
if((this._getRowSpan(_51[j])>1)&&((i+this._getRowSpan(_51[j]))==this._rowsCount)){
if(_51[j].rowSpan>0){
_51[j].rowSpan--;
}
if(_52[j].rowSpan>0){
_52[j].rowSpan--;
}
}
}
}
this._removeNamedChild(_4d.firstChild,"TR",this._rowsCount-1);
this._removeNamedChild(this._tableToModify.firstChild,"TR",this._rowsCount-1);
this._rowsCount--;
this._checkButtonAvailability();
},_addNewColumn:function(){
var _54=this._tableToModify.rows;
for(var i=0;i<this._rowsCount;i++){
var _56=_54[i].insertCell((this._selectedCellIndex==0)?this._selectedCellIndex+1:this._selectedCellIndex);
_56.innerHTML="&nbsp;";
}
this._tablePreviewControl._updateTable(this._tableToModify,this._selectedCell);
this._checkButtonAvailability();
},_addNewRow:function(){
var _57=this._tableToModify.insertRow(-1);
for(var i=0;i<this._getMaxColumns();i++){
var _59=_57.insertCell(-1);
_59.innerHTML="&nbsp;";
}
this._rowsCount++;
this._tablePreviewControl._updateTable(this._tableToModify,this._selectedCell);
this._checkButtonAvailability();
},_increaseColSpan:function(){
for(i=0;i<this._victimColumns.length;i++){
var row=this._victimColumns[i].parentNode;
var _5b=this._getNamedNodeIndex(this._victimColumns[i],"TD");
if(_5b>=0){
row.removeChild(row.childNodes[_5b]);
}
}
var _5c=this._currentColSpan>0?this._currentColSpan:1;
_5c+=this._getColSpan(this._selectedCell);
this._selectedCell.colSpan=_5c;
this._tablePreviewControl._updateTable(this._tableToModify,this._selectedCell);
this._checkButtonAvailability();
},_decreaseColSpan:function(){
var row=this._selectedCell.parentNode;
for(var i=0;i<this._getRowSpan(this._selectedCell);i++){
try{
row.insertCell(this._selectedCellIndex==0?this._selectedCellIndex+1:this._selectedCellIndex);
}
catch(ex){
row.insertCell(0);
}
row=this._findNextNamedSibling(row,"TR");
}
if(this._selectedCell.colSpan>1){
this._selectedCell.colSpan--;
}
this._tablePreviewControl._updateTable(this._tableToModify,this._selectedCell);
this._checkButtonAvailability();
},_increaseRowSpan:function(){
for(i=0;i<this._victimRows.length;i++){
this._victimRows[i].parentNode.removeChild(this._victimRows[i]);
}
var _5f=this._currentRowSpan>0?this._currentRowSpan:1;
_5f+=this._getRowSpan(this._selectedCell);
this._selectedCell.rowSpan=_5f;
this._tablePreviewControl._updateTable(this._tableToModify,this._selectedCell);
this._checkButtonAvailability();
},_decreaseRowSpan:function(){
var row=this._tableToModify.rows[this._getNamedNodeIndex(this._selectedCell.parentNode,"TR")+this._getRowSpan(this._selectedCell)-1];
if(this._selectedCell.rowSpan>1){
this._selectedCell.rowSpan--;
}
for(var i=0;i<this._getColSpan(this._selectedCell);i++){
row.insertCell(0);
}
this._tablePreviewControl._updateTable(this._tableToModify,this._selectedCell);
this._checkButtonAvailability();
},set_selectedCell:function(_62){
this._selectedCell=_62;
if(this._tableToModify!=null){
this._tablePreviewControl._updateTable(this._tableToModify,this._selectedCell);
}
},set_tableWizardControl:function(_63){
this._tableWizardDialog=_63;
},dispose:function(){
this._clientParameters=null;
this._selectedCell=null;
this._victimColumns=[];
this._victimRows=[];
this._spinBoxColumns=null;
this._spinBoxColumnSpan=null;
this._spinBoxRows=null;
this._spinBoxRowSpan=null;
this._tableToModify=null;
this._tablePreviewControl=null;
this._tableWizardDialog=null;
var _64=null;
Telerik.Web.UI.Widgets.TableDesign.callBaseMethod(this,"dispose");
}};
Telerik.Web.UI.Widgets.TableDesign.registerClass("Telerik.Web.UI.Widgets.TableDesign",Telerik.Web.UI.RadWebControl,Telerik.Web.IParameterConsumer);;Type.registerNamespace("Telerik.Web.UI.Widgets");
Telerik.Web.UI.Widgets.TablePreview=function(_1){
Telerik.Web.UI.Widgets.TablePreview.initializeBase(this);
this._previewHolder=null;
this._previewTable=null;
this._editedCells=[];
this._selectedCell=null;
this._selectedCells=[];
this._allowMultiCellSelection=false;
};
Telerik.Web.UI.Widgets.TablePreview.prototype={initialize:function(){
Telerik.Web.UI.Widgets.TablePreview.callBaseMethod(this,"initialize");
},_configureChildren:function(){
var _2=document.createElement("TABLE");
_2.className="tableDesignPreview";
this._previewHolder.appendChild(_2);
this._previewTable=_2;
},_updateTable:function(_3,_4){
var _5=document.createElement("TABLE");
_5.className="tableDesignPreview";
_5.cellPadding=1;
_5.cellSpacing=1;
for(var i=0;i<_3.rows.length;i++){
var _7=_3.rows[i];
var _8=_5.insertRow(-1);
for(var j=0;j<_7.cells.length;j++){
var _a=_7.cells[j];
var _b=_8.insertCell(-1);
_b.rowSpan=_a.rowSpan;
_b.colSpan=_a.colSpan;
if(_a==_4){
this._selectCell(_b);
}else{
this._deSelectCell(_b);
}
_b.theTablePreviewControl=this;
$addHandlers(_b,{"click":this._handleCellClick},this);
_b.innerHTML="&nbsp;&nbsp;";
}
}
this._previewTable.parentNode.replaceChild(_5,this._previewTable);
this._previewTable=_5;
},_handleCellClick:function(e){
var _d=null;
if(!e){
_d=window.event.srcElement;
}else{
_d=e.target;
}
if(this._allowMultiCellSelection&&e.ctrlKey){
if(this._isCellSelected(_d)){
this._deSelectCell(_d);
}else{
this._selectCell(_d);
}
}else{
this._changeSelectedCell(_d);
}
},_changeSelectedCell:function(_e){
this.set_editedCells(this.get_selectedCells());
var _f=this._isCellSelected(_e);
var _10=this._isMultiCellSelection();
this._deSelectAllCells();
if(!_f||_10){
this._selectCell(_e);
}
if(this._onSelectedCellChanged){
this._onSelectedCellChanged();
}
},_getCellIndex:function(_11){
var _12=_11?(_11.cellIndex):0;
if($telerik.isSafari){
var oP=_11.parentNode;
for(var i=0;i<oP.cells.length;i++){
if(_11==oP.cells[i]){
_12=i;
break;
}
}
}
return _12;
},_selectCell:function(_15){
this._selectedCell=_15;
var _16=_15.parentNode.rowIndex;
var _17=this._getCellIndex(_15);
if(typeof (this._selectedCells[_16])=="undefined"){
this._selectedCells[_16]=[];
}
this._selectedCells[_16][_17]=_15;
_15.className="reSelectedCell";
},_deSelectCell:function(_18){
if(this._isCellSelected(_18)){
var _19=_18.parentNode.rowIndex;
var _1a=this._getCellIndex(_18);
this._selectedCells[_19][_1a]=null;
if(_18==this._selectedCell){
this._selectedCell=null;
}
}
_18.className="";
},_deSelectAllCells:function(){
var _1b=this.get_selectedCells();
for(var i=0;i<_1b.length;i++){
this._deSelectCell(_1b[i]);
}
this._selectedCells=[];
},_isCellSelected:function(_1d){
return (_1d.className=="reSelectedCell");
},_isMultiCellSelection:function(){
return (this.get_selectedCells().length>1);
},get_previewHolder:function(){
return this._previewHolder;
},set_previewHolder:function(_1e){
this._previewHolder=_1e;
if(this._previewHolder){
this._configureChildren();
}
},set_editedCells:function(_1f){
this._editedCells=_1f;
},get_editedCells:function(){
return this._editedCells;
},get_previewTable:function(){
return this._previewTable;
},get_selectedCells:function(){
var _20=[];
for(var _21 in this._selectedCells){
for(var _22 in this._selectedCells[_21]){
_20.push(this._selectedCells[_21][_22]);
}
}
return _20;
},get_selectedCell:function(){
var _23=this.get_selectedCells();
if(_23&&_23.length>0){
return _23[_23.length-1];
}
return null;
},set_allowMultiCellSelection:function(_24){
this._allowMultiCellSelection=_24;
},_disposeChildEvents:function(){
if(this._previewTable){
for(var i=0;i<this._previewTable.rows.length;i++){
var _26=this._previewTable.rows[i];
for(var j=0;j<_26.cells.length;j++){
$clearHandlers(_26.cells[j]);
}
}
}
},dispose:function(){
this._disposeChildEvents();
this._previewHolder=null;
this._previewTable=null;
this._editedCells=[];
this._selectedCell=null;
this._selectedCells=[];
Telerik.Web.UI.Widgets.TablePreview.callBaseMethod(this,"dispose");
}};
Telerik.Web.UI.Widgets.TablePreview.registerClass("Telerik.Web.UI.Widgets.TablePreview",Sys.Component);;Type.registerNamespace("Telerik.Web.UI.Widgets");
Telerik.Web.UI.Widgets.TableProperties=function(_1){
Telerik.Web.UI.Widgets.TableProperties.initializeBase(this,[_1]);
this._clientParameters=null;
this._editorRef=null;
this._table=null;
this._id="";
this._skinPath="";
this._tableWidth="";
this._tableHeight="";
this._idInput=null;
this._imageCaller=null;
this._spinBoxWidth=null;
this._spinBoxHeight=null;
this._spinBoxCellSpacing=null;
this._spinBoxCellPadding=null;
this._colorPicker=null;
this._classSelector=null;
this._alignmentSelectorTable=null;
this._tableBorderControl=null;
};
Telerik.Web.UI.Widgets.TableProperties.prototype={initialize:function(){
Telerik.Web.UI.Widgets.TableProperties.callBaseMethod(this,"initialize");
this._initializeChildren();
},_initializeChildren:function(){
this._idInput=$get("TableId");
this._spinBoxWidth=$find("SpinBoxWidth");
this._spinBoxHeight=$find("SpinBoxHeight");
this._spinBoxCellSpacing=$find("SpinBoxCellSpacing");
this._spinBoxCellPadding=$find("SpinBoxCellSPadding");
this._alignmentSelectorTable=$find("AlignmentSelectorTable");
},clientInit:function(_2){
this._clientParameters=_2;
if(this._clientParameters){
if(!this._table){
this._table=this._clientParameters.tableToModify;
}
}
this._editorRef=this._clientParameters.Editor;
this._imageCaller=$find("ImageCaller");
this._imageCaller.set_editor(this._editorRef);
this._colorPicker=$find("ColorPicker");
this._colorPicker.set_items(this._clientParameters.Colors);
this._classSelector=$find("ClassSelector");
this._classSelector.set_items(this._clientParameters.CssClasses);
this._classSelector.add_valueSelected(this._cssValueSelected);
this._tableBorderControl=$find("TableBorder");
this._tableBorderControl.set_tableToModify(this._table);
this._loadData();
},_cssValueSelected:function(_3,_4){
if(!_3){
return;
}
var _5=_3.get_name();
if("ApplyClass"==_5){
var _6=_3.get_selectedItem();
_3.updateValue(_6);
}
},_loadData:function(){
if(this._table){
this._idInput.value=this._table.getAttribute("id")?this._table.getAttribute("id"):"";
if(this._imageCaller){
var _7=this._table.getAttribute("background");
if(!_7){
_7="";
}
this._imageCaller.set_value(_7);
}
this._tableWidth=this._table.style.width?this._table.style.width:(this._table.width?this._table.width:"");
this._spinBoxWidth.set_value(this._tableWidth);
this._tableHeight=this._table.style.height?this._table.style.height:(this._table.height?this._table.height:"");
this._spinBoxHeight.set_value(this._tableHeight);
this._spinBoxCellSpacing.set_value(this._table.cellSpacing);
this._spinBoxCellPadding.set_value(this._table.cellPadding);
var _8=this._table.bgColor.toUpperCase();
this._colorPicker.set_color(_8);
if(this._table.className&&this._table.className!=""){
this._classSelector.updateValue(this._table.className);
}
this._alignmentSelectorTable.setTagName("TABLE");
this._alignmentSelectorTable.updateValue(this._table.align);
}
},_updateTable:function(){
var _9=this._spinBoxWidth.get_value();
if(_9==""){
this._table.removeAttribute("width",false);
}else{
if(!this._isValueValid(_9)){
return null;
}
}
this._table.removeAttribute("width",false);
this._table.style.width=_9?this._convertIntToPixel(_9):"";
var _a=this._spinBoxHeight.get_value();
if(_a==""){
this._table.removeAttribute("height",false);
}else{
if(!this._isValueValid(_a)){
return null;
}
}
this._table.removeAttribute("height",false);
this._table.style.height=_a?this._convertIntToPixel(_a):"";
this._setAttribValue("id",this._idInput.value);
this._setAttribValue("align",this._alignmentSelectorTable.getAlign());
var _b=this._spinBoxCellSpacing.get_value();
if(!isNaN(parseInt(_b))){
this._setAttribValue("cellSpacing",_b>=0?_b:"",(_b>=0));
}
var _c=this._spinBoxCellPadding.get_value();
if(!isNaN(parseInt(_c))){
this._setAttribValue("cellPadding",_c>=0?_c:"",(_c>=0));
}
this._setAttribValue("bgColor",this._colorPicker.get_color());
this._setAttribValue("background",this._imageCaller.get_value());
var _d=($telerik.isIE)?"className":"class";
var _e=(this._classSelector.get_value()!="")?this._classSelector.get_value():null;
this._setAttribValue(_d,_e);
var _f=this._tableBorderControl._updateTarget();
if(_f){
this._table=_f;
}
return this._table;
},_isValueValid:function(_10){
var _11=parseInt(_10,10);
if(!isNaN(_11)){
var _12=(_11+"%"==_10);
var _13=(_11+"px"==_10.toLowerCase());
var _14=(_11.toString()==_10);
if(_12||_13||_14){
return true;
}
}
return false;
},_convertIntToPixel:function(_15){
var _16=""+_15;
if(_16.indexOf("%")!=-1){
return _16;
}else{
_16=parseInt(_16);
if(!isNaN(_16)){
_16=_16+"px";
return _16;
}
}
return _15;
},_setAttribValue:function(_17,_18,_19){
if(_18||(true==_19)){
this._table.setAttribute(_17,_18);
}else{
this._table.removeAttribute(_17,false);
}
},set_tableToModify:function(_1a){
this._table=_1a;
if(this._tableBorderControl){
this._tableBorderControl.set_tableToModify(this._table);
}
},dispose:function(){
this._clientParameters=null;
this._editorRef=null;
this._table=null;
this._idInput=null;
this._imageCaller=null;
this._spinBoxWidth=null;
this._spinBoxHeight=null;
this._spinBoxCellSpacing=null;
this._spinBoxCellPadding=null;
this._colorPicker=null;
this._classSelector=null;
this._alignmentSelectorTable=null;
this._tableBorderControl=null;
Telerik.Web.UI.Widgets.TableProperties.callBaseMethod(this,"dispose");
}};
Telerik.Web.UI.Widgets.TableProperties.registerClass("Telerik.Web.UI.Widgets.TableProperties",Telerik.Web.UI.RadWebControl,Telerik.Web.IParameterConsumer);;Type.registerNamespace("Telerik.Web.UI.Widgets");
Telerik.Web.UI.Widgets.TableWizard=function(_1){
Telerik.Web.UI.Widgets.TableWizard.initializeBase(this,[_1]);
this._clientParameters=null;
this._insertButton=null;
this._cancelButton=null;
this._table=null;
this._originalSelectedCell=null;
this._currentlyEditedCell=null;
this._originalTableClone=null;
this._selectedTabIndex=0;
this._selectedCell=null;
this._selectedCellIndex=-1;
this._accessibleTableControl=null;
this._tablePropertiesControl=null;
this._tableDesignControl=null;
this._cellPropertiesControl=null;
this._tablePreviewControl=null;
};
Telerik.Web.UI.Widgets.TableWizard.prototype={initialize:function(){
Telerik.Web.UI.Widgets.TableWizard.callBaseMethod(this,"initialize");
this._setupChildren();
},clientInit:function(_2){
this._clientParameters=_2;
this._table=this._clientParameters.originalTable;
this._originalTableClone=this._clientParameters.tableToModify;
this._originalSelectedCell=this._clientParameters.cellToModify;
if(this._clientParameters.selectedTabIndex&&this._clientParameters.selectedTabIndex>=0){
this._tab.selectTab(this._clientParameters.selectedTabIndex);
this._selectedTabIndex=this._clientParameters.selectedTabIndex;
}
this.tabChangedHandler=Function.createDelegate(this,this._tabChangedHandler);
this._tab.add_tabChanged(this.tabChangedHandler);
this._loadTableProperties();
},_tabChangedHandler:function(_3,_4){
var _5=_3.get_selectedIndex();
this._initTabControl(_5);
this._selectedTabIndex=_5;
},_loadTableProperties:function(){
this._initTabControl(this._selectedTabIndex);
},_initTabControl:function(_6){
switch(_6){
case 0:
this._initDesigner();
break;
case 1:
this._initTableProperties();
break;
case 2:
this._initCellProperties();
break;
case 3:
this._initAccessibleTable();
break;
}
},_setupChildren:function(){
this._accessibleTableControl=this._findChildControl("accessibilityPanel");
this._tablePropertiesControl=this._findChildControl("tablePropertiesPanel");
this._tableDesignControl=this._findChildControl("tableDesignPanel");
this._cellPropertiesControl=this._findChildControl("cellPropertiesPanel");
this._tablePreviewControl=this._cellPropertiesControl.get_tablePreviewControl();
this._insertButton=this._getChildElement("InsertButton");
this._cancelButton=this._getChildElement("CancelButton");
this._tab=this._findChildControl("TableWizardTab");
this._initializeChildEvents();
},_initializeChildEvents:function(){
$addHandlers(this._insertButton,{"click":this._insertClickHandler},this);
$addHandlers(this._cancelButton,{"click":this._cancelClickHandler},this);
},_getModifiedTable:function(){
this._accessibleTableControl.set_tableToModify(this._table.cloneNode(true));
this._originalTableClone=this._accessibleTableControl._updateTable();
this._tablePropertiesControl.set_tableToModify(this._originalTableClone);
var _7=this._tablePropertiesControl._updateTable();
if(_7){
this._originalTableClone=_7;
}
return this._originalTableClone;
},_insertClickHandler:function(e){
if(!this._saveLastEditedCellProperties(false)){
return;
}
this.raise_insertClick({tableToModify:this._getModifiedTable()});
},_cancelClickHandler:function(e){
if(this._table&&this._table.parentNode){
this._table.parentNode.replaceChild(this._originalTableClone,this._table);
}
this._table=this._originalTableClone;
this.raise_cancelClick({});
},_getCurrentlyEditedCell:function(){
return this._currentlyEditedCell;
},_onCellPropertiesSelectedCellChanged:function(){
var _a=this._tablePreviewControl.get_editedCells();
this._cellPropertiesControl._updateMultiple(this._getModifyCellsForPreviewCells(_a));
this._synchronizeSelectedCell();
if(this._selectedCell){
this._currentlyEditedCell=this._selectedCell;
this._cellPropertiesControl._loadPropertyValues(this._selectedCell);
}
},_onCellPropertiesSelectedMultipleCells:function(){
this._cellPropertiesControl._clear();
},_synchronizeSelectedCell:function(){
var _b=this._tablePreviewControl.get_selectedCell();
var _c=this._tablePreviewControl.get_previewTable();
var _d=_c.rows;
this._selectedCell=null;
this._selectedCellIndex=-1;
for(var i=0;i<_d.length;i++){
var _f=_d[i].cells;
for(var j=0;j<_f.length;j++){
if(_f[j]==_b){
this._selectedCell=this._table.rows[i].cells[j];
this._selectedCellIndex=j;
return;
}
}
}
},_synchronizeSelection:function(_11,_12){
this._selectedCell=_11;
this._selectedCellIndex=_12;
},_getModifyCellForPreviewCell:function(_13){
var _14=_13.parentNode.rowIndex;
var _15=this._tablePreviewControl._getCellIndex(_13);
return this._table.rows[_14].cells[_15];
},_getModifyCellsForPreviewCells:function(_16){
var _17=[];
for(var i=0;i<_16.length;i++){
_17.push(this._getModifyCellForPreviewCell(_16[i]));
}
return _17;
},_saveLastEditedCellProperties:function(_19){
if(this._currentlyEditedCell){
var _1a=this._tablePreviewControl.get_selectedCells();
if(!this._cellPropertiesControl._updateMultiple(this._getModifyCellsForPreviewCells(_1a))){
return false;
}
if(!_19){
this._selectedCell=null;
this._selectedCellIndex=-1;
}
}
return true;
},_initCellProperties:function(){
var _1b=this;
this._tablePreviewControl._onSelectedCellChanged=function anon(){
_1b._onCellPropertiesSelectedCellChanged();
};
this._tablePreviewControl._deSelectAllCells();
this._tablePreviewControl.set_allowMultiCellSelection(true);
if(!this._originalSelectedCell){
if(!this._selectedCell){
this._initSelectedCell();
}
}else{
this._selectedCell=this._originalSelectedCell;
this._originalSelectedCell=null;
}
this._tablePreviewControl._updateTable(this._table,this._selectedCell);
this._currentlyEditedCell=this._selectedCell;
this._cellPropertiesControl.set_cellToModify(this._currentlyEditedCell);
this._cellPropertiesControl._loadPropertyValues(this._currentlyEditedCell);
},_initTableProperties:function(){
if(!this._originalSelectedCell){
if(!this._selectedCell){
this._initSelectedCell();
}
}else{
this._selectedCell=this._originalSelectedCell;
this._originalSelectedCell=null;
}
this._saveLastEditedCellProperties(true);
this._tablePropertiesControl.set_tableToModify(this._table.cloneNode(true));
},_initAccessibleTable:function(){
this._originalSelectedCell=null;
this._saveLastEditedCellProperties(true);
this._accessibleTableControl.set_tableToModify(this._table.cloneNode(true));
},_initSelectedCell:function(){
if(this._table.rows.length>0){
if(this._table.rows[0].cells.length>0){
this._selectedCell=this._table.rows[0].cells[0];
}
}
},_initDesigner:function(){
this._originalSelectedCell=null;
this._saveLastEditedCellProperties(true);
this._tableDesignControl.set_tableWizardControl(this);
if(!this._selectedCell){
this._initSelectedCell();
}
this._tableDesignControl.set_selectedCell(this._selectedCell);
},raise_insertClick:function(_1c){
this.raiseEvent("insertClick",_1c);
},add_insertClick:function(_1d){
this.get_events().addHandler("insertClick",_1d);
},remove_insertClick:function(_1e){
this.get_events().removeHandler("insertClick",_1e);
},raise_cancelClick:function(_1f){
this.raiseEvent("cancelClick",_1f);
},add_cancelClick:function(_20){
this.get_events().addHandler("cancelClick",_20);
},remove_cancelClick:function(_21){
this.get_events().removeHandler("cancelClick",_21);
},dispose:function(){
$clearHandlers(this._insertButton);
$clearHandlers(this._cancelButton);
this._tab.remove_tabChanged(this.tabChangedHandler);
this._clientParameters=null;
this._insertButton=null;
this._cancelButton=null;
this._table=null;
this._originalSelectedCell=null;
this._currentlyEditedCell=null;
this._originalTableClone=null;
this._selectedCell=null;
this._tablePreviewControl=null;
this._accessibleTableControl=null;
this._tablePropertiesControl=null;
this._tableDesignControl=null;
this._cellPropertiesControl=null;
Telerik.Web.UI.Widgets.TableWizard.callBaseMethod(this,"dispose");
}};
Telerik.Web.UI.Widgets.TableWizard.registerClass("Telerik.Web.UI.Widgets.TableWizard",Telerik.Web.UI.RadWebControl,Telerik.Web.IParameterConsumer);;Type.registerNamespace("Telerik.Web.UI.Editor.DialogControls");
Telerik.Web.UI.Editor.DialogControls.TableWizardDialog=function(_1){
Telerik.Web.UI.Editor.DialogControls.TableWizardDialog.initializeBase(this,[_1]);
this._clientParameters=null;
this._tableWizard=null;
};
Telerik.Web.UI.Editor.DialogControls.TableWizardDialog.prototype={initialize:function(){
Telerik.Web.UI.Editor.DialogControls.TableWizardDialog.callBaseMethod(this,"initialize");
this._initializeChildren();
this._tableWizardInsertClickHandler=Function.createDelegate(this,this._tableWizardInsertClickHandler);
this._tableWizard.add_insertClick(this._tableWizardInsertClickHandler);
this._tableWizardCancelClickHandler=Function.createDelegate(this,this._tableWizardCancelClickHandler);
this._tableWizard.add_cancelClick(this._tableWizardCancelClickHandler);
},_initializeChildren:function(){
this._tableWizard=this._findChildControl("TableWizard");
},_tableWizardInsertClickHandler:function(_2,_3){
Telerik.Web.UI.Dialogs.CommonDialogScript.get_windowReference().close(_3);
},_tableWizardCancelClickHandler:function(_4,_5){
Telerik.Web.UI.Dialogs.CommonDialogScript.get_windowReference().close();
},clientInit:function(_6){
this._clientParameters=_6;
},dispose:function(){
this._tableWizard.remove_insertClick(this._tableWizardInsertClickHandler);
this._tableWizard.remove_cancelClick(this._tableWizardCancelClickHandler);
Telerik.Web.UI.Editor.DialogControls.TableWizardDialog.callBaseMethod(this,"dispose");
}};
Telerik.Web.UI.Editor.DialogControls.TableWizardDialog.registerClass("Telerik.Web.UI.Editor.DialogControls.TableWizardDialog",Telerik.Web.UI.RadWebControl,Telerik.Web.IParameterConsumer);;Type.registerNamespace("Telerik.Web.UI.Widgets");
Telerik.Web.UI.Widgets.TemplateManager=function(_1){
Telerik.Web.UI.Widgets.TemplateManager.initializeBase(this,[_1]);
};
Telerik.Web.UI.Widgets.TemplateManager.prototype={initialize:function(){
Telerik.Web.UI.Widgets.TemplateManager.callBaseMethod(this,"initialize");
},dispose:function(){
Telerik.Web.UI.Widgets.TemplateManager.callBaseMethod(this,"dispose");
}};
$telerik.makeCompatible(Telerik.Web.UI.Widgets.TemplateManager);
Telerik.Web.UI.Widgets.TemplateManager.registerClass("Telerik.Web.UI.Widgets.TemplateManager",Telerik.Web.UI.Widgets.FileManager);;Type.registerNamespace("Telerik.Web.UI.Editor.DialogControls");
Telerik.Web.UI.Editor.DialogControls.TemplateManagerDialog=function(_1){
Telerik.Web.UI.Editor.DialogControls.TemplateManagerDialog.initializeBase(this,[_1]);
};
Telerik.Web.UI.Editor.DialogControls.TemplateManagerDialog.registerClass("Telerik.Web.UI.Editor.DialogControls.TemplateManagerDialog",Telerik.Web.UI.Editor.DialogControls.FileManagerDialog);;Type.registerNamespace("Telerik.Web.UI.Widgets");
Telerik.Web.UI.Widgets.TemplatePreviewer=function(_1){
Telerik.Web.UI.Widgets.TemplatePreviewer.initializeBase(this,[_1]);
this._currentItem=null;
this._currentTemplateItem=null;
};
Telerik.Web.UI.Widgets.TemplatePreviewer.prototype={initialize:function(){
Telerik.Web.UI.Widgets.TemplatePreviewer.callBaseMethod(this,"initialize");
this._initializeChildren();
},_initializeChildren:function(){
this._currentTemplateItem=this._getChildElement("templateIframe");
},isValidExtension:function(){
if(this._currentItem.extension==".html"||this._currentItem.extension==".htm"){
return true;
}
return false;
},setItem:function(_2){
this._currentItem=_2;
if(this._currentItem.type==Telerik.Web.UI.Widgets.FileItemType.File&&this.isValidExtension()){
this._currentTemplateItem.src=this._currentItem.getUrl();
}else{
this._currentTemplateItem.src="javascript:''";
}
},getResult:function(){
if(this._currentItem&&this._currentItem.type==Telerik.Web.UI.Widgets.FileItemType.File&&this.isValidExtension()){
return this._currentTemplateItem.contentWindow.document.body.innerHTML;
}
return null;
},dispose:function(){
Telerik.Web.UI.Widgets.TemplatePreviewer.callBaseMethod(this,"dispose");
}};
$telerik.makeCompatible(Telerik.Web.UI.Widgets.TemplatePreviewer);
Telerik.Web.UI.Widgets.TemplatePreviewer.registerClass("Telerik.Web.UI.Widgets.TemplatePreviewer",Telerik.Web.UI.Widgets.FilePreviewer);;Type.registerNamespace("Telerik.Web.UI.Widgets");
Telerik.Web.UI.Widgets.TrackChangesDialog=function(_1){
Telerik.Web.UI.Widgets.TrackChangesDialog.initializeBase(this,[_1]);
this._editor=null;
};
Telerik.Web.UI.Widgets.TrackChangesDialog.prototype={initialize:function(){
Telerik.Web.UI.Widgets.TrackChangesDialog.callBaseMethod(this,"initialize");
this._initContentField=$get("initialContent");
this._curContentField=$get("currentContent");
},clientInit:function(_2){
this._editor=_2;
this._curContentField.value=this._editor.get_html(true);
this._initContentField.value=this._editor.get_initialContent();
var _3=document.forms[0];
_3.target="responseIframe";
_3.submit();
},dispose:function(){
this._editor=null;
Telerik.Web.UI.Widgets.TrackChangesDialog.callBaseMethod(this,"dispose");
}};
Telerik.Web.UI.Widgets.TrackChangesDialog.registerClass("Telerik.Web.UI.Widgets.TrackChangesDialog",Telerik.Web.UI.RadWebControl,Telerik.Web.IParameterConsumer);;Type.registerNamespace("Telerik.Web.UI.Widgets");
Telerik.Web.UI.Widgets.XhtmlValidator=function(_1){
Telerik.Web.UI.Widgets.XhtmlValidator.initializeBase(this,[_1]);
this._editor=null;
};
Telerik.Web.UI.Widgets.XhtmlValidator.prototype={initialize:function(){
Telerik.Web.UI.Widgets.XhtmlValidator.callBaseMethod(this,"initialize");
this._editorContentInput=$get("editorContent");
},clientInit:function(_2){
this._editor=_2;
this._editorContentInput.value="<div>"+this._editor.get_html(true)+"</div>";
var _3=document.forms[0];
_3.target="responseIframe";
_3.submit();
},dispose:function(){
this._editor=null;
Telerik.Web.UI.Widgets.XhtmlValidator.callBaseMethod(this,"dispose");
}};
Telerik.Web.UI.Widgets.XhtmlValidator.registerClass("Telerik.Web.UI.Widgets.XhtmlValidator",Telerik.Web.UI.RadWebControl,Telerik.Web.IParameterConsumer);;