﻿function createMap() {
var gmap = new GMap2(document.getElementById("map"));
   gmap.setCenter(new GLatLng(0, 0), 13);  //don't remove this... center needs to be set before doing anything else on the map; is reset on each page
 gmap.setMapType(G_SATELLITE_MAP);
gmap.setUIToDefault(); 
gmap.disableScrollWheelZoom();
  gmap.hideControls();  
 GEvent.addListener(gmap, "mouseover", function(){ gmap.showControls(); });
 GEvent.addListener(gmap, "mouseout", function(){ gmap.hideControls(); });
 var kml = new GGeoXml("http://mexicometro.org/Mexico-Metro.kmz?dummy="+(new Date().getTime()) ); //the date and time stuff is to prevent caching of the file by google's servers.; remove once work on the file is done?
 //var kml = new GGeoXml("http://mexicometro.org/Mexico-Metro.kmz");
 gmap.addOverlay(kml);
 document.getElementById("map").style.backgroundImage = 'none'; 
 return gmap;
 }