/* random testimonials */
// calling: $(sel).awpTestimonials(opts, awpTestimonialsItems);
;(function($){
	$.fn.awpTestimonials = function (opts, items) {
		var settings = $.extend({}, opts);
		return this.each(function(){
			if (typeof items == 'object' && items !== null) {
				var randomnumber = Math.floor(Math.random() * items.length);
				var html = items[randomnumber];
				html = html.replace(/&lt;/g, '<').replace(/&gt;/g, '>').replace(/&#39;/g, "'");
				$(this).html(html);
			}			
		});
	};
})(jQuery);

