<body bgcolor=#000000>
	<!--	      -
		     | |
		     | |
		 - - | |-      |====| |====| |====| |====|    |=|=| |    | |====| |====|    |    | |====| |====|  |====|
		| |  | | |     |    | |    | |      |           |   |\   | |      |    |    |    | |      |    |  |
		|        |-    |    | |    | |      |           |   | |  | |      |    |    |    | |      |    |  |
		|        | |   |====| |====| |      |====|      |   | \  | |==|   |    |    |====| |====| |====|  |====|
		|        | |   |      |    | |  |=| |           |   |  | | |      |    |    |    | |      |   \   |
		\         /    |      |    | |    | |           |   |   \| |      |    |    |    | |      |    \  |
		 \       /     |      |    | |====| |====|    |=|=| |    | |      |====|    |    | |====| |     \ |====|
			
		 WRITE ALL YOUR IMPORTANT INFORMATION HERE!  BUT LEAVE THIS TAG HERE! BECAUSE IT LOOKS COOL!
	-->
	<font class = "NormalText">
	<?php
		include('fileops.php');

		$start = 0;
		$num = 133;

		echo $imgdir;
	
		// separate thumbnail tree
		$img_thumbdir = "thumbs/" . $origimgdir;
		$imgdir = "photos/" . $origimgdir;

		$files = getImageList($img_thumbdir);
		if(count($files) < $num)
			$num = count($files);

		$updir = substr("$origimgdir", 0, strpos("$origimgdir","/"));

		// start at $start, go for $num
		echo "<font color=#FFFFFF>";
		echo "<a href=\"24_hours_of_charlotte.zip\">Download all pictures (.zip)</a>";
		echo "<br><br><br>";
		echo "<table border=0 width=100%>";
		for($z = $start; $z < $start + $num; $z += 3) {
			echo "<tr>";
			echo "<td width=50% class=\"TableBody\">";
			echo "<a href=\"photos/" . $files[$z] . "\" class=\"TextLink\"><img src=\"" . $img_thumbdir . "/" . $files[$z] . "\">";
			echo "</td>";
			echo "<td width=50% class=\"TableBody\">";
			if($z + 1 < $start + $num) {
				echo "<a href=\"photos/" . $files[$z + 1] . "\" class=\"TextLink\"><img src=\"" . $img_thumbdir . "/" . $files[$z + 1] . "\">";
			}
			echo "</td>";
			echo "<td width=50% class=\"TableBody\">";
			if($z + 2 < $start + $num) {
				echo "<a href=\"photos/" . $files[$z + 2] . "\" class=\"TextLink\"><img src=\"" . $img_thumbdir . "/" . $files[$z + 2] . "\">";
			}
			echo "</td>";
			echo "</tr>";
		}
		echo "</table>";
	?>
	</font>
	
	<!-- End page! -->
</body>
</html>

