This is using jQuery, and yes, it is doing a very similar thing. It
appears to actually be doing a sort of “mash up” between Carousel and
Accordion, you might want to investigate building this with the
Accordion and then using a timer to get the effect to shift on
schedule. Look in Prototype at the PeriodicalExecuter[1] for the basic
tools to use. You’d want to start a PE, retain a reference to it, and
then if you observe a click on the Accordion’s container, stop the PE.
var changeAccordion = function(){
//do something here to switch the currently
//open element to the next closed one
};
var pe = new PeriodicalExecuter(changeAccordion,2);
$('accordionContainer').observe('click',function(evt){ pe.stop(); });
Obviously, you’ll need a little more magic in your changeAccordion()
function, but the details of that implementation depend entirely on
the construction of your Accordion element.