var bTypeNs = (navigator.appName=="Netscape" && parseInt(navigator.appVersion) >= 4);
isMac = (navigator.appVersion.indexOf("Mac") != -1);
var NN4 = false;
var NN6 = false;
var IE4 = false;
var IE5 = false;
if (bTypeNs) {
	if (parseInt(navigator.appVersion) < 5) {
		NN4 = true;
	} else {
		NN6 = true;
	}
} else	{
	if (parseInt(navigator.appVersion) < 5) {
		IE4 = true;
	} else {
		IE5 = true;
	}

}

// setup defaults
var HIDDEN = (NN4) ? 'hide' : 'hidden';
var VISIBLE = (NN4) ? 'show' : 'visible';
var windowWidth = (bTypeNs) ? window.innerWidth : document.body.offsetWidth;
var windowHeight = (bTypeNs) ? window.innerHeight : document.body.offsetHeight;
var LEFT = (bTypeNs) ? 'left' : 'pixelLeft';
var TOP = (bTypeNs) ? 'top' : 'pixelTop';

var navVersion = parseInt(navigator.appVersion);
var relpath="./"
var timeDiff = 180;
var daylightSavingAdjust = 0;

function hideObj(obj)
{
	if (bTypeNs) {
		var pObj = (NN4) ? document[obj] : document.getElementById(obj).style;
	} else {
		var pObj = document.all[obj].style;
	}
	pObj.visibility = HIDDEN;
}

function moveObj(obj,oLeft,oTop)
{
	if (bTypeNs) {
		var pObj = (NN4) ? document[obj] : document.getElementById(obj).style;
	} else {
		var pObj = document.all[obj].style;
	}
	pObj.left = oLeft;
	pObj.top = oTop;
	pObj.visibility = VISIBLE;
}

function showObj(obj,oLeft,oTop)
{
	if (bTypeNs) {
		var pObj = (NN4) ? document[obj] : document.getElementById(obj).style;
	} else {
		var pObj = document.all[obj].style;
	}
	pObj.visibility = VISIBLE;
	pObj.left = oLeft;
	pObj.top = oTop;	
}

function onBut(butPath,butName)
{
	var navButton = document.images[butName];
	navButton.src = butPath+butName+'_on.gif';
}

function offBut(butPath,butName)
{
	var navButton = document.images[butName];
	navButton.src = butPath+butName+'.gif';
}

function winPop(vPath)
{
	newWin = window.open(vPath, "newWin","width=600,height=500,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,top=0,left=0");
	newWin.focus(); 
}

function showPD(vId){
		
	var url = "propertyDetails.asp?id="+vId
	pdWin = window.open(url, "pdWin","width=700,height=600,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,top=0,left=0");
	pdWin.focus(); 

}

function clearhiddenframe()
{
	if (parent.hiddenframe){
		parent.hiddenframe.location.replace('blank.htm');
	}
}
