/* 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,  
                 "/Chemical_Research_Support/surflab/images/electron1.gif",   
		 "/Chemical_Research_Support/surflab/images/electron1.gif",
                 "/Chemical_Research_Support/surflab/images/electron2.gif",
		 "/Chemical_Research_Support/surflab/electron.html", 
                 "Electron Spectroscopy");
				 
barArray[2] = new BarClass(2,  
                 "/Chemical_Research_Support/surflab/images/scanning1.gif",   
		 "/Chemical_Research_Support/surflab/images/scanning1.gif",
                 "/Chemical_Research_Support/surflab/images/scanning2.gif",
		 "/Chemical_Research_Support/surflab/scanning.html", 
                 "Scanning Probe Microscopy");

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

barArray[4] = new BarClass(4, 
                 "/Chemical_Research_Support/surflab/images/links1.gif",   
		 "/Chemical_Research_Support/surflab/images/links1.gif",
                 "/Chemical_Research_Support/surflab/images/links2.gif",
		 "/Chemical_Research_Support/surflab/links.html", 
                 "Links");
				 
barArray[5] = new BarClass(5, 
                 "/Chemical_Research_Support/surflab/images/scheduling1.gif",   
		 "/Chemical_Research_Support/surflab/images/scheduling1.gif",
                 "/Chemical_Research_Support/surflab/images/scheduling2.gif",
		 "http://oracle-web.weizmann.ac.il/pls/app/allindex", 
                 "Scheduling Work");
					 
barArray[6] = new BarClass(6, 
                 "/Chemical_Research_Support/surflab/images/contact1.gif",   
		 "/Chemical_Research_Support/surflab/images/contact1.gif",
                 "/Chemical_Research_Support/surflab/images/contact2.gif",
		 "/Chemical_Research_Support/surflab/contact.html", 
                 "Contact Us");
				 
 
barArray[7]= new BarClass(7,  
                 "/Chemical_Research_Support/surflab/images/home1.gif",   
		 "/Chemical_Research_Support/surflab/images/home1.gif",
                 "/Chemical_Research_Support/surflab/images/home2.gif",
		 "/Chemical_Research_Support/surflab/index.html", 
                 "Home");
				 


				 

}	

//-----------------------------------------------------------------
// 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
}
 
 
 
 

