<BananAlbum version="v5.1" generator="$generator" quality="best">

<comment>    PLEASE OPEN INDEX.HTML TO VIEW ALBUM    </comment>

<label><![CDATA[$title]]></label>

<respath><![CDATA[$resPath/]]></respath>
<dirpath><%
  void writePath(File dir, String prefix) {
    boolean topLevel = fileVariables.get(dir) == null;
    if (!topLevel)
      writePath(dir.getParentFile(), prefix + "");
    if (!topLevel) out.print("");
    if (prefix.length() > 0)
      out.print("");
    else out.print("");
    out.print((topLevel ? album.get("rootName") : dir.getName()) + "/");
  }
  if (album.get("rootName") == null) album.put("rootName", title);
  writePath(imageDirectory, "");
%></dirpath>

<bgcolor>$bgcolor</bgcolor>
<linecolor>$linecolor</linecolor>
<imgcolor transparency="100">$imgcolor</imgcolor>
<txtcolor>$txtcolor</txtcolor>
<labels typeface="<%

	if (labeltype.equals("default")) {
		out.print("");
	} else {
		out.print(resPath+"/typefaces/"+labeltype);
	}

%>" x="$labelx" y="$labely">$showlabels</labels>
<dateaslabel>$dateaslabel</dateaslabel>
<dateinlabel>false</dateinlabel>

<thumbs width="<%
if (thumbw.equals("")) {
if (maxThumbHeight == 404 && maxThumbWidth == 404) {
out.print("68");
} else if (maxThumbWidth == 404) {
out.print(maxThumbHeight);
} else {
out.print(maxThumbWidth);
}
} else {
out.print(thumbw);
}
%>" height="<%
if (thumbh.equals("")) {
if (maxThumbHeight == 404 && maxThumbWidth == 404) {
out.print("68");
} else if (maxThumbHeight == 404) {
out.print(maxThumbWidth);
} else {
out.print(maxThumbHeight);
}
} else {
out.print(thumbh);
}
%>" crop="$cropThumbs" margin="$topMargin" spacing="$thumbSpacing" hide="$hidethumbs" automove="true" center="$centerthumbs" scrollbar="$scrollbar" style="$thumbStyle" active="$activeThumb"><%

if (chooseThumbPos.equals("top")) {
	out.print("true");
} else if (chooseThumbPos.equals("disable")) {
	out.print("false");
} else {
	out.print(chooseThumbPos);
}

%></thumbs>

<images  x="$imgx" minx="$imgminx" y="$imgy" w="$imgw" h="$imgh" outline="$outline" autoscale="$autoScale" preload="$preload"/>
<transition fade="$imgFade">$imgTransition</transition>

<comments x="$txtx" y="$txty" w="$txtw" h="$txth" typeface="<%

	if (txttype.equals("default")) {
		out.print("");
	} else {
		out.print(resPath+"/typefaces/"+txttype);
	}

%>" external="$externalComments">$txt</comments>
<addinfo>$exifinfo</addinfo>
<download link="<% 
if (chooseDownload.toString().equals("enable direct download (php required)")) {
		out.print(resPath+"/download.php?image=[image]");
	}
if (chooseDownload.toString().equals("just open image in new window")) {
		out.print("[image]");
	}
 %>" target="<% 
if (chooseDownload.toString().equals("just open image in new window")) {
		out.print("_blank");
	}
 %>"><%

if (download.toString().equals("true")) {

if (engine.isCopyOriginals().toString().equals("true")) {
	out.print("this");
} else {
	out.print("true");
}

} else {
	out.print("false");
}

%></download>
<supersize><% 
if (chooseDownload.toString().equals("make button say 'superSize'")) {
		out.print("true");
} else {
out.print("false");
}
 %></supersize>

<margin>$margin</margin>
<leftmargin></leftmargin>

<logo x="" y="" h="" bg="" link="" target="_self"></logo>
<bg tile="$tile">$bg</bg>

<bananatree bg="false" transparency="100" active="$activecolor" prefix="$banaPrefix" suffix="$banaSuffix" collapse="true" y="$treeY" loadfirstifempty="true"><%

if (customTree.equals("")) {
	if (treeactive.toString().equals("false")) {
		out.print("false");
	} else if (chooseTree.equals("default")) {
		out.print("true");
	} else {
		out.print(resPath+"/bananatree/"+chooseTree);
	}
} else {
	out.print(resPath+"/bananatree/"+customTree);
}

%></bananatree>
<slideshow interval="$slideshowInterval" x="$slideshowX" y="$slideshowY" big="$slideshowBig" autostart="$slideshowAuto" txt="$slideshowtxt">$slideshow</slideshow>
<donut line="" fill="" transparency=""/>
<back target="_top"></back>

<rightmouse fullscreen="$fullscreen" download="$rightmouseDownload"/>

<ja:rowiterator>

<%

  File template = new File(skinDirectory, "top.htt");

    engine.processTemplateFile(template, new File(outputDirectory,"index.html"));

%>

<ja:coliterator>

<ja:if exists="fileSize">
<ja:if test="<%= $imageWidth > 100 %>">
	<slide>
		<label><![CDATA[$label]]></label>

<comment><![CDATA[<ja:if exists=comment>$comment</ja:if><ja:else>text here</ja:else>]]></comment>
<%

import se.datadosen.util.IO;

if (externalComments.toString().equals("true")) {
IO.copyFile(new File(skinDirectory, "comment.txt"), new File(outputDirectory, "slides/"+label+".txt"));
}

%>

		<date>$fileDate</date>

		<image width="$imageWidth" height="$imageHeight">$imagePath</image>
		<thumb width="$thumbWidth" height="$thumbHeight">$thumbPath</thumb>
		<ja:if exists="flash">
	<info filesize="<% mysize = $fileSize / (1024.0 * 1024.0);
mysize *= Math.pow(10, 2);
mysize = Math.floor(mysize);
mysize /= Math.pow(10, 2);
out.print(mysize); %> MB" date="$originalDate" resolution="$resolution px" flash="$flash" focallength="$focalLength" 
	exposuretime="$exposureTime" aperture="$aperture" focaldistance="$focusDistance" meteringmode="$meteringMode" 
	cameramake="$cameraMake" cameramodel="$cameraModel" sensortype="$sensorType" iso="$isoEquivalent"/>
		</ja:if>
	</slide>

</ja:if>
<ja:else>

<branch>
<label><![CDATA[$label]]></label>
<link>$closeupPath</link>
</branch>

</ja:else>

</ja:if>
<ja:else>

<branch>
<label><![CDATA[$label]]></label>
<link>$closeupPath</link>
</branch>

</ja:else>
</ja:coliterator>
</ja:rowiterator>

</BananAlbum>