$(function(){
    
    if ( $("#map_canvas").length && GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map_canvas"));
        map.setCenter(new GLatLng(37.4419, -122.1419), 13);
        
        // Adres opzoeken
        geocoder = new GClientGeocoder();
        address = 'Schoenerweg 1b, 8042 PJ Zwolle'
        if (geocoder) {
            geocoder.getLatLng(
                address,
                function(point) {
                    if (!point) {
                        alert(address + " not found");
                    } else {
                        map.setCenter(point, 11);
                        var marker = new GMarker(point);
                        map.addOverlay(marker);
                        marker.openInfoWindowHtml(address);
                    }
                }
            );
        }        
    }
    	
});
