The mainmenu is auto for the horizontal moomenu. If you want in horizontal moomenu the topmenu you should go in Extensions - Template Manager. Select the template and click edit. There for Menu Name add topmenu instead of mainmenu.
Another way how to do it is to change in params.ini
menuName=mainmenu
with
menuName=topmenu
