
function hilight(reason, id)
{
	var obj;
	obj=document.getElementById(id);
	if (reason == 0) {
		obj.src="images/plumeria-tn.jpg";
	} else {
		obj.src="images/plumeria-sel-tn.jpg";
	}

}

function openNew(url)
{
	var newwin;
	newwin=window.open(url,"Map","height=200,width=300,status=0");
}

function loadURL(url)
{
    location.href=url;    
}

function mailto(name, domain, tld, tag, subj)
{
	var address;
	var url;
	var http='mailto:';
	
	address=http+name+'@'+domain+'.'+tld;
	url='<a href="'+address+'?subject='+subj+'">'+tag+'</a>';
	//url=address;
	document.write(url);
}

function reveal(obj, reason, objname) 
{
	hiddenobj=document.getElementById(objname);
	if (reason == 1) {
		obj.style.textDecoration="underline";
		obj.style.cursor="pointer";
		hiddenobj.style.visibility="visible";
		requestHide();
	} else {
		obj.style.textDecoration="none";
		hiddenobj.style.visibility="hidden";
	}
}

function hide(objname)
{
	obj=document.getElementById(objname);
	obj.style.visibility="hidden";
}

function resetText(obj)
{
	obj.style.textDecoration="none";
}

var hideTimer; // global timer for hiding menu windows

function requestHide()
{
	hideTimer=setTimeout("hideMenus()",2000);	
}

function hideMenus()
{
	hide("About");
	hide("Directions");
	hide("Board");
	hide("Owners");
	hide("CCRs");
	hide("Minutes");
	hide("News");
	hide("Maps");
	hide("ContactUs");
	

}

function keepMenu()
{
	clearTimeout(hideTimer);
}
