 			select * from annotations where taxon_name_id=#taxon_name_id#
 		</cfquery>
 	<cfelseif isdefined("project_id") and len(project_id) gt 0>
+		<cfset linky="project_id=#project_id#">
 		<cfquery name="d" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
 			select
 				'Project <strong>' || PROJECT_NAME || '</strong>' summary

			select * from annotations where project_id=#project_id#
		</cfquery>
	<cfelseif isdefined("publication_id") and len(publication_id) gt 0>
		<cfquery name="d" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
			select
				'Publication <strong>' || short_citation || '</strong>' summary

	<link rel="stylesheet" type="text/css" href="/includes/annotate.css">
	<span onclick="closeAnnotation()" class="windowCloser">Close Annotation Window</span>
	<cfif isdefined("collection_object_id") and len(collection_object_id) gt 0>
		<cfset linky="collection_object_id=#collection_object_id#">
		<cfquery name="d" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
			select
				'Specimen <strong>' || collection.guid_prefix || ':' || cat_num ||
