

//-----------------------------------------------------------------

// NavClass Method - function setBarArray()

//         creates bar instances with correct settings for each bar in Vertical navagation bar

//-----------------------------------------------------------------

function setBarArray()	

{
	barArray[1] = new BarClass(1,"home", 

                 "/AERI/images/btn_home1.gif",  //default image file
	             "/AERI/images/btn_home2.gif",  //image for mouseOn
                 "/AERI/images/btn_home3.gif",  //image for selected category 
                 "/AERI/home.html",    //the link for bar#1
                 "Home");   //alt tag    

barArray[2] = new BarClass(2,"overview", 

                 "/AERI/images/btn_callp1.gif",  //default image file
	             "/AERI/images/btn_callp2.gif",  //image for mouseOn
                 "/AERI/images/btn_callp3.gif",  //image for selected category 
                 "/AERI/proposals.html",    //the link for bar#1
                 "proposals");   //alt tag   

barArray[3] = new BarClass(3,"structure", 

                 "/AERI/images/btn_structure1.gif",  //default image file
	             "/AERI/images/btn_structure2.gif",  //image for mouseOn
                 "/AERI/images/btn_structure3.gif",  //image for selected category 
                 "/AERI/structure.html",    //the link for bar#1
                 "Structure");   //alt tag   
	
/*barArray[4] = new BarClass(4,"donors", 

                 "/AERI/images/btn_donors1.gif",  //default image file
	             "/AERI/images/btn_donors2.gif",  //image for mouseOn
                 "/AERI/images/btn_donors3.gif",  //image for selected category 
                 "/AERI/donors.html"	,    //the link for bar#1
                 "Donors");   //alt tag */

/*barArray[4] = new BarClass(4,"recipients", 

                 "/AERI/images/btn_recip1.gif",  //default image file
	             "/AERI/images/btn_recip2.gif",  //image for mouseOn
                 "/AERI/images/btn_recip3.gif",  //image for selected category 
                 "/AERI/recipients.html"	,    //the link for bar#1
                 "Recipients");   //alt tag  */ 

	barArray[4] = new BarClass(4,"research", 

                 "/AERI/images/btn_res1.gif",  //default image file
	             "/AERI/images/btn_res2.gif",  //image for mouseOn
                 "/AERI/images/btn_res3.gif",  //image for selected category 
                 "/AERI/research.html",    //the link for bar#1
                 "Ongoing Research");   //alt tag    


barArray[5]= new BarClass(5,"events",  
              "/AERI/images/btn_events1.gif",
		      "/AERI/images/btn_events2.gif",
		      "/AERI/images/btn_events3.gif", 
		      "/AERI/calendar/lectures.html",
              "Events");	

barArray[6]= new BarClass(6,"presentations",  
              "/AERI/images/btn_present1.gif",
		      "/AERI/images/btn_present2.gif",
		      "/AERI/images/btn_present3.gif", 
		      "/AERI/presentations.html",
              "Presentations");	

barArray[7] = new BarClass(7,"links",  

              "/AERI/images/btn_links1.gif",   
		      "/AERI/images/btn_links2.gif",
              "/AERI/images/btn_links3.gif",
		      "/AERI/links.html", 
              "Links");


}	



//-----------------------------------------------------------------

// function initNav(): Set the parameter numOfBars to total number of the Vertical bars (icon-images)

//-----------------------------------------------------------------

function initNav() { 

  var numOfBars= 7 ;

  var  topHtml='';

  var  botHtml=' ';



topHtml += '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>' ;

topHtml += '<td width="135" align="left" valign="top">' ;
 topHtml += '<table width="135" border="0" cellspacing="0" cellpadding="0"> <tr>' ;
topHtml += '<td><img src="/AERI/images/spacer.gif" width="135" height="33"></td>  </tr>' ;



  botHtml += '</table></td><td width="21" height="352" align="left" valign="top"><img src="/AERI/images/bar.gif" width="21" height="352"></td>';

  botHtml += '<td align="left" valign="top" width="100%">';	 


 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

}

 

function writeHeader() {

 document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0">');
 document.write('<tr>');
 document.write('<td width="204" height="119" align="left" valign="top" rowspan="2"><img src="/AERI/images/logo.gif" width="204" height="119"></td>');
document.write('<td width="144" height="73" align="left" valign="top"><img src="/AERI/images/aeri.gif" alt="AERI" width="144" height="73" ></td>');
 document.write('<td width="100%" align="left" valign="top" background="/AERI/images/bg_r.gif"><img src="/AERI/images/wave.gif" width="318" height="73"></td>');
 document.write('<td width="259" height="73" align="right" valign="top"><a href="/"><img src="/AERI/images/wis.gif" alt="Weizmann Institute of Science" width="259" height="73" border="0"></a></td>');
 document.write('</tr><tr>');
 document.write('<td width="100%" height="40" align="left" valign="top" colspan="3"><img src="/AERI/images/text.gif" width="593" height="40"></td>');
 document.write('</tr><tr>');
 document.write('<td height="21" colspan="4" align="left" valign="top"><img src="/AERI/images/3r.gif" width="577" height="21"></td>');
 document.write('</tr></table>');	
	}



function writeFooter() {

document.write('</td></tr>');
document.write('<tr><td colspan="2">&nbsp;</td><td valign="bottom"><hr></td></tr>');
//document.write('<p><hr>');

document.write('<tr><td colspan="2" >&nbsp;</td><td  valign = "bottom" align="center"><font size="-1">Comments and suggestions to <a href="mailto:adi.eingal@weizmann.ac.il">Adi Ein Gal Bar Nahum</a>');
document.write('<br>Tel: 08-934-6429 &nbsp; Fax: 08-934-4138 ');

document.write('<br>Last Updated: ');

document.write(document.lastModified);

document.write('</font></td></tr>');
}



//Closes the table for teh navigation bar

function closeAll() {

	document.write('</table>'); 



  }	

  

