
';
echo '
';
echo '
';
if (file_exists("c.png")) echo '
';
if (file_exists("d.png")) echo '
';
echo '
';
}
else
{ //b does not exist so check for a single image a. if not just skip some spaces.
if (file_exists("a.png"))
{ echo '




';} } echo ''; if($_SESSION['tswitch']=='on') {echo '
'.$title.'
';}
echo '';
for($col=1;$col<=$colnumber;$col++)
{
echo'';
$n=0;
$limit=1;
while($n<=$limit)
{ $expand=0;
$n++;
$spanon=0;
$spanname='./spans/index-'.$col.'-'.$n.'.txt';
$imagename='./images/index-'.$col.'-'.$n.'.png';
if (file_exists($imagename))
{ $expand=1;
$spanon=1; // image exists so start span insert image
echo' ';
echo '
';
}
if (file_exists($spanname))
{ $expand=1;//text exists
if($spanon==0)
{ //no picture so start span
$spanon=1;echo '';
}
include($spanname); //insert text
}
if($spanon==1)
{if($expand==1) $limit=$n;
echo ' ';}
} //complete span loop
echo'
';
} //complete division loop
echo ''; //clears the columns
echo '