obips.MessageDialog=function(){};obips.MessageDialog.resourceFile="uicomponents/common/common.xml";obips.MessageDialog.TITLE_IMAGE_ERROR="uicomponents/common/title_error.png";obips.MessageDialog.TITLE_IMAGE_INFO="uicomponents/common/title_info.png";obips.MessageDialog.TITLE_IMAGE_WARNING="uicomponents/common/title_warning.png";obips.MessageDialog.TITLE_IMAGE_TICK="uicomponents/common/title_tick.png";obips.MessageDialog.Model=function(c,b,e,d){var a=null;if(d==obips.MessageDialog.TITLE_IMAGE_ERROR||d==obips.MessageDialog.TITLE_IMAGE_INFO||d==obips.MessageDialog.TITLE_IMAGE_WARNING||d==obips.MessageDialog.TITLE_IMAGE_TICK){a=obips.ResourceManager.getSingleton().getURL(obips.MessageDialog.resourceFile,d).url}obips.MessageDialog.Model.baseConstructor.call(this,c,b,null,e,a)};extend(obips.MessageDialog.Model,obips.TextDialog.Model);obips.MessageDialog.Viewer=function(b,a){obips.MessageDialog.Viewer.baseConstructor.call(this,b,a);this.cancelButton.style.display="none";this.floatingWindowManager.display(this);if(obips.TabCircler){this.tabCircler=new obips.TabCircler(this.okButton,this.okButton).run(obips.MessageDialog.Viewer.tabHandler,this)}obips.asyncCall(new obips.Callback(null,function(c){c.focus()}),1,this.okButton)};extend(obips.MessageDialog.Viewer,obips.TextDialog.Viewer);obips.MessageDialog.Viewer.tabHandler=function(a,b){b.tabCircler.handler(a)};obips.MessageDialog.Viewer.prototype.createController=function(){this.controller=new obips.MessageDialog.Controller(this)};obips.MessageDialog.Controller=function(a){obips.MessageDialog.Controller.baseConstructor.call(this,a)};extend(obips.MessageDialog.Controller,obips.TextDialog.Controller);obips.MessageDialog.Controller.prototype.okDialog=function(){if(!this.viewer.model.callback){this.closeDialog();return}obips.MessageDialog.Controller.superClass.okDialog.call(this)};