$key < $thispic";
if ($key<$thispic){
$previous = $key;
}
if ($key>$thispic && !$next){
$next = $key;
}
}
if ($previous){
echo "
« Previous";
}
if ($previous && $next){
echo " • ";
}
if ($next){
echo "
Next » ";
}
echo "
\n";
if ($pic){
$img = new Image ('/graphics/photos2012/'.$thispic);
$img->scale (600);
echo $img->write();
}
?>