 var map;
    var gdir;
    var geocoder = null;
    var addressMarker;

    function routen() {
      if (GBrowserIsCompatible()) {      
        map = new GMap2(document.getElementById("map_canvas"));
        gdir = new GDirections(map, document.getElementById("directions"));
        var point = new GLatLng(52.1286318,7.6866622);
		  map.setCenter(point, 14,G_NORMAL_MAP);
		  map.addControl(new GLargeMapControl());
		  map.enableScrollWheelZoom();
		  map.addControl(new GMapTypeControl());

        GEvent.addListener(gdir, "load", onGDirectionsLoad);
	
      }
    }

    function setDirections(fromAddress, toAddress, locale) {
      gdir.load("from: " + fromAddress + " to: " + toAddress,
                { "locale": locale });
    }

	function onGDirectionsLoad(){ 
      // Use this function to access information about the latest load()
      // results.

      // e.g.
      // document.getElementById("getStatus").innerHTML = gdir.getStatus().code;
	  // and yada yada yada...
	}

