php script to draw nested set category tree (with special data)