/* 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/but_resc1.gif",  //default image file
	           "images/but_resc2.gif",  //image for mouseOn
               "images/but_resc3.gif",  //image for selected category 
               "research.html",    //the link for bar#1
               "Research Projects");   //alt tag    
							  
barArray[2] = new BarClass(2,  
              "images/but_group1.gif",   
		      "images/but_group2.gif",
              "images/but_group3.gif",
		      "group.html", 
              "Group Members");

barArray[3] = new BarClass(3, 
              "images/but_pub1.gif",
		      "images/but_pub2.gif",
		      "images/but_pub3.gif", 
		      "publications.html",
              "Publications");

barArray[4] = new BarClass(4, 
              "images/but_pers1.gif", 
   		      "images/but_pers2.gif",
  		      "images/but_pers3.gif",
		      "cv.html",
              "Curriculum Vitae");
					 
barArray[5] = new BarClass(5, 
             "images/but_links1.gif", 
   		     "images/but_links2.gif",
  		     "images/but_links3.gif",
	 	     "links.html", 
             "Useful Links");
	
}	

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

