/*     #####STATICS VARIABLES#####     */
var HOSTNAME = window.location.hostname;

if((HOSTNAME.split(".")).length > 1){
	//PRODUCTION
	var LINKSTATICOSTRUTTURE = "/per-la-clientela/strutture-affiliate/",
		LINKSTATICOMEDICI = "/per-la-clientela/strutture-affiliate/",
		LINKSTATICOSERVIZI = "/per-la-clientela/strutture-affiliate/";
}else{
	//SKELS                               
	var LINKSTATICOSTRUTTURE = "/per-la-clientela/strutture-affiliate/",
		LINKSTATICOMEDICI = "/per-la-clientela/strutture-affiliate/",
		LINKSTATICOSERVIZI = "/per-la-clientela/strutture-affiliate/";
}

//MAPPA CREATA CON RAPHAEL
Raphael.fn.Map = function (paths, labels, fill, stroke) {//centers, fill, stroke) {
	var paper = this,
		mappa = this.set();
		

	function regions(region) {
		return paper.path(region);
	}
	
	process = function (j) {
		var path = paths[j],
			//cx = centers[j][0],
			//cy = centers[j][1],
			p = regions(path);
		p.attr("fill", fill);
		p.attr("stroke", stroke);
		p.label = labels[j];
		p.mouseovered = false;
		p.clicked = false;
			
		p.mouseover(function(){
			if(this.mouseovered===false){
				this.mouseovered=true;
				//this.animate({scale: [1.2, 1.2, cx, cy]}, 50, "easein");
				this.attr("fill", "#cc9900");
				//this.toFront();
			}
		});
            
		p.mouseout(function(){
			//this.animate({scale: [1, 1, cx, cy]}, 50, "easeout");
			//this.toBack();
			if(this.clicked !== true){
				this.attr("fill", "#ffffff");
			}
			this.mouseovered = false;
		});
		
		//p.click(function (event) {
		//	if(!Cvit.vars.inAnimation){
		//		Cvit.vars.inAnimation = true;
		//		var len = mappa.length;
		//		for (var i=0; i < len; i++) {
		//			mappa[i].attr("fill", "#ffffff");
		//			mappa[i].clicked = false;
		//		};                      
		//	    this.attr("fill", "#cc9900");
		//		this.clicked = true;
		//		if(Cvit.vars.searchAperto == false){
		//			//se il pannello è chiuso
		//			//apertura del pannello al click della regione
		//			$($("#content a.open")[0]).trigger('click')
		//		}else{
		//			Cvit.switchContent($('#content section.panel-search'));
		//		}
		//	}
		//	
		//	
		//	//PENSO CHE DA QUESTE PARTI BISOGNERA DEFINIRE LA ROBA DA CARICARE NEL PANNELLO RELATIVA ALLA REGIONE
		//	//MAGARI FACCIAMO ALL'INIZIO DEL PROCESS p.xhr e ci schiaffiamo il contenuto
		//	//AL MOMENTO FACCIO SCOMPARIRE E APPARIRE LO STESSO DIV
		//	//CMQ SIA DEVO CACHARE DA QUALKE PARTE SE APRO STRUTTURA MEDICI O SERVIZI IN MANIERA DA REGOLARMI LA SEZIONE DA FARE IL FADE OUT
		//
		//});                         
	
		mappa.push(p);
	};

	k = paths.length;
	for (i = 0; i < k; i++) {
		process(i);
	}
	
	
	return mappa;
};
//MAPPA CREATA CON RAPHAEL

var Cvit = {
	init : function(settings){
		log("init CALLED");
		Cvit.vars = {
			page : $('body').data('page'),
			menuAperto : false,
			searchAperto : false,
			$openSection : Object,
			MAPPA : Object,
			inAnimation : false
		};
		
		$.extend(Cvit.vars, settings);
		Cvit.setup();
	},
	
	setup : function() {
		log("setup CALLED");               
		/*
		Questo era per il font embed
		###############################################################################
		Cvit.fonts();
		###############################################################################
		*/
		Cvit.menu();
		if($.browser.msie === true){
			Cvit.notFix();
			Cvit.ieCssFix();
		}
		if(Cvit.vars.page === "index"){
			Cvit.staticGallery();
			Cvit.dinamicGallery();
			Cvit.setupCartina();
			Cvit.setupSearch();
		}
		if(Cvit.vars.page === "vets structure"){
			Cvit.structureGallery();
			Cvit.setupTabs();
			Cvit.setupModal();
		}
		if(Cvit.vars.page === "cvit group"){
			/*
			Questo era per l'organigramma
			###########################################
			if($.browser.msie === true){
				Cvit.organizationChartFix();
			}
			###########################################
			*/
		}
		if(Cvit.vars.page === "cvit structures"){
			Cvit.setupStructuresList();
			Cvit.hoverStructures();
		} 
	},
	
	setupModal : function(){
		$('.adress .d-text').delegate('a','click',function(e){
			e.preventDefault();
			$target = $(this);
			console.log($target);
			Cvit.openModal('<iframe src="' + $target.attr('href') + '" height="480" width="780" style="border:0">');
		})
	},
	
	openModal : function(html){
		$(html).modal({
			containerCss:{
				backgroundColor:"white",
				borderColor:"transparent",
				height:480,
				padding:0,
				width:780,
				overflow:"visible"
			},
			overlayClose:false,
			close:true 												
		});
	},
	
	hoverStructures : function(){
		log("hoverStructures CALLED");
		var structures = $('#vet-structure-list li');
		
		structures.live('hover', function() {
		  $(this).toggleClass('hover');
		});
	},
	
	setupStructuresList : function(){
		log("setupStructuresList CALLED");
		//if(bowser.msie && bowser.version < 9){
		//	alert('prova')
		//	$('div.vet-structure-info p:nth-child(2)').css('margin','10px 0 0');
		//}
		
		
		//var region = window.location.hash.slice(1).toLowerCase(),
		//	$regionA = $('dl a'),
		//	$activeRegion,
		//	$activeDiv;
		//	
		////log(region, $regionA, $activeRegion, $activeDiv);
		//	
		//if(region === ''){
		//	$('#vet-structure-list > div').addClass('active').fadeIn();
		//	$('.all').parent('dd').addClass('active');
		//	$activeRegion = $('.all');
		//	$activeDiv = $('.filters div.active');
		//}else{
		//	$activeRegion = $('.'+region);
		//	$activeDiv = $('#'+region);
		//	$activeDiv.addClass('active').fadeIn();
		//	$activeRegion.parent('dd').addClass('active');
		//}
		//
		//$regionA.each(function(){
		//	$(this).click(function(e){
		//		e.preventDefault();
		//		next = $(this).attr('class');
		//		$activeRegion.parent('dd').removeClass('active');
		//		$(this).parent('dd').addClass('active');
		//		$activeRegion = $('.'+next);
		//		if(next === 'all'){
		//			$activeDiv.removeClass('active').fadeOut("fast", function(){
		//				$('.filters div > div').addClass('active').fadeIn();
		//				$activeDiv = $('.filters div.active');
		//			})
		//		}else{
		//			$activeDiv.removeClass('active').fadeOut("fast", function(){
		//				$activeDiv = $("#"+next);
		//				$activeDiv.addClass('active').fadeIn();
		//			})
		//		}
		//	})
		//});
	},
	
	setupTabs : function () {
		$('#tabs').tabs();
		//Correzioni per ie inferiori al 9
		if(bowser.msie && bowser.version < 9){
			$('#tabs-2 ul.peoples li:nth-child(n+3)').css('margin-top','20px');
			$('#tabs-2 ul.peoples li:nth-child(2n+1)').css({
				'margin-left':'0',
				'clear':'both'
			});
		}
		//Correzioni per ie inferiori al 9 dei dettagli della struttura
		if(bowser.msie && bowser.version < 9){
			$('.items li:nth-child(n+3)').css('margin-top','10px');
			$('.items li:nth-child(2n+1)').css({
				'margin-left':'0',
				'clear':'both'
			});
		} 

	},
	
	setupSearch : function () {
		log("setupSearch CALLED");
		
		var $links = $("#content a.open"),
			$structure = $($links[0]),
			$people = $($links[1]),
			$service = $($links[2]),
			$closeButton = $(".close-side-panel"),
			$container = $("#content"),
			$toHide = $("#content section.home-related"),
			$toShow = $("#content div.left"),
			$toShowContent0 = $('#content section.panel-search'),
			$toShowContent1 = $('#content section.panel-people'),
			$toShowContent2 = $('#content section.panel-services'),
			widthOpen = '602px',
			positionOpen = '-600px',
			widthClose = '30px',
			positionClose = '0',
			durationSlide = 300,
			durationFade = 300,
			len = Cvit.vars.MAPPA.length,
            fadeInContent = function($subj, duration, callback){
				$subj.stop().css({
					'display':'block',
					'opacity':'0'
				}).animate({
					opacity: 1
				},duration,function(){
					callback();
				});
			},
            fadeOutContent = function($subj, duration, callback){
				$subj.stop().css({
					'opacity':'1'
				}).animate({
					opacity: 0
				},duration,function(){
					$subj.css('display','none');
					callback();
				});
			},
			switchContent = function($toFadeOut, $toFadeIn, callback){
				Cvit.vars.inAnimation = true;
				var duration = 300;
				
				if($toFadeOut == $toFadeIn){
					log('Non funziona perchè è la stessa sezione a fare il fadeout e il fadein')
					Cvit.vars.inAnimation = false;
				}else{
					fadeOutContent($toFadeOut, duration, function(){
						fadeInContent($toFadeIn, duration, function(){
							callback();
							Cvit.vars.inAnimation = false;
						})
					})
				}
			},
			openPanel = function($toShowContent) {
				Cvit.vars.inAnimation = true;
				fadeOutContent($toHide, durationFade, function(){
					$toShow.stop().animate({
						width: widthOpen,
						left: positionOpen
					}, durationSlide, function(){
						fadeInContent($toShowContent, durationFade,function(){
							Cvit.vars.searchAperto = true;
							Cvit.vars.$openSection = $toShowContent;
							Cvit.vars.inAnimation = false;
							log('ho finito')
						})
					})
				})
			},
			closePanel = function($toShowContent) {
				Cvit.vars.inAnimation = true;
				fadeOutContent($toShowContent, durationFade, function(){
					$toShow.stop().animate({
						width: widthClose,
						left: positionClose
					}, durationSlide, function(){
						fadeInContent($toHide, durationFade,function(){
							log('ho finito');
							Cvit.vars.$openSection = false;
							Cvit.vars.searchAperto = false;
							Cvit.vars.inAnimation = false;
						})
					})
				})
			};	

		$structure.click(function(e){
			e.preventDefault();
			window.location.href = LINKSTATICOSTRUTTURE; //Comportamento alternativo
			/*
			Vecchio comportamento prima del 12/05/11
			###############################################################################
			if(!Cvit.vars.inAnimation){
				if(Cvit.vars.searchAperto==false){
					openPanel($toShowContent0)
				}else{
					$toShowContent = Cvit.vars.$openSection;
	                closePanel($toShowContent);
				}
			}
			###############################################################################
			*/
            return false;
		});
		$people.click(function(e){
			e.preventDefault();
			window.location.href = LINKSTATICOMEDICI; //Comportamento alternativo
			/*
			Vecchio comportamento prima del 12/05/11
			###############################################################################
			if(!Cvit.vars.inAnimation){
				if(Cvit.vars.searchAperto==false){
					openPanel($toShowContent1)
				}else{
					if(Cvit.vars.$openSection!=$toShowContent0){
						switchContent(Cvit.vars.$openSection, $toShowContent1, function(){
							Cvit.vars.$openSection = $toShowContent1
						})
					}else{
						for (var i=0; i < len; i++) {
							Cvit.vars.MAPPA[i].attr("fill", "#ffffff");
							Cvit.vars.MAPPA[i].clicked = false;
						};
						switchContent(Cvit.vars.$openSection, $toShowContent1, function(){
							Cvit.vars.$openSection = $toShowContent1
						})
					}
				}
			}
			###############################################################################
			*/
			
		});
		$service.click(function(e){
			e.preventDefault();
			window.location.href = LINKSTATICOSERVIZI; //Comportamento alternativo
			/*
			Vecchio comportamento prima del 12/05/11
			###############################################################################
			if(!Cvit.vars.inAnimation){
				if(Cvit.vars.searchAperto==false){
					openPanel($toShowContent2)
				}else{
					if(Cvit.vars.$openSection!=$toShowContent0){
						switchContent(Cvit.vars.$openSection, $toShowContent2, function(){
							Cvit.vars.$openSection = $toShowContent2
						})
					}else{
						for (var i=0; i < len; i++) {
							Cvit.vars.MAPPA[i].attr("fill", "#ffffff");
							Cvit.vars.MAPPA[i].clicked = false;
						};
						switchContent(Cvit.vars.$openSection, $toShowContent2, function(){
							Cvit.vars.$openSection = $toShowContent2
						})
					}
				}
			}
			###############################################################################
			*/
		});
		
		$closeButton.click(function(e){
			e.preventDefault();
			/*
			Vecchio comportamento prima del 12/05/11
			###############################################################################
			if(!Cvit.vars.inAnimation){
				if(Cvit.vars.$openSection!=$toShowContent0){
					$toShowContent = Cvit.vars.$openSection;
					closePanel($toShowContent);
				}else{
					for (var i=0; i < len; i++) {
						Cvit.vars.MAPPA[i].attr("fill", "#ffffff");
						Cvit.vars.MAPPA[i].clicked = false;
					};
					$toShowContent = Cvit.vars.$openSection;
					closePanel($toShowContent);
				}
			}
			###############################################################################
			*/
		});
		
		for (var i=0; i < len; i++) {
			Cvit.vars.MAPPA[i].click(function(e){
				e.preventDefault();
				for (var i=0; i < len; i++) {
					Cvit.vars.MAPPA[i].attr("fill", "#ffffff");
					Cvit.vars.MAPPA[i].clicked = false;
				};                      
				this.attr("fill", "#cc9900");
				this.clicked = true;
				if(Cvit.vars.searchAperto === false){
					//log(this.label);
					window.location.href = LINKSTATICOSTRUTTURE+"#!/"+this.label.toLowerCase()+'/'; //Comportamento alternativo
					/*
					Vecchio comportamento prima del 12/05/11
					###############################################################################
					openPanel($toShowContent0)
					###############################################################################
					*/
				}else{
					switchContent(Cvit.vars.$openSection, $toShowContent0, function(){
						Cvit.vars.$openSection = $toShowContent0
					})
				}
			})
		};
	},
	
	dinamicGallery : function() {
		log("dinamicGallery CALLED");
		$("#highlight div.dynamic-gallery").cycle({
				fx: 'scrollRight',
				speed: 500,
				timeout: 0,
				pager:  '#dg-pager',
				pagerAnchorBuilder: function(i, slide){
					return '<a href="#" class="ir">'+i+'</a>';
				}
			});
	},
	
	staticGallery : function() {
		log("staticGallery CALLED");
		$("#highlight div.static-gallery").cycle({
			fx: 'scrollLeft',
			speed: 500,
			timeout: 3000,
			before:	function(curr, next, opt){
				$('#highlight div.sg-nav p').fadeOut('fast', function() {
					$(this).html(next.title);
					$(this).fadeIn();
				});
			}, 
			pager:  '#sg-pager',
			pagerAnchorBuilder: function(i, slide){
				return '<a href="#" class="ir">'+i+'</a>';
			}
		});
	},
	
	structureGallery : function() {
		log("structureGallery CALLED");
		$('#structure-pictures .st-text p').html($(".structure-gallery img:first-child").attr("title"))
		$("#structure-pictures div.structure-gallery").cycle({
			fx: 'scrollHorz',
			speed: 500,
			timeout: 0,
			rev: 1,
			prev : $("#structure-pictures a.prev"),
			next : $("#structure-pictures a.next"),
			onPrevNextEvent: function(isNext, Index, slide){
				if(slide.title!==""){
					$('#structure-pictures .st-text').fadeIn('fast',function(){
						$('#structure-pictures .st-text p').fadeOut('fast', function() {
							$(this).html(slide.title).fadeIn();
						});
					})
				}else{
					$('#structure-pictures .st-text p').fadeOut('fast');
					$('#structure-pictures .st-text').fadeOut('fast');
				}
			}
		});
	},
	
	menu : function() {
		log("menu CALLED");
		/* control of the animation of the menu */
		
		var $links = $('#menu li.medium > a, #menu li.large > a, #menu li.xlarge > a'),
			$animatore = $('#menu div.anim-control'),
			$submenus = $('#menu ul.submenu'),
			$activeItem;
		
		$links.click(function(e){
			e.preventDefault();
			if(Cvit.vars.menuAperto == false){
				$activeItem = $(this);
				$activeItem.addClass("open");
				$animatore.animate({height: '100px'},300);
				$submenus.animate({height: '90px'},300);
				Cvit.vars.menuAperto = true;
			}else{
				$activeItem.removeClass("open");
				$animatore.animate({height: '8px'},300);
				$submenus.animate({height: '0px'},250);
				Cvit.vars.menuAperto = false;
			}
		});
	},
	
	pie : function() {
		log("iebg CALLED");
		
		/* control of the polifill for the multiple backgound support for ie */
		yepnope({
		  test : Modernizr.multiplebgs,
		  nope : ['/media/cvit/js/mylibs/PIE/PIE.js']
		});
	},
	
	notFix : function(){
		$('body:not([data-page="index"]) #content').css('margin','40px 0 0');
	},
	
	ieCssFix : function(){
		//Logo Eukanuba footer
		$('footer .white .logos li.suggestions a:last-child').css('margin','0');
	},
	
	/*
	Vecchio comportamento per l'organigramma prima del 12/05/11
	###############################################################################
	organizationChartFix : function() {
		$("#content li.employee:nth-child(4n+1)").css('margin-left','0');
	},
	###############################################################################
	*/
	
	/*
	Vecchio comportamento per il font embed
	###############################################################################
	fonts : function() {
		log("fonts CALLED");
	},
	###############################################################################
	*/
	
	setupCartina : function(){
		log("setupCartina CALLED");
		var paths = [],
			labels = [],
			centers = [],
			fill = "#ffffff",
			stroke = "#000000";
		labels.push('Sardegna');
		//centers.push([70,450]);
		paths.push("M24.394 191.676L22.499 193.053 22.499 195.292 23.015 197.014 21.639 198.907 22.327 200.801 21.639 203.211 22.499 203.729 25.255 203.211 26.114 205.795 26.976 209.755 26.632 212.682 28.008 215.266 27.32 217.848 26.976 219.225 26.976 221.464 25.255 223.358 25.255 225.942 25.255 227.663 26.632 229.557 26.976 231.279 26.976 233.518 24.738 235.583 24.05 236.79 23.704 239.717 23.015 240.75 21.811 241.439 21.639 245.055 21.122 247.981 22.327 249.531 24.05 251.769 25.427 252.802 26.459 255.731 26.632 259 28.008 260.377 29.559 258.657 30.936 258.657 34.207 261.583 35.757 259 38.683 257.28 40.405 256.418 39.372 253.835 39.027 251.769 41.61 252.115 44.708 250.908 46.259 253.492 47.636 253.835 51.079 255.385 52.111 254.697 51.767 242.643 54.006 235.412 56.761 224.047 57.104 217.159 61.236 213.199 61.925 211.65 60.549 209.755 60.032 206.829 59.687 204.073 57.793 201.146 58.998 198.563 56.416 196.325 56.416 190.126 54.178 188.404 54.694 186.167 52.111 185.477 50.562 186.167 49.186 183.583 46.259 186.511 45.914 188.059 44.021 188.749 42.987 188.404 41.093 190.643 40.75 192.02 37.478 194.604 36.444 193.915 34.207 194.258 33.173 195.981 30.936 197.53 28.697 197.014 26.976 195.292 25.942 195.292 24.394 194.258z");
		labels.push('Calabria');
		//centers.push([450,550]);
		paths.push("M200.001 232.485L201.724 235.755 201.38 238.338 202.068 240.75 204.994 246.258 207.922 251.425 208.609 253.492 208.609 258.657 209.298 261.24 211.882 265.543 212.742 266.921 212.914 270.538 212.742 272.776 209.298 274.326 208.266 275.015 208.266 276.392 207.576 276.392 204.648 276.908 203.962 278.975 204.648 282.247 203.445 285.863 202.412 288.789 200.346 290.684 200.001 292.922 200.69 296.194 200.001 299.466 202.412 302.737 205.683 301.187 208.954 301.187 211.536 298.26 211.882 293.266 215.839 289.995 219.8 286.379 222.382 281.903 222.382 276.392 230.475 270.538 233.574 269.848 235.811 267.784 236.155 262.617 235.124 260.035 236.5 255.385 236.5 252.458 235.467 250.908 232.196 249.875 226.687 245.055 222.728 245.055 221.35 241.265 222.728 239.717 224.277 237.823 224.277 234.551 223.417 230.935 219.8 230.59 218.423 235.755 215.495 236.445 213.432 236.445 212.227 237.477 207.922 234.207 205.683 235.412 203.618 235.412 201.724 232.829z");
		labels.push('Basilicata');
		//centers.push([450,450]);
		paths.push("M223.417 231.279L227.031 226.629 226.687 225.081 229.271 222.154 231.163 221.464 228.925 218.193 227.031 214.233 226.342 210.961 224.622 210.444 219.456 211.305 218.079 210.444 218.079 208.722 218.079 206.657 216.874 205.451 214.807 205.451 212.227 203.901 210.331 200.974 209.643 198.907 208.266 198.219 206.026 199.596 201.724 199.252 199.485 203.729 198.796 204.417 196.214 204.762 195.525 206.141 197.936 208.377 197.764 210.444 196.214 213.887 200.174 217.503 201.38 220.432 202.757 224.391 203.102 227.319 202.068 229.04 201.38 230.935 199.829 231.624 201.38 232.485 203.618 234.895 206.026 235.239 207.576 234.207 211.882 237.477 213.259 236.272 216.528 236.1 217.734 235.239 218.767 232.657 219.8 230.245z");
		labels.push('Puglia');
		//centers.push([440,420]);
		paths.push("M189.672 174.629L190.533 177.729 190.533 181.172 188.982 183.24 187.604 182.895 185.367 182.895 184.679 184.789 185.367 185.821 186.917 185.821 187.604 186.854 187.604 189.092 191.222 193.398 192.599 192.709 194.32 192.364 195.869 193.053 195.525 196.841 197.247 198.219 199.141 198.907 200.174 198.219 201.724 199.768 203.445 199.252 204.648 199.768 206.026 199.768 208.266 198.219 209.643 198.907 210.504 201.491 212.57 204.762 214.12 205.106 216.528 205.451 217.218 206.141 218.079 208.722 218.079 210.272 218.767 211.305 220.661 210.961 222.728 210.618 224.622 210.272 226.342 210.961 226.687 213.372 227.892 216.126 228.925 218.193 229.614 219.225 230.475 220.776 231.163 221.464 232.885 222.154 238.049 221.809 241.322 223.703 245.281 226.286 247.347 226.629 251.479 226.286 254.405 226.974 255.782 228.869 256.471 230.59 258.021 233.518 257.676 236.79 257.676 238.338 259.397 239.028 261.981 241.265 264.22 241.955 267.146 241.265 266.628 237.823 267.834 232.485 269.556 230.935 269.211 228.007 267.834 226.286 266.457 225.942 265.253 224.391 265.253 222.669 254.75 211.305 251.823 211.305 247.347 208.722 242.354 206.657 240.977 205.451 240.632 203.211 238.737 201.834 236.327 202.179 233.574 201.146 228.237 198.219 222.728 195.981 218.767 193.398 215.495 191.676 212.227 189.782 209.298 186.167 208.954 184.1 211.882 184.1 214.12 182.551 214.12 180.312 215.495 179.278 217.046 177.041 216.184 175.319 214.12 173.768 212.227 173.081 210.504 172.391 208.266 173.424 206.889 173.768 203.445 173.081 199.829 173.081 197.247 173.768 195.181 172.391 193.632 172.391z");
		labels.push('Campania');
		//centers.push([390,420]);
		paths.push("M184.335 185.133L182.098 185.133 180.721 187.199 178.481 188.059 175.897 187.543 174.177 185.821 171.938 185.477 169.355 186.167 167.118 186.854 165.74 187.543 164.707 186.167 163.329 186.167 162.126 186.854 160.576 187.199 159.887 188.749 160.576 190.988 159.199 192.709 157.821 194.776 158.165 198.219 159.369 201.491 161.437 203.729 161.437 205.106 159.715 206.141 158.51 207.345 158.51 209.067 160.576 210.444 161.781 210.444 164.707 208.377 166.946 208.722 170.045 209.411 170.045 211.65 168.668 213.199 169.355 214.577 170.732 215.954 172.282 213.887 172.8 213.372 175.21 215.266 177.792 214.233 180.031 214.577 181.753 218.193 183.646 220.432 185.023 222.499 184.679 223.703 183.129 225.424 183.646 227.319 184.679 228.007 186.572 229.04 188.293 231.279 189.845 232.657 191.566 233.172 192.599 231.967 194.491 233.172 197.764 233.172 200.346 231.967 200.001 232.485 201.38 230.245 202.068 228.869 202.93 227.319 202.93 224.736 202.068 222.154 200.346 217.848 195.869 213.372 196.73 210.961 198.107 208.722 195.181 205.795 195.869 204.417 198.451 204.417 200.346 201.491 201.035 200.458 202.412 198.907 200.346 197.702 198.796 198.563 195.869 197.014 195.181 196.325 195.525 195.292 195.525 194.604 195.869 193.398 194.147 192.364 192.599 193.053 191.566 193.398 187.261 188.749 187.604 186.511 186.572 185.477z");
		labels.push('Molise');
		//centers.push([360,370]);
		paths.push("M189.327 174.113L186.056 170.668 183.99 169.463 180.203 168.43 179.515 166.537 178.137 168.43 178.137 169.809 177.448 170.153 175.897 170.668 174.177 171.358 172.972 172.391 171.595 173.424 170.732 171.703 169.355 170.668 168.324 169.809 166.946 170.668 166.429 171.703 167.808 173.424 167.118 174.629 165.74 174.629 165.051 174.974 164.707 176.352 164.02 177.041 162.126 177.729 159.887 177.556 162.814 179.624 163.157 181.861 163.502 183.583 163.157 185.477 162.814 186.511 164.19 185.821 166.085 187.543 169.012 185.821 171.25 185.477 172.627 185.477 174.52 186.511 176.241 187.543 178.481 188.059 180.203 187.199 182.098 184.789 184.335 185.133 185.023 182.895 187.261 182.551 188.293 182.895 189.327 182.206 190.017 181.172 190.533 179.624 190.533 176.868z");
		labels.push('Abruzzo');
		//centers.push([330,330]);
		paths.push("M160.92 140.709L163.157 145.875 164.534 149.491 165.395 151.211 165.74 153.794 168.668 156.034 171.077 158.099 174.692 161.371 178.137 163.609 179.858 165.333 179.17 166.881 178.137 167.57 177.448 167.915 177.62 169.463 176.587 170.153 175.555 170.841 174.52 170.841 171.595 173.081 171.077 171.875 169.701 170.841 168.151 169.809 167.118 170.153 166.429 170.841 166.429 171.875 167.462 173.081 166.773 174.113 165.395 174.458 164.534 175.146 164.19 176.352 163.157 177.041 162.126 177.384 159.887 177.041 156.961 176.696 154.722 175.146 152.656 173.424 149.729 170.841 148.696 169.809 147.147 169.463 144.22 168.947 142.327 168.947 141.639 167.915 141.294 166.02 141.639 163.609 142.327 161.715 141.983 161.026 141.639 159.305 140.949 157.411 140.949 156.034 141.639 155.344 142.327 154.829 141.983 153.106 142.327 151.901 144.22 150.179 146.113 150.179 147.835 149.491 148.868 148.113 148.696 146.908 151.108 144.325 154.033 144.668 155.239 143.292 157.648 142.947 159.199 141.915z");
		labels.push('Umbria');
		//centers.push([250,280]);
		paths.push("M147.835 146.218L147.147 144.325 145.425 142.947 142.842 140.709 140.606 139.675 139.056 138.643 139.572 135.027 138.883 132.788 138.366 130.55 138.366 126.934 136.301 125.555 133.718 123.663 131.823 123.318 129.758 121.08 128.726 119.013 126.831 119.013 125.281 119.013 125.281 117.119 124.248 118.153 122.871 117.808 122.183 119.702 123.216 121.94 124.248 124.351 124.593 125.729 123.904 126.59 121.667 126.934 119.944 127.967 118.74 129.516 119.601 131.583 119.601 133.133 118.74 133.133 119.256 134.165 117.362 135.715 118.052 137.092 117.706 138.299 115.985 139.675 116.33 141.225 115.641 141.915 117.362 142.602 117.362 143.636 116.674 144.325 115.641 145.875 116.674 148.113 118.568 146.908 120.978 146.908 122.183 147.596 122.526 149.491 123.216 151.211 124.593 151.729 125.109 152.762 125.799 154.139 127.176 154.829 128.898 154.829 131.136 155.344 131.823 154.829 133.029 153.451 134.062 152.762 135.956 152.073 137.678 152.073 139.056 150.524 139.917 149.146 140.606 148.458 142.497 148.801 143.876 148.458 146.113 148.113z");
		labels.push('Marche');
		//centers.push([290,260]);
		paths.push("M160.576 140.709L159.887 138.471 159.369 133.133 158.855 128.656 157.305 123.318 155.927 121.08 153.344 117.808 150.419 116.43 147.147 113.503 143.876 110.576 140.606 107.305 138.194 104.721 136.301 103.344 136.645 105.583 135.439 107.305 134.062 107.993 132.686 107.305 130.964 105.754 130.103 105.583 128.209 105.583 126.486 106.272 124.593 105.583 123.904 106.959 123.904 109.199 122.183 109.543 122.183 110.576 123.562 111.954 125.109 111.265 126.831 111.609 127.176 112.815 126.831 113.847 125.281 114.192 125.109 115.225 125.109 116.43 125.281 117.119 125.281 118.497 127.52 119.013 128.209 119.013 130.964 122.112 131.823 123.663 133.373 123.318 136.301 125.555 138.366 127.278 138.366 130.893 138.883 133.477 139.227 137.092 139.572 138.987 140.606 140.02 142.497 140.709 145.425 142.947 146.803 143.98 147.664 145.358 147.835 146.908 148.696 147.596 149.041 146.563 151.28 143.98 153.688 144.668 155.239 142.947 157.305 143.292z");
		labels.push('Lazio');
		//centers.push([250,340]);
		paths.push("M115.296 141.915L117.018 142.602 117.018 143.636 115.641 145.358 116.674 147.596 118.052 146.908 120.288 146.908 120.978 146.908 122.183 148.113 122.871 149.834 122.871 151.04 123.562 151.729 124.248 151.729 125.454 153.451 126.143 154.656 126.831 154.829 129.07 154.656 129.758 154.829 131.136 154.829 133.029 153.451 134.579 151.901 135.611 151.901 137.505 151.901 138.366 151.211 140.434 148.286 141.122 148.286 141.812 148.801 143.187 148.286 144.908 148.113 145.771 147.596 147.835 146.563 148.696 147.596 148.352 148.286 147.147 148.974 146.458 150.179 144.736 150.179 142.842 151.211 142.155 152.762 142.155 153.794 142.497 154.829 141.294 155.344 141.122 156.377 140.606 157.755 142.155 160.337 142.155 161.371 142.155 162.92 141.294 165.846 141.294 168.085 142.497 169.12 144.736 168.775 147.835 169.809 149.729 171.014 152.312 173.424 156.616 176.696 158.165 176.696 160.402 177.556 162.471 179.624 163.157 182.206 163.502 183.928 163.157 185.133 163.157 186.167 162.126 186.854 161.264 187.199 160.576 187.199 160.402 188.749 160.402 190.471 159.542 192.02 158.51 193.053 157.821 194.086 157.821 195.292 156.272 195.637 153.688 196.325 152.656 195.637 150.763 194.086 148.352 192.709 146.113 192.364 142.842 192.709 139.917 193.053 137.505 190.126 137.678 188.749 135.611 186.511 132.341 185.477 129.414 183.24 125.799 179.967 121.322 175.319 119.944 172.391 117.706 170.497 115.985 167.57 114.091 164.642 111.164 161.371 108.754 158.272 104.967 154.829 107.205 152.762 108.754 151.04 109.442 148.801 109.442 146.908 111.164 146.218 112.37 144.668 113.059 143.98 112.37 141.915 113.403 140.709z");
		labels.push('Emilia Romagna');
		//centers.push([220,190]);
		paths.push("M135.956 103.172L133.545 101.451 132.341 99.556 130.964 95.596 130.103 94.046 128.381 91.119 127.176 89.742 127.176 88.019 128.726 86.47 128.381 84.231 128.381 81.304 128.036 79.583 129.07 78.205 128.036 76.656 126.143 73.728 124.248 73.383 121.839 72.522 120.461 73.383 119.256 74.417 117.706 74.761 116.33 74.073 112.025 74.073 109.442 73.04 107.721 72.351 106.171 70.8 104.277 71.833 101.179 71.833 97.393 72.351 95.325 71.833 93.087 69.768 91.71 70.8 90.161 71.146 88.267 70.112 87.577 69.423 85.34 69.768 83.273 69.423 81.552 68.218 78.625 65.98 75.871 63.913 74.148 64.258 72.082 64.946 70.533 63.913 68.984 62.88 67.262 62.88 65.886 63.913 65.368 64.602 65.368 67.874 64.68 71.146 63.991 73.383 62.958 74.761 61.753 77 60.204 78.377 58.826 79.583 60.721 80.96 62.442 81.304 64.68 81.82 64.336 84.576 66.574 85.781 69.501 86.813 70.189 87.331 70.533 88.708 70.705 91.635 71.223 93.357 72.942 94.046 74.492 93.702 74.837 92.325 74.837 90.774 76.731 89.397 77.42 88.708 78.107 89.742 80.002 91.119 82.413 91.979 85.856 92.668 88.267 93.013 91.71 94.39 93.432 95.94 95.498 98.178 96.703 98.523 99.629 98.523 101.179 98.523 103.245 100.245 104.967 100.761 107.205 100.245 108.754 100.761 109.787 100.761 112.37 100.761 113.059 99.901 114.952 101.451 114.952 102.828 114.952 105.065 115.985 105.754 118.568 106.099 119.944 107.477 121.15 108.682 122.183 109.715 123.562 108.682 124.076 106.788 124.593 105.411 126.314 105.927 128.381 105.411 129.758 105.411 131.996 106.788 133.545 107.993 134.579 107.993 135.956 106.616 136.645 105.411z");
		labels.push('Liguria');
		//centers.push([90,170]);
		paths.push("M58.826 78.894L53.489 78.205 51.596 81.132 50.218 81.132 48.324 79.583 46.603 80.099 44.708 80.443 42.987 81.132 42.298 80.788 40.06 79.41 38.683 78.721 35.24 79.41 35.24 80.443 35.93 81.132 35.757 82.509 34.551 83.026 33.518 84.403 33.173 85.437 33.518 86.813 33.173 88.019 32.141 88.708 29.214 89.397 23.704 89.913 23.704 91.292 21.811 92.841 20.433 94.218 19.4 96.112 19.4 99.04 20.777 101.966 22.499 100.761 25.255 101.451 26.976 101.966 29.902 101.105 32.312 99.729 34.207 97.834 34.551 95.079 35.067 93.185 36.444 91.635 38.854 90.602 40.405 89.913 42.987 87.675 45.914 85.264 50.562 84.748 52.801 85.953 55.728 87.675 57.449 88.536 60.721 88.708 63.302 90.602 66.918 92.841 70.189 96.112 74.492 100.073 77.764 101.451 78.625 100.761 79.83 99.211 78.28 96.456 75.183 94.907 73.978 93.013 71.567 92.841 70.705 91.635 70.705 90.258 70.533 88.708 69.672 87.158 68.984 86.298 66.918 85.264 64.68 84.06 63.991 83.026 64.336 81.82 63.991 80.788 62.958 80.788 61.753 80.099 60.721 80.443z");
		labels.push('Valle D\'Aosta');
		//centers.push([50,89]);
		paths.push("M33.518 31.542L29.902 30.854 28.008 30.854 26.114 33.264 25.255 34.813 23.36 35.158 20.777 34.125 19.4 32.919 17.162 31.198 16.129 30.682 14.236 32.23 12.857 34.125 10.964 35.847 12.342 39.119 13.892 41.356 14.236 42.39 13.203 44.284 13.547 46.522 13.547 48.589 14.236 49.622 15.785 47.9 18.196 47.21 19.4 46.522 21.122 46.695 23.36 46.522 25.255 46.695 26.976 47.21 28.353 46.522 30.936 45.661 31.624 43.767 32.485 42.907 33.518 43.079 35.067 42.907 34.551 41.356 34.551 38.429 33.862 37.224 33.862 35.158 33.518 33.608z");
		labels.push('Piemonte');
		//centers.push([74,142]);
		paths.push("M33.518 31.198L35.585 29.821 38.166 27.238 38.854 26.204 38.166 22.588 38.511 21.383 42.47 19.661 44.364 19.145 46.603 16.734 47.979 16.734 48.324 18.456 48.669 21.383 50.906 24.655 52.284 27.238 52.284 29.821 51.596 31.886 49.873 33.78 48.669 33.78 47.636 33.78 46.946 34.813 47.636 37.052 47.291 41.013 49.014 42.907 49.356 45.317 50.562 48.761 51.596 50.482 52.801 51.688 52.284 53.065 51.596 54.098 50.906 54.615 49.014 53.065 46.946 53.065 45.397 54.098 44.708 55.476 46.086 57.37 46.086 61.847 47.291 63.225 48.324 63.569 50.562 63.225 52.973 62.88 54.867 66.841 57.104 69.423 58.481 71.146 59.515 72.695 59.515 75.622 60.721 77 60.721 77.688 59.343 79.583 53.489 78.894 52.801 79.238 51.596 81.304 49.873 81.82 47.636 79.926 47.291 80.616 45.741 80.616 44.708 81.304 42.47 81.304 41.093 80.271 38.854 79.583 37.822 78.894 36.444 79.583 35.24 80.271 35.585 81.132 35.93 81.82 35.585 82.854 33.69 84.06 33.001 85.092 33.001 86.813 33.001 88.019 32.312 89.053 30.592 89.742 26.459 90.085 23.704 90.43 22.499 88.708 20.777 87.331 18.885 86.125 18.196 86.813 16.645 87.503 15.785 88.708 14.925 89.397 13.892 88.019 11.997 86.813 9.932 86.125 8.728 83.542 8.039 80.616 7.349 78.894 6.659 77.688 6.659 76.311 7.349 74.589 9.415 73.04 10.62 70.8 10.964 69.079 11.653 67.185 11.309 65.807 9.415 63.913 7.005 61.33 5.11 59.953 4.422 58.403 4.768 57.37 8.039 56.337 9.932 56.337 9.932 54.098 10.964 53.065 13.03 51.86 13.547 50.827 14.236 49.45 15.785 47.555 18.196 47.21 18.885 46.522 21.467 46.522 23.188 46.522 26.459 47.21 28.697 46.178 30.936 45.317 31.624 45.317 31.28 43.939 32.312 42.562 33.518 43.25 34.896 42.562 34.207 37.741 33.518 37.397 33.518 34.125z");
		labels.push('Lombardia');
		//centers.push([155,105]);
		paths.push("M52.456 27.238L54.867 27.238 56.761 28.615 56.761 29.648 56.761 31.198 56.071 32.575 54.867 33.092 55.728 35.158 57.104 36.708 58.998 34.813 60.032 33.78 61.753 31.886 61.753 30.165 63.302 29.304 65.886 27.926 67.606 25.343 68.124 24.31 68.295 18.8 69.845 18.111 71.567 18.456 71.567 20.35 71.223 23.277 73.115 24.655 74.492 25.688 74.837 26.893 76.387 27.582 79.314 24.31 81.036 24.999 82.241 23.449 81.724 22.072 83.618 18.456 84.651 16.734 86.545 16.217 88.267 16.734 89.472 19.145 91.021 21.039 93.087 22.417 93.775 23.449 93.432 25.343 93.432 28.959 93.432 30.854 92.742 33.092 92.742 35.158 91.882 37.397 91.882 41.013 91.882 43.25 92.742 45.834 93.775 46.522 95.498 44.973 96.703 43.25 98.252 44.284 97.735 46.006 98.252 49.45 98.424 50.827 97.393 51.688 95.498 53.41 94.636 55.304 94.12 57.026 94.809 59.609 96.358 60.642 97.393 59.609 98.94 59.953 98.252 60.986 98.94 63.569 99.629 64.602 101.352 66.152 102.558 67.185 103.933 68.735 104.967 70.112 106.171 70.8 104.795 71.662 99.629 71.662 98.252 72.351 96.014 72.006 93.087 69.768 91.71 70.457 90.161 71.146 89.126 70.8 87.233 69.079 86.545 69.423 85.167 69.768 83.273 69.079 80.348 67.529 77.764 65.807 75.698 63.569 74.492 63.913 73.46 64.602 72.082 64.602 70.189 63.225 68.812 62.536 67.606 62.88 66.574 63.225 65.886 63.913 65.197 64.946 65.541 67.185 65.197 69.079 64.336 72.006 63.646 73.04 62.614 74.761 62.269 75.622 60.721 77 60.376 76.311 59.687 75.622 59.687 72.351 54.178 66.152 53.146 62.88 51.251 62.88 49.873 62.88 49.014 63.225 47.979 63.225 46.946 62.019 46.086 61.33 46.086 59.609 46.086 56.682 45.225 55.993 44.708 55.304 45.397 54.443 46.603 53.065 47.291 52.549 49.014 53.065 50.906 54.098 51.938 53.065 52.801 51.86 52.801 51.171 51.767 49.45 49.873 47.21 49.529 45.317 49.014 42.907 47.291 41.013 47.291 39.119 47.636 37.741 47.291 36.191 46.603 35.502 46.946 34.469 47.291 33.78 47.979 33.78 49.529 33.78 51.251 31.886 51.938 30.336 51.938 29.648z");
		labels.push('Trentino Alto Adige');
		//centers.push([235,54]);
		paths.push("M88.61 16.217L88.955 13.291 90.505 12.257 92.915 10.19 93.432 8.986 92.227 7.608 97.047 2.442 98.08 3.476 98.77 5.025 98.77 6.058 101.352 6.747 107.205 8.641 107.55 8.986 110.476 7.264 114.091 3.82 115.985 3.82 118.224 5.369 120.978 6.058 124.765 5.025 126.143 3.82 128.036 3.82 129.758 3.131 130.964 5.025 130.619 6.747 130.964 8.986 132.686 9.674 134.235 11.568 134.924 13.807 136.645 16.217 136.645 17.767 134.235 18.111 131.996 19.145 129.758 21.383 127.692 23.277 125.799 24.655 123.904 25.343 120.978 25.688 120.288 27.238 120.633 28.615 121.839 29.304 123.216 30.165 124.248 31.198 123.562 31.886 122.183 33.264 120.633 33.78 119.601 34.125 119.944 35.502 119.256 37.052 118.568 38.085 117.018 38.085 115.641 37.741 114.091 37.397 112.37 37.397 111.681 39.119 110.819 41.013 109.442 43.25 108.238 44.284 107.205 44.628 104.967 45.317 102.9 45.317 101.352 44.628 100.317 43.939 98.77 44.284 97.735 44.628 97.393 43.939 96.358 43.25 95.498 43.939 94.809 44.628 93.775 45.834 92.57 45.317 91.882 43.939 91.538 42.907 91.882 40.668 91.882 38.085 92.227 36.019 92.915 33.264 92.915 31.886 92.915 30.336 92.915 28.615 93.432 25.343 94.12 23.966 93.775 22.76 92.57 21.728 91.194 21.039 89.815 19.145 89.299 18.456z");
		labels.push('Friuli Venezia Giulia');
		//centers.push([313,84]);
		paths.push("M143.187 21.383L142.842 21.383 143.187 21.728 144.047 20.35 146.113 20.694 149.041 21.728 153.688 23.966 154.895 23.449 161.092 26.204 163.329 27.582 164.02 28.615 163.502 29.821 162.471 30.336 161.092 30.682 159.542 31.198 159.887 33.264 162.814 36.019 163.329 37.741 162.814 39.979 161.437 42.39 160.576 44.628 162.126 46.522 164.02 48.933 164.19 50.138 164.707 53.41 164.707 54.443 163.502 54.787 161.781 54.787 161.092 53.754 160.402 51.688 159.369 50.138 158.855 50.138 157.821 50.827 156.272 52.376 155.583 52.549 153.344 52.549 152.312 51.86 150.074 51.86 149.041 52.376 148.352 51.86 147.147 51.171 145.771 49.793 144.736 48.245 143.531 47.9 141.294 48.933 139.917 49.45 138.883 49.45 137.505 48.245 136.645 46.867 136.645 45.834 136.645 44.284 135.611 43.25 134.751 41.701 133.718 41.013 133.029 41.013 133.373 39.634 133.029 38.429 132.686 36.708 132.341 35.158 133.373 33.78 135.611 31.198 137.678 28.271 138.366 27.926 138.366 26.376 139.572 25.343 141.122 24.31 142.842 23.966 142.155 23.277z");
		labels.push('Veneto');
		//centers.push([255,115]);
		paths.push("M136.301 17.595L138.366 16.906 139.917 17.423 141.983 18.456 144.22 19.489 144.22 20.177 143.531 21.039 141.983 22.76 142.327 23.449 140.949 23.966 139.917 24.999 138.366 26.376 138.021 27.238 138.366 27.926 137.333 28.271 136.645 29.648 135.439 30.682 134.062 32.23 133.029 33.78 132.341 34.813 132.513 36.708 133.373 38.085 133.029 39.119 132.513 40.668 134.407 41.701 135.439 43.079 136.301 43.939 136.645 44.628 136.301 46.006 136.988 47.555 137.678 48.933 138.711 49.622 140.606 48.933 141.983 48.245 143.187 47.555 144.563 48.245 145.771 49.622 147.147 51.171 148.18 52.549 146.458 53.41 143.187 53.754 141.294 54.443 136.645 55.476 133.373 57.026 130.791 58.403 129.586 59.264 129.586 60.986 129.586 63.569 128.726 68.39 128.209 69.768 130.103 71.146 132.513 73.728 133.029 75.277 132.513 76.656 130.791 77.516 128.726 78.205 128.726 77.688 127.52 76.311 126.831 74.589 125.97 73.728 123.904 73.04 121.667 72.695 119.944 73.383 119.256 74.589 117.706 74.933 116.33 73.728 114.779 73.728 113.059 74.073 111.854 73.728 110.476 73.383 109.442 73.04 109.099 72.695 107.894 72.351 106.517 71.662 105.827 70.457 103.933 68.39 102.9 67.185 101.352 65.807 100.317 64.946 99.284 63.913 98.424 62.88 98.424 62.019 98.252 60.297 98.252 59.953 97.393 59.609 96.358 60.297 95.325 59.264 94.809 57.714 94.12 56.337 94.636 54.787 94.809 53.754 96.014 52.549 97.047 51.688 98.424 50.482 98.252 49.45 97.735 48.245 97.735 46.867 97.735 45.834 98.252 44.973 99.973 43.596 101.352 44.973 102.213 45.317 104.277 45.317 107.205 44.628 108.238 43.939 109.442 42.907 110.476 41.356 111.681 39.119 111.854 37.397 114.091 37.052 115.123 37.741 116.674 38.085 117.706 38.085 118.568 38.085 119.944 35.158 119.256 34.469 119.944 33.78 120.633 33.78 121.322 33.78 124.248 31.198 123.904 30.682 123.216 30.165 121.667 29.304 120.978 28.615 120.633 28.271 120.633 27.582 120.288 27.238 120.288 26.031 120.633 25.688 121.322 25.688 123.216 24.999 124.248 24.999 125.799 24.655 126.486 23.966 127.52 23.104 128.726 22.072 130.103 21.039 131.136 19.833 131.823 19.145 133.029 18.456 134.407 18.456z");
		labels.push('Toscana');
		//centers.push([213,261]);
		paths.push("M78.107 100.073L77.592 101.622 79.486 103 81.036 106.616 80.52 109.543 79.83 111.782 79.486 112.815 81.724 117.292 83.445 121.596 84.823 125.211 85.685 127.45 84.823 129.862 83.789 132.099 84.134 133.994 86.029 135.027 87.406 136.577 88.267 137.609 88.267 139.502 90.333 140.881 92.227 142.602 93.259 144.153 93.948 145.875 95.152 147.08 96.53 149.663 97.563 151.729 98.424 153.278 99.802 153.278 102.04 153.623 103.76 153.967 105.654 154.656 105.999 153.967 107.55 152.59 109.099 150.352 109.787 148.629 109.96 146.391 111.336 146.391 112.025 145.186 113.575 143.636 112.887 141.57 113.919 140.537 115.468 141.57 116.846 140.881 116.501 139.848 118.224 137.609 118.224 135.372 119.772 133.994 119.428 132.788 120.288 132.099 119.772 130.377 119.428 129 120.288 127.795 121.667 126.762 123.39 126.245 124.593 125.555 125.281 124.868 124.593 123.146 122.354 119.53 123.39 117.635 125.281 117.981 126.314 118.325 125.454 116.085 125.281 115.053 125.97 113.847 127.003 113.159 127.692 112.471 127.003 111.437 125.97 110.748 125.281 111.437 124.076 111.782 122.7 110.231 122.354 109.199 121.667 108.166 119.084 105.927 117.534 105.583 115.813 105.238 115.123 104.549 115.123 102.655 115.123 101.622 113.575 100.073 112.542 100.417 109.271 100.417 107.721 99.729 107.033 100.073 106.343 100.417 104.795 100.073 103.76 100.073 101.179 98.178 96.875 98.007 95.843 97.49 94.291 95.768 92.57 94.39 89.987 92.841 87.75 92.497 84.823 92.152 81.724 90.947 80.175 90.774 79.486 90.258 78.798 89.225 77.592 88.536 75.526 90.258 74.837 93.185 76.56 95.596 78.798 96.8 79.659 99.04z");
		labels.push('Sicilia');
		//centers.push([346,662]);
		paths.push("M197.419 288.789L198.107 290.339 195.181 294.988 193.804 299.121 191.566 303.082 189.327 307.386 187.949 308.764 188.638 312.378 184.335 314.962 185.023 317.544 185.023 320.472 187.604 322.71 187.261 324.432 188.982 327.359 190.188 328.048 190.188 330.286 186.056 334.247 185.711 336.141 186.056 338.379 185.367 340.446 183.646 341.479 182.44 341.479 180.721 340.101 179.515 339.069 177.448 339.069 174.177 338.379 172.972 338.551 171.595 337.174 170.045 335.624 168.668 335.624 167.635 334.935 167.635 333.213 166.946 330.975 165.74 329.941 163.502 327.704 159.542 324.777 157.305 324.777 154.895 324.777 152.999 323.4 150.074 322.194 149.041 321.161 146.458 320.128 143.531 319.783 142.155 319.783 139.917 317.2 139.227 316.339 137.678 316.167 137.505 314.962 135.956 312.378 134.062 312.378 132.341 311.69 130.964 309.452 130.447 309.28 128.726 309.28 126.831 309.969 125.109 309.969 123.562 308.764 123.562 307.386 122.871 305.836 120.978 306.352 120.288 305.664 120.978 304.975 118.568 303.082 118.568 301.531 119.256 300.499 120.288 299.292 120.288 298.26 119.256 297.226 119.601 295.676 120.633 294.299 125.454 290.684 127.52 291.028 128.209 292.061 131.136 293.611 132.686 292.061 133.718 290.339 142.497 290.339 142.842 291.717 145.771 293.266 146.458 294.643 147.664 295.333 148.696 294.643 152.312 296.539 154.204 297.226 156.272 296.539 158.855 294.988 161.092 294.988 163.502 296.539 165.051 296.883 167.808 296.194 170.732 296.539 172.627 295.676 174.865 294.988 177.448 293.266 179.515 292.405 182.785 292.061 185.367 292.405 187.604 292.061 189.845 289.995 190.878 289.478 192.254 289.995 195.181 289.995z");

		Cvit.vars.MAPPA = Raphael("italymap", 340, 346).Map(paths, labels, fill, stroke);//centers, fill, stroke);
	}
	
}
$(Cvit.init);






















