/* 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,  
                 "/complex/uzy/archaeomath/images/research1.gif",   
		 "/complex/uzy/archaeomath/images/research1.gif",
                 "/complex/uzy/archaeomath/images/research2.gif",
		 "/complex/uzy/archaeomath/research.html", 
                 "Research");
				 
barArray[2] = new BarClass(2,  
                 "/complex/uzy/archaeomath/images/group1.gif",   
		 "/complex/uzy/archaeomath/images/group1.gif",
                 "/complex/uzy/archaeomath/images/group2.gif",
		 "/complex/uzy/archaeomath/group.html", 
                 "Group Members");

barArray[3] = new BarClass(3, 
                "/complex/uzy/archaeomath/images/publications1.gif",   
		 "/complex/uzy/archaeomath/images/publications1.gif",
                 "/complex/uzy/archaeomath/images/publications2.gif",
		 "/complex/uzy/archaeomath/publications.html", 
                 "Publications");

barArray[4] = new BarClass(4, 
                 "/complex/uzy/archaeomath/images/profilograph1.gif",   
		 "/complex/uzy/archaeomath/images/profilograph1.gif",
                 "/complex/uzy/archaeomath/images/profilograph2.gif",
		 "/complex/uzy/archaeomath/profilograph.html", 
                 "Profilograph Manual");
				 
barArray[5] = new BarClass(5, 
                 "/complex/uzy/archaeomath/images/abstracts1.gif",   
		 "/complex/uzy/archaeomath/images/abstracts1.gif",
                 "/complex/uzy/archaeomath/images/abstracts2.gif",
		 "/complex/uzy/archaeomath/abstracts.html", 
                 "Abstracts");
					 
barArray[6] = new BarClass(6, 
                 "/complex/uzy/archaeomath/images/links1.gif",   
		 "/complex/uzy/archaeomath/images/links1.gif",
                 "/complex/uzy/archaeomath/images/links2.gif",
		 "/complex/uzy/archaeomath/links.html", 
                 "Links");
 
barArray[7]= new BarClass(7,  
                 "/complex/uzy/archaeomath/images/media1.gif",   
		 "/complex/uzy/archaeomath/images/media1.gif",
                 "/complex/uzy/archaeomath/images/media2.gif",
		 "/complex/uzy/archaeomath/media.html", 
                 "Media");
				 


				 

}	

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

