jQuery(document).ready(function($) {
$('#myCarousel1').carousel({
interval: 5000
});
$('#carousel-text1').html($('#slide-content-0').html());
//Handles the carousel thumbnails
$('[id^=carousel-selector-]').click( function(){
var id_selector = $(this).attr("id");
var id = id_selector.substr(id_selector.length -1);
var id = parseInt(id);
$('#myCarousel').carousel(id);
});
});