// JavaScript Document
var refreshCount = 0;
function refreshNewPlaces(id){
	new Ajax.Updater(id,'ajax/index_newPlaces.cfm',{onSuccess:fadeIn(id)});
	refreshCount ++;
}
function fadeIn(id){
	new Effect.Opacity(id,{duration:4.0,from:0.0,to:1.0});
	refreshCount += 1;
	setTimeout("fadeOut('"+id+"')",4500);
}
function fadeOut(id){
	if(refreshCount < 20){
		new Effect.Opacity(id,{duration:4.0,from:1.0,to:0.0});
		setTimeout("refreshNewPlaces('"+id+"')",4500);
	}

}
function setPage(){
	refreshNewPlaces('newPlace1');
	setTimeout("refreshNewPlaces('newPlace2')",1500);
	setTimeout("refreshNewPlaces('newPlace3')",3000);
}