$imageCount || $num == $imageCount) { $num = 0; } if($num == "0") { $prevNum = ($imageCount - 1); } else { $prevNum = $num - 1; } $nextNum = $num + 1; print "
"; if($heading) { print "

" . $heading . "

"; } print ""; print "
"; print "" . $files[$num] . "
"; print "
"; print "

< prev | MNSKATEBOARDER | next >

"; ?>