I'm trying to achieve the following structure:
Mainmenu (always visible)
Submenu (only visible if Page 1,2, or 3 has a subpage)
Page 1.1 (subpage of Page 1)
ok, that's easy with the example on the codex page: http://codex.wordpress.org/Template_Tags/wp_list_pages
but now comes my headache, if the subpage 1.1 has also a subpage, it should show a third menu with this subpage (1.1.1), and still displaying the 2 other menus (main & submenu)
Page 1.1.1 (subpage of Page 1.1)
any ideas, how I could check if a current child page has another child page and display this?