$f) {
$fp = explode(".",$f);
if (count($fp) > 1) {
if ($fp[count($fp)-1] == "pde") {
array_pop($fp);
$name = implode($fp,".");
if ($i == $sketchnum) {
$sketchname = $name;
}
$i++;
}
}
}
$nextsketch = $sketchnum + 1;
if ($nextsketch >= count($files)) {
$nextsketch = 0;
}
?>