/* 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, "research", 
                 "/neurobiology/labs/tsodyks/images/research1.gif",   
		 "/neurobiology/labs/tsodyks/images/research2.gif",
                 "/neurobiology/labs/tsodyks/images/research3.gif",
		 "/neurobiology/labs/tsodyks/", 
                 "Research");
				 
barArray[2] = new BarClass(2, "publication", 
                 "/neurobiology/labs/tsodyks/images/pub1.gif",   
		 "/neurobiology/labs/tsodyks/images/pub2.gif",
                 "/neurobiology/labs/tsodyks/images/pub3.gif",
		 "/neurobiology/labs/tsodyks/publications.html", 
                 "Publications");

barArray[3] = new BarClass(3, "people", 
                "/neurobiology/labs/tsodyks/images/people1.gif",   
		 "/neurobiology/labs/tsodyks/images/people2.gif",
                 "/neurobiology/labs/tsodyks/images/people3.gif",
		 "/neurobiology/labs/tsodyks/people.html", 
                 "People");

barArray[4] = new BarClass(4,"links",  
                 "/neurobiology/labs/tsodyks/images/links1.gif",   
		 "/neurobiology/labs/tsodyks/images/links2.gif",
                 "/neurobiology/labs/tsodyks/images/links3.gif",
		 "/neurobiology/labs/tsodyks/links.html", 
                 "Links");

barArray[5] = new BarClass(5,"internal",  
                 "/neurobiology/labs/tsodyks/images/internal1.gif",   
		 "/neurobiology/labs/tsodyks/images/internal2.gif",
                 "/neurobiology/labs/tsodyks/images/internal3.gif",
		 "/neurobiology/labs/tsodyks/internal.html", 
                 "Internal"); 
}	

//-----------------------------------------------------------------
// step 3.b: Set the parameter numOfBars to total number of the bars (images_ph)
//-----------------------------------------------------------------

function initNav() { 
  var numOfBars= 5 ;
  var  topHtml='';
  var  botHtml=' ';

topHtml += '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>' ;
topHtml += '<td align="left" valign="top"><table width="103"  border="0" align="right" cellpadding="0" cellspacing="0">' ;
botHtml += '</table></td>';
botHtml += '<td width="100%" height="100%" valign="top" align="left">';
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 background="/neurobiology/images_ph/headbg.gif">');
document.write('<td width="95"><img src="/neurobiology/images_ph/headleft.gif" width="95" height="43"></td>');
document.write('<td width="243"><a href="/neurobiology/"><img src="/neurobiology/images_ph/dept.gif" width="243" height="43" border="0"></a></td>');
document.write('<td align="right" background="/neurobiology/images_ph/headbg.gif"><img src="/neurobiology/images_ph/wis.gif" width="55" height="43"></td>');
document.write('</tr>');
document.write('</table>');
document.write('<table width="100%"  height="63" border="0" cellspacing="0" cellpadding="0">') ;
document.write('<tr><td width="103" valign="top" align="left"><img src="/neurobiology/images_ph/headbottom.gif" width="95" height="48"></td>') ; 
document.write( '<td valign="top" align="left" height="63"><img src="/neurobiology/labs/tsodyks/images/hands.jpg" width="70" height="59"  border="1" vspace="2">');	 
document.write('<img src="/neurobiology/labs/tsodyks/images/title.gif" width="291" height="63" alt="prof. Misha Tsodyks"></td></tr></table>');
}

function closeAll() { 
  document.write('</td></tr>');
  document.write('</table>');
}	

function writeFooter() {
document.write('<table width="90%" cellpadding="0" cellspacing="0" align="center">');
document.write('<tr height="1" width="100%"><td width="100%" bgcolor="3366cc" height="1"><img src="/neurobiology/images_ph/blue.gif" height="1"></td></tr>');
	 	   document.write('<tr><td class="foot1"><a href="/neurobiology/" >Department of Neurobiology</a><br>');
	   document.write('<a href="/">Weizmann Institute of Science</a><br><br>');
          document.write('<span class="foot1">This file was last modified on ');
document.write (document.lastModified);
document.write('</span>');
document.write('</td></tr></table>');
}
 

