    <!--
    // pre automaticke konkretizovanie pre slovensko
    var slovensko="";
    // globalna premenna mapa
    var map;
    var map_PW;
    // globalna premenna pre klikacie akcie mapy
    var ClickListener;

    // globalna premenne pre vypocet vzdialenosti a plochy

    var polyShape;
    var polygonMode = true;
    var polyPoints = [];
    var marker;

    var fillColor = "#0000FF"; // blue fill
    var lineColor = "#000000"; // black line
    var opacity = .5;
    var lineWeight = 2;

    // globalne premenne pre GPS suradnice, adresu atd....

    var geocoder = new GClientGeocoder();
	var address;
	var xy;

	// globalne premenne pre obrazky, videa a wiki

	var timer;
	var chosen = [];

	var layers = [
	 { name: "Pano", obj: new GLayer("com.panoramio.all") },
	 { name: "Tube", obj: new GLayer("com.youtube.all") },
	 { name: "Wiki", obj: new GLayer("org.wikipedia.sk") },
	];
    // globalne premenne pre navigaciu

    var gdir;
    var prikaz_navigacie;
    var prikaz_navigacie_typ;
    var pole_cez = new Array();

	// zakladne funkcie

    function skryt_hore(){
    	if(document.getElementById('hore').style.top!='-85px'){
    		document.getElementById('hore').style.top='-85px';
    		document.getElementById('hore').style.left='100px';
    		document.getElementById('skryt_hore').innerHTML='O';
    		document.getElementById('minilogo').width='137';
    		document.getElementById('minilogo').height='30';
    		document.getElementById('minilogo').src='images/minilogo.png';
    		document.getElementById('address').size='10';
    		document.getElementById('tl_hladaj').value='  ';
    		document.getElementById('tl_hladaj').style.background='url(images/find.png) no-repeat center center';

    	}else{
    		document.getElementById('hore').style.top='10px';
    		document.getElementById('hore').style.left='100px';
    		document.getElementById('skryt_hore').innerHTML='X';
    		document.getElementById('minilogo').width='25';
    		document.getElementById('minilogo').height='25';
    		document.getElementById('minilogo').src='images/find.png';
    		document.getElementById('address').size='30';
    		document.getElementById('tl_hladaj').value='Hľadaj';
    		document.getElementById('tl_hladaj').style.backgroundImage='none';
    	}
    }
    function prepnut_mapu(typ){
    	map.setMapType(typ);
    }
    function merat_vzdialenost_plochu(typ){
        vypni_predosle(0);


        ClickListener = GEvent.addListener(map, 'click', mapClick);
    	if(typ){
    		document.getElementById('nastroj_handle').innerHTML='Meranie vzdialenosti';
    		document.getElementById('nastroj_body').innerHTML='<b>Pomoc:</b><br />Kliknutím na mapu označte vrcholy plochy, ktorú chceš odmerať';
    		polygonMode = true;
    	}else{
    		document.getElementById('nastroj_handle').innerHTML='Meranie vzdialenosti';
    		document.getElementById('nastroj_body').innerHTML='<b>Pomoc:</b><br />Kliknutím na mapu označte body,ktorých vzdialenosti chcete odmerať';
    		polygonMode = false;
    	}
    	document.getElementById('nastroj_body').innerHTML+='<br /><input type="button" onclick="drawCoordinates();" value="Začať"/>';
     	map.clearOverlays();
        polyShape = null;
        zobraz_nastroj();
        //document.getElementById('nastroj').style.zIndex='+1';
        //drawCoordinates();
    }
    function zisti_GPS(typ){
        vypni_predosle(0);
        geocoder = new GClientGeocoder();
        //<input type="button" onclick="vypni_predosle(0);" value="&nbsp;X&nbsp;"/>
    	document.getElementById('nastroj_handle').innerHTML='Adresa a GPS';
        document.getElementById('nastroj_body').innerHTML='Kliknutím na mapu sa vám ukáže GPS súradnica a najbližia známa adresa k danému miestu s jej súradnicami.<br /><input type="button" onclick="document.getElementById(\'nastroj_body\').innerHTML=\'\';" value="Začať"/>';
      zobraz_nastroj();
    	//document.getElementById('nastroj').style.zIndex='+1';
    	ClickListener=GEvent.addListener(map, "click", getAddress);
    }
    function vytlac(){
    	var latlng=map.getCenter();
		window.open('print.php?lat='+latlng.lat()+'&lng='+latlng.lng()+'&zoom='+map.getZoom());
    }
    function vytlac_navigaciu(){
    
        var avoidHighways=document.getElementById('dialnice').checked;
      	if(document.getElementById('autom').checked==true)
          	var travelMode=G_TRAVEL_MODE_DRIVING;
          else
          	var travelMode=G_TRAVEL_MODE_WALKING;

		window.open('print2.php?prikaz='+prikaz_navigacie+'&typ='+prikaz_navigacie_typ+'&dialnice='+document.getElementById('dialnice').checked+'&mod='+travelMode);
    }
    function vypni_predosle(vynimka){

    	clearMap();
    	//document.getElementById('nastroj').style.zIndex='-1';
    	if(ClickListener)GEvent.removeListener(ClickListener);
    	if(vynimka==0)hideAll();

    }
function skryt_zobrazit_kontakt(){
	if(document.getElementById('kontakt').style.display=='block'){
		document.getElementById('kontakt').style.display='none';
	}else{
		document.getElementById('kontakt').style.display='block';
		document.getElementById('kontakt').style.top='150px';
    document.getElementById('kontakt').style.left='300px';

	}
}
function skryt_reklamu(cislo){
		document.getElementById('reklama_'+cislo).style.display='none';
}
function skryt_nastroj(){
		vypni_predosle(0);
		document.getElementById('nastroj').style.display='none';
}
function zobraz_nastroj(){
    document.getElementById('nastroj').style.display='block';
    document.getElementById('nastroj').style.top='140px';
    document.getElementById('nastroj').style.left='620px';
}

   // ZACIATOK SKRIPTOV PRE ZISTOVANIE VZDIALENOSTI A PLOCHY

   // mapClick - Handles the event of a user clicking anywhere on the map
   // Adds a new point to the map and draws either a new line from the last point
   // or a new polygon section depending on the drawing mode.
    function mapClick(marker, clickedPoint) {
      _uacct = "UA-2270875-1";
      urchinTracker();

      // Push onto polypoints of existing polygon
      polyPoints.push(clickedPoint);
      drawCoordinates();
     }


      // Clear current Map
      function clearMap(){
        map.clearOverlays();
        polyPoints = [];
        if(document.getElementById("status"))document.getElementById("status").innerHTML = "";
      }

    // drawCoordinates
    function drawCoordinates(){
      //Re-create Polyline/Polygon
      document.getElementById('nastroj_body').innerHTML='<div id="status"></div><input type="button" onclick="zoomToPoly();" value="Priblížiť"/><br/><input type="button" onclick="clearMap();" value="Odstrániť"/>';
      if (polygonMode) {
        polyShape = new GPolygon(polyPoints,lineColor,lineWeight,opacity,fillColor,opacity);
        var area = polyShape.getArea()/(1000*1000);
        document.getElementById("status").innerHTML = "<span style='left'>Plocha: " + area.toFixed(4) + "km<sup>2</sup></span>";
      } else {
        polyShape = new GPolyline(polyPoints,lineColor,lineWeight,opacity);
        var length = polyShape.getLength()/1000;
        document.getElementById("status").innerHTML = "<span id='help'></span>Dľžka: " + length.toFixed(4) + "km";

      }
      map.clearOverlays();

      // Grab last point of polyPoints to add marker
      marker = new GMarker(polyPoints[polyPoints.length -1]);
      map.addOverlay(marker);
      map.addOverlay(polyShape);
    }

   function zoomToPoly() {
     if (polyShape && polyPoints.length > 0) {
       var bounds = polyShape.getBounds();
       map.setCenter(bounds.getCenter());
       map.setZoom(map.getBoundsZoomLevel(bounds));
     }
   }

   // ZACIATOK SKRIPTOV PRE ZISTOVANIE SURADNIC, ADRES ATD...

function getAddress(overlay, latlng) {
  if (latlng != null) {
    address = latlng;
    xy=latlng;
    geocoder.getLocations(latlng, showAddress);
  }
}

function showAddress(response) {
  geocoder;
  document.getElementById('nastroj_body').innerHTML='';
  map.clearOverlays();
  if (!response) {
    alert("Status Code:" + response.Status.code);
  } else {
  	var text='<b>GPS súradnice bodu:</b><br/>' +stupne_na_hodiny(xy.lat(),false)+'<br/>'+stupne_na_hodiny(xy.lng(),true)+ '<br/><br/><span style="color:#C0C0C0;font-size:3mm;">('+response.name+')</span>';
    if(response.Status.code==602)point = xy;

    if(response.Status.code==200){
    	place = response.Placemark[0];
    	point = new GLatLng(place.Point.coordinates[1],place.Point.coordinates[0]);

    	text='<b>Adresa:</b>' + place.address + '<br/><span style="color:#C0C0C0;font-size:3mm;">('+presnost_adresy(place.AddressDetails.Accuracy)+')</span><br/><br/><b>GPS súradnice<br/>bodu:</b>'+
    	stupne_na_hodiny(xy.lat(),false)+', '+stupne_na_hodiny(xy.lng(),true)+ '<br/><span style="color:#C0C0C0;font-size:3mm;">('+response.name+')</span><br/>'+

    	'<br/><b>adresy:</b> '+stupne_na_hodiny(place.Point.coordinates[1],false)+', '+stupne_na_hodiny(place.Point.coordinates[0],true)+'<br/>'+
    	'<span style="color:#C0C0C0;font-size:3mm;">('+ place.Point.coordinates[1] + ', ' + place.Point.coordinates[0] +')</span><br/>';

        marker2 = new GMarker(xy);
    	map.addOverlay(marker2);
    }
    marker = new GMarker(point);
    map.addOverlay(marker);
    marker.openInfoWindowHtml(text);

  }
  function stupne_na_hodiny(cislo,sirka){
      var abs_cislo=Math.abs(cislo);
  	  var hodiny=Math.floor(abs_cislo);
      var minuty=Math.floor((abs_cislo-hodiny)*60);
      var sekundy=Math.round((((abs_cislo-hodiny)*60)-minuty)*60);

      if(!sirka){
      	if(cislo<0)sirka="S"; else sirka="N";
      }else{
      	if(cislo<0)sirka="W"; else sirka="E";
      }

      return hodiny+'° '+minuty+'\' '+sekundy+'\'\' '+sirka;
  }
  function presnost_adresy(presnost){
	var moznosti = new Array("Neznáme","v presnosti krajiny","v presnosti regiónu.","v presnosti miestnej časti, samosprávneho okresu, atď..","presnosť mesta, obce.","v presnosti poštového smerovacieho čísla","v presnosti ulice","v presnosti sekcie","v presnosti adresi","v presnosti pozemku (názov budovy, charakteru, atď)");
    return moznosti[presnost];
  }
}
// ZACIATOK SKRIPTOV PRE HLADANIE ADRESY
function addAddressToMap(response) {
 map.clearOverlays();
 if (!response || response.Status.code != 200) {
   alert("Ľutujeme, ale nepodarilo sa nám nájsť miesto, s ktorým súvisi adresa");
 } else {
   place = response.Placemark[0];
   point = new GLatLng(place.Point.coordinates[1],
                       place.Point.coordinates[0]);
   marker = new GMarker(point);
   map.addOverlay(marker);
   map.setCenter(point);
   marker.openInfoWindowHtml(place.address + '<br/><br/><a href="javascript:;" onclick="map.setZoom(map.getZoom()+2);">[ Priblížiť ]</a><br/><br/><a href="javascript:;" onclick="skryt_zobrazit_pre_webmastera();">Vlož mapu s týmto miestom<br/> na svoju stránku</a>');
    // '<b>Country code:</b> ' + place.AddressDetails.Country.CountryNameCode);
 }
}

// showLocation() is called when you click on the Search button
// in the form.  It geocodes the address entered into the form
// and adds a marker to the map at that location.
function showLocation() {

 var address = document.getElementById('address').value;
 if(address!='Hľadaj')geocoder.getLocations(address, addAddressToMap);
}


// findLocation() is used to enter the sample addresses into the form.
/*
function findLocation(address) {
 document.forms[0].q.value = address;
 showLocation();
}
*/
    // ZACIATOK SKRIPTOV PRE OBRAZKY, VIDEO A WIKI
function hideAll() {

 var boxes = document.getElementsByName("mark");
 for(var i = 0; i < boxes.length; i++) {
  if(boxes[i].checked) {
   boxes[i].checked = false;
   switchLayer(false, layers[i].obj);
   chosen.push(i);
  }
 }
}


/*unction checkChecked() {
 // Returns true if a checkbox is still checked
 // otherwise false

 var boxes = document.getElementsByName("mark");
 for(var i = 0; i < boxes.length; i++) {
  if(boxes[i].checked) return true;
 }
 return false;
}  */


function switchLayer(checked, layer) {
 /* Function was originally borrowed from Esa:
 *  http://esa.ilmari.googlepages.com/dropdownmenu.htm
 */
 //var layerbox = document.getElementById("box");
 //var boxlink = document.getElementById("boxlink");
 //var button = document.getElementById("more_inner");


 if(checked) {
   map.addOverlay(layer);
   // Reset chosen array
   chosen.length = 0;
   /* Highlight the link and
   *  make the button font bold.
   */
   //boxlink.className ="highlight";
   //layerbox.className ="highlight";
   //button.className ="highlight";
 }
 else {
   map.removeOverlay(layer);
   /*  Reset the link and the button
    * if all checkboxes were unchecked.
   */
   //if(!checkChecked()) {
    //boxlink.blur();
    //boxlink.className ="";
    //layerbox.className ="";
    //button.className ="";
   //}
 }
}



// ZACIATOK PRE NAVIGACIU
function skryt_zobrazit_navigaciu(){
document.getElementById("naboku").style.top='140px';
document.getElementById("naboku").style.left='100px';
	if(document.getElementById('naboku').style.display=='block'){
		document.getElementById('naboku').style.display='none';
		//document.getElementById('naboku').style.zIndex='-1';
	}else{
		document.getElementById('naboku').style.display='block';
		//document.getElementById('naboku').style.zIndex='+1';
	}
}
function skryt_zobrazit_moznosti(){
	if(document.getElementById('navigacia_moznosti').style.display=='inline'){
		document.getElementById('navigacia_moznosti').style.display='none';
		document.getElementById('navigacia_moznosti_tl').innerHTML='Zobraziť možnosti';
	}else{
		document.getElementById('navigacia_moznosti').style.display='inline';
		document.getElementById('navigacia_moznosti_tl').innerHTML='Skryť možnosti';
	}

}
function vymaz_cez(toto){
	obnovit_cez();
	var nove_pole=new Array();
	for (var i=0; i<pole_cez.length; i++) {
		if(i!=toto){
			nove_pole[nove_pole.length]=pole_cez[i];
		}
	}
	pole_cez=nove_pole;
	vyklesli_cez();
}
function obnovit_cez(){
	for (i=0; i<pole_cez.length; i++) {
		if(document.getElementById('cez_'+i))pole_cez[i]=document.getElementById('cez_'+i).value;
	}
}
function pridaj_cez(){
	pole_cez[pole_cez.length]="";
	obnovit_cez();
    vyklesli_cez();
}
function vyklesli_cez(){
	var ret='';
	var i;
	for (i=0; i<pole_cez.length; i++) {
		ret+='Cez <input style="margin-top: 8px;" type="text" id="cez_'+i+'" value="'+pole_cez[i]+'"> <a href="javascript:;" onclick="vymaz_cez('+i+')"><b>X</b></a><br/>';
	}
	document.getElementById('cez').innerHTML=ret;
}
function zrus_cestu(){
  document.getElementById('print_directions').style.display='none';
	document.getElementById('directions').innerHTML='';
	pole_cez=new Array();
	vyklesli_cez();
	document.getElementById('od').value='';
	document.getElementById('do').value='';
	gdir.clear();
	map.clearOverlays();
	document.getElementById('naboku').style.height='';
}
function najdi_cestu(){

  

	prikaz_navigacie='from: '+document.getElementById('od').value+slovensko;
  prikaz_navigacie_typ=1;
    for (var i=0; i<pole_cez.length; i++) {
    	if(document.getElementById('cez_'+i).value!='')prikaz_navigacie+=' to: '+document.getElementById('cez_'+i).value+slovensko;
	}

	prikaz_navigacie+=' to: '+document.getElementById('do').value+slovensko;

	if(document.getElementById('autom').checked==true)
    	var travelMode=G_TRAVEL_MODE_DRIVING;
    else
    	var travelMode=G_TRAVEL_MODE_WALKING;

    var avoidHighways=document.getElementById('dialnice').checked;

	gdir.load(prikaz_navigacie,{ "locale":"sk","avoidHighways":avoidHighways,"travelMode":travelMode, "getSteps":true});



  	
    
}
function handleErrors(){
  if (gdir.getStatus().code == G_GEO_UNKNOWN_ADDRESS)
  {
    if(slovensko==""){
      slovensko=" slovensko ";
      najdi_cestu();
    }else{
      slovensko="";
      alert("Adresy nenájdené. Skúste skonkretizovať adresu v ktorej krajine sa nachádza.Taktiež to môže byť spôsobené tým, že adresa je relatívne nová, alebo môže byť nesprávna.\nError code: " + gdir.getStatus().code);
    }
  }else if (gdir.getStatus().code == G_GEO_SERVER_ERROR)
    alert("A geocoding or directions request could not be successfully processed, yet the exact reason for the failure is not known.\n Error code: " + gdir.getStatus().code);
  else if (gdir.getStatus().code == G_GEO_MISSING_QUERY)
    alert("The HTTP q parameter was either missing or had no value. For geocoder requests, this means that an empty address was specified as input. For directions requests, this means that no query was specified in the input.\n Error code: " + gdir.getStatus().code);
  else if (gdir.getStatus().code == G_GEO_BAD_KEY)
    alert("The given key is either invalid or does not match the domain for which it was given. \n Error code: " + gdir.getStatus().code);
  else if (gdir.getStatus().code == G_GEO_BAD_REQUEST)
    alert("A directions request could not be successfully parsed.\n Error code: " + gdir.getStatus().code);
  else alert("An unknown error occurred.");
}

/**
* The add-on code for draggable markers
* @author Esa 2008
*/
var newMarkers = [];
var latLngs = [];
var icons = [];
// Note the 'addoverlay' GEvent listener inside initialize() function of the original code (above).
// 'load' event cannot be used
function onGDirectionsAddOverlay(){

// ZOOM - 1 pre lepsi viditelnosti mapy
map.setZoom(map.getZoom()-1);
    // zvacsovanie okna naboku
var odhora=document.getElementById('naboku').style.top;
document.getElementById('print_directions').style.display='inline';
    document.getElementById('naboku').style.height=((zisti_vysku_okna()-odhora.substr(0,odhora.length-2)-50)+'px');



  // Remove the draggable markers from previous function call.
  for (var i=0; i<newMarkers.length; i++){
    map.removeOverlay(newMarkers[i]);
  }
  // Loop through the markers and create draggable copies
  for (var i=0; i<=gdir.getNumRoutes(); i++){
    var originalMarker = gdir.getMarker(i);
    latLngs[i] = originalMarker.getLatLng();
    icons[i] = originalMarker.getIcon();
    newMarkers[i] = new GMarker(latLngs[i],{icon:icons[i], draggable:true, title:'Draggable'});
    map.addOverlay(newMarkers[i]);
    // Get the new waypoints from the newMarkers array and call loadFromWaypoints by dragend
    GEvent.addListener(newMarkers[i], "dragend", function(){
      var points = [];
      for (var i=0; i<newMarkers.length; i++){
        points[i]= newMarkers[i].getLatLng();
      }
      // vlozene stare nastavenia :chodza,auto,dialnica atd..
      if(document.getElementById('autom').checked==true)
        var travelMode=G_TRAVEL_MODE_DRIVING;
      else
    	   var travelMode=G_TRAVEL_MODE_WALKING;
      var avoidHighways=document.getElementById('dialnice').checked;      
      
      gdir.loadFromWaypoints(points,{ "locale":"sk","avoidHighways":avoidHighways,"travelMode":travelMode, "getSteps":true});
      prikaz_navigacie=points;
      prikaz_navigacie_typ=2;
    });
    //Bind 'click' event to original markers 'click' event
    copyClick(newMarkers[i],originalMarker);
    // Now we can remove the original marker safely
    map.removeOverlay(originalMarker);
  }
  function copyClick(newMarker,oldMarker){
    GEvent.addListener(newMarker, 'click', function(){
      GEvent.trigger(oldMarker,'click');
    });
  }
}


// ZACIATOK PRE MENU

var timeout	= 500;
var closetimer	= 0;
var ddmenuitem	= 0;

// open hidden layer
function mopen(id)
{
	// cancel close timer
	mcancelclosetime();

	// close old layer
	if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';

	// get new layer and show it
	ddmenuitem = document.getElementById(id);
	ddmenuitem.style.visibility = 'visible';

}
// close showed layer
function mclose()
{
	if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
}

// go close timer
function mclosetime()
{
	closetimer = window.setTimeout(mclose, timeout);
}

// cancel close timer
function mcancelclosetime()
{
	if(closetimer)
	{
		window.clearTimeout(closetimer);
		closetimer = null;
	}
}

// close layer when click-out
document.onclick = mclose;



function zisti_vysku_okna(){
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
  return myHeight;
  //window.alert( 'Width = ' + myWidth );
}


/*

NEFUNKCNY SKRIPT NA CHRANENU REKLAMU V IE

  group2.addTransform(function(coordinate, dragEvent) {
    var scrollOffset = coordinates.scrollOffset()
    if (coordinate.y < scrollOffset.y)
      return coordinates.create(coordinate.x, scrollOffset.y)

    var clientHeight = coordinates.clientSize().y
    var boxHeight = coordinates._size(boxHandle2).y
    if ((coordinate.y + boxHeight) > (scrollOffset.y + clientHeight))
      return coordinates.create(coordinate.x,
          (scrollOffset.y + clientHeight) - boxHeight)

    return coordinate
  })
  group2.addTransform(function(coordinate, dragEvent) {
    var scrollOffset = coordinates.scrollOffset()
    if (coordinate.x < scrollOffset.x)
      return coordinates.create(scrollOffset.x,coordinate.y)

    var clientWidth = coordinates.clientSize().x
    var boxWidth = coordinates._size(boxHandle2).x
    if ((coordinate.x + boxWidth) > (scrollOffset.x + clientWidth))
      return coordinates.create((scrollOffset.x + clientWidth) - boxWidth,coordinate.y)

    return coordinate
  })
*/

function skryt_zobrazit_pre_webmastera(){
	if(document.getElementById('pre_webmastera').style.display=='block'){
		document.getElementById('pre_webmastera').style.display='none';
	}else{
		document.getElementById('pre_webmastera').style.display='block';
		document.getElementById('pre_webmastera').style.top='70px';
    document.getElementById('pre_webmastera').style.left='100px';
    if(document.getElementById('address').value!='Hľadaj...')document.getElementById('pw_adresa').value=document.getElementById('address').value;
    showLocation_PW(document.getElementById('pw_adresa').value);
    }
}
// ZACIATOK SKRIPTOV PRE HLADANIE ADRESY V MALEJ MAPE
function addAddressToMap_PW(response) {
 map_PW.clearOverlays();
 if (!response || response.Status.code != 200) {
   alert("Sorry, we were unable to geocode that address");
 } else {
   place = response.Placemark[0];
   point = new GLatLng(place.Point.coordinates[1],
                       place.Point.coordinates[0]);
   marker = new GMarker(point,{draggable: true});
   
    GEvent.addListener(marker, "dragstart", function() {
      map.closeInfoWindow();
    });

    GEvent.addListener(marker, "dragend", function() {
      marker.openInfoWindowHtml("<b>"+document.getElementById('pw_nazov').value+"</b><br/>"+document.getElementById('pw_adresa').value+'<br/><br/><a href="javascript:;" onclick="map_PW.setZoom(map_PW.getZoom()+2);">[ Priblížiť ]</a>');
      document.getElementById("pw_lat").value=marker.getLatLng().lat();
      document.getElementById("pw_lng").value=marker.getLatLng().lng();
    });    
   document.getElementById("pw_lat").value=point.lat();
   document.getElementById("pw_lng").value=point.lng();
   
   map_PW.addOverlay(marker);
   map_PW.setCenter(point);
   marker.openInfoWindowHtml("<b>"+document.getElementById('pw_nazov').value+"</b><br/>"+document.getElementById('pw_adresa').value+'<br/><br/><a href="javascript:;" onclick="map_PW.setZoom(map_PW.getZoom()+2);">[ Priblížiť ]</a>');
    // '<b>Country code:</b> ' + place.AddressDetails.Country.CountryNameCode);
 }
}

// showLocation() is called when you click on the Search button
// in the form.  It geocodes the address entered into the form
// and adds a marker to the map at that location.
function showLocation_PW() {
  if(document.getElementById('pw_adresa').value!='Hľadaj...' && document.getElementById('pw_adresa').value!='')geocoder.getLocations(document.getElementById('pw_adresa').value, addAddressToMap_PW);
}

//-->