var paths = new Array("index.html", "ministries.html", "mapdir.html", "email_dir.html", "links.html", "newsletter.html", "happenings.html")
var status = new Array("Hope home", "ministries", "map and directions", "email directory", "links", "newsletter", "happenings");

currPath = location.pathname;

if (currPath.length <= 1) {currPath = "index.html"}

for (x = 0; x < paths.length; x++) {
	if (currPath.indexOf(paths[x]) < 0)	{	
	    document.write('<a href="http://www.hopelc.org/'+paths[x]+'" onmouseover="On('+(x+1)+')" onmouseout="Off('+(x+1)+')">');
		document.write('<img src="/images/simple/opt_off'+(x+1)+'.gif" NAME=option'+(x+1)+' ALT="'+status[x]+'" width="155" height="35" border="0"></A><br>');
	}else{	
		document.write('<img src="/images/simple/opt_on'+(x+1)+'.gif" width="155" height="35" border="0" alt="'+status[x]+'"><br>');
		
	}
}
