function Testimonials(index) {
	if (Testimonials.__instance) {
		return Testimonials.__instance;
	} else {
		Testimonials.__instance = this;
	}
	
	this.index = index||0;
	
	this.showRandom = function() {
		this.index = Math.round((Math.random() * 100)) % this.getCount();
		this.show();
	}
	
	this.show = function() {
		$(".testimonial").hide();
		$($(".testimonial")[this.index]).show();
	}
	
	this.showNext = function() {
		this.index++;
		if (this.index >= this.getCount()) {
			this.index = 0;
		}
		this.show();
	}

	this.showPrevious = function() {
		this.index--;
		if (this.index < 0) {
			this.index = this.getCount() - 1;
		}
		this.show();
	}
	
	this.getCount = function() {
		return $(".testimonial").length;
	}
	
}