//rollover scripts for the "Advantages" page

$(document).ready(function(){
	$("#cons > div").attr("id", function(index){ // Get all the hidden div tags and give them each an unique ID
		return "holder"+index;	 //Set the ID to #holder and a number after, e.g.: #holder0, #holder1							 
	});
						   
	$(".spot").attr("id", function(i){ //Find all the "hot spots" of map with a class named "spot" in them and give them unique ID's
		return "spot"+i; //Set the ID to #spot0, #spot1, #spot2 etc...		   
	}).each(function(dex){ //looping on each of the "spot"
		$(this).hover( 
			function(){
				$("#cons > div").hide(); //Hide any active class
				$("#holder"+dex).fadeIn(); //then fade in the corresponding object
			}
		);
	});

	
});