<?
//HillCrest Jewelers Data Storage ARRAY
$itemdata=array(
	"names" => array("Item Number",
					"Metal",
					"Color",
					"Item Type",
					"Center Stone",
					"Center Stone Shape",
					"Center Stone Clarity",
					"Center Stone Color",
					"Center Stone Weight",
					"Side Stone",
					"Side Stone Shape",
					"Side Stone Clarity",
					"Side Stone Color",
					"Side Stone Weight",
					"Cost",
					"Retail"
					),
	"0001" => array(
					"0001",			//Number
					"18K",			//Metal
					"White",		//Color
					"Earrings",		//Item
					"",				//Center Stone
					"",				//Shape
					"",				//Clarity
					"",				//Color
					"",				//Weight
					"Diamond",		//Side Stone
					"Princess",		//Shape
					"SI",			//Clarity
					"F-G",			//Color
					"1.25TW",		//Weight
					"",				//Cost
					""				//Retail
					),
	"0052" => array(
					"0052",			//Number
					"14K",			//Metal
					"White",		//Color
					"Pendent",		//Item
					"",				//Center Stone
					"",				//Shape
					"",				//Clarity
					"",				//Color
					"",				//Weight
					"Diamond",		//Side Stone
					"Round & Baggett",		//Shape
					"SI",			//Clarity
					"G-H",			//Color
					"0.30TW",		//Weight
					"TUEH",			//Cost
					"1,020.00"		//Retail
					),
	"0024" => array(
					"0024",			//Number
					"14K",			//Metal
					"Yellow",		//Color
					"Pendent",		//Item
					"",				//Center Stone
					"",				//Shape
					"",				//Clarity
					"",				//Color
					"",				//Weight
					"Diamond",		//Side Stone
					"Round",		//Shape
					"SI",			//Clarity
					"G-H",			//Color
					"0.10TW",		//Weight
					"TTOE",			//Cost
					"320.00"		//Retail
					),
	"0011" => array(
					"0011",			//Number
					"14K",			//Metal
					"Yellow",		//Color
					"Earrings",		//Item
					"",				//Center Stone
					"",				//Shape
					"",				//Clarity
					"",				//Color
					"",				//Weight
					"Diamond",		//Side Stone
					"Round",		//Shape
					"SI",			//Clarity
					"H-I",			//Color
					"0.53TW",		//Weight
					"XGIP",			//Cost
					"1,195.00"		//Retail
					),
	"0006" => array(
					"0006",			//Number
					"14K",			//Metal
					"White",		//Color
					"Earrings",		//Item
					"",				//Center Stone
					"",				//Shape
					"",				//Clarity
					"",				//Color
					"",				//Weight
					"Diamond",		//Side Stone
					"Round",		//Shape
					"SI",			//Clarity
					"G-H",			//Color
					"0.62TW",		//Weight
					"XTXX",			//Cost
					"1,350.00"		//Retail
					),
	"0016" => array(
					"0016",			//Number
					"14K",			//Metal
					"Yellow",		//Color
					"Earrings",		//Item
					"",				//Center Stone
					"",				//Shape
					"",				//Clarity
					"",				//Color
					"",				//Weight
					"Diamond",		//Side Stone
					"Round",		//Shape
					"SI",			//Clarity
					"H-I",			//Color
					"0.20TW",		//Weight
					"XTET",			//Cost
					"100.00"		//Retail
					),
	"0015" => array(
					"0015",			//Number
					"14K",			//Metal
					"Yellow",		//Color
					"Earrings",		//Item
					"",				//Center Stone
					"",				//Shape
					"",				//Clarity
					"",				//Color
					"",				//Weight
					"Diamond",		//Side Stone
					"Round",		//Shape
					"SI",			//Clarity
					"H-I",			//Color
					"0.15TW",		//Weight
					"XTGP",			//Cost
					"85.00"			//Retail
					),
	"0014" => array(
					"0014",			//Number
					"14K",			//Metal
					"Yellow",		//Color
					"Earrings",		//Item
					"",				//Center Stone
					"",				//Shape
					"",				//Clarity
					"",				//Color
					"",				//Weight
					"Diamond",		//Side Stone
					"Round",		//Shape
					"I1",			//Clarity
					"H-I",			//Color
					"0.25TW",		//Weight
					"XTOP",			//Cost
					"195.00"		//Retail
					),
	"0018" => array(
					"0018",			//Number
					"14K",			//Metal
					"White",		//Color
					"Pendent",		//Item
					"",				//Center Stone
					"",				//Shape
					"",				//Clarity
					"",				//Color
					"",				//Weight
					"Diamond",		//Side Stone
					"Round",		//Shape
					"SI",			//Clarity
					"G&H",			//Color
					"0.23TW",		//Weight
					"THUP",			//Cost
					"375.00"		//Retail
					)

);
?>
<?
//Print Out Function
function printout($id) {
global $itemdata;
$loop=0;
?>
<table align="center" width="100%">
	<tr>
		<td align="left" width="48%">
			<a href="jewelery/<? echo($itemdata[$id][0]); ?>.jpg" target="_IMAGE"><img src="jewelery/<? echo($itemdata[$id][0]); ?>.jpg" width="320" height="240" border="0" /></a>
		</td>
		
		<td align="right" width="48%">
			<table align="center" width="100%">
			<? while($loop < 13) { ?>
				<tr>
					<td align="left" width="48%">
						<? echo($itemdata["names"][$loop]);?>
					</td>
					<td align="right" width="48%">
						<? echo($itemdata[$id][$loop]); ?>
					</td>
				</tr>
			<? $loop = $loop + 1; }; ?>
			</table>
		</td>
	</tr>
</table>
<?
};
?>