/* 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, 
                           "/~eran/personal/home1.gif",   
                           "/~eran/personal/home1.gif",
                           "/~eran/personal/home2.gif",
                           "index.html", 
                           "Home");
				 	
barArray[2] = new BarClass(2, 
                           "/~eran/personal/biography1.gif",   
                           "/~eran/personal/biography1.gif",
                           "/~eran/personal/biography2.gif",
                           "biography.html", 
                           "Biography");
				 	
barArray[3] = new BarClass(3, 
                           "/~eran/personal/mygroup1.gif",   
                           "/~eran/personal/mygroup1.gif",
                           "/~eran/personal/mygroup2.gif",
                           "http://genie.weizmann.ac.il", 
                           "My Group");
				 	
barArray[4] = new BarClass(4, 
                           "/~eran/personal/publications1.gif",   
                           "/~eran/personal/publications1.gif",
                           "/~eran/personal/publications2.gif",
                           "http://genie.weizmann.ac.il/pubs/pubsall.html", 
                           "Publications");
}	

//-----------------------------------------------------------------
// 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
}
 
 
 
 

