<!-- Photo Index -->
<div class="header">
- <div style="float: left;">
+ <div class="subheader">
<b>Photo Index</b>
{if $searchfor }
{if $count == 1}
Results are limited to a date within {$from_date} to {$to_date}.
{/if}
</div>
- <div style="text-align: right">
+<div class="textright">
{if $slideshow_link }
<a href="{$slideshow_link}" title="Slideshow" target="_blank"><img src="resources/slideshow.png" /></a>
{/if}
{/if}
</div>
</div>
+{ if $tag_result }
+<div class="tagresult"></div>
+<div class="subheader">
+ <div class="tagresulttags">
+ Tags:
+ </div>
+ { $selected_tags }
+</div>
+{ /if }
<div id="index">
</div>
<br class="clearboth" />
-<div style="width: 100%; margin-top: 20px;">
+<div class="indexnavigation">
<!-- the right nav arrow -->
- <div style="float: right; width: 40px; margin-right: 0px; padding-right: 10px;">
+ <div class="indexnavigationright">
{ if $next_url == "" }
{ if $count != 0 }
<img src="resources/arrow_right_gray.png" alt="last page reached" />
</div>
<!-- the left nav arrow -->
- <div style="float: left; margin: 0px; padding-left: 10px; width: 40px;">
+ <div class="indexnavigationleft">
{ if $previous_url == "" }
{ if $count != 0 }
<img src="resources/arrow_left_gray.png" alt="first page reached" />
</div>
<!-- the middle page selector -->
- <div style="text-align: center;">
+ <div class="indexnavigationcenter">
{ if $page_selector != "" }
{$page_selector}
{ /if}
<br class="clearboth" />
<script type="text/javascript" language="JavaScript">
<!--
+ /*** image preloading ***/
{ counter start=-1 }
var current;
var image_urls = new Array();
+ var last_thumb;
{section name="thumb" loop=$thumbs step=1}
{if $images[thumb] }
image_urls[{counter}] = 'phpfspot_img.php?idx={$images[thumb]}&width={$width}';
+ last_thumb = {$images[thumb]};
{/if}
{/section}
preloadPhotos(image_urls);
+
+ // auto-scroll
+ //
+ // if browser is to far down the page, that he can't see the photo at all
+ // scroll it up so that at least the last photo becomes visisble.
+ { literal }
+
+ var ywnd = 0;
+ var yimg = 0;
+ // check where we are with the browser
+ if (window.pageYOffset) {
+ ywnd = window.pageYOffset;
+ } else if (document.body && document.body.scrollTop) {
+ ywnd = document.body.scrollTop;
+ }
+ // check the y-pos of the last thumbnail
+ if(thumbimg = document.getElementById('thumbimg' + last_thumb)) {
+ yimg = findPos(thumbimg,'top');
+ }
+ // if the browser-window is scrolled further then the last_thumb, scroll back
+ if(ywnd > yimg) {
+ window.scrollTo(0, yimg-100);
+ }
+
+ { /literal }
+ // auto-scroll
+
-->
</script>
<!-- /Photo Index -->