/* 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,  
                 "/complex/images/contact.gif",   
		 "/complex/images/contact1.gif",
                 "/complex/images/contact1.gif",
		 "/complex/contact.html", 
                 "Contact Us");
				 
barArray[2] = new BarClass(2,  
                 "/complex/images/faculty.gif",   
		 "/complex/images/faculty1.gif",
                 "/complex/images/faculty1.gif",
		 "/complex/faculty.html", 
                 "Faculty and Staff");

barArray[3] = new BarClass(3, 
                "/complex/images/seminars.gif",   
		 "/complex/images/seminars1.gif",
                 "/complex/images/seminars1.gif",
		 "/complex/calendar/lectures.html", 
                 "Seminars and Events");

barArray[4] = new BarClass(4, 
                 "/complex/images/scientific.gif",   
		 "/complex/images/scientific1.gif",
                 "/complex/images/scientific1.gif",
		 "/complex/scientific.html", 
                 "Scientific Groups");
				 
barArray[5] = new BarClass(5, 
                 "/complex/images/visiting1.gif",   
		 "/complex/images/visiting2.gif",
                 "/complex/images/visiting2.gif",
		 "/complex/visitingScientists.shtml", 
                 "Visiting Scientists");

barArray[6] = new BarClass(6, 
                 "/complex/images/minerva.gif",   
		 "/complex/images/minerva1.gif",
                 "/complex/images/minerva1.gif",
		 "/complex/minerva.html", 
                 "Minerva Center");
					 
barArray[7] = new BarClass(7, 
                 "/complex/images/home.gif",   
		 "/complex/images/home1.gif",
                 "/complex/images/home1.gif",
		 "/complex/index.html", 
                 "Home");
				 
 
				 

}	

//-----------------------------------------------------------------
// 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
}
 
 
 
 

