Per user request, there could be a simple boolean property in the script which lets to toggle menu bar's behavior between a popup and a fixed bar.