}
 $keywords = BuildEventKeywordList($categoryID, $eventName, $eventTypeID, $id);
 $keywords = AmpersandToAnd($keywords);
 $smarty->assign("SeoKeywords", $keywords);
 $descr = "Buy {$eventName} Tickets at great prices. Discount {$eventName} tickets.";
 $url = make_event_url($eventName, $id);
 $breadcrumb_str = Breadcrumbs($categoryID, 0);
 $breadcrumb_str = AppendBreadcrumb($breadcrumb_str, "{$url}", $eventName);
 # if category is theater, list venues first.
 $disp_home_away = 0;
 if ($eventTypeID == 4) {
     $title = "{$eventName} Tickets, {$eventName} Schedule, {$eventName} Dates, Discounted {$eventName} Tickets";
     $smarty->assign("title", $title);
     $smarty->assign("MetaDescr", $descr);
     $smarty->display('main.tpl');
     $venues = GetVenueList($id);
     $smarty->assign("Breadcrumbs", $breadcrumb_str);
     $smarty->assign("EventName", $eventName);
     $smarty->assign("EventIntroText", $eventIntroText);
     if (strlen($eventText) > 2) {
         $smarty->assign("EventText", $eventText);
     }
     if (is_array($venues)) {
         $smarty->assign("Venues", $venues);
         $smarty->assign("NumVenues", count($venues));
         $smarty->display('venue_list.tpl');
     } elseif ($eventIntroText != '') {
         $smarty->display('venue_list.tpl');
     } else {
         $smarty->display('no_tickets.tpl');
     }
 $breadcrumb_str = AppendBreadcrumbNoAnchor($breadcrumb_str, "{$eventName} Tickets");
 # if category is theater, list venues first.
 $disp_home_away = 0;
 if ($eventTypeID == 4) {
     $title = "{$eventName} Tickets, {$eventName} Schedule, {$eventName} Dates, Discounted {$eventName} Tickets";
     $descr = "{$eventName} Tickets - Buy {$eventName} Tickets and all other Theater Tickets at MongoTickets. Buy your {$eventName} Tickets today.";
     if (array_key_exists($eventID, $seo_data)) {
         $title = $seo_data[$eventID]['title_tag'];
         $descr = $seo_data[$eventID]['meta_descr'];
         $keywords = $seo_data[$eventID]['keywords'];
         $smarty->assign("SeoKeywords", $keywords);
     }
     $smarty->assign("title", $title);
     $smarty->assign("MetaDescr", $descr);
     $smarty->display('main.tpl');
     $venues = GetVenueList($eventID, $categoryID);
     $smarty->assign("Breadcrumbs", $breadcrumb_str);
     $smarty->assign("EventName", $eventName);
     $smarty->assign("EventIntroText", $eventIntroText);
     if (strlen($eventText) > 2) {
         $smarty->assign("EventText", $eventText);
     }
     if (is_array($venues)) {
         $smarty->assign("Venues", $venues);
         $smarty->assign("NumVenues", count($venues));
         $smarty->display('venue_list.tpl');
     } elseif ($eventIntroText != '') {
         $smarty->display('venue_list.tpl');
     } else {
         $smarty->display('no_tickets.tpl');
     }