google.load("maps","2");

    var map;
    var geoXml;
    var toggleState = 1;

	function initialize() {
  	  if (GBrowserIsCompatible()) {
  	    geoXml = new GGeoXml("http://itmahotels.com/mapa/georss.php");
		map = new GMap2(document.getElementById("map_canvas")); 
		map.setCenter(new GLatLng(41.410113,2.129654), 11);
		map.addControl(new GLargeMapControl());
		map.addControl(new GMapTypeControl());
		var mini=new GOverviewMapControl();
		map.addControl(mini); 
		mini.hide(); 
		
		var icon = new GIcon();
		icon.image = "http://www.google.com/intl/en_us/mapfiles/ms/micons/red-dot.png";

		map.addOverlay(geoXml);
		
		addITMA(41.348873,2.125506);
  	  }
	} 
	
	


	
	
		function addITMA(longitud,latitud) {
		// Create our "tiny" marker icon
       
        var blueIcon = new GIcon();
	//blueIcon.image = "http://www.google.com/intl/en_us/mapfiles/ms/micons/blue-dot.png";
	blueIcon.image = "http://www.itmahotels.com/plantillas/img/globo_itma.png";

	//blueIcon.iconSize = new GSize(32, 32);

	blueIcon.iconSize = new GSize(48, 43);
	blueIcon.shadowSize = new GSize(55, 41);

        blueIcon.iconAnchor = new GPoint(9, 34);

        blueIcon.infoWindowAnchor = new GPoint(9, 2);
        blueIcon.infoShadowAnchor = new GPoint(0, 0);


	iconoItma = { icon:blueIcon };		
		
        point2 = new GLatLng(longitud,latitud);
        marker2 = new GMarker(point2, iconoItma);
        map.addOverlay(marker2);
						GEvent.addListener(marker2, "click", function() {
          marker2.openInfoWindowHtml("<u><strong>Feria Barcelona ITMA</strong></u><br />Calle Bot&aacute;nica 62<br />08908, Hospitalet de Llobregat<br />");
        });
	
      }
 
	
	
	

google.setOnLoadCallback(initialize);
