var testament = {
	init : function()
	{
		var quote = $('#quote');
		testament.quotes = $('#quote li');
		testament.cycle();
	},

	cycle : function()
	{
		var i = 0;
		var length = testament.quotes.length;
		var index = Math.floor(Math.random() * length);
		$(testament.quotes).each( 
			function(){
				i++;
				if( i-1 == index ) {
					$(this).fadeIn('normal');
					$(this).removeClass('noshow');
				} else {
					$(this).fadeOut('normal');
					$(this).addClass('noshow');
				}
			}
		);
	}
}
$(document).ready(testament.init);