joandiego - wonderful! Thanks so much for that.
The only problem I have now is the fact that the page_parent of a category page is the default posts page.
In my stylesheet I have:
#nav ul li.current_page_item a, #nav ul li.current_page_parent a, #nav ul li.current-cat a {
color: #AA0000;
}
The parent menu item of a child page is still highlighted when on that child page, and the menu item of a category is highlighted when on a category page.
But because, when on a category page, the default posts page is marked with 'current_page_parent', it means the default posts page menu item is highlighted AS WELL AS the category, when on a category page.
Is there any way round this? So that I can still highlight parent menu items to a depth of 2 on both static pages and category pages, without the posts page highlighting when on a category page?