initFunctions.push(setUpCarousels);

function setUpCarousels() {
	var Carousels = $$('.carousel');
	//new Carousel(Carousels[0].down('.carousel-wrapper'), $$('.carousel-content .slide'), $$('a.carousel-control'));
	//Format of init is (ID/element, array of slides, array of controls
	for(var i=0; i<Carousels.length;i++) {
		new Carousel(Carousels[i].down('.carousel-wrapper'), Carousels[i].select('.carousel-content .slide'),  Carousels[i].select('a.carousel-control'));
	}
}
