switch ($category) { case 'buildings': case 'names': if (isset($_REQUEST['drilldown'])) { $title = $categories[$category]; $drilldown = $_REQUEST['drilldown']; $drilldown_title = $_REQUEST['desc']; $places = places_sublist($drilldown); require "$page->branch/drilldown.html"; } else { require "$page->branch/$category.html"; } break; default: $title = Buildings::category_title($category); $places = Buildings::category_items($category); require "$page->branch/places.html"; break; } } $page->output(); function places_sublist($listName) { $places = array(); if($_REQUEST['category'] == 'buildings') { $drill = new DrillNumeralAlpha($listName, "key"); $keys = array_keys(Buildings::$bldg_data);