//<![CDATA[
var new_icon = new GIcon()

 new_icon.image = "http://chart.apis.google.com/chart?chst=d_map_pin_icon&chld=home|afbd20"
 new_icon.size = new GSize(16,16)
 new_icon.iconAnchor = new GPoint(8,9)
 new_icon.infoWindowAnchor = new GPoint(7,7)
    var opt
    opt = {}

    opt.icon = new_icon
    opt.draggable = false
    opt.clickable = true
    opt.dragCrossMove = true
    
if (GBrowserIsCompatible()) {

  // A function to create the marker and set up the event window
  // Dont try to unroll this function. It has to be here for the function closure
  // Each instance of the function preserves the contends of a different instance
  // of the "marker" and "html" variables which will be needed later when the event triggers.
  function createMarker(point,html) {
    var marker3 = new GMarker(point, opt);
	//marker.openInfoWindowHtml(html, {"maxWidth":30});
    GEvent.addListener(marker3, "click", function() {
      marker3.openInfoWindowHtml(html);
    });

    return marker3;
  }


  // Display the map, with some controls and set the initial location
  var map3 = new GMap2(document.getElementById("g2"));
  try
  {

	  map3.setCenter(new GLatLng(43.513,16.438), 13);
	  map3.addControl(new GSmallMapControl());


	  // Set up three markers with info windows

	  var glur3 = new GLatLng(43.513662,16.438916);
	  var marker3 = createMarker(glur3,"<div>"+"<img width=\"70\" src=\"http://novevibracije.hr/images/logo_gm.png\" /><strong>Nove Vibracije</strong>(Ured Split)<br />Gundulićeva 26(Robna kuća \"Dobri\" 2.kat)<br />21000 Split</div>");
	  map3.addOverlay(marker3);





  } catch(e){
		alert(e.message);
	}
}

// display a warning if the browser was not compatible
else {
  alert("Sorry, the Google Maps API is not compatible with this browser");
}


// This Javascript is based on code provided by the
// Community Church Javascript Team
// http://www.bisphamchurch.org.uk/
// http://econym.org.uk/gmap/

//]]>

