//================================= CLASS CONSTRUCTOR ========================================
function GNotifSys()
{
//VARIABLES
//The event mediator ...
 this.eventMediator = null;
//The currently active bin id(Inbox, Outbox or Compose)
 this.bid = 0;

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

//====================================== STATIC ==============================================
//CONSTANTS
GNotifSys.BIN_INBOX   = 1;
GNotifSys.BIN_OUTBOX  = 2;
GNotifSys.BIN_COMPOSE = 3;

GNotifSys.OP_DELETE       = 1;
GNotifSys.OP_MARKREAD     = 2;
GNotifSys.OP_MARKUNREAD   = 3;
GNotifSys.OP_SETSTATUS    = 4;
GNotifSys.OP_REPLY        = 5;
GNotifSys.OP_SETDIRECTORY = 6;

//METHODS
//====================================== MEMBERS =============================================
GNotifSys.prototype.setDefaults = function()
{
 this.pageRef = null;
}

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

GNotifSys.prototype.getBinId = function()
{
 return this.bid;
}

GNotifSys.prototype.setBinId = function(ibid)
{
 if (this.bid == ibid)
  return;
 this.bid = ibid;
}

GNotifSys.prototype.getEventMediator = function()
{
 return this.eventMediator;
}

GNotifSys.prototype.finalize = function()
{
 delete this.eventMediator;
 this.setDefaults();
}

