Implements hook_preprocess_HOOK() for page.tpl.php.
If the current page request is inside the overlay, hide the tabs.
function overlay_preprocess_page(&$variables) {
if (overlay_get_mode() == 'child') {
unset($variables['tabs']['#primary']);
}
}