// MENU CONFIGURATION

   var locPathName =  location.pathname;
   var listArray =  locPathName.split("/");
   var wDir = "home";
   if(listArray.length > 2 ){wDir = listArray[1];}
   var directories = new Array("aboutus",
	        		"programs",
	        		"newsnevents",
				"partners",
                            		"books")

   var imgState = new Array(5);
   for(i=0;i<directories.length;i++){
     imgState[i] = "off";
     if(directories[i] == wDir){imgState[i]="on";} 

   }

   	var NoOffFirstLineMenus=5;			// Number of first level items
	var LowBgColor='';				// Background color when mouse is not over
	var LowSubBgColor='#ffffff';			// Background color when mouse is not over on subs
	var HighBgColor='#F0E68C ';				// Background color when mouse is over
	var HighSubBgColor='#516b8a';		// Background color when mouse is over on subs
	var FontLowColor='';			// Font color when mouse is not over
	var FontSubLowColor='#516b8a';		// Font color subs when mouse is not over
	var FontHighColor='';			// Font color when mouse is over
	var FontSubHighColor='#ffffff';		// Font color subs when mouse is over
	var BorderColor='';				// Border color
	var BorderSubColor='#516b8a';			// Border color for subs
	var BorderWidth=1;				// Border width
	var BorderBtwnElmnts=1;			// Border between elements 1 or 0
	var FontFamily="arial,verdana,technical"		// Font family menu items
	var FontSize=10;				// Font size menu items
	var FontBold=0;				// Bold menu items 1 or 0
	var FontItalic=0;				// Italic menu items 1 or 0
	var MenuTextCentered='left';			// Item text position 'left', 'center' or 'right'
	var MenuCentered='center';			// Menu horizontal position 'left', 'center' or 'right'
	var MenuVerticalCentered='top';		// Menu vertical position 'top', 'middle','bottom' or static
	var ChildOverlap=.0;			// horizontal overlap child/ parent
	var ChildVerticalOverlap=.0;			// vertical overlap child/ parent

	// absolute coordinates
	var StartTop=-15;				// Menu offset x coordinate
	var StartLeft=1;				// Menu offset y coordinate
	// relative coordinates
	//var StartTop=0;				// Menu offset x coordinate
	//var StartLeft=0;				// Menu offset y coordinate


	//Begin Browser Position Testing
	if( brow ){
	if( brow == "Opera" ){
		StartTop=0; 
		StartLeft=0;   
		//alert("This is opera"); 
	}
	else if( brow == "Safari" ){
		StartTop=0; 
		StartLeft=0;   
		//alert("This is Safari"); 
	}
                  else if( brow == "Konqueror" ){
		StartTop=0; 
		StartLeft=0;   
		//alert("This is Konqueror"); 
	}
	else if( brow == "Microsoft Internet Explorer" ){
		StartTop=-15; 
		StartLeft=1;   
		//alert("This is Microsoft Internet Explorer"); 
	}

                   }
                   if( moz_brow )
                   {
 	if( moz_brow == "Netscape" ){
		StartTop=0; 
		StartLeft=0;   
		//alert("This is Netscape"); 
                   }
	else if( moz_brow == "Mozilla" || moz_brow == "Firefox" ){ 
		StartTop=-15; 
		StartLeft=-8;   		
		//alert("This is FireFox"); 
	}
	} 


                   // End Browser Position Testing	


	var VerCorrect=0;				// Multiple frames y correction
	var HorCorrect=0;				// Multiple frames x correction
	var LeftPaddng=3;				// 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=500;			// delay before menu folds in
	var TakeOverBgColor=0;			// 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='rMenu';			// span id for relative positioning
	//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=['/clients/omnimed/images/arrowon.gif',8,9,'/clients/omnimed/images/spc.gif',1,1,'/clients/omnimed/images/spc.gif',1,1];// 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"


Menu1=new Array("rollover:/clients/omnimed/images/aboutus_"+imgState[0]+".gif:/clients/omnimed/images/aboutus_on.gif","/clients/omnimed/aboutus/","",4,31,142);
	Menu1_1=new Array("President's Message","/clients/omnimed/newsevents/presidentsmessage/","",0,25,175)
	Menu1_2=new Array("Board of Directors","/clients/omnimed/aboutus/board/","",0,25,175)
	Menu1_3=new Array("Program Leaders","/clients/omnimed/aboutus/leaders/","",0,25,175)
	Menu1_4=new Array("History","/clients/omnimed/aboutus/history","",0,25,175)



Menu2=new Array("rollover:/clients/omnimed/images/programs_"+imgState[1]+".gif:/clients/omnimed/images/programs_on.gif","/clients/omnimed/programs/","",3,31,158);
	//Menu3_1=new Array("Belize","/clients/omnimed/programs/belize/","",0,25,200)
	//Menu3_2=new Array("Kenya","/clients/omnimed/programs/kenya/","",0,25,200)
	//Menu3_3=new Array("Guyana","/clients/omnimed/programs/guyana/","",0,25,200)
	Menu2_1=new Array("Uganda - Overview","/clients/omnimed/programs/uganda/","",0,25,200)
	Menu2_2=new Array("Uganda - Logistics/ FAQs","/clients/omnimed/programs/uganda/logistics","",0,25,200)
	Menu2_3=new Array("The Center for Global Service","/clients/omnimed/programs/cgs/","",0,25,200)

Menu3=new Array("rollover:/clients/omnimed/images/newsevents_"+imgState[2]+".gif:/clients/omnimed/images/newsevents_on.gif","/clients/omnimed/newsevents/","",2,31,169);
	Menu3_1=new Array("Announcements/ In The News","/clients/omnimed/newsevents/inthenews/","",0,25,200)
	//Menu3_2=new Array("President's Message","/clients/omnimed/newsevents/presidentsmessage/","",0,25,200)
	Menu3_2=new Array("Newsletters","/clients/omnimed/newsevents/newsletter","",0,25,200)
	//Menu3_4=new Array("Announcements","/clients/omnimed/newsevents/announcements/","",0,25,200)


Menu4=new Array("rollover:/clients/omnimed/images/partners_"+imgState[3]+".gif:/clients/omnimed/images/partners_on.gif","http://www.omnimed.org/partners/index.html","",0,31,171);

Menu5=new Array("rollover:/clients/omnimed/images/books_"+imgState[4]+".gif:/clients/omnimed/images/books_on.gif","/clients/omnimed/books/","",3,31,135);
	Menu5_1=new Array("About the books","/clients/omnimed/books/","",0,25,135)
	Menu5_2=new Array("About the author","/clients/omnimed/books/author/","",0,25,135)
	Menu5_3=new Array("Book Reviews","/clients/omnimed/books/reviews/","",0,25,135)


