getDescription(); $source = $g_pic_obj->getSource(); $entity_tags = _tc_GetTags($g_selected_pic_id,3); $entity_objs = tc_GetEntitiesByTags($entity_tags); $related_media_objs = tc_GetMediaByTags($entity_tags); $related_event_array = tc_GetMediaLinksEvents($g_selected_pic_id); $window_title = "$description - Towncraft Image"; } else if (1 == count($vid_objs[1])) { $g_vid_obj = array_pop($vid_objs[1]); $description = $g_vid_obj->getDescription(); $source = $g_vid_obj->getSource(); $entity_tags = _tc_GetTags($g_selected_vid_id,3); $entity_objs = tc_GetEntitiesByTags($entity_tags); $related_media_objs = tc_GetMediaByTags($entity_tags); $related_event_array = tc_GetMediaLinksEvents($g_selected_pic_id); $window_title = "Towncraft Video: $description"; } else if ($g_selected_pic_path) { $description = ($g_selected_caption) ? (rawurldecode($g_selected_caption)) : (""); $source = $g_selected_pic_path; $window_title = "Towncraft Image: $description"; } else if ($g_selected_vid_path) { $description = ($g_selected_caption) ? (rawurldecode($g_selected_caption)) : (""); $source = $g_selected_vid_path; $window_title = "$description - Towncraft Video"; } ?>