﻿
	google.load("maps", "2.x");
   
  // Call this function when the page has been loaded
  initialize = function() {
	var map = new google.maps.Map2(document.getElementById("map"));
	
	
	var point = new GLatLng(52.114544, 8.670595);
	var icon = new GIcon();
	
	map.addControl(new GSmallMapControl());
	map.addControl(new GMapTypeControl());		
	map.setCenter(point, 13);	
	// Create our "tiny" marker icon
	var tinyIcon = new GIcon();
	tinyIcon.image = "http://labs.google.com/ridefinder/images/mm_20_red.png";
	tinyIcon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
	tinyIcon.iconSize = new GSize(12, 20);
	tinyIcon.shadowSize = new GSize(22, 20);
	tinyIcon.iconAnchor = new GPoint(6, 20);
	tinyIcon.infoWindowAnchor = new GPoint(5, 1);

	var options = { 
		draggable: false,
		bouncy: false,
		icon:tinyIcon
	};

	var marker = new GMarker(point,options);			
	GEvent.addListener(marker, "click", function() {marker.openInfoWindowHtml("Hotel zur Fürstabtei<br>Elisabethstraße 9<br>32052 Herford");});
	
	map.addOverlay(marker);		
  }
  google.setOnLoadCallback(initialize);

