/***********************************************************************************
*	(c) Ger Versluis 2000 version 5.411 24 December 2001 (updated Jan 31st, 2003 by Dynamic Drive for Opera7)
*	For info write to menus@burmees.nl		          *
*	You may remove all comments for faster loading	          *		
***********************************************************************************/
	
	var NoOffFirstLineMenus=8;			// Number of first level items
	var LowBgColor='#0A2D6E';			// Background color when mouse is not over
	var LowSubBgColor='#0A2D6E';			// Background color when mouse is not over on subs
	var HighBgColor='blue';			// Background color when mouse is over
	var HighSubBgColor='blue';			// Background color when mouse is over on subs
	var FontLowColor='white';			// Font color when mouse is not over
	var FontSubLowColor='white';			// Font color subs when mouse is not over
	var FontHighColor='white';			// Font color when mouse is over
	var FontSubHighColor='white';			// Font color subs when mouse is over
	var BorderColor='white';			// Border color
	var BorderSubColor='white';			// Border color for subs
	var BorderWidth=1;				// Border width
	var BorderBtwnElmnts=1;			// Border between elements 1 or 0
	var FontFamily="arial,comic sans ms,technical"	// Font family menu items
	var FontSize=8;				// Font size menu items
	var FontBold=1;				// Bold menu items 1 or 0
	var FontItalic=0;				// Italic menu items 1 or 0
	var MenuTextCentered='center';			// Item text position 'left', 'center' or 'right'
	var MenuCentered='left';			// Menu horizontal position 'left', 'center' or 'right'
	var MenuVerticalCentered='top';		// Menu vertical position 'top', 'middle','bottom' or static
	var ChildOverlap=.2;				// horizontal overlap child/ parent
	var ChildVerticalOverlap=.2;			// vertical overlap child/ parent
	var StartTop=230;				// Menu offset x coordinate
	var StartLeft=160;				// Menu offset y coordinate
	var VerCorrect=0;				// Multiple frames y correction
	var HorCorrect=0;				// Multiple frames x correction
	var LeftPaddng=0;				// Left padding
	var TopPaddng=2;				// Top padding
	var FirstLineHorizontal=1;			// SET TO 1 FOR HORIZONTAL MENU, 0 FOR VERTICAL
	var MenuFramesVertical=0;			// Frames in cols or rows 1 or 0
	var DissapearDelay=1000;			// delay before menu folds in
	var TakeOverBgColor=1;			// Menu frame takes over background color subitem frame
	var FirstLineFrame='navig';			// Frame where first level appears
	var SecLineFrame='space';			// Frame where sub levels appear
	var DocTargetFrame='space';			// Frame where target documents appear
	var TargetLoc='';				// span id for relative positioning
	var HideTop=0;				// Hide first level when loading new document 1 or 0
	var MenuWrap=1;				// enables/ disables menu wrap 1 or 0
	var RightToLeft=0;				// enables/ disables right to left unfold 1 or 0
	var UnfoldsOnClick=0;			// Level 1 unfolds onclick/ onmouseover
	var WebMasterCheck=0;			// menu tree checking on or off 1 or 0
	var ShowArrow=1;				// Uses arrow gifs when 1
	var KeepHilite=1;				// Keep selected path highligthed
	var Arrws=['tri.gif',5,10,'tridown.gif',10,5,'trileft.gif',5,10];	// Arrow source, width and height

function BeforeStart(){return}
function AfterBuild(){return}
function BeforeFirstOpen(){return}
function AfterCloseAll(){return}


// Menu tree
//	MenuX=new Array(Text to show, Link, background image (optional), number of sub elements, height, width);
//	For rollover images set "Text to show" to:  "rollover:Image1.jpg:Image2.jpg"


var pageurl = window.location.href
var host = location.hostname
var path = location.pathname
var pathString = path.split("/")
var pathLen = pathString.length
var nameloc = pageurl.lastIndexOf("/") + 1
var namelen = pageurl.length
var pagename =  pageurl.substring(nameloc,namelen)
var folder = pathString[1]
var page1 = ""
var page2 = ""
var page3 = ""
var page4 = ""
var page5 = ""
var page6 = ""
var page7 = ""
var page9 = ""
var page10 = ""
var page11 = ""
var page12 = ""
var page13 = ""
var page14 = ""
var page15 = ""
var page16 = ""
var page17 = ""

if (pagename == "index.asp") {
	Menu1=new Array("Main","","",0,20,40);
	}
else {
	page1 = "http://" + host + "/" + folder + "/index.asp"
	Menu1=new Array("Main",page1,"",0,20,40);
}

page2 = "http://" + host + "/" + folder + "/background/regional/regional.asp" 
page3 = "http://" + host + "/" + folder + "/background/countries/countries.asp" 

Menu2=new Array("Background","","",2,20,80);
	Menu2_1=new Array("Regional",page2,"",0,20,80);	
	Menu2_2=new Array("Countries",page3,"",0);

page4 = "http://" + host + "/" + folder + "/activities/messages/messages.asp"
page5 = "http://" + host + "/" + folder + "/activities/project/project.asp"
page6 = "http://" + host + "/" + folder + "/activities/partners/partners.asp"
page7 = "http://" + host + "/" + folder + "/activities/finalreport/finalreport.asp"

Menu3=new Array("Activities","","",4,20,60);
	Menu3_1=new Array("Messages",page4,"",0,20,80);
	Menu3_2=new Array("The Project",page5,"",0);
	Menu3_3=new Array("Partners",page6,"",0);
	Menu3_4=new Array("Final Report",page7,"",0);

page8 = "http://" + host + "/" + folder + "/first/first/first.asp"
page9 = "http://" + host + "/" + folder + "/first/gpg/gpg.asp"
page10 = "http://" + host + "/" + folder + "/first/download/download.asp"
page11 = "http://" + host + "/" + folder + "/first/datasummaries/datasummaries.asp"

Menu4=new Array("FiRST","","",4,20,40);
	Menu4_1=new Array("Overview",page8,"",0,20,120);
	Menu4_2=new Array("Global Public Goods",page9,"",0);
	Menu4_3=new Array("Download",page10,"",0);
	Menu4_4=new Array("Data Summaries",page11,"",0);

page12 = "http://" + host + "/" + folder + "/publications/publications.asp"

Menu5=new Array("Publications",page12,"",0,20,80);

page13 = "http://" + host + "/" + folder + "/newsupdate/newsupdate.asp"

Menu6=new Array("News Update",page13,"",0,20,80);

page14 = "http://" + host + "/" + folder + "/links/links.asp"
page15 = "http://" + host + "/" + folder + "/links/participating.asp"

Menu7=new Array("Links","","",2,20,40);
	Menu7_1=new Array("Partners",page14,"",0,20,140);
	Menu7_2=new Array("Participating Countries",page15,"",0);

page16 = "http://" + host + "/" + folder + "/contactus/contactus.asp"

Menu8=new Array("Contact Us",page16,"",0,20,70);


