/* 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, 
                 "/immunology/images/contact1.gif",  //default image file
	             "/immunology/images/contact2.gif",  //image for mouseOn
                 "/immunology/images/contact3.gif",  //image for selected category 
                 "/immunology/contact.html",    //the link for bar#1
                 "Contact Us");   //alt tag    
							  
 barArray[2] = new BarClass(2,  
                 "/immunology/images/facstaff1.gif",   
		         "/immunology/images/facstaff2.gif",
                 "/immunology/images/facstaff3.gif",
		         "/immunology/faculty.html", 
                 "Faculty and Staff");

 barArray[3]= new BarClass(3,  
                 "/immunology/images/lectures1.gif", 
   		         "/immunology/images/lectures2.gif",
		         "/immunology/images/lectures3.gif",
		         "/immunology/calendar/lectures.html",  
                 "Lectures,Seminars,Conferences");
 
 barArray[4]= new BarClass(4,  
                 "/immunology/images/calendar1.gif", 
   		         "/immunology/images/calendar2.gif",
		         "/immunology/images/calendar3.gif",
		         "/immunology/calendar.html",  
                 "Department Calendar");
 				 
barArray[5] = new BarClass(5, 
                 "/immunology/images/positions1.gif", 
   		         "/immunology/images/positions2.gif",
  		         "/immunology/images/positions3.gif",
		         "/immunology/positions.html",
                 "Research Positions");
					 
 
barArray[6]= new BarClass(6,  
                 "/immunology/images/search1.gif", 
   		         "/immunology/images/search2.gif",
		         "/immunology/images/search3.gif",
		         "/immunology/search.html",  
                 "Search Our Site"); 
	 				 
barArray[7]= new BarClass(7,  
                 "/immunology/images/home1.gif", 
  		         "/immunology/images/home2.gif",
		         "/immunology/images/home3.gif",
		         "/immunology/",  
                 "Immunology Home Page");

barArray[8]= new BarClass(8,  
                 "/immunology/images/weizhome1.gif", 
  		         "/immunology/images/weizhome2.gif",
		         "/immunology/images/weizhome3.gif",
		         "/",  
                 "Weizmann Home Page"); 
				 
				 
}	

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

