<div class="highslide-gallery" style="float:left; margin:5px">
<a id="thumb<?php echo $photoid ?>" href="/photos/<?php echo $photoid ?>.jpg" class="plinks" onclick="return hs.expand(this)"><img src="/photos/thumbs/<?php echo $photoid ?>.jpg" width="75" height="50" alt="<?php echo $photo ?>" title="<?php echo $photo ?>"></a></div>
