// JavaScript Document\

var GoogleMap = {
	
		addProperies : function(key, lat, long, text){
			GoogleMap.key = key;
			GoogleMap.lat = lat;
			GoogleMap.long = long;
			GoogleMap.markerText = text;
						
		},
		
		
		init : function(){
			 
			
			// Display the map, with some controls and set the initial location 
              var map = new GMap2(document.getElementById("map"));
              map.setCenter(new GLatLng(GoogleMap.lat, GoogleMap.long),12);
			  map.setUIToDefault();
			  
			  //add marker -------
			  var point = new GLatLng(GoogleMap.lat, GoogleMap.long);
              var marker = new GMarker(point);
			  
			  /*GEvent.addListener(marker, "click", function() {
    					map.openInfoWindowHtml(point, GoogleMap.markerText);
			  });*/

			  map.addOverlay(marker);
			
		}
	 	
		
}
add_load_event(GoogleMap.init);