var images = new Array();
images[0] = new Image();
images[1] = new Image();
images[2] = new Image();
images[3] = new Image();
images[4] = new Image();
images[5] = new Image();
images[6] = new Image();
images[7] = new Image();
images[0].src = "images/homePage/findHomeOn.jpg"
images[1].src = "images/homePage/findHomeOff.jpg"
images[2].src = "images/homePage/OpenHousesOn.jpg"
images[3].src = "images/homePage/OpenHousesOff.jpg"
images[4].src = "images/homePage/saundersShowcaseOn.jpg"
images[5].src = "images/homePage/saundersShowcaseOff.jpg"
images[6].src = "images/homePage/neighborhoodsOn.jpg"
images[7].src = "images/homePage/neighborhoodsOff.jpg"

function changeImages(obj, sImage, sOnOff) {
	try
	{
	
	switch(sImage)
	{
		case "findHome":
			if(sOnOff == "on")
			obj.src = images[0].src
			else
			obj.src = images[1].src
			break;
		case "OpenHouses":
			if(sOnOff == "on")
			obj.src = images[2].src
			else
			obj.src = images[3].src
			break;
		case "saundersShowcase":
			if(sOnOff == "on")
			obj.src = images[4].src
			else
			obj.src = images[5].src
			break;
		case "neighborhoods":
			if(sOnOff == "on")
			obj.src = images[6].src
			else
			obj.src = images[7].src
			break;
	}
	}
	catch(e)
	{
	}
}

	
function popWindow2(theLink) {
		var initialX =	100;
		var initialY = 	100;
		if (navigator.appName == "Netscape") {
			theWindow = open( theLink, "Lookup", "width=500,height=580," +
					"screenX=" + initialX + ",screenY=" + initialY +
					",scrollbars,resizable");
			theLink.focus(); // make sure our new window is in front
		} else {
			theWindow = open( theLink, "Lookup", "width=500,height=580" +
				",left=" + initialX + ",top=" + initialY +
				",scrollbars,resizable");
		}
		theWindow.opener = self;
}

	
function openWin(path,windowName, params)
{
	window.open(path,windowName, params)

}
