 			</div>
 		</cfloop>
 		<!--- Insert here more media in detail blocks here --->
-</cfif>
+</cfif>--->
 	<!---------------------------------------------------------------------------
 
 	 

or cfloop with name="your query".
--Peter DeVore, 20080310
--->
<cfset isMedia = false>		
<!---Adding in GReF code --->
<cfif #cgi.HTTP_HOST# contains "berkeley.edu">
	<cfquery name="grefcount" datasource="#Application.web_user#">
		select
		  count(book_section.publication_id) thecount
		from
		  gref_roi_ng, gref_roi_value_ng, book_section
		where
		  book_section.book_id = gref_roi_ng.publication_id
		  and gref_roi_value_ng.id = gref_roi_ng.ROI_VALUE_NG_ID
		  and gref_roi_ng.section_number = book_section.book_section_order
		  and gref_roi_value_ng.collection_object_id = #collection_object_id#
	</cfquery>
	<cfif grefcount.thecount gt 0>
		<cfquery name="gref" datasource="#Application.web_user#">
			select
			  book_section.publication_id,page_id
			from
			  gref_roi_ng, gref_roi_value_ng, book_section
			where
			  book_section.book_id = gref_roi_ng.publication_id
			  and gref_roi_value_ng.id = gref_roi_ng.ROI_VALUE_NG_ID
			  and gref_roi_ng.section_number = book_section.book_section_order
			  and gref_roi_value_ng.collection_object_id = #collection_object_id#
		</cfquery>
		<cfset isMedia = true>
	</cfif>
</cfif>
<cfif isMedia>
	<cfoutput>
		<div class="detailCell">
			<div class="detailLabel">Media</div>

						</cfloop>
					</div>
				</cfif>
<!--- Idea scrapped for now.

Adding media block of information. 
3 steps required.
1) Do the query looking for relevant media.
2) If a query detects media, do <cfset isMedia = true> after the query.
