/* 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, 
                "/math/images/people1.gif",  //default image file
	         "/math/images/people2.gif",  //image for mouseOn
                 "/math/images/people3.gif",  //image for selected category 
                 "/math/people.shtml",    //the link for bar#1
                 "People");   //alt tag   

barArray[2] = new BarClass(2, 
                "/math/images/research1.gif",   
		 "/math/images/research2.gif",
                 "/math/images/research3.gif",
		 "/math/research.shtml", 
                 "Research");
							  
barArray[3] = new BarClass(3, 
                "/math/images/seminars1.gif",   
		 "/math/images/seminars2.gif",
                 "/math/images/seminars3.gif",
		 "/math/events.shtml", 
                 "Seminars and Events");

barArray[4] = new BarClass(4, 
                 "/math/images/courses1.gif",   
		 "/math/images/courses2.gif",
                 "/math/images/courses3.gif",
		 "http://erez.weizmann.ac.il/pls/htmldb/f?p=186:20",
                 "Courses");

barArray[5] = new BarClass(5, 
                 "/math/images/postdocs1.gif",   
		 "/math/images/postdocs2.gif",
                 "/math/images/postdocs3.gif",
		 "/math/postdoc.shtml", 
                 "Postdocs and Degrees");
barArray[6] = new BarClass(6,  
                 "/math/images/moross1.gif",   
		 "/math/images/moross2.gif",
                 "/math/images/moross3.gif",
		 "http://www.wisdom.weizmann.ac.il/~vered/moross/Moross.html", 
                 "Contact");

barArray[7] = new BarClass(7,  
                 "/math/images/contact1.gif",   
		 "/math/images/contact2.gif",
                 "/math/images/contact3.gif",
		 "/math/contact.shtml", 
                 "Contact");
				 
barArray[8]= new BarClass(8,  
                "/math/images/links1.gif",   
		 "/math/images/links2.gif",
                 "/math/images/links3.gif",
		 "/math/links.shtml", 
                 "Links");
	 
 barArray[9]= new BarClass(9,  
                "/math/images/profile1.gif",   
		 "/math/images/profile2.gif",
                 "/math/images/profile3.gif",
		 "/math/profile/", 
                 "Profile");

barArray[10]= new BarClass(10,  
                "/math/images/home1.gif",   
		 "/math/images/home2.gif",
                 "/math/images/home3.gif",
		 "/math/index.shtml", 
                 "Math Home");
				 

}	

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

