';
- break;
+ $pg =& $paths->pages[$i];
+ $q_lc = strtolower( str_replace(' ', '_', $q) );
+ $q_tl = strtolower( str_replace('_', ' ', $q) );
+ $p_lc = strtolower($pg['urlname']);
+ $p_tl = strtolower($pg['name']);
+ if ( strstr($p_tl, $q_tl) || strstr($p_lc, $q_lc) && $pg['visible'] == 1 )
+ {
+ echo '