function load() {
//  if (GBrowserIsCompatible()) {
//
//    var map = new GMap2(document.getElementById("map"));
//    map.setCenter(new GLatLng(51.4452, 19.31541 ), 13);
//    map.addControl(new GSmallMapControl());
//
//    var icon = new GIcon();
//    icon.image = "http://omega.sns.pl/projekty/a-port/css/img/logo_mapa3.gif";
//    icon.iconSize = new GSize(37, 31);
//    icon.iconAnchor = new GPoint(1, 1);
//    icon.infoWindowAnchor = new GPoint(5, 1);
//
//    var point = new GLatLng(51.4452, 19.31541);
//    map.addOverlay(new GMarker(point, icon));
//  }
//}
//
//
//
//






  var positioning = 0;
  var zoom = 14;

//  51.74074246052276
//  19.53145980834961

  var startNorth = 51.744409534054434;
  var startEast = 19.53120231628418;
//  var iconFile = 'http://omega.sns.pl/projekty/olmed/css/img/ico-map.gif';
  var iconFile = 'http://omega.sns.pl/projekty/aluminiums/files/flags/flag-pl_21139.gif';
  var iconW = 12;
  var iconH = 12;

  if (GBrowserIsCompatible()) {
    var map = new GMap2(document.getElementById("map"));
    map.addControl(new GSmallMapControl());
    map.setCenter(new GLatLng( startNorth, startEast ), zoom);
    if( positioning == 1 )  {
      GEvent.addListener(map, "moveend", function() {
        var center = map.getCenter();
        document.getElementById("message").innerHTML = center.toString();
      });
    }
    else  {
      if( iconFile != '' && iconW != '' && iconH != '' )  {
        var icon = new GIcon();
        icon.image = iconFile;
        icon.iconSize = new GSize( iconW, iconH );
        icon.iconAnchor = new GPoint(1, 1);
        icon.infoWindowAnchor = new GPoint(5, 1);
      }
      function createMarker(point, number) {
        var marker = new GMarker(point, icon );
        GEvent.addListener(marker, "mouseover", function() {
          switch ( number )  {
            case 1:
              text = '<div style=\'padding-left: 25px;\'><b>Aluminium S</b><br />ul. Puszkina 80<br />92-516 £ód¼<br />tel. 42 677 04 92<br />fax: 42 677 04 91</div>';
              break;

          }
          marker.openInfoWindowHtml( text );
        });
        return marker;
      }
      var point = new GLatLng(51.741477086390775,19.5321980834961);
//      var point = new GLatLng(51.741327086390775,19.53145980834961);
      map.addOverlay(createMarker(point,  1));

    }
  }
}