thanks for testing that out Jason.
I just did the same and got the same result.
putting the code into separate blocks is a good workaround, so i have done it for the 2 menus and the footer, which appears to work fine.
the workaround is (obviously) only needed for the template, when using my php switch block within a page, it works asis.
Thanks again for your help