function initialize() {
    geocoder = new google.maps.Geocoder();
    var latlng = new google.maps.LatLng(-34.397, 150.644);
    var myOptions = {
      zoom: 13,
      center: latlng,
	   mapTypeControl: false,
      mapTypeId: google.maps.MapTypeId.ROADMAP
    }
    map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
}
function codeAddress(adres) {
    var address = adres;
    if (geocoder) {
      geocoder.geocode( { 'address': address}, function(results, status) {
        if (status == google.maps.GeocoderStatus.OK) {
          if (status != google.maps.GeocoderStatus.ZERO_RESULTS) {
            map.setCenter(results[0].geometry.location);
//alert(toUrlValue( results[0].geometry.location));
            var marker = new google.maps.Marker({
                map: map, 
                position: results[0].geometry.location
            });
          } else {
            //alert("No results found");
            $('.no_map').css('display','none');
          }
        } else {
          //alert("Geocode was not successful for the following reason: " + status);
          $('.no_map').css('display','none');
        }
      });
    }
}
function google_maps(adres)
{
    //alert('test');
	initialize();
	codeAddress(adres);
}
