var map;
function loadGMap() {
    if (GBrowserIsCompatible()) {
        map = new GMap2(document.getElementById("map_canvas"));
        //map.setCenter(new GLatLng(37.4419, -122.1419), 13);

        //map.addControl(new GSmallMapControl());
        //map.addControl(new GMapTypeControl());
        map.addControl(new GLargeMapControl());
        map.setCenter(new GLatLng(37.453466,24.949179), 15);

        //map.openInfoWindow(map.getCenter(), document.createTextNode("Hello, world"));
        
        showAddress("Απόλλωνος, Ερμούπολη 84100, Ελλάς");
    }
}

if(typeof GClientGeocoder != "undefined")
    var geocoder = new GClientGeocoder();

function showAddress(address) {
   if (geocoder) {
     geocoder.getLatLng(
       address,
       function(point) {
         if (!point) {
           alert(address + " not found");
         } else {
           map.setCenter(point, 15);
           var marker = new GMarker(point);
           map.addOverlay(marker);
           marker.openInfoWindowHtml($('gMapTxt', siteData['directions']).text());
         }
       }
     );
   }
 }
