function fisherYates ( myArray ) {
  var i = myArray.length;
  if ( i == 0 ) return false;
  while ( --i ) {
     var j = Math.floor( Math.random() * ( i + 1 ) );
     var tempi = myArray[i];
     var tempj = myArray[j];
     myArray[i] = tempj;
     myArray[j] = tempi;
   }
}

fisherYates ( fcontent )

html = '<ul id="cycle">';
for (x = 0; x < fcontent.length; x++) {
	fdelay[x] = 10000;
	html += '<li delay="'+fdelay[x]+'">'+fcontent[x]+'</li>';
}
html += '</ul>';

document.write(html);

var x = 0;
var y = 0;
var total = $("#cycle LI").length;
function startQuotes() {
	y = 0;
	$("#cycle LI").each(function() {
		$(this).css("position","absolute");
		if (x>0) {
			$(this).hide();
		}
		$(this).fadeIn({duration: 1000, queue: "global", complete: function () { y++; if ((total-1) == y) { startQuotes(); }  } });
		$(this).fadeOut({duration: 1000, queue: "global", preDelay: $(this).attr("delay")/1});
		x++;
	});
}
startQuotes();

/*
$('#cycle').cycle({
	delay: 15000,
	fit: true,
	random: true
});
*/
