jQuery.noConflict();
   
var map = null;
var geocoder = null;

function initialize() {
    if (GBrowserIsCompatible()) {
        map = new GMap2(document.getElementById("gmap"));
        // map.setCenter(new GLatLng(-36.724413,-73.113779), 4);
        geocoder = new GClientGeocoder();


        jQuery(document).ready(function(){

            jQuery(".address").each(function(){
                showAddress(jQuery(this).text());
            });

        });


    }

}

function showAddress(address) {
    if (geocoder) {
        geocoder.getLatLng(
            address,
            function(point) {
                if (!point) {
                alert(address + " no ha sido encontrado");
                } else {
                    map.setCenter(point, 16);
                    var marker = new GMarker(point);
                    map.addOverlay(marker);
                    // marker.openInfoWindowHtml(address);
                }
            }
        );
    }
}