jQuery.jQueryRandom = 0;
jQuery.extend(jQuery.expr[":"],
{
    random: function(a, i, m, r) {
        if (i == 0) {
            jQuery.jQueryRandom = Math.floor(Math.random() * r.length);
        };
        return i == jQuery.jQueryRandom;
    }
});

$(document).ready(function() {
	$('#quotes p:random').show();
});

function showRandomQuote() {
	$cur = $('#quotes p:visible');
	$('#quotes p').hide();
	$('#quotes p:random').show().not($cur);	
}
var qInt = setInterval("showRandomQuote()", 2500);
