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

barArray[3]= new BarClass(3,  
                 "/condmat/images/events1.jpg", 
   		 "/condmat/images/events2.jpg",
		 "/condmat/images/events3.jpg",
		 "/condmat/calendar/lectures.html",  
                 "Events: Lectures,Seminars,Conferences");
 				 
barArray[4] = new BarClass(4, 
                 "/condmat/images/positions1.jpg", 
   		 "/condmat/images/positions2.jpg",
  		 "/condmat/images/positions3.jpg",
		 "/condmat/positions.html",
                 "Research Positions");

barArray[5] = new BarClass(5, 
                 "/condmat/images/vissci1.jpg", 
   		 "/condmat/images/vissci2.jpg",
  		 "/condmat/images/vissci3.jpg",
		 "/condmat/visitingScientists.shtml",
                 "Visiting Scientists");
					 

barArray[6]= new BarClass(6,  
                 "/condmat/images/experimental1.jpg", 
   		 "/condmat/images/experimental2.jpg",
		 "/condmat/images/experimental3.jpg",
		 "/condmat/expgroups.html",  
                 "Experimental Research Groups");
 			 				 				 
barArray[7]= new BarClass(7,  
                 "/condmat/images/theoretical1.jpg", 
   		 "/condmat/images/theoretical2.jpg",
		 "/condmat/images/theoretical3.jpg",
		 "/condmat/theogroups.html",  
                 "Theoretical Research Groups");
 			 				 							 

/*barArray[7]= new BarClass(7,  
                 "/condmat/images/astrophys1.jpg", 
   		 "/condmat/images/astrophys2.jpg",
		 "/condmat/images/astrophys3.jpg",
		 "/astrophysics/",  
                 "The Astrophysics Group");*/

barArray[8]= new BarClass(8,  
                 "/condmat/images/submicron1.jpg", 
   		 "/condmat/images/submicron2.jpg",
		 "/condmat/images/submicron2.jpg",
		 "/smc/",  
                 "The Braun Submicron Center");
 			 	 
barArray[9]= new BarClass(9,  
                 "/condmat/images/search1.jpg", 
   		 "/condmat/images/search2.jpg",
		 "/condmat/images/search3.jpg",
		 "/condmat/search.html",  
                 "Search Our Site");
	 				 
barArray[10]= new BarClass(10,  
                 "/condmat/images/cmhome1.jpg", 
  		 "/condmat/images/cmhome2.jpg",
		 "/condmat/images/cmhome3.jpg",
		 "/condmat/",  
                 "Condensed Matter Home Page");

barArray[11]= new BarClass(11,  
                 "/condmat/images/weizhome1.jpg", 
  		 "/condmat/images/weizhome2.jpg",
		 "/condmat/images/weizhome2.jpg",
		 "/",  
                 "Weizmann Home Page");
				 
				 
}	

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

