

function setBarArray()	

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

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

	

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

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

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

              "/mcb/Schuldiner/images/btn_pos1.gif",
		      "/mcb/Schuldiner/images/btn_pos2.gif",
		      "/mcb/Schuldiner/images/btn_pos3.gif", 
		 	  "/perl/display_poscientist.mperl?scientist=462&indir=mcb/Schuldiner&outdir=oren_schuldiner",
              "Research Postions");
	

barArray[4]= new BarClass(4,"publications",  
              "/mcb/Schuldiner/images/btn_pub1.gif",
		      "/mcb/Schuldiner/images/btn_pub2.gif",
		      "/mcb/Schuldiner/images/btn_pub3.gif", 
		      "/mcb/Schuldiner/publications.html",
              "Publications");	


barArray[5]= new BarClass(5,"group",  

              "/mcb/Schuldiner/images/btn_group1.gif",
		      "/mcb/Schuldiner/images/btn_group2.gif",
		      "/mcb/Schuldiner/images/btn_group3.gif", 
		      "/mcb/Schuldiner/group.html",
              "Group Members");


barArray[6]= new BarClass(6,"gallery",  

              "/mcb/Schuldiner/images/btn_gallery1.gif",
		      "/mcb/Schuldiner/images/btn_gallery2.gif",
		      "/mcb/Schuldiner/images/btn_gallery3.gif", 
		      "/mcb/Schuldiner/photos/gallery.html",
              "Photo Gallery");

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

              "/mcb/Schuldiner/images/btn_confocal1.gif",
		      "/mcb/Schuldiner/images/btn_confocal2.gif",
		      "/mcb/Schuldiner/images/btn_confocal3.gif", 
		      "/mcb/Schuldiner/confocal/",
              "Confocal Microscope");

	barArray[8]= new BarClass(8,"members",  

              "/mcb/Schuldiner/images/btn_memb1.gif",
		      "/mcb/Schuldiner/images/btn_memb2.gif",
		      "/mcb/Schuldiner/images/btn_memb1.gif", 
		      "http://www1.weizmann.ac.il/perl/oren_schuldiner_cal.mperl?submit=announce",
              "Members Only"); 



}	



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

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

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

function initNav() { 

  var numOfBars= 8 ;

  var  topHtml='';

  var  botHtml=' ';



topHtml += '<tr><td><table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0"><tr><td width="201">' ;
topHtml += '<table height="100%" width="201" border="0" cellpadding="0" cellspacing="0" background="/mcb/Schuldiner/images/bc_grey.gif">' ;
topHtml += '<tr><td><img src="/mcb/Schuldiner/images/nav_top.jpg" width="201" height="69" /></td></tr>' ;



botHtml += '<tr><td background="/mcb/Schuldiner/images/bc_grey.gif" height="100%">&nbsp;</td></tr>';
botHtml += '<tr><td valign="bottom"><img src="/mcb/Schuldiner/images/nav_end.gif" width="201" height="40" /></td></tr>';
botHtml += '</table></td><td valign="top">';	 


 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%" height="100%" border="0" cellspacing="0" cellpadding="0"><tr><td valign="top" height="175">');
 document.write('<table border="0" cellspacing="0" cellpadding="0" height="175"><tr>');
 document.write('<td width="268" height="148" rowspan="2"><img src="/mcb/Schuldiner/images/logo.jpg" width="268" height="148"></td>');
 document.write('<td height="148" rowspan="2"><img src="/mcb/Schuldiner/images/title.gif" width="378" height="148" rowspan="2"></td>');
 document.write('<td width="100%" height="148" rowspan="2" background="/mcb/Schuldiner/images/bc_green.gif">&nbsp;</td>');
 document.write('<td  align="right" background="/mcb/Schuldiner/images/bc_green.gif"><a href="/"><img src="/mcb/Schuldiner/images/wis.gif" width="256" height="67"></a></td>');
 document.write('</tr><tr>');
 document.write('<td width="326" height="81" align="right" valign="bottom"><img src="/mcb/Schuldiner/images/neiron.jpg" width="326" height="81"></td>');
 document.write('</tr><tr>');
 document.write('<td><img src="/mcb/Schuldiner/images/muh1.gif" width="201" height="27"><img src="/mcb/Schuldiner/images/muh2.gif" width="67" height="27" /></td>');
 document.write('<td colspan="3" align="right"><a href="/mcb"><img src="/mcb/Schuldiner/images/dept.gif" width="313" height="27" /></a></td>');
 document.write('</tr></table></td></tr>');	
	}



function writeFooter() {

document.write('</td></tr></table><tr><td valign="bottom" height="15">'); 
document.write('<hr><font size="-1">Comments and suggestions to <a href="mailto:oren.schuldiner@weizmann.ac.il@weizmann.ac.il">oren.schuldiner@weizmann.ac.il</a>');
 
document.write('<br>Last Updated: ');

document.write(document.lastModified);

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



//Closes the table for teh navigation bar

function closeAll() {

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



  }	

