/* Testimonials animation */
setTimeout(function() {quotesChange();}, 5000);
function quotesChange() {
$(".quotes").each(function(index) {
var quote = $(".quotes").eq(index);
var current = quote.children("article.quote-selected");
var next = quote.children("article").eq( current.index() + 1 );
if (next.html() == null) {
next = quote.children("article").eq(0);
}
current.removeClass("quote-selected");
next.addClass("quote-selected");
next.css("display", "none");
current.fadeOut(800, function () {
next.fadeIn(800, function() { });
});
});
setTimeout(function() {quotesChange();}, 5000);
}