var ns4 = (document.layers);
var ie4 = (document.all && !document.getElementById);
var ie5 = (document.all && document.getElementById);
var ns6 = (!document.all && document.getElementById);

var hold = 0;

function show(id){
	if(ns4) { document.layers[id].visibility = "show"; }
	else if(ie4){ document.all[id].style.visibility = "visible"; }
	else if(ie5 || ns6){ document.getElementById(id).style.visibility = "visible"; }
}

function hide(id){
	if(ns4) { document.layers[id].visibility = "hide"; }
	else if(ie4) { document.all[id].style.visibility = "hidden"; }
	else if(ie5 || ns6) { document.getElementById(id).style.visibility = "hidden"; }

}

function checkHold(id) {
	if (hold==0) {
		hide(id);
        } else {
		if (id == "About") setTimeout("checkHold('About')",1000);
		else if (id == "Properties") setTimeout("checkHold('Properties')",1000);
		else if (id == "Sell A Home") setTimeout("checkHold('Sell A Home')",1000);
		else if (id == "Financing") setTimeout("checkHold('Financing')",1000);
//		else if (id == "StarPoint") setTimeout("checkHold('StarPoint')",1000);
		else if (id == "News & Notes") setTimeout("checkHold('News & Notes')",1000);
		else if (id == "Area Links") setTimeout("checkHold('Area Links')",1000);
		else if (id == "Area Links") setTimeout("checkHold('Area Links')",1000);
	}
}
function hideAll() {
	hide('About');
	hide('Properties');
	hide('Sell A Home');
	hide('Financing');
//	hide('StarPoint');
	hide('News & Notes');
	hide('Area Links');
}

//  lightUp /////////////////////////////////////////

//Define the new images
Off = new Image();
On = new Image();
//Load the images
Off.src = "/Graphics/StarLogoRest.png";
On.src = "/Graphics/StarLogoPulse.gif";

function lightUp(imgBase,imgLit) {
//	return 1;
//	if (ns4) {
//		if (imgLit=="Off") {
//			hold=0;
//		} else {
//			hold=1;
//		}
//	} else {
		document.images[imgBase].src = eval(imgLit + ".src")
//	}
}

