If I remember right (and it's been a long time since I looked at it), it is part of the FaceBook JavaScript. You can tell FaceBook, by passing a parameter to return light lettering for a dark background. I will see if I can dig it up when I get a chance.
I might be confusing this with other FaceBook stuff I have worked on, but it should not be too hard to derive an answer.