I agree, give it your best shot, and then we'll be happy to critique. I feel I am not as smart as a lot of the other people on here and I don't understand your question very well. If you were to rephrase it, and add some code that represents your "best guess" as to how to do it, even if it's pseudocode, I would be much better equipped to try to help you. The code alone might give me a better idea of what you're trying to accomplish.
_________________________________________________________________________________
I like computer programming because it's like Legos for the mind.