options: -geometry=170x114
<:
  # Newfloat theme version 0.2 for album <http://marginalhacks.com/Hacks/album/>
  # Copyright 2003 Helmar Wieland <heldhelm@gmx.de> <http://helmar.dyndns.org/>
  # License: GPLv2 or later

  sub helmIsImageCaption {
    if (($IMAGE_CAPTION_FILES[$IMAGE_CNT] && (-r $IMAGE_CAPTION_FILES[$IMAGE_CNT])) || $IMAGE_CAPTIONS[$IMAGE_CNT]) {
      return 1;
    }
    return 0;
  }
  sub helmImageCaption {
    if ($IMAGE_CAPTION_FILES[$IMAGE_CNT] && (-r $IMAGE_CAPTION_FILES[$IMAGE_CNT])) {
      my ($buffer) = "";
      return 0 unless (open(FILE,"$IMAGE_CAPTION_FILES[$IMAGE_CNT]"));
      while(<FILE>) { $buffer .= $_; }
      close FILE;
      return $buffer;
    }
    elsif ($IMAGE_CAPTIONS[$IMAGE_CNT]) {
      return $IMAGE_CAPTIONS[$IMAGE_CNT];
    }
    return 0;
  }
  sub helmStripMarkup {
    if (@_) {
      $_ = $_[0];
      s/\<(.*?)>//gi; # this is kinda stupid
      return $_;
    }
    return 0;
  }
  sub helmMakeNonBsp {
    if (@_) {
      $_ = $_[0];
      s/\s/&nbsp;/g; # this is kinda stupid, too
      return $_;
    }
    return 0;
  }
:>//
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title><: pAlbum_Name() :></title>
  <meta http-equiv="content-type" content="text/html;charset=ISO-8859-1" />
  <: Meta() :>//
<: if (!(Parent_Albums_Left() == 1)) { :>//
  <link rel="start" href="<: $_ = Parent_Album(); s/<a href=['|"](.+)['|"]>.*<\/a>/$1/; print; :>" />
<: } :>//
  <link rel="up" href=<:=Back():> />
  <link rel="stylesheet" type="text/css" href="<:=Theme_Path():>/newfloat.css" title="newfloat album style" />
  <style type="text/css"><!--
  h1 {
    background-image: url("<:=Theme_Path():>/h1.gif");
  }
  ul.breadcrums {
    background-image: url("<:=Theme_Path():>/bread1.gif");
  }
  ul.breadcrums:hover {
    background-image: url("<:=Theme_Path():>/bread2.gif");
  }
  div.thumbs div.thumbnail {
    background-image: url("<:=Theme_Path():>/thumb4.gif");
  }
  div.thumbs div.thumbnail:hover {
    background-image: url("<:=Theme_Path():>/thumb5.gif");
  }
  --></style>
  <script type='text/javascript'><!--
  if (document.images) {
    Image1 = new Image(); Image1.src = '<:=Theme_Path():>/bread2.gif';
    Image2 = new Image(); Image2.src = '<:=Theme_Path():>/thumb5.gif';
  }
  --></script>
</head>
<body>

<h1>
  <: pAlbum_Name() :>
</h1>

<ul class="breadcrums">
<: while (Parent_Albums()) {
     print "  <li>\n    ";
     pParent_Album();
     if (Parent_Albums_Left() > 1) {
	print " &raquo;";
     }
     print "\n  </li>\n";
     Next_Parent_Album()
   } :></ul>

<: if (isHeader()) {
:><h2>
  <:pHeader():>         
</h2>
<: } :>//

<: if (Child_Albums()) { :>//
<div class="folders"><ul>
<:   while (Child_Albums()) {
:>  <li>
    &raquo;&nbsp;<a href=<:=Child_Album_URL():>><:=helmMakeNonBsp(Child_Album_Name()):></a>
  </li>
<:     Next_Child_Album();
     } :></ul></div>
<: } :>

<: if (Images()) { :>//
<div class="thumbs">
<: while(Images()) { :>//
  <div class="thumbnail">
    <a href=<:=Image_URL():>>
      <img src=<:=Image_Thumb():> width='<:=Get_Opt('x'):>' height='<:=Get_Opt('y'):>' alt=<:=helmStripMarkup(Image_Alt()):>//
<:    if (helmIsImageCaption()) {
        print " title='" . helmStripMarkup(helmImageCaption()) . "'";
      }
      :> />
    </a>
    <div class="thumbname"><:=Image_Name():></div>
  </div>
<: Next_Image() :>//
<: } :>//
</div>
<: } :>//

<: if (isFooter()) { :><div class="spacer">&nbsp;</div>

<h2 class="footer">
  <:pFooter():>
</h2><: } :>

<address>
<: Credit() :> on <:=scalar localtime:><br />
<span class="helmar">Newfloat theme 0.2 by <a href="http://helmar.dyndns.org/">Helmar Wieland</a></span>
</address>

</body>
</html>
