it ain't pretty, but it's sort of working. colors are kindof weird, not caching gifs, and the code is pretty hacky.