﻿/*
 - - - - - - - - - - - - - - - - - - - - -
Titel: Frey Siebdruck (Googlemaps)
Autor: Dumrath & Fassnacht KG (Pa)
URL: http://duf-online.de/

Erstellt : 2006-11-09
- - - - - - - - - - - - - - - - - - - - -
*/

// Init Funktionen
window.onload = function() {
	load();
}

window.onunload = function() {
	GUnload();
}

function load() {
	if (GBrowserIsCompatible()) {
    var map = new GMap2(document.getElementById("map"));
	map.addControl(new GSmallMapControl());
	map.addControl(new GMapTypeControl());        
    map.setCenter(new GLatLng(53.572706,9.934433), 14); // Position des Geschäfts

	// Eigenes Icon
	// var icon = new GIcon();
	// icon.image = "images/marker-icon.png";
	// icon.shadow = "images/marker-schatten.png";
	// icon.iconSize = new GSize(65, 50);
	// icon.shadowSize = new GSize(65, 50);
	// icon.iconAnchor = new GPoint(25, 46);
	// icon.infoWindowAnchor = new GPoint(12, 8);


	// Informationsfenster
	var infoTabs = [
		new GInfoWindowTab("Adresse", "<strong>Emil Frey KG</strong><br /><br />Kleine Bahnstraße 7<br />22525 Hamburg")
	];

	// Marker erzeugen und platzieren
	var marker = new GMarker(map.getCenter());
	GEvent.addListener(marker, "click", function() {
		marker.openInfoWindowTabsHtml(infoTabs);
	});

	map.addOverlay(marker);
//	map.addOverlay(marker);
//	map.setCenter(new GLatLng(53.572706,9.934433), 14); // Postition der Kamera
	
	}
}		