function addMap (areaID, mapID, str_iframe, str_href) {
	// Make sure that the browser supports getElementById()
	if(!document.getElementById) return false;

	var map = document.getElementById(mapID);

	// Get the div where the maps will appear
	var mapArea = document.getElementById(areaID);
    
    if (map != null) {
	   mapArea.removeChild(map);
       return false;
	}
	
	// The whole HTML of the table
	var htmlText = "";

		htmlText += "<br /><br /><br /><table class='googleMap'>";
	htmlText += "<tr><td align='center'><iframe width='640' height='480' frameborder='0' scrolling='no' marginheight='0' marginwidth='0' src='" + str_iframe + "'></iframe></td></tr>";
	htmlText += "<tr><td align='left'><a class='bigmap' href='" + str_href + "' target='_blank'>Visualizzazione ingrandita della mappa</a></td></tr>";
	htmlText += "<tr><td align='center'><a class='closeMap' href='#' onClick=\"removeMap ('" + areaID + "', '" + mapID + "'); return false;\">CHIUDI MAPPA</a></td></tr></table>";
	
	//alert(htmlText);
		
	// Create a new div, which will hold the new tables
	var newDiv = document.createElement('div');
	newDiv.id = mapID;
	newDiv.innerHTML = htmlText;
	
	mapArea.appendChild(newDiv);
	
	return true;
}

function removeMap (areaID, mapID) {
	if(!document.getElementById) return false; //Prevent older browsers from getting any further.
	
	var mapArea = document.getElementById(areaID);

	var map = document.getElementById(mapID);
	if (map != null){
		mapArea.removeChild(map);
	}
	
	return true;
}

/*
$(document).ready(function(){
    
    $("#mapArea_1").toggle();
    $("#mapArea_2").toggle();
    $("#mapArea_3").toggle();
    
    $("#map_1").click(function() {
        $("#mapArea_1").slideToggle();
        $("#mapArea_2").hide();
        $("#mapArea_3").hide();
    });
    
    $("#map_2").click(function() {
        $("#mapArea_1").hide();
        $("#mapArea_2").slideToggle();
        $("#mapArea_3").hide();
    });
    
    $("#map_3").click(function() {
        $("#mapArea_1").hide();
        $("#mapArea_2").hide();
        $("#mapArea_3").slideToggle();
    });
    
});
*/