function CrearMarker(map,marker,Rpoint,imageUrl,Url,i) {
	var icon0;
	icon0 = new GIcon();
	icon0.image = imageUrl;
	icon0.iconSize = new GSize(70, 18);
	icon0.shadowSize = new GSize(37, 34);
	icon0.iconAnchor = new GPoint(9, 34);
	icon0.infoWindowAnchor = new GPoint(9, 2);
	icon0.infoShadowAnchor = new GPoint(18, 25);
	var s = -37;
	var w = -62.3;
	var point = new GPoint(w,s);
	marker[i] = createMarker(Rpoint,icon0,Url);
	map.addOverlay(marker[i]);
}
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function createMarker(point, icon, url) {
	var marker = new GMarker(point, icon);
	GEvent.addListener(marker, "click", function() {
		MM_goToURL('parent',url);
		return document.MM_returnValue;
	});
	return marker;
}

function freeOverlays(map,provincia) {
	if (provincia != "BuenosAires") {
		map.removeOverlay(groundOverlayBuenosAiresSolido)}
	if (provincia != "Centro") {
		map.removeOverlay(groundOverlayCordobaSolido);}
	if (provincia != "Cuyo") {
		map.removeOverlay(groundOverlayCuyoSolido);}
	if (provincia != "Noreste") {
		map.removeOverlay(groundOverlayNoreste1Solido);
		map.removeOverlay(groundOverlayNoreste2Solido);}
	if (provincia != "Noroeste") {
		map.removeOverlay(groundOverlayNoroesteSolido);}
	if (provincia != "Patagonia") {
		map.removeOverlay(groundOverlayPatagonia2Solido);
		map.removeOverlay(groundOverlayPatagonia2Solido);
		map.removeOverlay(groundOverlayPatagonia3Solido);}
	}
	
function borrarTodo(map) {
	map.removeOverlay(groundOverlayBuenosAiresSolido);
	map.removeOverlay(groundOverlayCordobaSolido);
	map.removeOverlay(groundOverlayCuyoSolido);
	map.removeOverlay(groundOverlayNoreste1Solido);
	map.removeOverlay(groundOverlayNoreste2Solido);
	map.removeOverlay(groundOverlayNoroesteSolido);
	map.removeOverlay(groundOverlayPatagonia2Solido);
	map.removeOverlay(groundOverlayPatagonia2Solido);
	map.removeOverlay(groundOverlayPatagonia3Solido);
}
