From http://css-tricks.com/snippets/wordpress/if-page-is-parent-or-child/
wordpress tree