Tdh merged 2

Nevermind...I had missed that the values in bgData were coming from XML, so they have to be something end-user-friendly.

If this were perl/python, I'd say set up a hash of string => integer constant and use that for lookups instead of having a bunch of if blocks for each value, but in Java, that probably would be just as much code as this is.