
	var baseIcon;

	var x1,y1,z1,x2,y2;
    function loadG(x,y,zoom,text,sdragable) {
		x1=x;
		y1=y;
		z1=zoom;
		x2=x;
		y2=y;
		baseIcon= new GIcon();
		//alert(text);
		
		  if (GBrowserIsCompatible()) 
		  {
	
				baseIcon= new GIcon();
				id_el=document.getElementById("mapaG");
				
				map = new GMap2(id_el);
				//alert(id_el);
				
			  
				map.addControl(new GSmallMapControl()); // jojstik
				//map.addControl(new GMapTypeControl()); // typ mapy
				map.setCenter(new GLatLng(x,y), zoom);
		
		
				map.openInfoWindowHtml(map.getCenter(),text);
// Our info window content
var infoTabs = [
  new GInfoWindowTab("Info", '<div class="infotab">'+text+'</div>'),
 ];
		
		
				// Place a marker in the center of the map and open the info window
				// automatically
				marker = new GMarker(map.getCenter(),{draggable:sdragable});
				

				map.addOverlay(marker);
				
				
				
		
				baseIcon.shadow = "http://www.google.com/mapfiles/shadow50.png";
				baseIcon.iconSize = new GSize(20, 34);
				baseIcon.shadowSize = new GSize(37, 34);
				baseIcon.iconAnchor = new GPoint(9, 34);
				baseIcon.infoWindowAnchor = new GPoint(9, 2);
				baseIcon.infoShadowAnchor = new GPoint(18, 25);
	
		  }
    }
	
	


 function pokaz_mape_google (lok, lang) {
	
 ok=window.open('mapa_google.php?lok='+lok+"&lang="+lang,"mapa_G",  'width=600,height=750,resizable=1,scrollbars=no,menubar=no');
 ok.focus();
 
 } 

		  
	  

