/* 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, 
         "/Biological_Chemistry/scientist/Wallach/images/btn_peop1.gif", 
   		 "/Biological_Chemistry/scientist/Wallach/images/btn_peop2.gif",
  		 "/Biological_Chemistry/scientist/Wallach/images/btn_peop3.gif", 
		"/Biological_Chemistry/scientist/Wallach/people.html",
                 "People");


barArray[2] = new BarClass(2, 
              "/Biological_Chemistry/scientist/Wallach/images/btn_res1.gif",  //default image file
	         "/Biological_Chemistry/scientist/Wallach/images/btn_res2.gif",  //image for mouseOn
                 "/Biological_Chemistry/scientist/Wallach/images/btn_res3.gif",  //image for selected category 
                 "/Biological_Chemistry/scientist/Wallach/research.html",    //the link for bar#1
                 "Research");   //alt tag    
							  
barArray[3] = new BarClass(3,  
         "/Biological_Chemistry/scientist/Wallach/images/btn_pub1.gif",   
		 "/Biological_Chemistry/scientist/Wallach/images/btn_pub2.gif",
          "/Biological_Chemistry/scientist/Wallach/images/btn_pub3.gif",
		 "/Biological_Chemistry/scientist/Wallach/publications.html",
                 "Publications");

barArray[4] = new BarClass(4,  
         "/Biological_Chemistry/scientist/Wallach/images/btn_events1.gif",   
		 "/Biological_Chemistry/scientist/Wallach/images/btn_events2.gif",
          "/Biological_Chemistry/scientist/Wallach/images/btn_events3.gif",
		 "/Biological_Chemistry/scientist/Wallach/events.html",
                 "Events");

barArray[5] = new BarClass(5, 
         "/Biological_Chemistry/scientist/Wallach/images/btn_links1.gif",
		 "/Biological_Chemistry/scientist/Wallach/images/btn_links2.gif",
		 "/Biological_Chemistry/scientist/Wallach/images/btn_links3.gif", 
		 "/Biological_Chemistry/scientist/Wallach/links.html",
                 "Links");

barArray[6] = new BarClass(6, 
         "/Biological_Chemistry/scientist/Wallach/images/btn_home1.gif", 
   		 "/Biological_Chemistry/scientist/Wallach/images/btn_home2.gif",
  		 "/Biological_Chemistry/scientist/Wallach/images/btn_home3.gif",
		"/Biological_Chemistry/scientist/Wallach/home.html",
                 "Home");



	
	
}	

//-----------------------------------------------------------------
// step 3.b: Set the parameter numOfBars to total number of the bars (images)
//-----------------------------------------------------------------
function initNav() { 
  var numOfBars= 6;
  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
}
 
 
 
 

