// /Mexico-Buscar-Internet google maps api  V 2009.03.22 by aoviedo
google.load("maps", "11.x");
var map = null;
var geocoder = null;
function MapsVideos() {
  if (GBrowserIsCompatible()) {
    var x = 22.755921;
	var y = -103.095703;
	var z=11; // mx 
	if (_x != null && _x != "") x = _x;
	if (_y != null && _y != "") y = _y;
	if (_z != null && _z != "" && _z > 0) z = _z;
    map = new GMap2(document.getElementById("mapsvideos"));
    map.setCenter(new GLatLng(x,y), z, G_HYBRID_MAP);
	map.addMapType(G_PHYSICAL_MAP);
	map.addControl(new GOverviewMapControl());
	map.addControl(new GLargeMapControl());
	map.addControl(new GMapTypeControl());
//	geocoder = new GClientGeocoder();
    window.setTimeout(function() {       map.panTo(new GLatLng(x,y));  }, 3000);  

  }
 }
function showAddress(address) {
  if (geocoder) {
    geocoder.getLatLng(address,
      function(point) {
        if (point) {
          map.setCenter(point, 13);
          var marker = new GMarker(point);
          map.addOverlay(marker);
          marker.openInfoWindowHtml(address);
        }
      }
    );
  }
}

 google.setOnLoadCallback(MapsVideos);

