";
//following line is used to display an image for each paragraph
//print "";
print "
";
$temp_ids=$current_xml_file->xpath("/story/paragraph/@id");
$total_paragraphs=count($temp_ids);
$id_back=$id-1;
$id_forward=$id+1;
$id_back=$id_back<1?1:$id_back;
$id_forward=$id_forward>$total_paragraphs?$total_paragraphs:$id_forward;
print "";
*/
/* enable a thumbnail image for each paragraph of the story by using following code
foreach($temp_ids as $temp_id)
{
$thumb_image_name = "Thumb".$temp_id.".jpg";
print "";
}
*/
//print "";
print "";
}
if(isset($_GET['id']))
{
print "