Replace main menu block with nice menus
Nice menu works in same way as you required. Did you configured this module correctly?

First you need to look into configuration of this module(Nice menus).

After that you need to configure your nice module correctly in block list as in attached image. If still error persists then look for JS error.