function showElement(e) {
	document.getElementById(e).style.display="block";
}

function hideElement(e) {
	document.getElementById(e).style.display="none";
}

function showAddress(address, title, zoom, id, icon_ext, width, height) {
	  var map = new GMap2(document.getElementById("map_canvas"));
	  var geocoder = new GClientGeocoder();
	  var WINDOW_HTML = '<div style="font-size:11px;"><strong>'+title+'</strong><br />'+address+'<\/div>';
	  
	  map.addControl(new GSmallMapControl());
	  
	  geocoder.getLatLng(
	    address,
	    function(point) {
	      if (!point) {
	        //alert(address + " not found");
	      } else {
	        map.setCenter(point, zoom);
	        
	        if(icon_ext != "") {
	          var myIcon = new GIcon(G_DEFAULT_ICON);
	          myIcon.image = "/images/articles/icons/"+id+"."+icon_ext;
	  		    myIcon.iconSize = new GSize(width, height);
	  		    myIcon.iconAnchor = new GPoint(width/2, height);
	  		    myIcon.shadow = "";
	  		    
	      		// Set up our GMarkerOptions object
	      		markerOptions = { icon:myIcon };
	      		
	      		var marker = new GMarker(point, markerOptions);
	        
	        } else {
	          var marker = new GMarker(point);
	        }
	        
	        map.addOverlay(marker);
	        GEvent.addListener(marker, "click", function() {
	        	marker.openInfoWindowHtml(WINDOW_HTML);
		      });
	      }
	    }
	  );
	}
