function showMap() {
	myPopBox.start();
	//myPopupBox.resizeContentContainer(210, 215);
	myPopBox.loadContent('public/scripts/map.html', 215, 255);
	//Effect.Scale('outerContentContainer', this.yScale, {scaleX: false, duration: 0.8, queue: 'front'});
}

function ShowName(region){
	document.getElementById('map_legend').innerHTML = region;
}

function ChangeColor(pic){
	if (document.getElementById('city')) {
		document.getElementById('city').value = '';
 	}

    if (pic != ''){
		var img = 'document.fr_rg_' + pic;
		if (eval(img).src.match('public/images/carte/0.gif')){
        	var file =  'fr_rg_' + pic + '_r.gif';
			eval(img).src = 'public/images/carte/' + file;
		}
		else {
			eval(img).src = 'public/images/carte/0.gif';
		}
	}
	return MakeRegionString();
}

function MakeRegionString(){
	var retval =0;
	for (var i=0; i < document.images.length; i++){ 
		retval = retval +1;
		var img = document.images[i].src;
		if (img.match(/_r.gif$/)){
        	img = (img.split(/fr_rg_/))[1];
        	img = (img.split(/_r.gif$/))[0];
			img = img.split(/\//);
			img = img[img.length - 1];
		}
	}
	return (retval < 0);
}
