 
/* Set trigger */
window.onload = function() { Map.initialize(); }

/* The map builder class. */

Map = { 
 
  /* Center Latitude. Is set by PHP */
  option_lat: 0,
  
  /* Center Longitude. Is set by PHP */
  option_lon: 0,
  
  /* Zoom level. Is set by PHP */
  option_zoom: 0,
  
  /* Map type. Is set by PHP */
  option_maptype: "",
  
  /* Initializes the Google Map. */   
  initialize: function() {
    var latlng = new google.maps.LatLng(this.option_lat,this.option_lon);
    var myOptions = {
      zoom: this.option_zoom,
      center: latlng,
      disableDefaultUI: true,
      mapTypeId: eval("google.maps.MapTypeId."+this.option_maptype)
   };
    
    var map = new google.maps.Map(document.getElementById("map"), myOptions);
  }

 }

 
