/* 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_Services/molfit/images/btn_pub1.gif",  //default image
	         "/Chemical_Services/molfit/images/btn_pub2.gif",  //image for mouseOn
            "/Chemical_Services/molfit/images/btn_pub3.gif",  // selected category 
                 "/Chemical_Services/molfit/publications.html",  //the link 
                 "Publications");   //alt tag    
							  
barArray[2] = new BarClass(2,  
                 "/Chemical_Services/molfit/images/btn_dwn1.gif",   
		 "/Chemical_Services/molfit/images/btn_dwn2.gif",
               "/Chemical_Services/molfit/images/btn_dwn3.gif",
		 "/Chemical_Services/molfit/downloads.html", 
                 "Download");

barArray[3] = new BarClass(3, 
         "/Chemical_Services/molfit/images/btn_gr1.gif",
		 "/Chemical_Services/molfit/images/btn_gr2.gif",
		 "/Chemical_Services/molfit/images/btn_gr3.gif", 
		 "/Chemical_Services/molfit/group.html",
                 "Current Group Members");
				 
barArray[4] = new BarClass(4, 
          "/Chemical_Services/molfit/images/btn_fq1.gif",
		 "/Chemical_Services/molfit/images/btn_fq2.gif",
		 "/Chemical_Services/molfit/images/btn_fq3.gif", 
		 "/Chemical_Services/molfit/faqs.html",
                 "Current Group Members");
				 

barArray[5] = new BarClass(5, 
          "/Chemical_Services/molfit/images/btn_home1.gif", 
   		 "/Chemical_Services/molfit/images/btn_home2.gif",
  		 "/Chemical_Services/molfit/images/btn_home3.gif",
		"/Chemical_Services/molfit/home.html",
                 "Home Molfit");

}	

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

