/* a small but powerful routine to avoid spam emails */
function mail(email, action)
{
  while (email.search(/\|/) != -1)
  {
    email = email.replace(/\|/,"");
  }

  if (action == 0) window.location = "mailto:" + email;
  if (action == 1) document.write(email);
}



function create_google_map(){

  document.write('<sc'+'ript src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAVsnwoJ1OZLHDl8T9SFsQchSXNujpeeNjx11JdEnmnlR0zOo8ZRR0CQVFBnL70bE-II-h1loS8XQdnA" type="text/javascript"></scr'+'ipt>');
  function mapload() {
     if (GBrowserIsCompatible()) {
      var gmap = new GMap2(document.getElementById("map"), {mapTypes:[G_HYBRID_MAP, G_SATELLITE_MAP, G_NORMAL_MAP]});
      gmap.addControl(new GSmallMapControl());
      gmap.addControl(new GMapTypeControl());
      gmap.addControl(new GOverviewMapControl());
      gmap.setCenter(new GLatLng(54.006483,11.548749),14);
      gmap.addOverlay(createMarker( new GLatLng(54.006483,11.548749), "Haus Hoppe<br>Zum Breitling 12<br>23974 Boiensdorf OT Stove"));
     }
  }
  function createMarker(point, mtext) {
    var marker = new GMarker(point);
    GEvent.addListener(marker, "click", function() {
      marker.openInfoWindowHtml( mtext );
    });
    return marker;
  }
  window.setTimeout(mapload,500);

}