I know that the FAQ mod will do sub-cats.......maybe there is some code to borrow from there.....