!function(i){"function"==typeof define&&define.amd?define("testimonials",i):i()}(function(){"use strict";MyListing.Testimonial_Init=function(){jQuery(function(l){l(".testimonials.ml-widget").each(function(){var t,i=l(this),e=i.find(".testimonial-carousel .testimonial-content.item"),n=i.find(".testimonial-image"),s=0,a=e.length;function o(i){e.hide(),e.eq(i).show(),n.removeClass("active"),n.eq(i).addClass("active"),s=i}function c(){o((s+1)%a)}e.hide(),o(0),t=setInterval(c,5e3),n.click(function(i){i.preventDefault(),o(n.index(l(this))),clearInterval(t),t=setInterval(c,5e3)})})})},MyListing.Testimonial_Init()});
