
function initialize(Glat, Glong, Ghtml) {

    if (GBrowserIsCompatible()){
        
        var map = new GMap2(document.getElementById("map_canvas"), {size: new GSize(448, 310)});
        var latlng = new GLatLng(Glat, Glong);
        map.setUIToDefault();
        map.setCenter(latlng, 9);
        
        // Create our "tiny" marker icon
        var tinyIcon = new GIcon();
        tinyIcon.image = "/assets/layout/map-icon.png";
        tinyIcon.iconSize = new GSize(18, 18);
        tinyIcon.iconAnchor = new GPoint(6, 6);
        tinyIcon.infoWindowAnchor = new GPoint(6, 6);
        
        // Create the marker
        var marker = new GMarker(latlng, tinyIcon);
        
        // Set up our GMarkerOptions object literal
        map.addOverlay(marker);
        marker.openInfoWindowHtml(document.getElementById(Ghtml).innerHTML);
    }
    else{
        alert('Your browser is not compatible with Google Maps.')
    }
}
