/* 
KAREN: Insert your page names below. These should match your file names unless you are using anything except alpha-numeric characters. Here are some examples:

- You want to display a slash such as "By-Laws/Policies". In this case, your file name should be "bylawspolicies.htm"
- You want to display a space such as "About Us". In this case, your file name should be "aboutus.htm"
- You want to display periods such as "F.A.Q.". In this case, your file name should be "faq.htm" 
- You want to display an apostrophe such as "President's Message". In this case, your file name should be "presidentsmessage.htm" 
 
*/
var pages = new Array ("About Us", "Our Structure", "By-Laws/Policies", "Committees", "Member Centre", "President's Message", "Staff ", "Table Officers ");


/* DO NOT TOUCH ANYTHING BELOW HERE! */

var loc=String(this.location);
loc=loc.split("/");

filename=loc[loc.length-1].split(".");
filename=filename[filename.length-2];

foldername=loc[loc.length-2].split(".");

for(var i=0; i<pages.length; i++)
{

	var thisfilename=pages[i].replace(/ /, "");
	thisfilename=thisfilename.replace(/ /, "");
	thisfilename=thisfilename.replace(/ /, "");
	thisfilename=thisfilename.replace(/ /, "");
	thisfilename=thisfilename.replace(/\//, "");
	thisfilename=thisfilename.replace(/\./, "");
	thisfilename=thisfilename.replace(/\./, "");
	thisfilename=thisfilename.replace(/\./, "");
	thisfilename=thisfilename.replace(/\'/, "");
	thisfilename=thisfilename.replace(/\'/, "");
	thisfilename=thisfilename.replace(/\'/, "");
	thisfilename=thisfilename.replace(/-/, "");
	thisfilename=thisfilename.replace(/-/, "");
	thisfilename=thisfilename.replace(/-/, "");
	thisfilename=thisfilename.toLowerCase();

 document.write('<li');
 if(filename==thisfilename)
 {
  document.write(' class="active"');
 }
 document.write('><a href="../'+foldername+'/'+thisfilename+'.htm">'+pages[i]+'</a></li>');
}
