Lightmaps

I am going to add lightmaps to my little engine, but I have no idea how to do it.
Can anyone tell where can I find some information on lightmaps?

Check out this site and download the sample code:
http://nate.scuzzy.net/