+ </div>
+
+ <!-- the photo itself -->
+
+ <div class="photo">
+ { if $next_url == "" }
+ <a href="{$image_url}" onclick="showPhotoIndex(); return false;" onfocus="click(this);" name="photo">
+ { else }
+ <a href="{$image_url}" onclick="{$next_url}; return false;" onfocus="click(this);" title="click for the next photo" name="photo">
+ { /if }
+ <img src="{$image_url}" width="{$width}" height="{$height}" alt="{$image_filename}" name="photo" id="photo" />
+ </a>
+ </div>
+
+ <!-- navigation arrows -->
+
+ <div class="photonavigation">
+ { if $previous_url == "" }
+ <img src="{$web_path}/resources/arrow_left_gray.png" alt="first photo reached" />
+ { else }
+ <a href="{$previous_url}" onfocus="click(this);" title="click for the previous photo (left cursor)">
+ <img src="{$web_path}/resources/arrow_left.png" alt="previous photo" />
+ </a>
+ { /if }
+ <a href="javascript:showPhotoIndex({$current_page}, {$current_img});" onfocus="click(this);" title="click to go back to the index">
+ <img src="{$web_path}/resources/arrow_up.png" alt="photo index" />
+ </a>
+ { if $next_url == "" }
+ <img src="{$web_path}/resources/arrow_right_gray.png" alt="last photo reached" />
+ { else }
+ <a href="{$next_url}" onfocus="click(this);" title="click for the next photo (right cursor)">
+ <img src="{$web_path}/resources/arrow_right.png" alt="next photo" />
+ </a>
+ { /if}
+ </div>
+</p>
+<script type="text/javascript">
+<!--
+ if(autobrowse && document.getElementById("autobrowse_ico"))
+ document.getElementById("autobrowse_ico").src = '{$web_path}/resources/16_pause.png';
+
+ /* lets preload to previous and the next image to speedup */
+ var image_next = new Image();
+ image_next.src = "{$web_path}/phpfspot_img.php?idx={$next_img}&width={$photo_width}";
+ var image_prev = new Image();
+ image_prev.src = "{$web_path}/phpfspot_img.php?idx={$prev_img}&width={$photo_width}";
+
+-->
+</script>