/* 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, 
                "buttons/btn_about1.gif",  //default image file
	         "buttons/btn_about2.gif",  //image for mouseOn
                 "buttons/btn_about3.gif",  //image for selected category 
                 "contact.html",    //the link for bar#1
                 "About Us");   //alt tag    
							  
barArray[2] = new BarClass(2,  
                 "buttons/btn_faculty1.gif",   
		 "buttons/btn_faculty2.gif",
                 "buttons/btn_faculty3.gif",
		 "faculty.html", 
                 "Faculty and Staff");

barArray[3] = new BarClass(3, 
                 "buttons/btn_sactiv1.gif",
		 "buttons/btn_sactiv2.gif",
		 "buttons/btn_sactiv3.gif", 
		 "sc_activities.html",
                 "Scientific Activities");

barArray[4] = new BarClass(4, 
                 "buttons/btn_res_facilit1.gif", 
   		 "buttons/btn_res_facilit2.gif",
  		 "buttons/btn_res_facilit3.gif",
		 "facilities.html",
                 "Research Facilities");
					 
barArray[5] = new BarClass(5, 
                 "buttons/btn_commis1.gif", 
   		 "buttons/btn_commis2.gif",
  		 "buttons/btn_commis3.gif",
	 
	     "euro.html", 
                 "European Commission");
				 
 
barArray[6]= new BarClass(6,  
                 "buttons/btn_positions1.gif", 
  		 "buttons/btn_positions2.gif",
		 "buttons/btn_positions3.gif",
		 "positions.html",  
                 "Research Positions");
				 
	 barArray[7]= new BarClass(7,  
                 "buttons/btn_home1.gif", 
   		 "buttons/btn_home2.gif",
		 "buttons/btn_home3.gif",
		 "index.html",  
                 "Submicron Home");

barArray[8]= new BarClass(8,  
                 "buttons/btn_wishome1.gif", 
  		 "buttons/btn_wishome2.gif",
		 "buttons/btn_wishome3.gif",
		 "/",  
                 "Weizmann Home");
				 
barArray[9]= new BarClass(9,  
                 "buttons/btn_search1.gif", 
  		 "buttons/btn_search2.gif",
		 "buttons/btn_search3.gif",
		 "search.html",  
                 "Search");
}	

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

