<?php if (!defined('WEBPATH')) die(); $startTime = array_sum(explode(" ",microtime())); $firstPageImages = normalizeColumns(1, 6); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
  <title><?php printGalleryTitle(); ?></title>
  <link rel="stylesheet" href="<?php echo $_zp_themeroot ?>/zen.css" type="text/css" />
  <?php printRSSHeaderLink('Album',getAlbumTitle()); ?>
  <?php zenJavascript(); ?>
</head>
<body>

<div id="main">
  <div id="gallerytitle">
    <h2><span><a href="<?php echo getGalleryIndexURL();?>" title="Albums Index"><?php echo getGalleryTitle();?></a> | <?php printParentBreadcrumb(); ?></span> <?php printAlbumTitle(true);?></h2>
  </div>
  <hr />
  <div class="desc">
    <?php printAlbumDesc(true); ?>
  </div>
  
  <br />
  
  <!-- Sub-Albums -->
  <div id="albums">
  <?php while (next_album()): ?>
    <div class="album">
      <div class="albumthumb"><a href="<?php echo getAlbumLinkURL();?>" title="<?php echo getAlbumTitle();?>">
        <?php printAlbumThumbImage(getAlbumTitle()); ?></a></div>
      <div class="albumtitle"><h3><a href="<?php echo getAlbumLinkURL();?>" title="<?php echo getAlbumTitle();?>">
        <?php printAlbumTitle(); ?></a></h3> <?php printAlbumDate(); ?></div>
      <div class="albumdesc"><?php printAlbumDesc(); ?></div>
    </div>
    <hr />
  <?php endwhile; ?>
  </div>
  
  
  <?php if (getNumImages() > 0): /* Only print if we have images. */ ?>
  
  <?php printPageListWithNav("&laquo; prev", "next &raquo;"); ?>

  <!-- Images -->
  <div id="images">
	<?php 
	  while (next_image(false, $firstPageImages)): 
	?>
    <div class="image">
      <div class="imagethumb"><a href="<?php echo getImageLinkURL();?>" title="<?php echo getImageTitle();?>">
        <?php printImageThumb(getImageTitle()); ?></a>
      </div>
    </div>
  <?php endwhile; ?>
  </div>
  
  <br style="clear: both;" />
  
  <?php printPageListWithNav("&laquo; prev", "next &raquo;"); ?>
  <hr class="space" />
  
  <?php endif; ?>
  
  <p style="text-align: right;"><?php printRSSLink('Album', '', 'Album RSS', ''); ?>
    <?php /* Timer */ echo round((array_sum(explode(" ",microtime())) - $startTime),4)." Seconds, $_zp_query_count queries ran."; ?></p>

</div>

<?php printAdminToolbox(); ?>

</body>
</html>