
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
		<title>Mapa AlicanteComercio</title>
		<link rel="stylesheet" type="text/css" media="all" href="css/comercio2010.css" />
		<script type="text/javascript" src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAMWW2UYhjpqnhqjjhVL6naBQGDasHsCtMkZyYBaPOaI6jRIgdLRSlUuwnnFJKbLGbiOV8UWG0fC7MTw&hl=es"></script>
	</head>
	
	<body>
						<div>
					<div id="map" style="height:415px;"></div>
<script language="javascript" type="text/javascript">
	var map=null;
	var point_com =  new Array();
	var icon_com = new Array();
	var tipo_com = new Array();
	var html_com = new Array();
	var mimarker_com = new Array();
	var max_com = 0;

	var point_hit =  new Array();
	var icon_hit = new Array();
	var html_hit = new Array();
	var mimarker_hit = new Array();
	var max_hit = 0;

		
	function cargar_comercios() {
		cont = 0;

		point_com[cont] =  new GLatLng(38.344249725341797,-0.48374998569488525);
		icon_com[cont] = new GIcon();
		
		icon_com[cont].image = "http://www.comercioalicante.com/img/map14.png";
		icon_com[cont].shadow = "http://www.comercioalicante.com/img/shadow50.png";
		
		icon_com[cont].iconAnchor = new GPoint(9, 34);
		icon_com[cont].infoWindowAnchor = new GPoint(9, 2);
		icon_com[cont].infoShadowAnchor = new GPoint(18, 25);
		
		html_com[cont] = '<b class="nombre">EL RINCON HUERTANO</b><br/>PORTAL DE ELCHE<br/>Telf: (+34) 965140457<br><a class="nombre" href="el_rincon_huertano.html">más información</a>';
		tipo_com[cont] = 14;
		mimarker_com[cont] = createMarker(point_com[cont], icon_com[cont], html_com[cont]);
		cont++;
		
		max_com = cont-1;
		// alert("max_com:"+max_com);
	}

	function cargar_hitos() {
		cont = 0;

		point_hit[cont] =  new GLatLng(38.3457527161,-0.4840129912);
		icon_hit[cont] = new GIcon();
		
		icon_hit[cont].image = "http://www.comercioalicante.com/img/map16.png";
		icon_hit[cont].shadow = "http://www.comercioalicante.com/img/shadow50.png";
		
		icon_hit[cont].iconAnchor = new GPoint(9, 34);
		icon_hit[cont].infoWindowAnchor = new GPoint(9, 2);
		icon_hit[cont].infoShadowAnchor = new GPoint(18, 25);
		
		html_hit[cont] = '<b class="nombre">AVDA. RAMBLA MENDEZ NUÑEZ</b><br/>RAMBLA MENDEZ NUÑEZ<br/>Telf: (+34) <br><a class="nombre" href="avda._rambla_mendez_nunez.html">más información</a>';

		mimarker_hit[cont] = createMarker(point_hit[cont], icon_hit[cont], html_hit[cont]);
		cont++;
		
		point_hit[cont] =  new GLatLng(38.3451004028,-0.4812110066);
		icon_hit[cont] = new GIcon();
		
		icon_hit[cont].image = "http://www.comercioalicante.com/img/map16.png";
		icon_hit[cont].shadow = "http://www.comercioalicante.com/img/shadow50.png";
		
		icon_hit[cont].iconAnchor = new GPoint(9, 34);
		icon_hit[cont].infoWindowAnchor = new GPoint(9, 2);
		icon_hit[cont].infoShadowAnchor = new GPoint(18, 25);
		
		html_hit[cont] = '<b class="nombre">AYUNTAMIENTO DE ALICANTE</b><br/>PLAZA DEL AYUNTAMIENTO 1<br/>Telf: (+34) 965149100<br><a class="nombre" href="ayuntamiento_de_alicante.html">más información</a>';

		mimarker_hit[cont] = createMarker(point_hit[cont], icon_hit[cont], html_hit[cont]);
		cont++;
		
		point_hit[cont] =  new GLatLng(38.5373306274,-0.1160819978);
		icon_hit[cont] = new GIcon();
		
		icon_hit[cont].image = "http://www.comercioalicante.com/img/map16.png";
		icon_hit[cont].shadow = "http://www.comercioalicante.com/img/shadow50.png";
		
		icon_hit[cont].iconAnchor = new GPoint(9, 34);
		icon_hit[cont].infoWindowAnchor = new GPoint(9, 2);
		icon_hit[cont].infoShadowAnchor = new GPoint(18, 25);
		
		html_hit[cont] = '<b class="nombre">CALLE GERONA</b><br/>Calle Gerona<br/>Telf: (+34) <br><a class="nombre" href="calle_gerona.html">más información</a>';

		mimarker_hit[cont] = createMarker(point_hit[cont], icon_hit[cont], html_hit[cont]);
		cont++;
		
		point_hit[cont] =  new GLatLng(38.3458786011,-0.4831489921);
		icon_hit[cont] = new GIcon();
		
		icon_hit[cont].image = "http://www.comercioalicante.com/img/map16.png";
		icon_hit[cont].shadow = "http://www.comercioalicante.com/img/shadow50.png";
		
		icon_hit[cont].iconAnchor = new GPoint(9, 34);
		icon_hit[cont].infoWindowAnchor = new GPoint(9, 2);
		icon_hit[cont].infoShadowAnchor = new GPoint(18, 25);
		
		html_hit[cont] = '<b class="nombre">CALLE LABRADORES</b><br/>CALLE LABRADORES<br/>Telf: (+34) <br><a class="nombre" href="calle_labradores.html">más información</a>';

		mimarker_hit[cont] = createMarker(point_hit[cont], icon_hit[cont], html_hit[cont]);
		cont++;
		
		point_hit[cont] =  new GLatLng(38.3452720642,-0.4816580117);
		icon_hit[cont] = new GIcon();
		
		icon_hit[cont].image = "http://www.comercioalicante.com/img/map16.png";
		icon_hit[cont].shadow = "http://www.comercioalicante.com/img/shadow50.png";
		
		icon_hit[cont].iconAnchor = new GPoint(9, 34);
		icon_hit[cont].infoWindowAnchor = new GPoint(9, 2);
		icon_hit[cont].infoShadowAnchor = new GPoint(18, 25);
		
		html_hit[cont] = '<b class="nombre">CALLE MAYOR</b><br/>CALLE MAYOR<br/>Telf: (+34) <br><a class="nombre" href="calle_mayor.html">más información</a>';

		mimarker_hit[cont] = createMarker(point_hit[cont], icon_hit[cont], html_hit[cont]);
		cont++;
		
		point_hit[cont] =  new GLatLng(38.3453674316,-0.4828290045);
		icon_hit[cont] = new GIcon();
		
		icon_hit[cont].image = "http://www.comercioalicante.com/img/map16.png";
		icon_hit[cont].shadow = "http://www.comercioalicante.com/img/shadow50.png";
		
		icon_hit[cont].iconAnchor = new GPoint(9, 34);
		icon_hit[cont].infoWindowAnchor = new GPoint(9, 2);
		icon_hit[cont].infoShadowAnchor = new GPoint(18, 25);
		
		html_hit[cont] = '<b class="nombre">CONCATEDRAL DE SAN NICOLÁS DE BARI</b><br/>PLAZA ABAD PENALVA<br/>Telf: (+34) 965212662<br><a class="nombre" href="concatedral_de_san_nicolas_de_bari.html">más información</a>';

		mimarker_hit[cont] = createMarker(point_hit[cont], icon_hit[cont], html_hit[cont]);
		cont++;
		
		point_hit[cont] =  new GLatLng(38.3459358215,-0.4795080125);
		icon_hit[cont] = new GIcon();
		
		icon_hit[cont].image = "http://www.comercioalicante.com/img/map16.png";
		icon_hit[cont].shadow = "http://www.comercioalicante.com/img/shadow50.png";
		
		icon_hit[cont].iconAnchor = new GPoint(9, 34);
		icon_hit[cont].infoWindowAnchor = new GPoint(9, 2);
		icon_hit[cont].infoShadowAnchor = new GPoint(18, 25);
		
		html_hit[cont] = '<b class="nombre">IGLESIA DE SANTA MARIA</b><br/>PLAZA DE SANTA MARIA<br/>Telf: (+34) 965216026<br><a class="nombre" href="iglesia_de_santa_maria.html">más información</a>';

		mimarker_hit[cont] = createMarker(point_hit[cont], icon_hit[cont], html_hit[cont]);
		cont++;
		
		point_hit[cont] =  new GLatLng(38.3460693359,-0.4795919955);
		icon_hit[cont] = new GIcon();
		
		icon_hit[cont].image = "http://www.comercioalicante.com/img/map16.png";
		icon_hit[cont].shadow = "http://www.comercioalicante.com/img/shadow50.png";
		
		icon_hit[cont].iconAnchor = new GPoint(9, 34);
		icon_hit[cont].infoWindowAnchor = new GPoint(9, 2);
		icon_hit[cont].infoShadowAnchor = new GPoint(18, 25);
		
		html_hit[cont] = '<b class="nombre">MUSEO DE ARTE CONTEMPORANEO (MACA)</b><br/>PLAZA DE SANTA MARIA 3<br/>Telf: (+34) 965213156<br><a class="nombre" href="museo_de_arte_contemporaneo_(maca).html">más información</a>';

		mimarker_hit[cont] = createMarker(point_hit[cont], icon_hit[cont], html_hit[cont]);
		cont++;
		
		point_hit[cont] =  new GLatLng(38.3459091187,-0.4841029942);
		icon_hit[cont] = new GIcon();
		
		icon_hit[cont].image = "http://www.comercioalicante.com/img/map16.png";
		icon_hit[cont].shadow = "http://www.comercioalicante.com/img/shadow50.png";
		
		icon_hit[cont].iconAnchor = new GPoint(9, 34);
		icon_hit[cont].infoWindowAnchor = new GPoint(9, 2);
		icon_hit[cont].infoShadowAnchor = new GPoint(18, 25);
		
		html_hit[cont] = '<b class="nombre">MUSEO DE LAS HOGUERAS</b><br/>RAMBLA MENDEZ NUÑEZ 29<br/>Telf: (+34) 965 14 68 28<br><a class="nombre" href="museo_de_las_hogueras.html">más información</a>';

		mimarker_hit[cont] = createMarker(point_hit[cont], icon_hit[cont], html_hit[cont]);
		cont++;
		
		point_hit[cont] =  new GLatLng(38.3460464478,-0.4832470119);
		icon_hit[cont] = new GIcon();
		
		icon_hit[cont].image = "http://www.comercioalicante.com/img/map16.png";
		icon_hit[cont].shadow = "http://www.comercioalicante.com/img/shadow50.png";
		
		icon_hit[cont].iconAnchor = new GPoint(9, 34);
		icon_hit[cont].infoWindowAnchor = new GPoint(9, 2);
		icon_hit[cont].infoShadowAnchor = new GPoint(18, 25);
		
		html_hit[cont] = '<b class="nombre">PALACIO DE MAISONNAVE</b><br/>CALLE LABRADORES<br/>Telf: (+34) <br><a class="nombre" href="palacio_de_maisonnave.html">más información</a>';

		mimarker_hit[cont] = createMarker(point_hit[cont], icon_hit[cont], html_hit[cont]);
		cont++;
		
		point_hit[cont] =  new GLatLng(38.3461418152,-0.4788540006);
		icon_hit[cont] = new GIcon();
		
		icon_hit[cont].image = "http://www.comercioalicante.com/img/map16.png";
		icon_hit[cont].shadow = "http://www.comercioalicante.com/img/shadow50.png";
		
		icon_hit[cont].iconAnchor = new GPoint(9, 34);
		icon_hit[cont].infoWindowAnchor = new GPoint(9, 2);
		icon_hit[cont].infoShadowAnchor = new GPoint(18, 25);
		
		html_hit[cont] = '<b class="nombre">PASEO RAMIRO</b><br/>PASEO RAMIRO<br/>Telf: (+34) <br><a class="nombre" href="paseo_ramiro.html">más información</a>';

		mimarker_hit[cont] = createMarker(point_hit[cont], icon_hit[cont], html_hit[cont]);
		cont++;
		
		point_hit[cont] =  new GLatLng(38.3487663269,-0.4745270014);
		icon_hit[cont] = new GIcon();
		
		icon_hit[cont].image = "http://www.comercioalicante.com/img/map16.png";
		icon_hit[cont].shadow = "http://www.comercioalicante.com/img/shadow50.png";
		
		icon_hit[cont].iconAnchor = new GPoint(9, 34);
		icon_hit[cont].infoWindowAnchor = new GPoint(9, 2);
		icon_hit[cont].infoShadowAnchor = new GPoint(18, 25);
		
		html_hit[cont] = '<b class="nombre">PLAZA DEL TOPETE</b><br/>Plaza del Topete<br/>Telf: (+34) <br><a class="nombre" href="plaza_del_topete.html">más información</a>';

		mimarker_hit[cont] = createMarker(point_hit[cont], icon_hit[cont], html_hit[cont]);
		cont++;
		
		point_hit[cont] =  new GLatLng(38.3446006775,-0.4801369905);
		icon_hit[cont] = new GIcon();
		
		icon_hit[cont].image = "http://www.comercioalicante.com/img/map16.png";
		icon_hit[cont].shadow = "http://www.comercioalicante.com/img/shadow50.png";
		
		icon_hit[cont].iconAnchor = new GPoint(9, 34);
		icon_hit[cont].infoWindowAnchor = new GPoint(9, 2);
		icon_hit[cont].infoShadowAnchor = new GPoint(18, 25);
		
		html_hit[cont] = '<b class="nombre">PLAZA PUERTA DEL MAR</b><br/>PLAZA PUERTA DEL MAR<br/>Telf: (+34) <br><a class="nombre" href="plaza_puerta_del_mar.html">más información</a>';

		mimarker_hit[cont] = createMarker(point_hit[cont], icon_hit[cont], html_hit[cont]);
		cont++;
		
		point_hit[cont] =  new GLatLng(38.3455009460,-0.4814969897);
		icon_hit[cont] = new GIcon();
		
		icon_hit[cont].image = "http://www.comercioalicante.com/img/map16.png";
		icon_hit[cont].shadow = "http://www.comercioalicante.com/img/shadow50.png";
		
		icon_hit[cont].iconAnchor = new GPoint(9, 34);
		icon_hit[cont].infoWindowAnchor = new GPoint(9, 2);
		icon_hit[cont].infoShadowAnchor = new GPoint(18, 25);
		
		html_hit[cont] = '<b class="nombre">PLAZA SANTISIMA FAZ</b><br/>PLAZA DE LA SANTÍSIMA FAZ<br/>Telf: (+34) <br><a class="nombre" href="plaza_santisima_faz.html">más información</a>';

		mimarker_hit[cont] = createMarker(point_hit[cont], icon_hit[cont], html_hit[cont]);
		cont++;
		
		point_hit[cont] =  new GLatLng(38.3442535400,-0.4837499857);
		icon_hit[cont] = new GIcon();
		
		icon_hit[cont].image = "http://www.comercioalicante.com/img/map16.png";
		icon_hit[cont].shadow = "http://www.comercioalicante.com/img/shadow50.png";
		
		icon_hit[cont].iconAnchor = new GPoint(9, 34);
		icon_hit[cont].infoWindowAnchor = new GPoint(9, 2);
		icon_hit[cont].infoShadowAnchor = new GPoint(18, 25);
		
		html_hit[cont] = '<b class="nombre">PORTAL DE ELCHE</b><br/>Portal de Elche<br/>Telf: (+34) <br><a class="nombre" href="portal_de_elche.html">más información</a>';

		mimarker_hit[cont] = createMarker(point_hit[cont], icon_hit[cont], html_hit[cont]);
		cont++;
		
		point_hit[cont] =  new GLatLng(38.3446731567,-0.4781959951);
		icon_hit[cont] = new GIcon();
		
		icon_hit[cont].image = "http://www.comercioalicante.com/img/map16.png";
		icon_hit[cont].shadow = "http://www.comercioalicante.com/img/shadow50.png";
		
		icon_hit[cont].iconAnchor = new GPoint(9, 34);
		icon_hit[cont].infoWindowAnchor = new GPoint(9, 2);
		icon_hit[cont].infoShadowAnchor = new GPoint(18, 25);
		
		html_hit[cont] = '<b class="nombre">POSTIGUET</b><br/>EL POSTIGUET<br/>Telf: (+34) <br><a class="nombre" href="postiguet.html">más información</a>';

		mimarker_hit[cont] = createMarker(point_hit[cont], icon_hit[cont], html_hit[cont]);
		cont++;
		
		point_hit[cont] =  new GLatLng(38.3457527161,-0.4840129912);
		icon_hit[cont] = new GIcon();
		
		icon_hit[cont].image = "http://www.comercioalicante.com/img/map16.png";
		icon_hit[cont].shadow = "http://www.comercioalicante.com/img/shadow50.png";
		
		icon_hit[cont].iconAnchor = new GPoint(9, 34);
		icon_hit[cont].infoWindowAnchor = new GPoint(9, 2);
		icon_hit[cont].infoShadowAnchor = new GPoint(18, 25);
		
		html_hit[cont] = '<b class="nombre">RAMBLA MENDEZ NUÑEZ</b><br/>RAMBLA DE MÉNDEZ NÚÑEZ<br/>Telf: (+34) <br><a class="nombre" href="rambla_mendez_nunez.html">más información</a>';

		mimarker_hit[cont] = createMarker(point_hit[cont], icon_hit[cont], html_hit[cont]);
		cont++;
		
		point_hit[cont] =  new GLatLng(38.3461837769,-0.4850470126);
		icon_hit[cont] = new GIcon();
		
		icon_hit[cont].image = "http://www.comercioalicante.com/img/map16.png";
		icon_hit[cont].shadow = "http://www.comercioalicante.com/img/shadow50.png";
		
		icon_hit[cont].iconAnchor = new GPoint(9, 34);
		icon_hit[cont].infoWindowAnchor = new GPoint(9, 2);
		icon_hit[cont].infoShadowAnchor = new GPoint(18, 25);
		
		html_hit[cont] = '<b class="nombre">TEATRO PRINCIPAL</b><br/>PLAZA DEL RUPERTO CHAPÍ<br/>Telf: (+34) 965203100<br><a class="nombre" href="teatro_principal.html">más información</a>';

		mimarker_hit[cont] = createMarker(point_hit[cont], icon_hit[cont], html_hit[cont]);
		cont++;
		
		max_hit = cont-1;
		// alert("max_hit:"+max_hit);
		
	}
	function cargar_tipo(tipo, opc) {
		//alert("t:"+tipo+"-o:"+opc);
		if(opc==1) {
			map.clearOverlays();
			cargar_polyline();
		}
		if(tipo!=16) {
			for(cont=0; cont<=max_com; cont++) {
				if(tipo_com[cont]==tipo) {
					map.addOverlay(mimarker_com[cont]);
				}
			}
			if(max_com!=0) {
				$("#lista").load("ajax_listado.asp", "Itinerario=1&CodGen="+tipo);
			}
		}
		else {
			for(cont=0; cont<=max_hit; cont++) {
				map.addOverlay(mimarker_hit[cont]);
			}
			if(max_hit!=0) {
				$("#lista").load("ajax_listadoh.asp", "Itinerario=1");
			}
		}
	}
	function cargar_todo() {
		map.clearOverlays();
		cargar_polyline();
		for(cant=1;cant<=16;cant++) {
			cargar_tipo(cant, 0);
		}
	}
	function cargar_polyline() {
		var encodedPoints = "sa`iFxz|An@_@cAkGeAa@qEwHqAyBuD_Du@bAfCjEZTb@pDh@xCTj@w@j@FTx@e@hCdHy@f@pDvK????";
		var encodedLevels = "BBBBBBBBBBBBBBBBBBBBB";

		var encodedPolyline1 = new GPolyline.fromEncoded({
			color: "#E10000",
			weight: 7,
			points: encodedPoints,
			levels: encodedLevels,
			zoomFactor: 32,
			numLevels: 4
		});
		map.addOverlay(encodedPolyline1);

		var encodedPoints = "wb`iFtk}AaC~@d@|Bj@rCyG|Bc@qByB|@}@aBpCaB_AcDnGyC";
		var encodedLevels = "BBBBBBBBBBB";

		var encodedPolyline2 = new GPolyline.fromEncoded({
			color: "#E10000",
			weight: 7,
			points: encodedPoints,
			levels: encodedLevels,
			zoomFactor: 32,
			numLevels: 4
		});
		map.addOverlay(encodedPolyline2);
	}

	function ini() {
		map = new GMap2(document.getElementById("map"));
		
		if(map != null) {
			var center = new GLatLng(38.34535865432956,-0.4802227020263672);
			map.addControl(new GSmallMapControl());
			
			map.addControl(new GMapTypeControl());		
			
			map.setCenter(center, 16);
			map.setMapType(G_HYBRID_MAP); //G_PHYSICAL_MAP - G_SATELLITE_MAP
			map.enableScrollWheelZoom();		

			cargar_polyline();
			cargar_comercios();
			cargar_hitos();
		}
	}
	function createMarker(point, icon, popuphtml) {
		var popuphtml = "<div>" + popuphtml + "<\/div>";			
		var marker = new GMarker(point, icon);
		GEvent.addListener(marker, "click", function() {
			marker.openInfoWindowHtml(popuphtml);
		});
		return marker;
	}
	
	
</script>					
				</div>

		<script language="javascript" type="text/javascript">
			ini();
			
			cargar_tipo(tipo_com[0], 0);
			
		</script>
	</body>
</html>
