function showSubGalleries(&$subgalleries, $use_tables = true, $Itemid, $no_columns, $gallery_prefix, $show_catimg, $show_metabox)
    {
        global $zoom;
        if ($subgalleries) {
            $i = 0;
            foreach ($subgalleries as $subgallery) {
                if ($subgallery->isMember()) {
                    $i++;
                }
            }
            if ($i > 0) {
                if ($use_tables) {
                    ?>
    	            <table border="0" cellspacing="0" cellpadding="3" width="80%">
    	            <tr>
    					<td colspan="<?php 
                    echo $no_columns;
                    ?>
">
    						<hr />
    					</td>
    				</tr>
    				<tr>
    			<?php 
                } else {
                    ?>
    			<hr />
    	        <div class="zmg-sub-album">
    	            <?php 
                }
                foreach ($subgalleries as $subgallery) {
                    if ($subgallery->isMember()) {
                        ZMG_Template_Gallery::showSubGalleryListButton($use_tables, $Itemid, $subgallery, $no_columns, $gallery_prefix, $show_catimg, $show_metabox);
                    }
                }
                if ($use_tables) {
                    ?>
    				</tr>
    				<tr>
    					<td colspan="<?php 
                    echo $no_columns;
                    ?>
">
    						<hr />
    					</td>
    				</tr>
                </table>
    	        	<?php 
                } else {
                    ?>
    			</div>
    			<div class="clr"></div>
    			<hr />
    			<?php 
                }
            }
        }
    }