/* 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,"Search",
              "/acadaff/images/btn_search1.gif",   
		      "/acadaff/images/btn_search2.gif",
              "/acadaff/images/btn_search3.gif",
		      "/acadaff/searches.html", 
              "Online Searches");
 
 
barArray[2] = new BarClass(2,"AcadResearch",
                 "/acadaff/images/btn_acadres1.gif",  //default image file
	             "/acadaff/images/btn_acadres2.gif",  //image for mouseOn
                 "/acadaff/images/btn_acadres3.gif",  //image for selected category 
                 "/acadaff/academic_positions.html",    //the link for bar#1
                 "Academic Staff Tenure Tracks");   //alt tag    

barArray[3] = new BarClass(3,"Intern Positions",
                 "/acadaff/images/btn_isip1.gif",  
	             "/acadaff/images/btn_isip2.gif",  
                 "/acadaff/images/btn_isip3.gif", 
                 "/acadaff/intern_senior_positions.html",   
                 "Academic Positions (non Tenured)");      

 barArray[4]= new BarClass(4,"Appointments",
              "/acadaff/images/btn_appoint1.gif",
		      "/acadaff/images/btn_appoint2.gif",
		      "/acadaff/images/btn_appoint3.gif", 
		      "/acadaff/appointments-promotions.html",
              "Appointments & Promotions");
 	 
barArray[5] = new BarClass(5,"Current",
              "/acadaff/images/btn_resact1.gif", 
   		      "/acadaff/images/btn_resact2.gif",
  		      "/acadaff/images/btn_resact3.gif",
		      "/acadaff/Current_Research/",
              "Current Research Activities"); 
 
barArray[6]= new BarClass(6,"Honors",
             "/acadaff/images/btn_honors1.gif", 
   		     "/acadaff/images/btn_honors2.gif",
  		     "/acadaff/images/btn_honors3.gif",
	 	     "/acadaff/prizes.html", 
             "Honors and Prizes");
	 				 
barArray[7]= new BarClass(7,"SciAct",
             "/acadaff/images/btn_scact1.gif", 
   		     "/acadaff/images/btn_scact2.gif",
  		     "/acadaff/images/btn_scact3.gif",
	 	     "/acadaff/Scientific_Activities/", 
             "Scientific Activities");
	 				 

	 				 
	 				 
barArray[8]= new BarClass(8,"Lectures",
             "/acadaff/images/btn_lect1.gif", 
   		     "/acadaff/images/btn_lect2.gif",
  		     "/acadaff/images/btn_lect3.gif",
	 	     "/acadaff/weizmann/", 
             "Weizmann Memorial Lectures");



barArray[9]= new BarClass(9,   "CP",
             "/acadaff/images/btn_profcouncil1.gif", 
   		     "/acadaff/images/btn_profcouncil2.gif",
  		     "/acadaff/images/btn_profcouncil3.gif",
	 	     "/acadaff/CP/Council_Professor_home.html",
             "Council of Professors ");

barArray[10]= new BarClass(10,   "SC",
             "/acadaff/images/btn_sicouncil1.gif", 
   		     "/acadaff/images/btn_sicouncil2.gif",
  		     "/acadaff/images/btn_sicouncil3.gif",
	 	     "/acadaff/SC/Scientific_Council_home.html",
             "Scientific Council ");



barArray[11]= new BarClass(11,   "European",
             "/acadaff/images/btn_ccod1.gif", 
   		     "/acadaff/images/btn_ccod2.gif",
  		     "/acadaff/images/btn_ccod3.gif",
	 	     "/acadaff/European_Researchers.html",
             "Charter and Code for Researchers");

barArray[12]= new BarClass(12,   "Portal",
             "/acadaff/images/btn_mportal1.gif", 
   		     "/acadaff/images/btn_mportal2.gif",
  		     "/acadaff/images/btn_mportal3.gif",
	 	     "/acadaff/RMP/",
             "Researchers in Motion (euraxess)");

barArray[13]= new BarClass(13,"VisitingProf",
             "/acadaff/images/btn_vsprof1.gif", 
   		     "/acadaff/images/btn_vsprof2.gif",
  		     "/acadaff/images/btn_vsprof3.gif",
	 	     "/acadaff/visiting.html", 
             "Visiting Scientists (Funding Programs)");



barArray[14]= new BarClass(14,"Restricted",
             "/acadaff/images/btn_access1.gif", 
   		     "/acadaff/images/btn_access2.gif",
  		     "/acadaff/images/btn_access3.gif",
	 	     "/perl/acadaff.mperl", 
             "Weizmann Only");	

}	

//-----------------------------------------------------------------
// step 3.b: Set the parameter numOfBars to total number of the bars (images)
//-----------------------------------------------------------------
function initNav() { 
  var numOfBars= 14;
  var  topHtml='';
  var  botHtml=' ';
topHtml += '<table width="100%"  border="0" cellspacing="0" cellpadding="0">' ;
  topHtml += '<tr><td width="196" align="left" valign="top">' ;
  topHtml += '<table width="196" border="0" cellspacing="0" cellpadding="0">' ; 	
  topHtml += '<tr><td><img src="/acadaff/images/nav_top.gif" width="196" height="39"></td></tr>' ;
  
  botHtml += '<tr><td width="196" height="79" align="left" valign="top"><img src="/acadaff/images/nav_bot.gif" width="196" height="43"></td>' ;
  botHtml += '</tr></table>';
  botHtml += '</td>';			
  botHtml += '<td valign="top"><img src="/acadaff/images/vert_ten_bar.jpg" width="15" height="492"></td>';
  botHtml += '<td align="left" valign="top"><br>';
  botHtml +='<div align="right">';
botHtml +='<a href="/cgi-bin/print_nonav.pl?home=home.html">Printer friendly version</a>&nbsp;&nbsp;&nbsp;<br>';
botHtml +='</div>';
  

 theNav= new NavClass(numOfBars, topHtml, botHtml);  //the parameter - number of the bars in the navagation bar 
  setBarArray();             //fill barAray with images          //fill barAray with images
}
 
 

