function showAddress( address ) 
{
		geocoder.getLatLng( 	address,
							function( point ) {
									if ( !point ) {
										alert( address + " not found" );
									} else {
								        map.setCenter( point, 15 );
								        var marker = createMarker( point, address );
								        map.addOverlay( marker );
							        //marker.openInfoWindowHtml(address);
							     }
							}
							);
}

function createAddress( address ) 
{
		geocoder.getLatLng( 	address,
								function( point ) {
									if ( !point )
										alert( address + " not found" );
									else
										map.addOverlay( createMarker( point, address ) );
							     
								}
							);
}

function createMarker( point, name )
{
	// Create our "tiny" marker icon
	var icon = new GIcon();
	icon.image = "../img/google/apartamento.png"; 	// The foreground image URL of the icon.
	//icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png"; // The shadow image URL of the icon.
	icon.iconSize = new GSize( 35, 34 ); 			// The pixel size of the foreground image of the icon.
	//icon.shadowSize = new GSize( 45, 34 ); 			// The pixel size of the shadow image.
	icon.iconAnchor = new GPoint( 0, 34 ); 			// The pixel coordinate relative to the top left corner of the icon image at which this icon is anchored to the map.
	icon.infoWindowAnchor = new GPoint( 20, 0 ); 	// The pixel coordinate relative to the top left corner of the icon image at which the info window is anchored to this icon.

	var marker = new GMarker( point, icon );
  	GEvent.addListener( marker, "click", function() {
  		marker.openInfoWindowHtml( name );
		});
	return marker;
}
