jQuery.noConflict()

var numRand1 = -1;
var numRand2 = -1;
var allts;

var quotes = {

    rotate: function() {

        allts = jQuery(".quotesource");

        if (numRand2 == -1)
            numRand1 = Math.floor(Math.random() * allts.length);
        else
            numRand1 = numRand2;

        numRand2 = Math.floor(Math.random() * allts.length);
        while (numRand2 == numRand1) {
            numRand2 = Math.floor(Math.random() * allts.length);
        }

        jQuery("#quote1:parent")[0].innerHTML = allts[numRand1].innerHTML;
        jQuery("#quote2:parent")[0].innerHTML = allts[numRand2].innerHTML;

        var h1 = jQuery("#quote1:parent").height();
        var h2 = jQuery("#quote2:parent").height();

        var total = h1 + h2;

        if (total > 500)
            jQuery("#quote2:parent").hide();
        else
            jQuery("#quote2:parent").show();

        var i = 0;
    }


}

function showit1() {
    jQuery("#quote1:parent").fadeIn("fast", showit2);

}

function showit2() {
    jQuery("#quote2:parent").fadeIn("fast");
}




