	function equal()
	{
		function getHeight(el)
		{
			el = document.getElementById(el);
			var h;
			if (el.currentStyle && !window.opera)
			{
				h = el.offsetHeight;
			}
			else
			{
				try
				{
					h = document.defaultView.getComputedStyle(el,null).getPropertyValue('height');
			  	}
				catch(e) { }
			}
			return h;
		}
		
		menuHeight = parseInt(getHeight('menu'));
		centroHeight = parseInt(getHeight('centro1'));
		if (menuHeight < centroHeight)
		{
			var isMSIE = /*@cc_on!@*/false;
			if (isMSIE)
			{
				var hOffset = 0;
			}
			else
			{
				var hOffset = 16;
			}
			
			document.getElementById('menu').style.height = (centroHeight + hOffset)+'px';
		}
		if (menuHeight > centroHeight)
		{
			
			var isMSIE = /*@cc_on!@*/false;
			if (isMSIE)
			{
				document.getElementById('centro1').style.height = (menuHeight-16)+'px';
			}
			else
			{
				document.getElementById('centro1').style.height = (menuHeight-16)+'px';
			}
		}
		var menuCont = document.getElementById('menuCont');
		var centro1 = document.getElementById('centroCont1');
		if (isMSIE)
		{
			menuCont.style.visibility = 'hidden';
			menuCont.style.visibility = 'visible';
			
			centro1.style.visibility = 'hidden';
			centro1.style.visibility = 'visible';
		}
	}

	function getCoords(el)
	{
		var idPosto = el.value;
		$.ajax({
				url: "mapCoords.php",
				type: 'GET',
				data: 'id='+idPosto,
				dataType: 'xml',
				success: refreshMap
		});
	}
	
	function refreshMap(pedido)
	{
		xmlDoc = pedido.documentElement;
		var curLat = xmlDoc.getElementsByTagName('lat')[0].firstChild.nodeValue;
		var curLong = xmlDoc.getElementsByTagName('long')[0].firstChild.nodeValue;
		var curZoom = xmlDoc.getElementsByTagName('zoom')[0].firstChild.nodeValue;
		var tip = xmlDoc.getElementsByTagName('tip')[0].firstChild.nodeValue;
		var dtl = xmlDoc.getElementsByTagName('dtl')[0].firstChild.nodeValue;
		
		document.getElementById('postoDtl').innerHTML = dtl;
		
		frames['postoMapa'].location.href = 'javascript:flyTo('+curLat+', '+curLong+',\''+tip+'\','+curZoom+');';
	}
	
	function showMap(num)
	{
		return true;
	}
