var absLat = 53.322312;
var absLng = 6.884265;
var directions = null;
var marker = null;
//<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.nl/maps?f=d&amp;source=s_d&amp;saddr=Sikkel+19,+9932+Delfzijl&amp;daddr=&amp;hl=nl&amp;geocode=CV1whpty-RqCFbShLQMddwtpACk1JUX7_yi2RzEzsfTxyKHeTA&amp;mra=mi&amp;sll=53.322312,6.884265&amp;sspn=0.009677,0.027788&amp;ie=UTF8&amp;ll=53.322312,6.884265&amp;spn=0.009677,0.027788&amp;output=embed"></iframe><br /><small><a href="http://maps.google.nl/maps?f=d&amp;source=embed&amp;saddr=Sikkel+19,+9932+Delfzijl&amp;daddr=&amp;hl=nl&amp;geocode=CV1whpty-RqCFbShLQMddwtpACk1JUX7_yi2RzEzsfTxyKHeTA&amp;mra=mi&amp;sll=53.322312,6.884265&amp;sspn=0.009677,0.027788&amp;ie=UTF8&amp;ll=53.322312,6.884265&amp;spn=0.009677,0.027788" style="color:#0000FF;text-align:left">Grotere kaart weergeven</a></small>
function loadMap()
{
    var strHtmlData = "<span style=\"font-size: 11px; color: #4C5B52; line-height: 18px;\"><strong>Arie&#39;s Bike Shop</strong><br />Sikkel 19<br />9932 BD&nbsp;&nbsp;Delfzijl</span>";

    if (GBrowserIsCompatible())
    {
        var map = new GMap2(document.getElementById("map"));

        map.addControl(new GSmallMapControl());

        map.setCenter(new GLatLng(absLat, absLng), 15);

        var point = new GLatLng(absLat,
                                absLng);
        marker = new GMarker(point);
        map.addOverlay(marker);

        marker.bindInfoWindowHtml(strHtmlData);
        marker.openInfoWindowHtml(strHtmlData);

        directions = new GDirections(map, document.getElementById("directions"));
        GEvent.addListener(directions, "error", handleErrors);
    }
}

function calcDirections()
{
    marker.hide();
    directions.load("from: " + document.getElementById("fromLoc").value + " to: Sikkel 19, Delfzijl",
                    { "locale" : locale });
    document.getElementById("directions").style.display = "block";
}

function handleErrors()
{
    document.getElementById("directions").style.display = "none";
    alert("Het adres kon niet worden gevonden, of er is een technische fout opgetreden.");
    marker.show();
}
