".str_replace("_"," ",$id)."");
}
while (false !== ($filename = readdir($dh))) {
if($id){
if ((substr($filename,-4) == ".jpg" or substr($filename,-4) == ".jpe" or substr($filename,-4) == "jpeg") and substr($filename,-9) != "thumb.jpg") {
echo "";
}
} else {
if(is_dir($filename) and $filename != "." and $filename != ".."){
echo "";
}
}
}
closedir($dh);
?>