/* 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,  
                 "/neurobiology/images/nhome1.gif",   
		 "/neurobiology/images/nhome2.gif",
                 "/neurobiology/images/nhome3.gif",
		 "/neurobiology/index.html", 
                 "Home");
				 
barArray[2] = new BarClass(2,  
                 "/neurobiology/images/faculty1.gif",   
		 "/neurobiology/images/faculty2.gif",
                 "/neurobiology/images/faculty3.gif",
		 "/neurobiology/faculty.html", 
                 "Faculty and Staff");

barArray[3] = new BarClass(3, 
                "/neurobiology/images/scientific1.gif",   
		 "/neurobiology/images/scientific2.gif",
                 "/neurobiology/images/scientific3.gif",
		 "/neurobiology/scientific.html", 
                 "Scientific Activities");

barArray[4] = new BarClass(4, 
                 "/neurobiology/images/lectures1.gif",   
		 "/neurobiology/images/lectures2.gif",
                 "/neurobiology/images/lectures3.gif",
		 "/neurobiology/calendar/lectures.html", 
                 "Lectures & Events");
				 
barArray[5] = new BarClass(5, 
                 "/neurobiology/images/courses1.gif",   
		 "/neurobiology/images/courses2.gif",
                 "/neurobiology/images/courses3.gif",
		 "/neurobiology/courses.html", 
                 "Courses & Research Positions");
					 
barArray[6] = new BarClass(6, 
                 "/neurobiology/images/search1.gif",   
		 "/neurobiology/images/search2.gif",
                 "/neurobiology/images/search3.gif",
		 "/neurobiology/search.html", 
                 "Neurobiology Search");

barArray[7] = new BarClass(7, 
                 "/neurobiology/images/contact1.gif",   
		 "/neurobiology/images/contact2.gif",
                 "/neurobiology/images/contact3.gif",
		 "/neurobiology/contact.html", 
                 "Contact & Visitor Information");
					 

				 
 
				 

}	

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

