/* step 3.a: Set the array of icons
     for each image in the navigator bar, replace the corresponding
     image source files and the corresponding link file/url
*/  
//-----------------------------------------------------------------
// NavClass Method - function setBarArray()
//         creates bar instances with correc settings for each bar
//-----------------------------------------------------------------
function setBarArray()	
{	
barArray[1] = new BarClass(1, 
                 "/RGP_open/images/fellowships.gif",   
		 "/RGP_open/images/fellowships1.gif",
                 "/RGP_open/images/fellowships2.gif",
		 "/RGP_open/ofunding.shtml", 
                 "Fellowships, Symposia, Exchanges, and Prizes");
				 
barArray[2] = new BarClass(2, 
                 "/RGP_open/images/oindex.gif",   
		 "/RGP_open/images/oindex1.gif",
                 "/RGP_open/images/oindex2.gif",
		 "/RGP_open/oindex.shtml", 
                 "Index");

barArray[3] = new BarClass(3, 
                 "/RGP_open/images/odeadlines.gif",   
		 "/RGP_open/images/odeadlines1.gif",
                 "/RGP_open/images/odeadlines2.gif",
		 "/RGP_open/odeadlines.shtml", 
                 "Deadlines");

barArray[4] = new BarClass(4, 
                 "/RGP_open/images/research.gif",   
		 "/RGP_open/images/research1.gif",
                 "/RGP_open/images/research2.gif",
		 "/RGP_open/rwebpages.shtml", 
                 "Research Funding");

barArray[5] = new BarClass(5, 
                 "/RGP_open/images/rwebpages.gif",   
		 "/RGP_open/images/rwebpages1.gif",
                 "/RGP_open/images/rwebpages2.gif",
		 "/RGP_open/rwebpages.shtml", 
                 "Webpages");

barArray[6] = new BarClass(6, 
                 "/RGP_open/images/travel.gif",   
		 "/RGP_open/images/travel1.gif",
                 "/RGP_open/images/travel2.gif",
		 "/RGP_open/travel.shtml", 
                 "Traveling Abroad");

barArray[7] = new BarClass(7,  
                 "/RGP_open/images/fiscal.gif",   
		 "/RGP_open/images/fiscal1.gif",
                 "/RGP_open/images/fiscal2.gif",
		 "/RGP_open/finance.shtml", 
                 "Fiscal Issues");
				 				 				 				 				 				 
barArray[8] = new BarClass(8,  
                 "/RGP_open/images/compliance.gif",   
		 "/RGP_open/images/compliance1.gif",
                 "/RGP_open/images/compliance2.gif",
		 "/RGP_open/compliance.shtml", 
                 "Compliance");
				 				 				 				 				 				 
barArray[9] = new BarClass(9,  
                 "/RGP_open/images/contact.gif",   
		 "/RGP_open/images/contact1.gif",
                 "/RGP_open/images/contact2.gif",
		 "/RGP_open/contact.shtml", 
                 "Contact Information");
				 
barArray[10] = new BarClass(10, 
                 "/RGP_open/images/rmp.gif",   
		 "/RGP_open/images/rmp1.gif",
                 "/RGP_open/images/rmp1.gif",
		 "/acadaff/RMP/", 
                 "Researcher's Mobility Portal");
  
barArray[11] = new BarClass(11, 
                 "/RGP_open/images/minerva.gif",   
		 "/RGP_open/images/minerva1.gif",
                 "/RGP_open/images/minerva1.gif",
		 "/RGP_open/minerva/minerva_list.html", 
                 "Minerva Projects Programme");

barArray[12] = new BarClass(12, 
                 "/RGP_open/images/search.gif",   
		 "/RGP_open/images/search1.gif",
                 "/RGP_open/images/search2.gif",
		 "/RGP_open/rsearch.shtml", 
                 "Search");
				 


}	

//-----------------------------------------------------------------
// step 3.b: Set the parameter numOfBars to total number of the bars (images)
//-----------------------------------------------------------------
function initNav() { 
  var numOfBars= 12;
  barArray = new Array(numOfBars);  // create global barArray to store images
  theNav= new NavClass(numOfBars);  //the parameter - number of the bars in the navagation bar 
  theNav.setBarArray();             //fill barAray with images
}
 
 
 
 

