Try using
$_GET to detect the section.
you can using this example:
PHP Code:
$tabselected = '';
$tablinks = '';
if (($_GET['r'] == 10) && (THIS_SCRIPT == 'vbcms'))
{
$vbulletin->options['selectednavtab']='content.php?r=10';
$tabselected = ' class="selected"';
$tablinks = '';
}
$template_hook['navtab_end'] .= '<li'.$tabselected.'><a class="navtab" href="content.php?r=10">Tab Name</a>'.$tablinks.'</li>' ;