//<![CDATA[
		   
// Verzija 2.148 (index.php)

function initialize() {
      if (GBrowserIsCompatible()) {
        
		var map = new GMap2(document.getElementById("mapa"),
			{size: new GSize(696,400)}
		);
		map.addControl(new GLargeMapControl3D());
		map.addControl(new GMenuMapTypeControl());

		var overlayControl = new GOverviewMapControl();
		map.addControl(overlayControl);
		var overmap = overlayControl.getOverviewMap();
		overlayControl.hide();
		
		map.setCenter(new GLatLng(43.6987629338, 16.6444511894), 15);

		map.addMapType(G_PHYSICAL_MAP);
		map.setMapType(G_HYBRID_MAP);

		
		// Create a base icon for all of our markers that specifies the
		// shadow, icon dimensions, etc.
		var baseIcon = new GIcon(G_DEFAULT_ICON);
		baseIcon.shadow = "http://www.google.com/mapfiles/shadow50.png"; // Sjena
		baseIcon.iconSize = new GSize(12, 20); // Dimenzije ikone
		baseIcon.shadowSize = new GSize(25, 20); // Dimenzije sjene
		baseIcon.iconAnchor = new GPoint(9, 34);
		baseIcon.infoWindowAnchor = new GPoint(9, 2);
		
		// Creates a marker whose info window displays the letter corresponding
		// to the given index.
		function createMarker(point, tabs) {
		  // Create a lettered icon for this point using our icon class
		  var letteredIcon = new GIcon(baseIcon);
		  letteredIcon.image = "http://labs.google.com/ridefinder/images/mm_20_red.png"; // Ikona
		
		  // Set up our GMarkerOptions object
		  markerOptions = { icon:letteredIcon };
		  var marker = new GMarker(point, markerOptions);
		
		  GEvent.addListener(marker, "click", function() {			
			marker.openInfoWindowTabsHtml(tabs);

		  });
		  return marker;
		}
		
		// Marker
		var point = new GLatLng(43.6982737399, 16.6513326818);
		var tabs = [];
		tabs.push(new GInfoWindowTab('Fantasia', '<div class=\"mapa_content\"><strong>Pizzeria Fantasia<\/strong><br><br>Put piketa, Sinj<br>021/823-111<br>098/161-73-03<\/div>'));
     	var marker = createMarker(point, tabs)
      	map.addOverlay(marker);		
		
		map.enableDoubleClickZoom();
		map.enableScrollWheelZoom();

      }
}

//]]>

