function MetropediaMapSimple(args)
{
    var map = null;

    if (GMap2) {
         if (GBrowserIsCompatible()) {
		var map = new GMap2(document.getElementById(args.map));
                    var myPoint = new GLatLng(44.4342,26.102975);
                    map.setCenter(myPoint, 16);
	        map.setUIToDefault();


                }
                else {
                    alert('browser not compatible with Google Maps');
                }
          }
          else {
                alert(api + ' map script not imported');
      }

      //var extLargeMapControl = new ExtLargeMapControl();
      //map.addControl(extLargeMapControl);

      return map;
}


function AddMarker(map, point, index, placeName, url)
{
    var options = {};

    options.title =  placeName;

    iconUrl = "/media/images/n" + index + ".gif";
    var icon = new GIcon(G_DEFAULT_ICON, iconUrl);
    icon.iconSize = new GSize(18, 24);

    icon.iconAnchor = new GPoint(4, 24);
    iconShadowUrl = "/media/images/sh1.png";
    icon.shadow = iconShadowUrl;
    icon.shadowSize = new GSize(22, 20);
    options.icon = icon;
    options.draggable = true;
    marker = new GMarker(point, options);
    marker.disableDragging()
    
    map.addOverlay(marker);


    return marker;
}

function SetPosition(map, point)
{
    map.setCenter(point, 16);
    map.savePosition();
}
