<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

	<head>
		<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
		<meta name="generator" content="Adobe GoLive">
		<title>Product Sections</title>
  <?php
           include("shopfunctions.php");
           $grouplist = $HTTP_GET_VARS;
           $id = $grouplist["id"];
           $sub = "Store";
           $subfold = GetFolderList($sub);
           $subfolders = ContentSubFolder($sub,$subfold);
           $counter = CountSub($sub, $subfold);

  ?>
	</head>

	<body bgcolor="#e6e6fa">
		<table width="80%" border="0" cellspacing="0" cellpadding="0" align="center">
			<tr>
				<td colspan="3" bgcolor="#191970"><br><h2 align="center"><font color="#e6e6fa" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">Products</font></h2></td>
			</tr>


<?php
   //START output
          $numb = count($counter);
          for($i = 0; $i<$numb;$i = $i+3)
          {
          ?>
			<tr height="19">
				<td bgcolor="#e6e6fa" width=33% height="19"></td>
				<td bgcolor="#e6e6fa" width=33% height="19"></td>
				<td bgcolor="#e6e6fa" width=33% height="19"></td>
			</tr>
			<tr>
                <td bgcolor="#e6e6fa" width=33%>
					<div align="center">
						<a href="Products.php?Group=<? echo $subfold[$i]."&id=".$id; ?>"><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"><?
                if($subfold[$i] && $counter[$i]!=1)
                {
                    echo $subfold[$i]."(".$counter[$i].")";
                }
                elseif($subfold[$i])
                {
                    echo $subfold[$i];
                }
                ?></font></a></div>
				</td>
				<td bgcolor="#e6e6fa" width=33%>
					<div align="center">
						<a href="Products.php?Group=<? echo $subfold[$i+1]."&id=".$id; ?>"><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"><?
                if($subfold[$i+1] && $counter[$i+1]!=1)
                {
                    echo $subfold[$i+1]."(".$counter[$i+1].")";
                }
                elseif($subfold[$i+1])
                {
                    echo $subfold[$i+1];
                }
                ?></font></a></div>
				</td>
				<td bgcolor="#e6e6fa" width=33%>
					<div align="center">
						<a href="Products.php?Group=<? echo $subfold[$i+2]."&id=".$id; ?>"><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"><?
                  if($subfold[$i+2] && $counter[$i+2]!=1)
                {
                    echo $subfold[$i+2]."(".$counter[$i+2].")";
                }
                elseif($subfold[$i+2])
                {
                    echo $subfold[$i+2];
                }
                ?></font></a></div>
				</td>
             </tr>
			<?
    //END output
          }
          ?>
			<tr height="30%">
				<td bgcolor="#e6e6fa" height="30%"></td>
				<td bgcolor="#e6e6fa" height="30%"></td>
				<td bgcolor="#e6e6fa" height="30%"></td>
			</tr>
			<tr height="30">
				<td bgcolor="#e6e6fa" width="33%" height="30"></td>
				<td width="33%" height="30"></td>
				<td width="33%" height="30"></td>
			</tr>
			<tr>
				<td colspan="3" bgcolor="#e6e6fa"></td>
			</tr>
		</table>
		<p></p>
	</body>

</html>
