"; $content .= "
"; $script = " function navit(evt){ var key; if(window.event) key = window.event.keyCode; else if (evt && evt.which) key = evt.which; else if (evt && evt.keyCode) key = evt.keyCode; if (key == 37){ window.location=\"http://www.shirehorse.com${html_dir}/showimage.php?imagedir=$imagedir&returnurl=$returnurl&thisoffset=$prevoffset\"; } if (key == 39){ window.location=\"http://www.shirehorse.com${html_dir}/showimage.php?imagedir=$imagedir&returnurl=$returnurl&thisoffset=$nextoffset\"; } }"; $littlepicts = ""; if ($showthumbs) { for ($i=0; $i < $thumb_count; $i++) { $f = $html_dir . "/imagedir/" . $thumbs[$i]; if ($i == $thisoffset) $border = 2; else $border = 0; $littlepicts .= " "; if (gmp_mod($i, 2)) $littlepicts .= "
"; } } $gobackurl = str_replace("%23", "#", $returnurl); $sidebar = "Go Back

"; $sidebar .= $arrows; $sidebar .= "$gallery_desc
"; $sidebar .= "                                                              
"; $sidebar .= "$pict_desc"; $content = "" . "
$sidebar
$littlepicts
$content
"; $tpl->assign( array( "SCRIPTS" => "$script")); $tpl->assign( array( "SIDEBAR" => "$sidebar")); $tpl->assign( array( "CONTENT" => $content )); $tpl->parse("start", array("start")); $tpl->FastPrint(); ?>