Have you looked at this? I am not sure if it will do exactly what you want, but maybe you could try it?