I'll try to remember to type up something that's easy to follow, then, when I get home later tonight. Those dropdowns are for use in the settings menu, so I used a couple of the functions set to the template to make stuff easier - maybe that's what is confusing you.
(I also haven't looked at that part of the code in a couple of months or so...)