//sll=52.228405,21.012446
//sspn=0.038431,0.074673
//geocode=0,52.214974,21.021144
//ll=52.214733,21.020494
//spn=0.004805,0.009334

var key1 = '<' + 'script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAWJ7s7RQLsmLu7xiIHLB7-xQJ9mk8z0Je0l1Uk2w7nEZD_o5d9xTusIZHSpe1IZMqop9U-lYeX2wvHA" type="text/javascript">'+'<'+'/script>';
var key2 = '<' + 'script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAWJ7s7RQLsmLu7xiIHLB7-xQPnZUFFZH7dYZQ7hFvPYVVVbPw5hS-J70aOuEMX89Ve_BitQAcfT8qDw" type="text/javascript">'+'<'+'/script>';

//
   if (window.location.host == 'www.zuchmantowicz.pl') {
     document.write(key1);
   }
   else {
     document.write(key2);
   }

    function initialize() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map_canvas"));
         map.setCenter(new GLatLng(52.214974, 21.021144), 17);
        map.addControl(new GSmallMapControl());
        map.addControl(new GMapTypeControl());
	// Marker
		var icon = new GIcon();
 		icon.image = "http://zuchmantowicz.pl/media/default/images/icon.gif";
		icon.iconSize = new GSize(100, 50);
//		icon.shadow = "http://www.webcreate.com.pl/work/sloneczne/media/default/images/shadow.png";		
//		icon.shadowSize = new GSize(60, 30);
		icon.iconAnchor = new GPoint(-40, 55);
		icon.infoWindowAnchor = new GPoint(10, 18);
		
		var point = new GLatLng(52.214733, 21.020494);
		var marker_stobno = new GMarker(point, icon)
		GEvent.addListener(marker_stobno, "click", function() {
			marker_stobno.openInfoWindowHtml("<ul class='contentlist_nb'><li><strong>Kancelaria Adwokacka</strong></li><li><strong>Michał Zuchmantowicz</strong></li><li>ul. Marszałkowska 8 lok. 12a</li><li>00-950 Warszawa</li><li>tel. +48 0602 620 121</li></ul>");
		});
		map.addOverlay(marker_stobno);
      }
    }   




