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

- You want to display a slash such as "UNITS/AFFILLIATES". In this case, your folder name should be "unitsaffilliates"
- You want to display a space such as "ABOUT US". In this case, your folder name should be "aboutus"
- You want to display periods such as "F.A.Q.". In this case, your folder name should be "faq" 
*/
var sections = new Array ("ABOUT US", "CAMPAIGNS", "NEGOTIATIONS", "NEWS", "PUBLICATIONS", "PHOTOS", "UNITS/AFFILLIATES", "F.A.Q.");

/*
KAREN: This is the width of each link. Decrease the number if some of your links are being hidden
*/
var width = "12";

/* DO NOT TOUCH ANYTHING BELOW! */

/* find location and create folder and file name variables */


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(".");

/*create home link */

document.write('<li');
if(filename=="index")
{
  document.write(' class="active"');
 }
document.write('><a style="padding: 12px '+width+'px 0;" href="');
if(filename!="index")
{
  document.write('../');
 }
document.write('index.htm">HOME</a></li>');

/*create other links */

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

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

	 document.write('<li');
	 if(foldername=="index.htm")
	 {
	  document.write(' class="active"');
	 }
	 if(foldername==thisfoldername)
	 {
	  document.write(' class="active"');
	 }
	  
	 document.write('><a style="padding: 12px '+width+'px 0;" href="');
	 if(filename!="index")
	 {
	  document.write('../');
	 }
	 document.write(thisfoldername+'/'+thisfoldername+'.htm">'+sections[i]+'</a></li>');
}