';
for ($i = 0, $k = count($xml); $i<$k; $i++)
{
if (($xml[$i]['level'] == 1)&&($xml[$i]['type'] != 'close')&&($xml[$i]['attributes']['VISIBLE'] != 'no')) DrawFolder($xml[$i]);
if (($xml[$i]['level'] > 1)&&($xml[$i]['type'] != 'close')&&($xml[$i]['type'] != 'complete')&&($xml[$i]['attributes']['VISIBLE'] != 'no')&&($xml[$i]['attributes']['SUBPAGES'] != 'hidden')) DrawParent($xml[$i] );
if (($xml[$i]['level'] > 1)&&($xml[$i]['type'] != 'close')&&($xml[$i]['type'] == 'complete')&&($xml[$i]['attributes']['VISIBLE'] != 'no')) DrawComplete($xml[$i], ($xml[$i]['level'] != $xml[$i+1]['level']));
if (($xml[$i]['level'] > 1)&&($xml[$i]['type'] != 'close')&&($xml[$i]['type'] != 'complete')&&($xml[$i]['attributes']['VISIBLE'] != 'no')&&($xml[$i]['attributes']['SUBPAGES'] == 'hidden')) DrawComplete($xml[$i], ($xml[$i]['level'] != $xml[$i+1]['level']));
}
function DrawFolder($data)
{
echo ' '."\n";
}
function DrawParent($data)
{
echo ' ';
}
function DrawComplete($data, $is_end)
{
echo ' ';
}
?>