function MENU()
{
   this.arrOffset    = [-49,20];
   this.arrHandlers  = new Array();
   this.DelayMenu    = 200;
   this.arrSubmenuID = new Array();

   //+---

   this.Open = function(BlockID, AnchorID)
     {
        objCore.BlockSwitch(BlockID);
        objCore.SetBlockAnchor(BlockID, AnchorID, this.arrOffset); 

        for (i=0; i < this.arrSubmenuID.length; i++)
          if (this.arrSubmenuID[i] !== BlockID)
            objCore.BlockHide(this.arrSubmenuID[i]);
     }

   //+---

   this.Over = function(BlockID)
     {
        clearTimeout(this.arrHandlers[BlockID]); 
     }

   //+---

   this.Out = function(BlockID)
     {
        clearTimeout(this.arrHandlers[BlockID]); 
        this.arrHandlers[BlockID] = setTimeout("objCore.BlockHide('"+BlockID+"')", this.DelayMenu); 
     }
 
   //+---

   this.Init = function(arrSubmenuID)
     {
        this.arrSubmenuID = arrSubmenuID;
     }
}

var objMenu = new MENU();