There a discussion about how to do this here. The whole thread is maybe interesting, but I linked the post with the best code.
There a discussion about how to do this here. The whole thread is maybe interesting, but I linked the post with the best code.