{{$title}}
{{$teaser}}
{{$text}}
");
var map = null;
var geocoder = null;
var pcd = "{{if $pageId == 1241}}Vrijheid3{{else}}{{$site.web.address}}{{/if}} ,{{$site.web.zip}} {{$site.web.city}}"
function load() {
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("map"));
geocoder = new GClientGeocoder();
//Controls: directions, zoom
map.addControl(new GSmallMapControl());
// add buttons: map, satelite, both
map.addControl(new GMapTypeControl());
// locate and center the address on the map
showAddress(pcd);
}
}
function showAddress(address) {
if (geocoder) {
geocoder.getLatLng(
address,
function(point) {
if (!point) {
alert(address + " not found");
} else {
map.setCenter(point, 13);
// display marker
var marker = new GMarker(point);
map.addOverlay(marker);
// display balloon
marker.openInfoWindowHtml("
{{if $pageId == 1241}}Hof ter Smisse{{else}}{{$site.web.name}}{{/if}}
{{if $pageId == 1241}}Vrijheid 3{{else}}{{$site.web.address}}{{/if}}
{{$site.web.zip}} {{$site.web.city}}
");
}
}
);
}
}
//]]>
{{if $images}}