 			collector.agent_id=#agent_id#
 	</cfquery>
 	<cfif collectormedia.c gt 0>
-		Media:
-
-		<ul>
-
-			<li>
-				<a href="/MediaSearch.cfm?action=search&collected_by_agent_id=#agent_id#">
-					Media from #collectormedia.c# collected/prepared specimens
-				</a>
-			</li>
-		</ul>
+		<p>
+			Media:
+			<ul>
+
+				<li>
+					<a href="/MediaSearch.cfm?action=search&collected_by_agent_id=#agent_id#">
+						Media from #collectormedia.c# collected/prepared specimens
+					</a>
+				</li>
+			</ul>
+		</p>
 	</cfif>
 	<cfquery name="project_agent" datasource="uam_god">
 		select



	<cfif agent_relations.recordcount gt 0>
		Relationships FROM #agent.preferred_agent_name#:
		<ul>
			<cfloop query="agent_relations">
				<li>#AGENT_RELATIONSHIP# <a href="agent.cfm?agent_id=#RELATED_AGENT_ID#">#agent_name#</a></li>
			</cfloop>
		</ul>
	</cfif>
	<cfquery name="agent_relationsto" datasource="uam_god">
		select AGENT_RELATIONSHIP,agent_name,preferred_agent_name.agent_id

	<p>
		Activity Summary for #agent.preferred_agent_name# (#agent.agent_type#)
	</p>
	<p>
		Agent Names:
		<ul>
			<li>#agent_name# (#agent_name_type#)</li>
		</ul>
	</p>

	<cfif agent.agent_type is "group">
		<cfquery name="grpagnt" datasource="uam_god">
			select MEMBER_AGENT_ID,getPreferredAgentName(MEMBER_AGENT_ID) name from group_member where GROUP_AGENT_ID=#agent_id#
