count($gallery)){ $num = get_num_gallery(); $numofpages = $allgallery[0][0] / $num; ?>
"; if ($gallery[$i+1][0]) echo "
"; if ($gallery[$i+2][0]) echo "
" ?>