/* 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/intro-1.jpg",  //default image file
	         "images/intro-2.jpg",  //image for mouseOn
                 "images/intro-3.jpg",  //image for selected category 
                 "Intro.html",       //the link for bar#1
                 "Introduction");
barArray[2] = new BarClass(2, 
                 "images/tc-1.jpg",  //default image file
	         "images/tc-2.jpg",  //image for mouseOn
                 "images/tc-3.jpg",  //image for selected category 
                 "table.html",       //the link for bar#1	
                 "Table of contents");						  
barArray[3] = new BarClass(3,  
                 "images/anim-1.jpg",  //default image file
	         "images/anim-2.jpg",  //image for mouseOn
                 "images/anim-3.jpg",  //image for selected category
		 "animation.html",
                 "Animations According to Chapters");
barArray[4] = new BarClass(4, 
                 "images/dt-1.jpg",
		 "images/dt-2.jpg",
		 "images/dt-3.jpg", 
		 "http://www.weizmann.ac.il/chemphys/tannor",
                 "David Tannor's Home Page");

}	

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

