function load() {
	if(document.getElementById("map"))
	{
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
        map.setCenter(new GLatLng(55.907258, 23.283087), 14);
		map.addControl(new GSmallMapControl());
		
		var icon = new GIcon();
        icon.image = "/img/g_map_logo.gif";
//        icon.image = "http://labs.google.com/ridefinder/images/mm_20_red.png";
//        icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
        icon.iconSize = new GSize(128, 80);
//        icon.shadowSize = new GSize(22, 20);
        icon.iconAnchor = new GPoint(15, 75);
        icon.infoWindowAnchor = new GPoint(5, 1);
		var bounds = map.getBounds();
        var southWest = bounds.getSouthWest();
        var northEast = bounds.getNorthEast();
		var point = new GLatLng(55.907258 ,23.283087);
          map.addOverlay(new GMarker(point, icon));
      }
    }
}

function popupWindow(mypage, myname, w, h){
	var win= null;
	var winl = (screen.width-w)/2;
	var wint = (screen.height-h)/2;
	var settings  ='height='+h+',';
	    settings +='width='+w+',';
	    settings +='top='+wint+',';
	    settings +='left='+winl+',';
	    settings +='scrollbars=no,';
	    settings +='resizable=no';
	win = window.open(mypage, myname, settings);
}
