function propertyCycle() {
    $('#property-container').cycle({
		fx		: 'scrollHorz',
		speed	: 450, 
		timeout: 0, 
		next:   '#next1',
		prev:   '#prev1'
    });
}

function newsCycle() {
    $('#news-container').cycle({
		fx		: 'scrollHorz',
		speed	: 450, 
		timeout: 0, 
		next:   '#next2',
		prev:   '#prev2'
    });
}

function imgCycle() {
    $('#image_reel').cycle({
		fx		: 'fade',
        timeout	: 10000,
		speed	: 2500
    });
}

function fadeTitles() {
	$("#desc" + n).delay(1000).animate({bottom: "+=125px"}, 750);
	$("#desc" + n).delay(8000).animate({bottom: "-=125px"}, 750);
	setTimeout('fadeTitles();', 10000);
	
	n++;
	if ( n > 3 ) { n=1; }
} 

var n=1;


//function mapLarge() {
//	$("#map_resize").click(function(){
//		$("#map_canvas").animate({'width':'900px'},{ queue:false, duration:500 });
//		$("#map_canvas").animate({'height':'600px'},{ queue:false, duration:500 });
//		setTimeout("initialize();",505);
//		
//	});
//}

$(document).ready(function() {

	fadeTitles();
	imgCycle();
	propertyCycle();
	newsCycle();
	//mapLarge();
}); 
