?>
							<?php 
if (get_option('show_category_count') == 1) {
    ?>
								<?php 
    wpsc_print_category_products_count("(", ")");
    ?>
							<?php 
}
?>
						</a>
						<?php 
wpsc_print_product_list();
?>
						<?php 
wpsc_print_subcategory("<ul>", "</ul>");
?>
					</li>
					
					
			<?php 
$categories = return_wpsc_end_category_query();
?>
			
			<?php 
$cat_array = explode("</li>", $categories);
foreach ($cat_array as $i => $cat) {
    if ($i % 4 == 0) {
        echo "<ul class='category-list'>";
    }
    echo $cat;
 * @since 3.8
 */
?>
<div class="wpsc_categories wpsc_category_grid group">
	<?php 
wpsc_start_category_query(array('category_group' => get_option('wpsc_default_category'), 'show_thumbnails' => 1));
?>
		<a href="<?php 
wpsc_print_category_url();
?>
" class="wpsc_category_grid_item  <?php 
wpsc_print_category_classes_section();
?>
" title="<?php 
wpsc_print_category_name();
?>
">
			<?php 
wpsc_print_category_image(get_option('category_image_width'), get_option('category_image_height'));
?>
		</a>
		<?php 
wpsc_print_subcategory("", "");
?>
	<?php 
wpsc_end_category_query();
?>
	
</div><!--close wpsc_categories-->

</a>
      <?php 
    if (wpsc_show_category_description()) {
        ?>

        <?php 
        wpsc_print_category_description("<div class='wpsc_subcategory'>", "</div>");
        ?>

      <?php 
    }
    ?>


      <?php 
    wpsc_print_subcategory("<div class='wpsc_subcategories'>", "</div>");
    ?>

    </div>
    <?php 
    wpsc_end_category_query();
    ?>

  </div>

<?php 
}
?>

<?php 
// */
" class="wpsc_category_link">

									<?php 
    wpsc_print_category_name();
    ?>

									<?php 
    if (1 == get_option('show_category_count')) {
        wpsc_print_category_products_count("(", ")");
    }
    ?>

								</a>

								<?php 
    wpsc_print_subcategory('<ul>', '</ul>');
    ?>

							</li>

						<?php 
    wpsc_end_category_query();
    ?>

					</ul>
				</li>
			</ul>

			<div class="clear_category_group"></div>
		</div>
    echo $width;
    ?>
px; height:<?php 
    echo $height;
    ?>
px" class="wpsc_category_grid_item" title="<?php 
    wpsc_print_category_name();
    ?>
">
			<?php 
    wpsc_print_category_image($width, $height);
    ?>
		</a>

		<?php 
    wpsc_print_subcategory('', '');
    ?>

		<?php 
    wpsc_end_category_query();
    ?>

<?php 
} else {
    ?>
		<?php 
    /*?><div class="wpsc_categorisation_group" id="categorisation_group_<?php echo $category_id; ?>"><?php */
    ?>
 
			<ul class="wpsc_categories wpsc_top_level_categories" id="categorisation_group_<?php 
    echo $category_id;