<!--
// JavaScript Document

/* SubMenu Colors */
var menuHi = "#0000FF";
var menuNorm = "#000099";
var subMenuHi = "#9999FF";
var subMenuNorm = "#CCCCCC";


/* Browser Detection Functions *************************************************/
/* 												*/
/*******************************************************************************/
var isIE = false;
var isNS = false;
var isNS6 = false;
var isDOM = false;
var doc_type, style_type, vis, invis, myTimeOut, goName;
var ftop = true;
var fmid = true;
var fbot = true;

function initBrowserVersion(){
	if (document.all) {isIE= true; doc_type=document; style_type=".style"; vis="visible"; invis="hidden";}
	if (document.layers){isNS = true; doc_type=document.layers; style_type=""; vis="show"; invis="hide";}
	if (document.getElementById &&!isIE) {isDOM=true; doc_type = "document.getElementById('"; style_type = "').style"; invis ="hidden"; vis = "visible";
	}
	if (isDOM == true && navigator.appName =="Netscape") isNS6 = true;
}

/* Call this function on page load.  Put any other initialization calls here. */
function start(){
	initBrowserVersion();
}


function popUp(URL, w, h) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=' + w + ',height=' + h + ',left = 200,top = 150');");
}


/* Image Layer Control Objects ***********************************************/
/* 												*/
/*******************************************************************************/
/*
function layerObject() {
	this.fVisible = true;
	
}

function toggle2(obj) {
	this.obj = obj;
	obj.fVisible = false;
	
	if (obj.fVisible == true){
		//window.alert("showMenu called");
		hide(id);
		eval(fStats) = false;
	}
	else {
		show(id);
		eval(fStats) = true;
	}
}

//Assigns the Function to the Method
layerObject.toggle2 = toggle2;

//Invokes the Method
objectName.methodName([parameters]);

//Instantiate Objects
bottomObject = new myObject();
middleObject = new myObject();
topObject = new myObject();
*/

/* Image Layer Control Functions ***********************************************/
/* These functions are used to control visibility of the image layers          */
/*******************************************************************************/
function show(id) {
	if(isDOM || isIE){
//window.alert("showMenu called");
		document.getElementById(id).style.visibility = "visible";}	
	if(isNS){
		document.layers[id].visibility = "visible";
	}
}

function hide(id) {
	if(isDOM || isIE){
		document.getElementById(id).style.visibility = "hidden";
	}
	if(isNS){
		//document.Menu1.visibility = "hidden";
		document.layers[id].visibility = "hidden";
	}
}

function toggle(id) {

	if(isDOM || isIE){
		/*alert(document.getElementById(id).style.visibility);
		if (document.getElementById(id).style.visibility == ""){
			document.getElementById(id).style.visibility = "visible";
		}
		else */ if (document.getElementById(id).style.visibility == "hidden"){
			document.getElementById(id).style.visibility = "visible";
		}
		else{
			document.getElementById(id).style.visibility = "hidden";
		}
	}
	if(isNS){
		//document.Menu1.visibility = "hidden";
		
		if (document.layers[id].visibility == "hidden"){
			document.layers[id].visibility = "visible";
		}
		else{
			document.layers[id].visibility = "hidden";
		}
	}
}

/* Locator functions control the visibility and location of the blinking red circles
	over image maps
*/
function start_locator(e){

	if(isIE){
		//window.alert("showMenu called");
		document.getElementById('locator').style.top = e.clientY - 20 + document.body.scrollTop;
		document.getElementById('locator').style.left = e.clientX - 20 + document.body.scrollLeft;
		document.getElementById('locator').style.visibility = "visible";
	}
	if(isDOM){
		//window.alert("showMenu called");
		document.getElementById('locator').style.top = e.clientY - 20 + window.scrollY;
		document.getElementById('locator').style.left = e.clientX - 20 + window.scrollX;
		document.getElementById('locator').style.visibility = "visible";
	}
	if(isNS){
		document.layers['locator'].visibility = "visible";
	}
}
function stop_locator(){

	if(isDOM || isIE){
		document.getElementById('locator').style.visibility = "hidden";}	
	if(isNS){
		document.layers['locator'].visibility = "hidden";
	}
}

/* Statistics Window Functions *****************************************************************/
function writeStats(id, htmlString){
	document.getElementById(id).innerHTML = htmlString;
}

function getStats(n, id){
	//alert("n = " + n + "\nid = " + id);
	
	var statusColor = "";
	if (tableArray[n][10] == "Sold"  || tableArray[n][10] == "sold"){
		statusColor = "<font color='#FF0000'><strong>" + tableArray[n][10] + "</strong></font>";
	}else{
		statusColor = "<font color='#000000'><strong>" + tableArray[n][10] + "</strong></font>";
	}
	
	document.getElementById(id).innerHTML = ("<table width='100%' border='0' cellspacing='2'cellpadding='0'>" +
	"<tr> " +
	" <td width='50%' align='LEFT' valign='MIDDLE'><font color='#333333'><strong>Lot</strong></font></td> " +
	"<td width='50%' align='LEFT' valign='MIDDLE'>" + tableArray[n][1] +  tableArray[n][2] +"</td> " +
	"</tr> " +
	"<tr>  " +
	"<td align='LEFT' valign='MIDDLE'><font color='#333333'><strong>Total Acres</strong></font></td> " +
	"<td align='LEFT' valign='MIDDLE'>" + tableArray[n][3] + "</td> " +
	"</tr> " +
	"<tr> " +
	"<td><img src='images/spacer.gif' width='1' height='5' border='0'></td> " +
	"<td><img src='images/spacer.gif' width='1' height=\"1\" border='0'></td> " +
	"</tr> " +
	"<tr>  " +
	"<td align='LEFT' valign='MIDDLE'><font color='#333333'><strong>Lowland Acres</strong></font></td> " +
	"<td align='LEFT' valign='MIDDLE'>" + tableArray[n][4] + "<br> </td> " +
	"</tr> " +
	"<tr>  " +
	"<td align='LEFT' valign='MIDDLE'><font color='#333333'><strong>Highland Acres</strong></font></td> " +
	"<td align='LEFT' valign='MIDDLE'>" + tableArray[n][5] + "</td> " +
	"</tr> " +
	"<tr> " +
	"<td><img src='images/spacer.gif' width='1' height='5' border='0'></td> " +
	"<td><img src='images/spacer.gif' width='1' height=\"1\" border='0'></td> " +
	"</tr> " +
	"<tr>  " +
	"<td align='LEFT' valign='MIDDLE'><font color='#333333'><strong>Lowland Price/Acre</strong></font></td> " +
	"<td align='LEFT' valign='MIDDLE'>" + tableArray[n][6] + "</td> " +
	"</tr> " +
	"<tr>  " +
	"<td align='LEFT' valign='MIDDLE'><font color='#333333'><strong>Highland Price/Acre</strong></font></td> " +
	"<td align='LEFT' valign='MIDDLE'>" + tableArray[n][8] + "</td> " +
	"</tr> " +
	"<tr>  " +
	"<td align='LEFT' valign='MIDDLE'><font color='#333333'><strong>Price/Foot</strong></font></td> " +
	"<td align='LEFT' valign='MIDDLE'>" + tableArray[n][7] + "</td> " +
	"</tr> " +
	"<tr> " +
	"<td><img src='images/spacer.gif' width='1' height='5' border='0'></td> " +
	"<td><img src='images/spacer.gif' width='1' height=\"1\" border='0'></td> " +
	"</tr> " +
	"<tr>  " +
	"<td align='LEFT' valign='MIDDLE'><font color='#333333'><strong>Total Price</strong></font></td> " +
	"<td align='LEFT' valign='MIDDLE'>" + tableArray[n][9] + "</td> " +
	"</tr> " +	
	"<tr>  " +
	"<td align='LEFT' valign='MIDDLE'><font color='#333333'><strong>Notes</strong></font></td> " +
	"<td align='LEFT' valign='MIDDLE'>" + statusColor +  "</td> " +
	"</tr> " +	
	"                </table> ");

}
-->