

/*  
   Files:       /javascript/NavGen.js  SetInt.js  SetExt.js  hCommittee.js   HeadFoot.js
   Dir: /WWW/httpd/htdocs/acadaff/javascript....                                  
 
   This file:      hCommittee.js  

    Set the array of icons
     for each image in the Horizontal navigator bar, replace the corresponding
     image source files and the corresponding link file/url
*/  

//-----------------------------------------------------------------
// Generic function - sethorBarArray()
//     creates - bar instances with correc settings for each bar
//     sets - global barArray to store the bar instances (for images-value and etc.) of BarClass 
//           is initialized for horizontal (varied) bar images in h...app_type.js     (normally loc:  horPtr(30) to 60 allocated for horizontal bar)
 //      BarArray = new Array( horPtr + 30 );  // defined in NavGen.js - global horBarArray to store images
//-----------------------------------------------------------------
function setHorBarArray()	
{	
  //horBarArray = new Array(this.numOfBars);  // create  horBarArray to store images

  barArray[horPtr +1] = new BarClass(horPtr +1,   "people",
                 "images/people1.gif",   
		      "images/people1.gif",
              "images/people2.gif",
		      "people.html", 
              "People");   //alt tag    
							  
 barArray[horPtr +2] = new BarClass(horPtr +2,   "research",
              "images/research1.gif", 
   		      "images/research1.gif",
  		      "images/research2.gif",
		      "research.html",
              "research");

 barArray[horPtr +3]= new BarClass(horPtr +3,  "seminars",
             "images/seminars1.gif", 
   		     "images/seminars1.gif",
 		     "images/seminars2.gif",
	 	     "seminars.html", 
             "Seminars & Colloquia");
 
barArray[horPtr +4]= new BarClass(horPtr +4,  "workshops",
             "images/workshops1.gif", 
   		     "images/workshops1.gif",
 		     "images/workshops2.gif",
	 	     "workshops.html", 
             "Workshops");
 	 
barArray[horPtr +5]= new BarClass(horPtr +5, "students",
              "images/students1.gif", 
   		     "images/students1.gif",
 		     "images/students2.gif",
	 	     "students.html", 
             "students & postdocs"); 

barArray[horPtr +6]= new BarClass(horPtr +6, "hiring",
              "images/hiring1.gif", 
   		     "images/hiring1.gif",
 		     "images/hiring2.gif",
	 	     "hiring.html", 
             "Hiring"); 

barArray[horPtr +7]= new BarClass(horPtr +7, "home",
			 "images/home1.gif", 
   		     "images/home1.gif",
 		     "images/home2.gif",
	 	     "index.html", 
             "Home"); 
 	 

}	

//-----------------------------------------------------------------
// step 3.b: - set the parameter numOfBars to total number of the bars (images)
//                - set the top and bottom html code required for the navigation design
//-----------------------------------------------------------------
 function initHorNav() { 
  var numOfBars= 7;
  //var NavLenLimit= horPtr + numOfHorBars;
  var  topHtml ='';
  
  
  var  botHtml ='';
  //var closeHtml  = ' ';
// top html  for comity  
  topHtml += '<tr>' ;
  topHtml += '<td rowspan="2" width="161" valign="top" bgcolor="#23c2c1">' ;
  topHtml += '<img src="images/accel.gif" border="0" width="161">' ;
 topHtml += ' </td>' ;
 topHtml += ' <td align="center" valign="top" width="100%" height="43" background="/physics/images/navbg.gif"><table cellpadding="0" cellspacing="0" border="0" height="43"><tr>' ;
 
  //hor comity bot:
  botHtml += '</tr></table></td></tr><tr><td height="100%" valign="top">'  ;
 

  //closeHtml += ''  ;, closeHtml
  horNav= new NavClass(horPtr + numOfBars, topHtml, botHtml);  //the parameter - number of the bars in the navagation bar 
  setHorBarArray();             //fill barAray with images
}

 
 
//-----------------------------------------------------------------
//  closeAll global function
//-----------------------------------------------------------------
//Closes the table/page for the navigation bar
function closeAll(closeHt) {
	document.write('</td></tr></table>'); 
  }	



