 							</tr>
 						</cfloop>
 					</table>
+					</div>
 				</td>
 			</tr>
 		</cfif>

			part_id=#pid#
	</cfquery>
	<cfsavecontent variable="r">

		<tr>
			<td>
				<div style="padding-left:#level#em;">
					#level#-#p.part_name#
				</div>
			</td>

		<cfif patt.recordcount gt 0>
			<tr>
				<td colspan="6">
					<div style="padding-left:#level#em;">

					<table border id="patbl#pid#" class="detailCellSmall sortable">
						<tr>
							<th>
