this can be done but would require a lot of hand coding that goes beyond what we can support here in the forums.
We could help you achieve this in a premier support appointment where we would work with you in a one on one screen sharing session. See the support landing page for premiere support details.