jQuery(document).ready(function($) {
$('#myCarousel').carousel({
interval: 5000
});
$('#myCarousel2').carousel({
interval: 5000
});
//Handles the carousel thumbnails
$('[id^=carousel-selector-]').click( function(){
var id = this.id.substr(this.id.lastIndexOf("-") + 1);
var id = parseInt(id);
$('#myCarousel').carousel(id);
$('#myCarousel2').carousel(id);
});
// When the carousel slides, auto update the text
$('#myCarousel').on('slid.bs.carousel', function (e) {
var id = $('.item.active').data('slide-number');
});
$('#myCarousel2').on('slid.bs.carousel', function (e) {
var id = $('.item.active').data('slide-number');
});
});