//executar
$(function(){

	//pega o alt os elementos area, da um split e imprime os resutados em ".dataCity"
	$('<p id="dataCity"><strong>Nome Estado<strong><span>10 cidade</span></div>').appendTo(".mapBrazil");
	$("#brasil area").bind("mouseenter", function(){
		$("#dataCity").fadeIn(50);
	
		var cidade = new Array(3);
		cidade[0] = $(this).attr("alt").split(" - ")[0];
		//cidade[1] = $(this).attr("alt").split(" - ")[1];
		//cidade[2] = $(this).attr("alt").split(" - ")[2];
		//$("#dataCity").html("<strong>" + cidade[0] + "</strong><span>" + cidade[1] + "</span>");
		$("#dataCity").html("<strong>" + cidade[0] + "</strong>");
	});
	
	$("#brasil").bind("mouseleave", function(){
		$("#dataCity").hide(0);
	});
	
	$("#brasil").bind("mousemove",function(e){
		$("#dataCity").css({top: (e.pageY - 50) - ($(document).scrollTop() > 0 ? $(document).scrollTop() : 0), left: (e.pageX + 5) });
	});
	
	if ($('.banner-home').children().length > 1) {
		$(".banner-home").cycle({
			fx: "fade",
			speed: 500,
			timeout: 5000,
			auto: true
		});
	}

});

