/* 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, 
                 "/vs/images/bt_in1.gif",  //default image file
	             "/vs/images/bt_in3.gif",  //image for mouseOn
                 "/vs/images/bt_in2.gif",  //image for selected category 
                 "/vs/overview.html",    //the link for bar#1
                 "Facts & FAQ's");   //alt tag    
							  

barArray[2]= new BarClass(2,  
                 "/vs/images/bt_proc1.gif", 
   		         "/vs/images/bt_proc3.gif",
		         "/vs/images/bt_proc2.gif",
		         "/vs/proc.html",  
                 "Procedure"); 
 

barArray[3] = new BarClass(3,  
                 "/vs/images/bt_bul1.gif",   
		         "/vs/images/bt_bul3.gif",
                 "/vs/images/bt_bul2.gif",
		         "/vs/bulletin/", 
                 "Bulletin Board");


					 
barArray[4] = new BarClass(4, 
                 "/vs/images/bt_mp1.gif", 
   		         "/vs/images/bt_mp3.gif",
  		         "/vs/images/bt_mp2.gif",
		         "/vs/maps.html",
                 "Maps");

barArray[5]= new BarClass(5,  
                 "/vs/images/bt_port1.gif", 
   		         "/vs/images/bt_port2.gif",
				 "/vs/images/bt_port2.gif",
		         "/acadaff/RMP/",  
                 "The Researcher's Mobility Portal Israel"); 
	 				 					 					  
barArray[6]= new BarClass(6,  
                 "/vs/images/bt_s1.gif", 
   		         "/vs/images/bt_s3.gif",
		         "/vs/images/bt_s2.gif",
		         "/vs/search.html",  
                 "Search Our Site"); 
	 				 
barArray[7]= new BarClass(7 ,  
                 "/vs/images/bt_cont1.gif", 
  		         "/vs/images/bt_cont2.gif",
		         "/vs/images/bt_cont3.gif",
		         "/vs/vs_staff.html",  
                 "Visiting Scientists Contact Page");

barArray[8]= new BarClass(8 ,  
                 "/vs/images/bt_h1.gif", 
  		         "/vs/images/bt_h3.gif",
		         "/vs/images/bt_h2.gif",
		         "/vs",  
                 "Visiting Scientists Home Page");

				 
				 
}	

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

