/* 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/group-1.jpg",  //default image file
	         "images/group-2.jpg",  //image for mouseOn
                 "images/group-3.jpg",  //image for selected category 
                 "home.html",       //the link for bar#1
                 "The Group");
barArray[2] = new BarClass(2, 
                 "images/ron-1.jpg",  //default image file
	         "images/ron-2.jpg",  //image for mouseOn
                 "images/ron-3.jpg",  //image for selected category 
                 "ron.html",       //the link for bar#1	
                 "Professor Ron Naaman");						  
barArray[3] = new BarClass(3,  
                 "images/people-1.jpg",   
		 "images/people-2.jpg",
                 "images/people-3.jpg",
		 "people.html",
                 "Group Members");

barArray[4] = new BarClass(4, 
                 "images/cr-1.jpg",
		 "images/cr-2.jpg",
		 "images/cr-3.jpg", 
		 "cr.html",
                 "Current Research");
barArray[5] = new BarClass(5, 
                 "images/collab-1.jpg",
		 "images//collab-2.jpg",
		 "images//collab-3.jpg", 
		 "collaborations.html",
                 "Collaborations");
barArray[6] = new BarClass(6, 
                 "images/publ-1.jpg", 
   		 "images/publ-2.jpg",
  		 "images/publ-3.jpg",
		 "publications.html",
                 "Recent Publications");
					 
barArray[7]= new BarClass(7,  
                 "images/cp-1.jpg", 
   		 "images/cp-2.jpg",
		 "images/cp-3.jpg",
		 "/chemphys/",
                 "Chemical Physics Department");
 

}	

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

