' . "\n"; if ( $files[$imagekey-1] != null) { echo '' . "\n"; } else { echo '
' . "\n"; } if ( $files[$imagekey] != null) { $file_parts = pathinfo($files[$imagekey]); echo '' . "\n"; } else { echo '
' . "\n"; } if ( $files[$imagekey+1] != null) { echo '' . "\n"; } else { echo '
' . "\n"; } echo '
' . "\n"; echo '
' . "\n"; ?>
'; if ($files[$imagekey] != null) { if ( $files[$imagekey+1] != null) { echo ''; } else { echo ''; } echo 'Click thumbnails below to see image. Click image to go to next image
' . "\n"; } else { echo ''; echo 'Click thumbnails below to see image. Click image to get original
' . "\n"; } echo '
Collapse
' . "\n"; echo '
Expand
' . "\n"; echo '
' . "\n"; echo '
' . "\n"; foreach ($files as $key=>$file) { $file_parts = pathinfo($file); echo '' . "\n"; if ($imagekey == $key) { echo '' . "\n"; } else { echo '' . "\n"; } } echo '
' . "\n"; ?>