Modified the recursive function on page 19 to return divs instead of an ordered list.
Function:
function make_list($parent, $sub=FALSE) {
// set attribute
if (!$sub) {
$attribute = 'id="menu"';
} else {
$attribute = 'class="submenu"';
}
// set tasks access
global $tasks;
foreach ($parent as $task_id => $todo) {
// new loop?
if (!$sub) { echo '<div id="main">'; }
// build div
echo '&