$(document).ready(function(){
	//quote rotator
	var quoteLength = $(".quote").length;
	var curQuote = "1";
	
	setTimeout(changeQuote, 6500);
	
	function changeQuote(){
		$("#quote" + curQuote).fadeOut('slow');
		curQuote++
		if ( curQuote > quoteLength ){
			curQuote = "1";
		};
		$("#quote" + curQuote).fadeIn('slow');
		setTimeout(changeQuote, 6500);
	};
	
	//featured property rotator
	var propertyLength = $(".property").length;
	var curProperty = "1";
	
	setTimeout(changeProperty, 6500);
	
	function changeProperty(){
		$("#property" + curProperty).fadeOut('slow');
		curProperty++
		if ( curProperty > propertyLength ){
			curProperty = "1";
		};
		$("#property" + curProperty).fadeIn('slow');
		setTimeout(changeProperty, 6500);
	};
});
