/* 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[0] = new BarClass(1, 
                "/localimages/1x1_pixel.gif",  //default image file
	         "/localimages/1x1_pixel.gif",  //image for mouseOn
                 "/localimages/1x1_pixel.gif",  //image for selected category 
                 "",    //the link for bar#1
                 "");   //alt tag    

barArray[1] = new BarClass(1, 
                "/chemphys/Frydman_group/images/fryd_home.gif",  //default image file
	         "/chemphys/Frydman_group/images/fryd_home_2.gif",  //image for mouseOn
                 "/chemphys/Frydman_group/images/fryd_home_3.gif",  //image for selected category 
                 "/chemphys/Frydman_group/home.html",    //the link for bar#1
                 "Home");   //alt tag    
							  
barArray[2] = new BarClass(2,  
                 "/chemphys/Frydman_group/images/group_members.gif",   
		 "/chemphys/Frydman_group/images/group_members_2.gif",
                 "/chemphys/Frydman_group/images/group_members_3.gif",
		 "/chemphys/Frydman_group/members.html", 
                 "Group Members");
				 
barArray[3] = new BarClass(3,  
                 "/chemphys/Frydman_group/images/research_1.gif",   
		 "/chemphys/Frydman_group/images/research_2.gif",
                 "/chemphys/Frydman_group/images/research_3.gif",
		 "/chemphys/Frydman_group/research.html", 
                 "Research");

barArray[4] = new BarClass(4, 
                "/chemphys/Frydman_group/images/publications.gif",   
		 "/chemphys/Frydman_group/images/publications_2.gif",
                 "/chemphys/Frydman_group/images/publications_3.gif",
		 "/chemphys/Frydman_group/publications.html", 
                 "Publications");

barArray[5] = new BarClass(5, 
                "/chemphys/Frydman_group/images/gallery1.gif",   
		 "/chemphys/Frydman_group/images/gallery2.gif",
                 "/chemphys/Frydman_group/images/gallery3.gif",
		 "/chemphys/Frydman_group/photos/gallery.html", 
                 "Photo Gallery");

barArray[6] = new BarClass(6, 
                 "/chemphys/Frydman_group/images/visitor_1.gif",   
		 "/chemphys/Frydman_group/images/visitor_2.gif",
                 "/chemphys/Frydman_group/images/visitor_3.gif",
		 "/chemphys/Frydman_group/visitor.html", 
                 "Visitor Information");
					 


				 

}	

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

