

/*  
   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",
                 "/math/profile/images/people1.gif",  //default image file
	             "/math/profile/images/people1.gif",  //image for mouseOn
                 "/math/profile/images/people2.gif",  //image for selected category 
                 "/math/profile/people-profile.html",    //the link for bar#1
                 "The Poeple");   //alt tag    
							  
 barArray[horPtr +2] = new BarClass(horPtr +2,   "research",
              "/math/profile/images/research1.gif",   
		      "/math/profile/images/research1.gif",
              "/math/profile/images/research2.gif",
		      "/math/profile/research-profile.html", 
              "The Research");

 barArray[horPtr +3]= new BarClass(horPtr +3,  "centers",
              "/math/profile/images/centers1.gif",
		      "/math/profile/images/centers1.gif",
		      "/math/profile/images/centers2.gif", 
		      "/math/profile/centers-profile.html",
              "Centers & Laboratories");
 	 
barArray[horPtr +4]= new BarClass(horPtr +4, "scientists",
              "/math/profile/images/scientists1.gif", 
   		      "/math/profile/images/scientists1.gif",
  		      "/math/profile/images/scientists2.gif",
		      "/math/profile/scient-profile.html",
              "The Scientists"); 
 	 

}	

//-----------------------------------------------------------------
// 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= 4;
  var  topHtml ='';
  var  botHtml =' ';
  //var closeHtml  = ' ';
// top html  for comity  
  topHtml += '' ;
 
  //hor comity bot:
  botHtml += ''  ;
 

  //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>'); 
  }	



