if $ENV.prefs.show_record_tree}
							{block name="before_record_tree"}
							{load_record var="record"}
							{include file="RecordNavMenu.html" record=$record}
							{block name="after_record_tree"}
						{/if}
						{if $record->_table->relationships()|@count>0}
							{define_slot name="record_search"}
							{if !$ENV.prefs.hide_record_search}
							<div class="sidebox">
							{collapsible_sidebar heading="Find in Record" }
							<div id="record-search">
								
								<input type="text" name=