/* jQuery random element background, by James Cleveland */
(function ($) {
	$.fn.randomBackground = function(o) {
		o = $.extend({
            images: []
        }, o || {});
		sel = $(this);
		var x = Math.floor(Math.random()*o.images.length);
		o.images[x]['background-image'] = 'url('+o.images[x]['background-image']+')';
		sel.css(
			o.images[x]
		);
	};
})(jQuery);
