filename = this.location.href.substring(this.location.href.lastIndexOf('/') + 1);

var id1=(filename=="lodgecal.html")?"nogo":"";
var id2=(filename=="about.html")?"nogo":"";
var id3=(filename=="join.html")?"nogo":"";
var id4=(filename=="officers.html")?"nogo":"";
var id5=(filename=="comm.html")?"nogo":"";
var id6=(filename=="past.html")?"nogo":"";
var id7=(filename=="groups.html")?"nogo":"";
var id8=(filename=="trestle.html")?"nogo":"";
var id9=(filename=="history.html")?"nogo":"";
var id10=(filename=="books.html")?"nogo":"";
var id11=(filename=="dictionary.html")?"nogo":"";
var id12=(filename=="supplies.html")?"nogo":"";
var id13=(filename=="numbers.html")?"nogo":"";
var id14=(filename=="emails.html")?"nogo":"";
var id15=(filename=="photos.html")?"nogo":"";
var id16=(filename=="links.html")?"nogo":"";
var id17=(filename=="nogo")?"nogo":"";

function link1()
{
	if (id1=="nogo")
		{
		return('<font color="#FFFFFF">Masonic Calendar</font>');
		}
	else
		{
		return('<a href="lodgecal.html" target="_parent" class="class1">Masonic Calendar</a>');
		}
}

function link2()
{
	if (id2=="nogo")
		{
		return('<font color="#FFFFFF">About Freemasonry</font>');
		}
	else
		{
		return('<a href="about.html" target="_parent" class="class1">About Freemasonry</a>');
		}
}

function link3()
{
	if (id3=="nogo")
		{
		return('<font color="#FFFFFF">How to Join</font>');
		}
	else
		{
		return('<a href="join.html" target="_parent" class="class1">How to Join</a>');
		}
}

function link4()
{
	if (id4=="nogo")
		{
		return('<font color="#FFFFFF">Presiding Officers</font>');
		}
	else
		{
		return('<a href="officers.html" target="_parent" class="class1">Presiding Officers</a>');
		}
}

function link5()
{
	if (id5=="nogo")
		{
		return('<font color="#FFFFFF">Lodge Committees</font>');
		}
	else
		{
		return('<a href="comm.html" target="_parent" class="class1">Lodge Committees</a>');
		}
}

function link6()
{
	if (id6=="nogo")
		{
		return('<font color="#FFFFFF">Past Masters</font>');
		}
	else
		{
		return('<a href="past.html" target="_parent" class="class1">Past Masters</a>');
		}
}

function link7()
{
	if (id7=="nogo")
		{
		return('<font color="#FFFFFF">Masonic Groups</font>');
		}
	else
		{
		return('<a href="groups.html" target="_parent" class="class1">Masonic Groups</a>');
		}
}

function link8()
{
	if (id8=="nogo")
		{
		return('<font color="#FFFFFF">Trestle Board</font>');
		}
	else
		{
		return('<a href="trestle.html" target="_parent" class="class1">Trestle Board</a>');
		}
}

function link9()
{
	if (id9=="nogo")
		{
		return('<font color="#FFFFFF">Masonic History</font>');
		}
	else
		{
		return('<a href="history.html" target="_parent" class="class1">Masonic History</a>');
		}
}

function link10()
{
	if (id10=="nogo")
		{
		return('<font color="#FFFFFF">Englewood School<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Libraries</font>');
		}
	else
		{
		return('<a href="books.html" target="_parent" class="class1">Englewood School<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Libraries</a>');
		}
}

function link11()
{
	if (id11=="nogo")
		{
		return('<font color="#FFFFFF">Student Dictionaries</font>');
		}
	else
		{
		return('<a href="dictionary.html" target="_parent" class="class1">Student Dictionaries</a>');
		}
}

function link12()
{
	if (id12=="nogo")
		{
		return('<font color="#FFFFFF">School Supplies</font>');
		}
	else
		{
		return('<a href="supplies.html" target="_parent" class="class1">School Supplies</a>');
		}
}

function link13()
{
	if (id13=="nogo")
		{
		return('<font color="#FFFFFF">Contact Numbers</font>');
		}
	else
		{
		return('<a href="numbers.html" target="_parent" class="class1">Contact Numbers</a>');
		}
}

function link14()
{
	if (id14=="nogo")
		{
		return('<font color="#FFFFFF">Member Emails</font>');
		}
	else
		{
		return('<a href="emails.html" target="_parent" class="class1">Member Emails</a>');
		}
}

function link15()
{
	if (id15=="nogo")
		{
		return('<font color="#FFFFFF">Photo Albums</font>');
		}
	else
		{
		return('<a href="photos.html" target="_parent" class="class1">Photo Albums</a>');
		}
}

function link16()
{
	if (id16=="nogo")
		{
		return('<font color="#FFFFFF">Other Links</font>');
		}
	else
		{
		return('<a href="links.html" target="_parent" class="class1">Other Links</a>');
		}
}

function link17()
{
	if (id17=="nogo")
		{
		return('<font color="#FFFFFF">Follow us on</font>');
		}
	else
		{
			return('<font color="#C0C0C0">Follow us on</font>&nbsp;<a href="http://www.twitter.com/Englewood166" target="_blank" alt="Twitter"><img src="twitter.png" height="20px" width="20px" style="margin-bottom:-7px;" /></a>&nbsp;<a href="http://www.facebook.com/group.php?gid=10150090739225273&v=wall" target="_blank" alt="Facebook"><img src="facebook.png" height="20px" width="20px" style="margin-bottom:-7px;" /></a>');
		}
}

function reWrite()
{
var newContent = '&nbsp;&nbsp;<img src="events.bmp"><br>'
newContent += '&nbsp;&nbsp;<script type="text/javascript">document.write(link1());</script><br>'
newContent += '&nbsp;&nbsp<img src="membership.bmp"><br>'
newContent += '&nbsp;&nbsp;<script type="text/javascript">document.write(link2());</script><br>'
newContent += '&nbsp;&nbsp;<script type="text/javascript">document.write(link3());</script><br>'
newContent += '&nbsp;&nbsp;<script type="text/javascript">document.write(link4());</script><br>'
newContent += '&nbsp;&nbsp;<script type="text/javascript">document.write(link5());</script><br>'
newContent += '&nbsp;&nbsp;<script type="text/javascript">document.write(link6());</script><br>'
newContent += '&nbsp;&nbsp;<script type="text/javascript">document.write(link7());</script><br>'
newContent += '&nbsp;&nbsp<img src="reports.bmp"><br>'
newContent += '&nbsp;&nbsp;<script type="text/javascript">document.write(link8());</script><br>'
newContent += '&nbsp;&nbsp;<script type="text/javascript">document.write(link9());</script><br>'
newContent += '&nbsp;&nbsp;<script type="text/javascript">document.write(link15());</script><br>'
newContent += '&nbsp;&nbsp<img src="charity.bmp"><br>'
newContent += '&nbsp;&nbsp;<script type="text/javascript">document.write(link11());</script><br>'
newContent += '&nbsp;&nbsp;<script type="text/javascript">document.write(link12());</script><br>'
newContent += '&nbsp;&nbsp<img src="contacts.bmp"><br>'
newContent += '&nbsp;&nbsp;<script type="text/javascript">document.write(link13());</script><br>'
newContent += '&nbsp;&nbsp;<script type="text/javascript">document.write(link14());</script><br>'
newContent += '&nbsp;&nbsp;<script type="text/javascript">document.write(link16());</script><br>'
newContent += '&nbsp;&nbsp;<script type="text/javascript">document.write(link17());</script><br>'
newContent += '&nbsp;&nbsp;<img src="title.bmp">&nbsp;<br>';


document.write(newContent);
}

