/* 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, 
                 "images/home1.gif",  //default image file
	         "images/home2.gif",  //image for mouseOn
                 "images/home3.gif",  //image for selected category 
                 "home.html",       //the link for bar#1
                 "Averbukh group Home");

barArray[2] = new BarClass(2, 
                 "images/ilya1.gif",
		 "images/ilya2.gif",
		 "images/ilya3.gif", 
		 "averbukh.html",
                 "Ilya Averbukh");
							  
barArray[3] = new BarClass(3,  
                 "images/res_proj.gif",   
		 "images/res_proj_2.gif",
                 "images/res_proj_3.gif",
		 "research.html",
                 "Research Projects");

barArray[4]= new BarClass(4,  
                 "images/group_members.gif", 
   		 "images/group_members_2.gif",
		 "images/group_members_3.gif",
		 "people.html",
                 "Group Members");
 

barArray[5]= new BarClass(5,  
                 "images/chemphys_home.gif", 
   		 "images/chemphys_home_2.gif",
		 "images/chemphys_home_3.gif", 
		 "/chemphys/",
                 "Chemical Physics Department");

barArray[6]=new BarClass(6, 
                 "images/weiz_home.gif", 
	         "images/weiz_home_2.gif",
   		 "images/weiz_home_3.gif", 
		 "http://www.weizmann.ac.il/",
                 "Weizmann Institute Home");
}	

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

