I have been experimenting with having multiple instances of this accordion on the same page. You can view the fiddle here
The second accordion is essentially a duplicate of the first one with different heading text or content. Below is the code snippet. Please refer to the fiddle External Resources section for any dependencies.
(function($) {
// cache some values
var cache = {
idx_expanded : -1,
sliceH : 0,
current : 0,
totalSlices : 0
},
aux = {
// functions and logic here
}
// more code...
})(jQuery);