I've gotten them sorted out, and it is now really easy to add new types. Here is one sample of output (compact pages divided by General Group):
http://www.spaceempires.net/files/temp/chtml/
All the colors are defined by a css file, so can be easily modified by end user.