/*!
 * showstamps.js
 * Simple plugin for the Workhouse Advertising website to show the stamps on page load.
 */

;(function($) {
	var defaults = {
		interval: 200,
		fxSpeed: 'normal'
	};

	$.fn.showstamps = function(options) {
		var settings = $.extend(true, {}, defaults, options);
		return $(this).hide().sort(function() {
			return Math.random() - 0.5;
		}).each(function(i) {
			var $stamp = $(this);
			setTimeout(function() {
				$stamp.fadeIn(settings.fxSpeed);
			}, i * settings.interval);
		});
	};
})(jQuery);

