function $(id){return document.getElementById(id)}
function isIEObject(a){return isObject(a)&&typeof a.constructor!='function'}
function isArray(a){return isObject(a)&&a.constructor==Array}
function isBoolean(a){return typeof a=='boolean'}
function isEmpty(o){if(isObject(o)){for(i in o){return false}};return true}
function isFunction(a){return typeof a=='function'}
function isNull(a){return typeof a=='object'&&!a}
function isNumber(a){return typeof a=='number'&&isFinite(a)}
function isObject(a){return(typeof a=='object'&&!!a)||isFunction(a)}
function isString(a){return typeof a=='string'}
function isUndefined(a){return typeof a=='undefined'} 

var lots = new Array();
//lots[#] = array(Cost, Acreage, Front Dim., side Dim., Characteristics, Status);
lots[1319] = new Array(null,0.378,null,null,'3 Split Bedroom Home - Built Custom','SOLD');
lots[1320] = new Array(null,0.293,null,null,'2 Split Bedroom Home - Built Custom','SOLD');
lots[1343] = new Array('28,000',0.273,107,124,'Open Home Site suitable for a Walk-out Basement','AVAILABLE!');
lots[1344] = new Array(null,0.212,null,null,'2 Bedroom Home - Built Custom','SOLD');
lots[1357] = new Array(null,0.171,60,124,'3 Bedroom Home with Walk-out Full Basement','SOLD');
lots[1358] = new Array(null,0.162,60,124,'2 Bedroom Home with Walk-out Full Basment','SOLD');
lots[1371] = new Array(null,0.171,60,124,'3 Bedroom Home with Walk-out Full Basement','SOLD');
lots[1372] = new Array(null,0.171,60,124,'2 Bedroom Home with Walk-out Full Basment','SOLD');
lots[1385] = new Array('28,000',0.171,60,124,'Open Home Site suitable for a Walk-out Basement','AVAILABLE!');
lots[1386] = new Array('28,000',0.171,60,124,'Open Home Site suitable for a Walk-out Basement','AVAILABLE!');
lots[1399] = new Array('28,000',0.171,60,124,'Open Home Site suitable for a Walk-out Basement','AVAILABLE!');
lots[1400] = new Array('174,900',0.171,60,124,'2 Bedroom Home with Walk-out Full Basment','AVAILABLE!');
lots[1415] = new Array(null,0.171,60,124,'Open Home Site suitable for a Walk-out Basement','SOLD');
lots[1414] = new Array('28,000',0.171,60,124,'Open Home Site suitable for a Walk-out Basement','AVAILABLE!');
lots[1427] = new Array('28,000',0.171,60,124,'3 Bedroom Home with Full Basement','SOLD');
lots[1428] = new Array(null,0.171,60,124,'Open Home Site with Gentle Slope','SOLD');
lots[1441] = new Array('28,000',0.171,60,124,'Open Level Home Site','AVAILABLE!');
lots[1442] = new Array(null,0.171,60,124,'3 Bedroom Home with Full Basement','SOLD');
lots[1455] = new Array(null,0.171,60,124,'2 Bedroom Home - Built Custom','SOLD');
lots[1456] = new Array('28,000',0.171,60,124,'Open Level Home Site','AVAILABLE!');
lots[1469] = new Array(null,0.184,60,124,'2 Bedroom Home with Full Basement','SOLD');
lots[1470] = new Array('28,000',0.193,60,124,'Open Level Home Site','AVAILABLE!');

function swt(i) {
    if (isArray(lots[i])) {
        $('pLot').innerHTML = i;
        $('pCost').innerHTML = (isNull(lots[i][0])) ? 'N/A' : '$'+lots[i][0];
        $('pAcr').innerHTML = (isNull(lots[i][1])) ? 'N/A' : lots[i][1]+' acres';
        $('pDim').innerHTML = (isNull(lots[i][2])||isNull(lots[i][3])) ? 'call for dimensions' : lots[i][2]+"'x"+lots[i][3]+"'";
        $('pChar').innerHTML = lots[i][4];
        $('pStat').style.color = (lots[i][5] == 'AVAILABLE!') ? 'green' : (lots[i][5] == 'SOLD') ? 'red' : 'black';    
        $('pStat').innerHTML = lots[i][5];
    }
}
