  <TABLE width="140" border="0" cellspacing="0" cellpadding="0"> <!-- Thumb icon -->
  <ja:if exists="folder">
    <ja:if test=<%=largeThumbs == true%>> <!-- Folder with large thumb -->
      <TR><TD style="height:140px;<ja:if test=<%=useSlideMount%>> background:url($resPath/dia.gif);</ja:if>" align="center" valign="middle">
      <A href="$closeupPath"><IMG src="$thumbPath" <ja:if exists="iconPath">border="0"</ja:if><ja:else>class="image"</ja:else> alt=""></A></TD></TR></ja:if>
    <ja:else>
    <ja:if test=<%=textBelowThumbs == true%>><TR><TD style="height:20px;">&nbsp;</TD></TR></ja:if>
    <ja:if exists="iconPath">  <!-- Folder without thumb -->
      <TR><TD style="height:100px;" align="right" valign="middle">
      <A href="$closeupPath"><IMG src="$resPath/folder.gif" width="140" height="100" border="0" alt=""></A></TD></TR></ja:if>
    <ja:else>  <!-- Folder with small thumb -->
      <TR><TD style="height:100px; background:url($resPath/folder1.gif);" align="right" valign="top">
        <TABLE style="width:112px; height:76px;" border="0">
          <TR><TD align="center"><A HREF="$closeupPath"><IMG class="image" SRC="$thumbPath" width="<%=thumbWidth/3%>" height="<%=thumbHeight/3%>" border="1" alt=""></A></TD></TR>
        </TABLE></TD></TR>
    </ja:else>
    <ja:if test=<%=textBelowThumbs == true%>><TR><TD style="height:20px;">&nbsp;</TD></TR></ja:if>
    </ja:else>
  </ja:if><ja:else><ja:if exists="iconPath">  <!-- Movie or other files file -->
    <TR><TD style="height:140px;" align="center" valign="middle">
    <A HREF="<%if(isMediaFile(fileName)) out.print("slides/" + label + engine.getPageExtension()); else out.print(closeupPath);%>"><IMG src="$thumbPath" title="<%out.print((comment!=void && comment!=null && comment.length()>0)? stripHTML(comment):fileName);%>" border="0" alt=""></A></TD></TR>
  </ja:if><ja:else>  <!-- Picture or THM movie -->
    <TR><TD style="height:140px;<ja:if test=<%=useSlideMount%>> background:url($resPath/dia.gif);</ja:if>" align="center" valign="middle">
    <A href="<%if(isMediaFile(fileName)) out.print("slides/" + label + engine.getPageExtension()); else out.print(closeupPath);%>"><IMG src="$thumbPath" title="<%out.print((comment!=void && comment!=null && comment.length()>0)? stripHTML(comment):fileName);%>" border="1" alt="" class="image"></A></TD></TR>
  </ja:else></ja:else>
  </TABLE>
  <TABLE width="128" border="0" cellspacing="0" cellpadding="0">
  <ja:if exists="folder"> <!-- Text below folder thumb -->
    <TR><TD align="center" valign="top" class="dirname">
    <ja:if test=<%=newLabel%>><ja:include page="includes/foldernewcheck.inc" /></ja:if>
      <A href="$closeupPath"><%out.print((title!=void && title.length()>0)? title:label.replace('_', ' '));%></A></TD></TR>
    <ja:if test=<%=(ttComment != void && ttComment && description != null)%>>
    <TR><TD align="center" valign="middle" class="smalltxt"><A href="$closeupPath">${description}</A></TD></TR></ja:if>
    <ja:if test=<%=ttImageCount == true%>>
    <TR><TD align="center" valign="middle" class="smalltxt">(<%if((c = engine.countFiles(files[imageNum-1])) > 1) out.print(c + " $text.images"); else out.print(c + " $text.image");%>)</TD></TR></ja:if>
  </ja:if><ja:else> <!-- Text below picture or media file -->
    <TR><TD align="center" valign="middle" class="smalltxt"><ja:include page="includes/thumbtext.inc" /></TD></TR>
  </ja:else>
  </TABLE>
