(function($) {
$(document).ready(function() {
	var m = $('#googlemap')[0];
	if (m && GBrowserIsCompatible()) {
		var windowMessage = "<h5>KunstvereinGRAZ e.V.</h5>Schäffnerstraße 21 (Hinterhof)<br />93047 Regensburg";
		var map = new GMap2(m);
		var point = new GLatLng(49.016341,12.099338);
		var zoomLevel = 15;
		map.setCenter(point, zoomLevel);
		map.addControl(new GSmallMapControl());

		var grIcon = new GIcon(G_DEFAULT_ICON);
		grIcon.image = "themes/graz/images/Graz-Logo_kl.png";
		grIcon.iconSize = new GSize(25.0, 25.0);
		grIcon.shadow = "themes/graz/images/shadow-Graz-Logo_kl.png";
		grIcon.shadowSize = new GSize(38.0, 25.0);
		grIcon.iconAnchor = new GPoint(12.0, 12.0);
		grIcon.infoWindowAnchor = new GPoint(20.0, 5.0);
		grIcon.transparent = "themes/graz/images/Graz-Logo_kl.png";
		var markerOptions = { icon:grIcon };

        var marker = new GMarker(point, markerOptions);
        GEvent.addListener(marker, "click", function () {
			marker.openInfoWindowHtml(windowMessage);
        }),
        map.addOverlay(marker);
		marker.openInfoWindowHtml(windowMessage);
	}
})
})(jQuery);