// JavaScript Document



	var myMenu=new Array();
myMenu[0]="e_home.shtml";
myMenu[1]="e_about.shtml";
myMenu[2]="e_about_background.shtml";
myMenu[3]="e_about_story_gregoire.shtml";
myMenu[4]="e_about_acknowledgment.shtml";
myMenu[5]="e_projects.shtml";
myMenu[6]="e_projects_ic.shtml";
myMenu[7]="e_projects_ic_health.shtml";
myMenu[8]="e_projects_ic_centers.shtml";
myMenu[9]="e_projects_ic_support.shtml";
myMenu[10]="e_projects_ic_hiv.shtml";
myMenu[11]="e_projects_ic_medicine.shtml";
myMenu[12]="e_projects_be.shtml";
myMenu[13]="e_projects_be_skill.shtml";
myMenu[14]="e_projects_be_profit.shtml";
myMenu[15]="e_public_policy_projects.shtml";
myMenu[16]="e_communications.shtml";
myMenu[17]="e_donations.shtml";
myMenu[18]="e_contacts.shtml";

var str = document.URL;

//modificare per individuare la current page

var position = str.indexOf("org/");

var position_ok = position + 4;


var page = str.slice(position_ok);

var my_pos_n = new Number;

var compare = new String;

for (i=0; i < myMenu.length; i++){
	compare = myMenu[i];
	if ( compare == page){
		my_pos_n = i;
	}	
}



var prev_pos = my_pos_n - 1;
var next_pos = my_pos_n + 1;
var menu_last = myMenu.length - 1;

	
if ( my_pos_n > 0) {	
	document.write ("<li id=\"li_prev\">");
	var PreviousPage = "<a id=\"a_prev\" href=" + myMenu[prev_pos] + "> Previous  </a>";
	document.write (PreviousPage);
	document.write ("</li>");
}



if ( my_pos_n < menu_last) {
	document.write ("<li id=\"li_next\">");
	var NextPage = "<a id=\"a_next\" href=" + myMenu[next_pos] + ">  Next </a>";
		document.write (NextPage);
		document.write ("</li>");
}
