Thanks
global $post; // if outside the loop
if (is_page() && $post->post_parent) {
$parent_title = get_the_title($post->post_parent);
echo ' » <a href="' . get_permalink($post->post_parent) . '">' . $parent_title . '</a> » ';
wp_title('');
} else if (is_page()) {
echo ' » ';
wp_title('');
} else {
}