/* 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",
              "/conferences/mathphys/images/home1.gif",   
		      "/conferences/mathphys/images/home2.gif",
              "/conferences/mathphys/images/home3.gif",
		      "/conferences/mathphys/2007/index.html", 
              "Home");
 	 
barArray[2] = new BarClass(2,"program",
              "/conferences/mathphys/images/program1.gif", 
   		      "/conferences/mathphys/images/program2.gif",
  		      "/conferences/mathphys/images/program3.gif",
		      "WIS2007_program.htm",
              "Program"); 
 
barArray[3]= new BarClass(3,"participants",
             "/conferences/mathphys/images/participants1.gif", 
   		     "/conferences/mathphys/images/participants2.gif",
 		     "/conferences/mathphys/images/participants3.gif",
	 	     "/conferences/mathphys/2007/participants.html", 
             "Participants");

barArray[4]= new BarClass(4,"committee",
             "/conferences/mathphys/images/committee1.gif", 
   		     "/conferences/mathphys/images/committee2.gif",
 		     "/conferences/mathphys/images/committee3.gif",
	 	     "/conferences/mathphys/2007/committee.html", 
             "Organizing Committee");

barArray[5]= new BarClass(5,"travel",
             "/conferences/mathphys/images/travel1.gif", 
   		     "/conferences/mathphys/images/travel2.gif",
 		     "/conferences/mathphys/images/travel3.gif",
	 	     "/conferences/mathphys/2007/travel.html", 
             "Travel Information");

barArray[6]= new BarClass(6,"sponsors",
             "/conferences/mathphys/images/sponsors1.gif", 
   		     "/conferences/mathphys/images/sponsors2.gif",
 		     "/conferences/mathphys/images/sponsors3.gif",
	 	     "/conferences/mathphys/2007/sponsors.html", 
             "Sponsors");

barArray[7]= new BarClass(7,"meetings",
             "/conferences/mathphys/images/meetings1.gif", 
   		     "/conferences/mathphys/images/meetings2.gif",
 		     "/conferences/mathphys/images/meetings3.gif",
	 	     "/conferences/mathphys/2007/meetings.html", 
             "Past Meetings");

barArray[8]= new BarClass(8,"links",
             "/conferences/mathphys/images/links1.gif", 
   		     "/conferences/mathphys/images/links2.gif",
 		     "/conferences/mathphys/images/links3.gif",
	 	     "/conferences/mathphys/2007/links.html", 
             "Links");

barArray[9]= new BarClass(9,"cPhoto",
             "/conferences/mathphys/images/cPhoto1.gif", 
   		     "/conferences/mathphys/images/cPhoto2.gif",
 		     "/conferences/mathphys/images/cPhoto3.gif",
	 	     "/conferences/mathphys/2007/WIS07_confphoto.jpg", 
             "Conference Photo");

barArray[10]= new BarClass(10,"gallery",
             "/conferences/mathphys/images/gallery1.gif", 
   		     "/conferences/mathphys/images/gallery2.gif",
 		     "/conferences/mathphys/images/gallery3.gif",
	 	     "http://www.math.princeton.edu/~aizenman/WIS_2007/WIS07_album.html", 
             "gallery");



}	

//-----------------------------------------------------------------
// step 3.b: Set the parameter numOfBars to total number of the bars (/conferences/mathphys/images)
//-----------------------------------------------------------------
function initNav() { 
  var numOfBars= 10
  ;
  var  topHtml='';
  var  botHtml=' ';

 topHtml += '<img src="/conferences/mathphys/images/navtop.gif">' ;
 botHtml += '';
  //hor comity bot:
  //botHtml += '<p><form method="post" action="/cgi-bin/htsearch">';
//botHtml += '<input type=hidden name=restrict value="/conferences/mathphys/" >';
//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 /conferences/mathphys/images          //fill barAray with /conferences/mathphys/images
}
 
 

