Rotating UI Tabs Slight Modification

Rotating UI Tabs Slight Modification

Hey all, 

I'm looking to use these rotating tabs on my website:


But my website layout has the tab menu BELOW the content that is displayed. Basically, what this means is that I need the tabs code and content code to both be in separate divs without this stopping the script from working.

Can anyone lend me a hand on how to achieve this? Or potentially another workable solution?

Thanks very much in advance!