var seeking = new String("www.parkcreek.org");
var UC = new String(document.location);
var iSeekFound = 0;
UC = UC.toLowerCase();
var iSeekFound = UC.indexOf(seeking);

var LOC = HomeRef + UC.substring(iSeekFound + seeking.length + 1, UC.length);

function DoHeaderMenuItem(TITLE, URL, target, AltText)
{
	var sURL = new String(URL);
	sURL = sURL.toLowerCase();
	LOC = LOC.toLowerCase();
	LOC = LOC.replace("../org/", "../");
		
//	alert("TO=" + sURL);
//	alert("LOC=" + LOC);
	
	
	if (sURL != LOC)
	{
		if ("" == target)
		{
			document.writeln("<LI><CENTER><A HREF='" + URL +"' TITLE='" + AltText + "'>" + TITLE + "</A></CENTER></LI>");
		}
		else
		{
			document.writeln("<LI><CENTER><A HREF='" + URL +"' TITLE='" + AltText + "' TARGET='" + target + "'>" + TITLE + "</A></CENTER></LI>");
		}
	}
}

document.writeln("<TABLE WIDTH='100%' HEIGHT='60'><TR HEIGHT='100%'><TD HEIGHT='100%' VALIGN='top'><UL ID=\"miniflex\">");
	DoHeaderMenuItem("Home", HomeRef + "Home/index.html", "", "back to PCWA splash page");
	DoHeaderMenuItem("PCWA<br>BLOG", "http://parkcreekwatershed.blogspot.com/", "BLOG", "tell us");
	DoHeaderMenuItem("About Us", HomeRef + "AboutUs/index.htm", "", "find out about us");
	DoHeaderMenuItem("Upcoming<br>Events", HomeRef + "Events/index.htm", "", "find out what we`re going to be doing");
//	DoHeaderMenuItem("Past<br>Events", HomeRef + "PastEvents/index.htm", "", "find out what we`ve been doing");
//	DoHeaderMenuItem("Education", HomeRef + "Education/index.htm", "", "find out something new");
//	DoHeaderMenuItem("Birdhouses", HomeRef + "Birdhouse/index.htm", "", "eastern bluebird nestboxes");
//	DoHeaderMenuItem("Newsletters", HomeRef + "Newsletters/index.htm", "", "peruse the current and past newsletters");
	DoHeaderMenuItem("Meetings<br>&amp; Agendas", HomeRef + "Meetings/index_2009.htm", "", "peruse minutes and agendas from PCWA meetings");
	DoHeaderMenuItem("Map", HomeRef + "Map/index.htm", "", "find out where we are");
	DoHeaderMenuItem("Contact Us", HomeRef + "ContactUs/index.htm", "", "find out how to get in touch with us");
	DoHeaderMenuItem("Links", HomeRef + "Links/index.htm", "", "find out other places to find out info about watersheds");
document.writeln("</UL></TD></TR></TABLE>");

