function load() {
     if (GBrowserIsCompatible()) {
       var map = new GMap2(document.getElementById("map"));
		
		
		var gmap_cid = document.getElementById('gmap_cid');
		if(gmap_cid == null || typeof gmap_cid == 'undefined'){
			gmap_cid = 1789;
		}else{
			gmap_cid = document.getElementById('gmap_cid').value;
		}
	
       if(gmap_cid == 1){
           point = new GLatLng(54.707798,25.290377);
       }else if(gmap_cid == 2){
           point = new GLatLng(55.683936,21.200625);
       }else if(gmap_cid == 3){
           point = new GLatLng(56.241490,23.617612);
       }else if(gmap_cid == 4){
           point = new GLatLng(54.984066,25.769978);
       }else if(gmap_cid == 5){
           point = new GLatLng(55.131599,26.156741);
       }else{
           //point = new GLatLng(54.707798,25.290377); // senas
           point = new GLatLng(54.688747, 25.261114);
       }

       map.setCenter(point, 11);

       var myIcon = new GIcon(G_DEFAULT_ICON);
       myIcon.image = "images/ico_map.png";
       myIcon.shadow = "none";
       myIcon.iconSize = new GSize(123, 55);
 
       myIcon.iconAnchor = new GPoint(87, 49);

       // Set up our GMarkerOptions object 
       markerOptions = { icon:myIcon };
       
       marker = new GMarker(point, markerOptions);
       map.addOverlay(marker);

       map.addControl(new GSmallMapControl());
       map.addControl(new GMapTypeControl());

     } 
}
load();

