var cur = 1;
var speed = 2000;

$(document).ready(function(){

	$("#quote_1").show();
	$("#image_1").show();
	$(".quote_text[id='content_1']").show();
	$(".quote_name[id='content_1']").show();
	
	setInterval("fade()",speed*3);
});

function fade(){

	next = cur+1;
	
	if(!$("#quote_"+next).is("div")){
		next = 1;
	}
	$("#image_"+cur).fadeOut(350, function(){
		$("#image_"+next).fadeIn(350);
	});
	
	$("#quote_"+cur).fadeOut(350, function(){
		$("#quote_"+next).fadeIn(350);
	});

	cur = next;
}
