Crafting screen subcategories

Screenshots here -> http://bit.ly/IwzZnz

NOTE:: This removes the CC_DRINK flag entirely.

Got the tabs set up. All recipes have been assigned sub-categories.

I tried to get the menu to skip an empty subcategory, but without defining global variables I have yet to find a way, thus blank pages will be seen.

"<" and ">" to switch category.
Left arrow key and right arrow keys change subcategories.

Categories and subcategories:
Weapons - Bashing, Cutting, Piercing, Ranged, Explosives, Mods, Other
Ammo - Bullets, Arrows, Components, Other
Food - Drinks, Meat, Veggi, Snacks, Bread, Other
Chems - Drugs, Mutagen, Chemicals, Other
Electronics - CBMs, Lighting, Other
Armor - Storage, Head, Back, Torso, Arms, Hands, Legs, Feet, Other
Other - Tools, Medical, Containers, Materials, Parts, Traps, Other

If anyone has any ideas or suggestions for categories or what items should be under which categories please, let me know. When I went through recipes.json I used my best judgment. Also, I realize that some items possibly could be under two different categories, but for now I would like to keep an items category based off the items main use.