	function ir(i) 
	{
		if (i!=0)
			GEvent.trigger(gmarkers[i-1],"click");
		else
			GEvent.trigger(gmarkerCM,"click");
    }
	function map_mouseover(i) 
	{
		if (i!=0)
			GEvent.trigger(gmarkers[i-1],"mouseover");
		else
			GEvent.trigger(gmarkerCM,"mouseover");
    }
	function map_mouseout(i) 
	{
		if (i!=0)
			GEvent.trigger(gmarkers[i-1],"mouseout");
		else
			GEvent.trigger(gmarkerCM,"mouseout");
    }
	function ShowErrorCalleAltura()
	{
		mapGInfoWindow = map.getInfoWindow();
		if(nocalleoaltura)
		{
			mapGInfoWindow.maximize();
			setTimeout('ShowErrorCalleAltura()', 800);
		}
	}
	function StopTryMaximice()
	{
		nocalleoaltura=false;
	}
	function ShowOnlyPage(page)
	{	
		var h = page*resPorPag;
		var d =  h-resPorPag;
		for(var i=0;gmarkers.length > i ; i++)
		{
			gmarkers[i].closeInfoWindow();
			if (i>=d && i<h)gmarkers[i].show(); else gmarkers[i].hide();
		}
	}
function HideAll2(Selected,Pages) 
{
	var divSelected = 'page'+Selected.toString();
	for (var i = 1; i <= Pages; i++) {
		var DivName = 'page'+i.toString();
		document.getElementById(DivName).style.display = (divSelected==DivName)?'':'none';
	}
}
function showTooltip(marker) {
			tooltip.innerHTML = marker.tooltip;
			var point=map.getCurrentMapType().getProjection().fromLatLngToPixel(map.fromDivPixelToLatLng(new GPoint(0,0),true),map.getZoom());
			var offset=map.getCurrentMapType().getProjection().fromLatLngToPixel(marker.getPoint(),map.getZoom());
			var anchor=marker.getIcon().iconAnchor;
			var width=marker.getIcon().iconSize.width;
			var height=tooltip.clientHeight;
			var pos = new GControlPosition(G_ANCHOR_TOP_LEFT, new GSize(offset.x - point.x - anchor.x + width, offset.y - point.y -anchor.y -height)); 
			pos.apply(tooltip);
			tooltip.style.visibility="visible";
		}
