$folder = preg_replace('@/.+?$@', '', $pathInfo['dirname']);
		   $subfolder = preg_replace('@^.+?/@', '', $pathInfo['dirname']);
		   if ($filename == 'index' && $subfolder) {
			   $filename = $subfolder;
		   }
		   $url = $pathInfo['dirname'] . '/' . $pathInfo['basename'];
	?>
	"<?php echo ucfirst($filename);?>":{name:"<?php echo ucfirst($filename);?>", file:"<?php echo ucfirst($filename);?>", title:"<?php echo ucfirst($filename);?>",  url: "<?php echo $url;?>", folder:"<?php echo $folder?>"},
	<?php } 