//================================= CLASS CONSTRUCTOR ========================================
function EventMediatorNSys()
{
//MEMBER VARIABLES
//JSPs that currently use this mediator ...
 this.page = null;

 this.initialize();
}

//====================================== STATIC ==============================================
//CONSTANTS

//====================================== MEMBERS =============================================
EventMediatorNSys.prototype.setDefaults = function()
{
 this.page = null;
 this.msgFrmSet = null;
 this.toggleFrm = null;
 this.foldersFrm = null;
 this.tableFrm = null;
}

EventMediatorNSys.prototype.initialize = function()
{
 this.setDefaults();
}

EventMediatorNSys.prototype.registerPage = function(ipage)
{
 this.page = ipage;
}

//SOURCE:  | TARGET: page.jsp
EventMediatorNSys.prototype.canLoadPageByPath = function()
{
 if (this.page == null)
  return false;
 return true;
}

EventMediatorNSys.prototype.onLoadPageByPath = function(ipath,iparams)
{
 if (!this.canLoadPageByPath())
  return false;
 this.page.loadPageByPath(ipath,iparams);
 return true;
}

EventMediatorNSys.prototype.canLoadPageById = function()
{
 if (this.page == null)
  return false;
 return true;
}

EventMediatorNSys.prototype.onLoadPageById = function(ipageId,iparams)
{
 if (!this.canLoadPageById())
  return false;
 this.page.loadPageById(ipageId,iparams);
 return true;
}

EventMediatorNSys.prototype.finalize = function()
{
 this.setDefaults();
}
