/* 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,"home",
              "/plants/pimages/home1.gif",   
		      "/plants/pimages/home1.gif",
              "/plants/pimages/home2.gif",
		      "/plants/noy/index.html", 
              "Home");
 	 
barArray[2] = new BarClass(2,"research",
              "/plants/pimages/research1.gif", 
   		      "/plants/pimages/research1.gif",
  		      "/plants/pimages/research2.gif",
		      "/plants/noy/research.html",
              "research"); 
 
barArray[3]= new BarClass(3,"publications",
             "/plants/pimages/publications1.gif", 
   		     "/plants/pimages/publications1.gif",
 		     "/plants/pimages/publications2.gif",
	 	     "/plants/noy/publications.html", 
             "publications");

barArray[4]= new BarClass(4,"positions",
             "/plants/pimages/positions1.gif", 
   		     "/plants/pimages/positions1.gif",
 		     "/plants/pimages/positions2.gif",
	 	     "/plants/noy/positions.html", 
             "Research Positions");





}	

//-----------------------------------------------------------------
// step 3.b: Set the parameter numOfBars to total number of the bars (/plants/pimages)
//-----------------------------------------------------------------
function initNav() { 
  var numOfBars= 4
  ;
  var  topHtml='';
  var  botHtml=' ';

 topHtml += '' ;
// botHtml += '<img src="/plants/pimages/navbottom.gif">';
  //hor comity bot:
  //botHtml += '<p><form method="post" action="/cgi-bin/htsearch">';
//botHtml += '<input type=hidden name=restrict value="/plants/pimages/" >';
//botHtml += '<input type=hidden name=exclude value="">';
//botHtml += '<img src="images/search.gif" width="55" height="17"> <input type="text" name="words">';    
//botHtml += '<input type=hidden name=method value=or >';
//botHtml += '<input type=hidden name=format value=builtin-long >';
//botHtml += '</form>';

 


 theNav= new NavClass(numOfBars, topHtml, botHtml);  //the parameter - number of the bars in the navagation bar 
  setBarArray();             //fill barAray with /plants/pimages          //fill barAray with /plants/pimages
}
 
 

