//================================= CLASS CONSTRUCTOR ========================================
function WaitMgr(ig)
{
//MEMBER VARIABLES
 this.g = null;
 this.win = null;

//Initializing ...
 this.initialize(ig);
}

//====================================== STATIC ==============================================
 
//====================================== MEMBERS =============================================
WaitMgr.prototype.setDefaults = function()
{
 this.g = null;
 this.win = null;
}

WaitMgr.prototype.initialize = function(ig)
{
 this.g = ig;
//Creating the window ...
 this.win = this.g.utils.wmgr.createWindow(false,false,false);
 this.win.setHideOnClose(true);
 this.win.setTitle(g.utils.rmgr.getResource0('JSP_PLG_WAITMGR_0'));
 this.win.resizeTo(250,85);
 this.win.center();
 this.win.loadContent('/adiJed/plugins/waitmgr/loading.jsp','');
}

WaitMgr.prototype.finalize = function()
{
 this.win.setHideOnClose(false);
 this.win.close();
 this.setDefaults();
}

WaitMgr.prototype.show = function(ishow)
{
 this.win.show(ishow);
 if(ishow)
 {
  this.win.setModal(true);
  this.win.bringToFront();
 }
 else
  this.win.setModal(false);
}
