Here is a working example I did for anther member. Its pretty much a complete demo of what you are asking...