/* 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, 
                 "/chemphys/tannor/images/home-1.jpg",  //default image file
	             "/chemphys/tannor/images/home-2.jpg",  //image for mouseOn
                 "/chemphys/tannor/images/home-3.jpg",  //image for selected category 
                 "home.html",       //the link for bar#1
                 "Home");
barArray[2] = new BarClass(2, 
                 "/chemphys/gov/images/CV-1.jpg",  //default image file
	             "/chemphys/gov/images/CV-2.jpg",  //image for mouseOn
                 "/chemphys/gov/images/CV-3.jpg",  //image for selected category 
                 "CV.html",       //the link for bar#1	
                 "CV");						  
barArray[3] = new BarClass(3,  
                 "/chemphys/tannor/images/ri-1.jpg",  //default image file
	             "/chemphys/tannor/images/ri-2.jpg",  //image for mouseOn
                 "/chemphys/tannor/images/ri-3.jpg",  //image for selected category
		         "research.html",
                 "Research Interests");
barArray[4] = new BarClass(4, 
                 "/chemphys/tannor/images/publ-1.jpg", 
   		         "/chemphys/tannor/images/publ-2.jpg",
  		         "/chemphys/tannor/images/publ-3.jpg",
		         "publications.html",
                 "Publications");
barArray[5] = new BarClass(5,  
                 "/chemphys/tannor/images/group-1.jpg",  //default image file
	             "/chemphys/tannor/images/group-2.jpg",  //image for mouseOn
                 "/chemphys/tannor/images/group-3.jpg",  //image for selected category
		         "group.html",
                 "Group Members");
barArray[6] = new BarClass(6, 
                 "/chemphys/tannor/images/links-1.jpg",
		         "/chemphys/tannor/images/links-2.jpg",
		         "/chemphys/tannor/images/links-3.jpg", 
		         "links.html",
                 "Useful Links");
barArray[7]= new BarClass(7,  
                 "/chemphys/tannor/images/cp-1.jpg", 
   		         "/chemphys/tannor/images/cp-2.jpg",
		         "/chemphys/tannor/images/cp-2.jpg",
		         "/chemphys/",
                 "Chemical Physics Department");
barArray[8]= new BarClass(8,  
                 "/chemphys/tannor/images/wis-1.jpg", 
   		         "/chemphys/tannor/images/wis-2.jpg",
		         "/chemphys/tannor/images/wis-2.jpg",
		         "http://www.weizmann.ac.il",
                 "Weizmann Institute of Science"); 

}	

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

