var map = null;
var geocoder = null;
function Mapinitialize() {
	if (GBrowserIsCompatible()) {
  		map = new GMap2(document.getElementById("map_canvas"));
    	map.addControl(new GLargeMapControl());
        //map.setCenter(new GLatLng(48.25, 11.00), 4);
        map.enableDoubleClickZoom();
		geocoder = new GClientGeocoder();
  	}
}
	
function showAddress(address,title,letterLabel,Desc) {
	
  if (geocoder) {
	geocoder.getLatLng(
    address,
    function(point) {
    if (!point) {
   	   alert(address + " not found");
    } 
	else {
	   map.setCenter(point, 16);

        var icon = new GIcon();
        icon.image = '/Pub/designComponents/GoogleMarker.png';
        icon.iconSize = new GSize(20, 20);
        icon.iconAnchor = new GPoint(16, 16);
        icon.infoWindowAnchor = new GPoint(25, 7);

		 opts = { 
          "icon": icon,
          "clickable": true,
          "title": title,
          "labelText": letterLabel,
          "labelOffset": new GSize(-10, -14)
        };
   		
		var marker = new LabeledMarker(point, opts);

        GEvent.addListener(marker, "click", function() {
          marker.openInfoWindowHtml(Desc);
		  
        });
		//GEvent.trigger(marker, "click");
		//alert('HELKJKLFJD');
        map.addOverlay(marker);
		GEvent.trigger(marker, "click");
    }});
  }
}