Perhaps post #14 in this thread will lead you in the right direction.

Hope that helps.