	function showLot(lotNo){
	  if (isNaN(parseInt(lotNo))) {
		  document.location = lotNo;
		} else {
			document.getElementById('propertyplan').src = '/images/propertyplans.jpg';
			document.getElementById('lottoshow').style.display = 'block';
			var request = (window.XMLHttpRequest) ? new XMLHttpRequest() : new ActiveXObject("Microsoft.XMLHTTP");
			request.open("POST", "getlot.php", true);
			request.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
			request.onreadystatechange = function(){
				if (request.readyState == 4){
					document.getElementById('lottoshow').innerHTML = request.responseText;
				}			
			};
			request.send("lotNo=" + lotNo); 
			return false;
		}
	}
	
  function showHand(elem, lotnum) {
	  if (lotnum > 0) {
	    showPopup(document.getElementById('propertyplan'), lotnum);
		}	
	  document.getElementById('propertyplan').style.cursor = 'pointer';
	}
	
	function noHand(elem) {
	  hidePopup(document.getElementById('propertyplan'));
		document.getElementById('propertyplan').style.cursor = 'default';
	}
	
	function showPopup(hoveritem, lotnum) {
		hp = document.getElementById("hoverpopup");
		hp.innerHTML = 'Lot # ' + lotnum;
		// Set position of hover-over popup
		hp.style.top = (getY(hoveritem) + 18) + 'px';
		hp.style.left = (getX(hoveritem) + 20) + 'px';

		// Set popup to visible
		hp.style.display = "";
	}

	function hidePopup() {
		hp = document.getElementById("hoverpopup");
		hp.style.display = "none";
	}

