
	// jQuery Image Cycler v0.01
	
	// PRE-REQUISITE: variable MAX_CO is pre-set to a number highter than 1
	var co_ctr = 1;			// index of the next slide to be revealed
	var MAX_CO = 16;
	var imgName = "img";
	
	function init()
	{
		jQuery("#imgx img").each(function() { jQuery(this).fadeOut(100); } );
		jQuery("#imgx").css("background-color", "#d8e4f0");
		$(document).everyTime(4000, function() 
		{
  			prevIndex = 0;	
			if (co_ctr == 0) { prevIndex = MAX_CO; } else { prevIndex = co_ctr-1; }
			$("#" + imgName + prevIndex).fadeOut("normal");
			$("#" + imgName + co_ctr).fadeIn("normal");
			if (co_ctr == MAX_CO) { co_ctr = 0; } 
			else { co_ctr++; }
			jQuery("#imgx").css("background-image", "none");
  		}, 0);
	}
	
	jQuery(document).ready(function() {
		init(); // load up the cycler and the map
	});
	