/**
 * @author morozov
 */
	if (navigator.geolocation) {
	  navigator.geolocation.getCurrentPosition(success, error);
	} 


	function success(position) {
		latlng = new google.maps.LatLng(position.coords.latitude,position.coords.longitude);
		geocoder = new google.maps.Geocoder();
		codeLatLng();
	}
	function error() {
		alert("geo error");
	}
	  var geocoder;
	  var latlng = new google.maps.LatLng(52.59,39.53);
  function codeLatLng() {
   geocoder.geocode({'latLng': latlng}, function(results, status) {
      if (status == google.maps.GeocoderStatus.OK) {
        if (results[1]) {
          obj = document.getElementById("fdbk_tab");
          if (results[1].formatted_address.indexOf("Липецк")>0) {
	          obj.style.visibility = "visible";
	          //obj.style.left = screen.width/2 + 300 + 'px';
         }
           //alert(document.getElementById("img").offsetLeft+'===='+results[1].formatted_address);
       } else {
          alert("No results found");
        }
      } else {
        alert("Geocoder failed due to: " + status);
      }
    });
  }

