<SCRIPT LANGUAGE="JavaScript">
function showAddress(address, text, zoom)
	{
		var div = document.getElementById("map");
		var geocoder = new GClientGeocoder();
		var map = new GMap2(div);
		map.addControl(new GLargeMapControl());
		geocoder.getLatLng(address,
			function(point)
			{
				if (!point)
				{
					div.style.visibility = 'hidden';
					alert(address + " nicht gefunden");
				}
				else
				{
					map.setCenter(point, zoom);
					var marker = new GMarker(point);
					GEvent.addListener(marker, "mouseover", function()
					{
						marker.openInfoWindowHtml(text);
					});
					GEvent.addListener(marker, "mouseout", function()
					{
						map.disableInfoWindow();
						map.enableInfoWindow();
					});
					map.addOverlay(marker);
					marker.openInfoWindowHtml(text);
					window.setTimeout(function()
					{
						map.disableInfoWindow();
						map.enableInfoWindow();
					}, 4000);
				}
			}
		);
		div.style.visibility = 'visible';
	}
<?php
echo 'showAddress(\'REX_VALUE[1]\', \''.html_entity_decode('REX_VALUE[2]').'\', REX_VALUE[3]);';
?>

-->
</SCRIPT>
