var message="Sorry, that function is disabled.\n\nePlatMaps source code is Copyright ©CO2 Consulting Group, Inc.\nVisit http://www.eplatmaps.com/ for product information."; // Message for the alert box

function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;














































//   ##############  SIMPLE  BROWSER SNIFFER
if (document.layers) {navigator.family = "nn4"}
if (document.all) {navigator.family = "ie4"}
if (window.navigator.userAgent.toLowerCase().match("gecko")) {navigator.family = "gecko"}

descarray = new Array(
"",
	"<div class=\"communityPOP\"><b>Jasmine Ridge</b><br /><div class=\"click\">Click for community information</div></div>",
	"<div class=\"communityPOP\"><b>Forrest Ridge</b><br />Twenty-five .5 - 1.25 acre<br />homesites with beautiful<br />hardwood trees.<div class=\"click\">Click for more information</div></div>",
	"<div class=\"communityPOP\"><b>Hillcrest Farm</b><br />Fifty-four 3/4 - 1+ acre homesites<br />with pond & wooded views.<div class=\"click\">Click for more information</div></div>",
	"<div class=\"communityPOP\"><b>Kenwood Estates</b><br />Acre+ estate lots with<br />wooded landscapes and<br />basement opportunities.<div class=\"click\">Click for more information</div></div>",
	"<div class=\"communityPOP\"><b>The Estates at Devonshire</b><br />Gorgeous acre+ lots<br />on a gently rolling terrain<br />in a parklike setting.<div class=\"click\">Click for more information</div></div>",
	"<div class=\"communityPOP\"><b>Devonshire</b><br />Gently sloping 1/2 acre+<br />wooded homesites.<div class=\"click\">Click for more information</div></div>",
"EOM"
);

overdiv="0";

//  #########  CREATES POP UP BOXES 
function popLayer(a){
	if(!descarray[a]){descarray[a]="<font color=red>This popup (#"+a+") isn't setup correctly - needs description</font>";}
	if (navigator.family == "gecko") {pad="0"; bord="1 bordercolor=black";}
	else {pad="1"; bord="0";}

	desc="<div class=\"eplatmap_desc\">"
	+descarray[a]
	+"</div>\n";

	if(navigator.family =="nn4") {
		document.areamap.document.write(desc);
		document.areamap.document.close();
		document.areamap.left=x+15;
		document.areamap.top=y-5;
	}
	else if(navigator.family =="ie4"){
		areamap.innerHTML=desc;
		areamap.style.pixelLeft=x+15;
		areamap.style.pixelTop=y-5;
	}
	else if(navigator.family =="gecko"){
		document.getElementById("areamap").innerHTML=desc;
		document.getElementById("areamap").style.left=x+15;
		document.getElementById("areamap").style.top=y-5;
	}
}

function hideLayer(){
	if (overdiv == "0") {
		if(navigator.family =="nn4") {eval(document.areamap.top="-500");}
		else if(navigator.family =="ie4"){areamap.innerHTML="";}
		else if(navigator.family =="gecko") {document.getElementById("areamap").style.top="-500";}
	}
}

//  ########  TRACKS MOUSE POSITION FOR POPUP PLACEMENT
var isNav = (navigator.appName.indexOf("Netscape") !=-1);
function handlerMM(e){
	x = (isNav) ? e.pageX : event.clientX + document.body.scrollLeft;
	y = (isNav) ? e.pageY : event.clientY + document.body.scrollTop;
}
if (isNav){document.captureEvents(Event.MOUSEMOVE);}
document.onmousemove = handlerMM;


