Intermenu functions and inventory detection fixed

Also added menu.mouseOptions and TBoxArray.deleteIndex(array:
TIntegerArray).