Update layout.php

The Megamenu was always rendering mainmenu, now renders what admin has choosen in template Megamenu administration. At he moment this works only for one language site. In multilang there is a prblema when switching language.