/* 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,"home", 
                 "/molgen/Sorek/images/btn_home1.gif",  //default image file
	             "/molgen/Sorek/images/btn_home2.gif",  //image for mouseOn
                 "/molgen/Sorek/images/btn_home3.gif",  //image for selected category 
                 "/molgen/Sorek/",    //the link for bar#1
                 "Home");   //alt tag    
							  
 barArray[2] = new BarClass(2,"research",  
              "/molgen/Sorek/images/btn_research1.gif",   
		      "/molgen/Sorek/images/btn_research2.gif",
              "/molgen/Sorek/images/btn_research3.gif",
		      "/molgen/Sorek/research.html", 
              "Research");

 barArray[3]= new BarClass(3,"group",  
              "/molgen/Sorek/images/btn_group1.gif",
		      "/molgen/Sorek/images/btn_group2.gif",
		      "/molgen/Sorek/images/btn_group3.gif", 
		      "/molgen/Sorek/group.html",
              "Group Members");
 
 barArray[4] = new BarClass(4, "publications",
              "/molgen/Sorek/images/btn_pub1.gif", 
   		      "/molgen/Sorek/images/btn_pub2.gif",
  		      "/molgen/Sorek/images/btn_pub3.gif",
		      "/molgen/Sorek/publications.html",
              "Publications "); 
 
/* barArray[5] = new BarClass(5, "gallery",
              "/molgen/Sorek/images/btn_gallery1.gif", 
   		      "/molgen/Sorek/images/btn_gallery2.gif",
  		      "/molgen/Sorek/images/btn_gallery3.gif",
		      "/molgen/Sorek/photos/gallery.html",
              "Photo Gallery"); */
 	 
barArray[5] = new BarClass(5, "resouces",
              "/molgen/Sorek/images/btn_res1.gif", 
   		      "/molgen/Sorek/images/btn_res2.gif",
  		      "/molgen/Sorek/images/btn_res3.gif",
		      "/molgen/Sorek/resources.html",
              "Resources"); 
 
barArray[6]= new BarClass(6, "members",
             "/molgen/Sorek/images/btn_members1.gif", 
   		     "/molgen/Sorek/images/btn_members2.gif",
  		     "/molgen/Sorek/images/btn_members3.gif",
	 	     "/molgen/Sorek/members/contact.html", 
             "Members Only");
	 				 

	
}	

function initNav() { 
  var numOfBars= 6 ;
  var  topHtml='';
  var  botHtml=' ';
topHtml += '<table width="100%" border="0" cellpadding="0" cellspacing="0" >' ;
topHtml += '<tr><td width="212" align="left" valign="top"><table width="212" border="0" cellspacing="0" cellpadding="0"><tr>' ;
topHtml += ' <td align="left" valign="top"><img src="/molgen/Sorek/images/nav_top.gif" width="139" height="51"></td>' ;   


 botHtml += '</td></tr></table>' ;

 botHtml += '</td><td width="100%" align="LEFT" 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%" border="0" cellpadding="0" cellspacing="0" background="/molgen/Sorek/images/bc_dark.jpg"><tr>');
 document.write('<td width="145" height="117" align="left" valign="top" rowspan="2"><img src="/molgen/Sorek/images/genom.jpg" width="145" height="117"></td>');
document.write('<td  width="185" height="48" align="left" valign="top"><img src="/molgen/Sorek/images/bct_top.jpg" width="185" height="48"></td>');
document.write('<td width="46" height="117" rowspan="2" align="left" valign="top"><img src="/molgen/Sorek/images/vshad.jpg" width="46" height="117"></td>');
document.write('<td width="319" height="48" align="left" valign="top"><img src="/molgen/Sorek/images/red.gif" width="89" height="48"></td>');
document.write('<td width="100%"  height="48" rowspan="2" align="left" valign="top"></td>');
document.write('<td width="236" height="48" align="right" valign="top"><img src="/molgen/Sorek/images/wis.gif" width="236" height="48"></td>');
document.write('<td width="117" height="48" align="right" valign="top" rowspan="2"><img src="/molgen/Sorek/images/rbact.gif" width="48" height="117"></td>');
document.write('</tr><tr>');
document.write('<td width="185" height="69" align="left" valign="top"><img src="/molgen/Sorek/images/shad.jpg" width="185" height="69"></td>');
document.write('<td align="left" valign="top"><img src="/molgen/Sorek/images/title.gif" width="319" height="69"></td>');
document.write('<td width="236" height="69" align="right" valign="top"><img src="/molgen/Sorek/images/bbact.jpg" width="129" height="69"></td>');
document.write('</tr></table>');
document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>');
document.write('<td width="388" height="59" align="left" valign="top" ><img src="/molgen/Sorek//images/wave.gif" width="388" height="59"></td>');
document.write('<td width="100%" background="/molgen/Sorek/images/bc_2tc.gif">&nbsp;</td>');
 document.write('</tr></table>');
  
} 
  
  
function writeFooter() {

document.write('<hr><div align="left"><font color="#1C3664" size="-1">Comments and suggestions to <a href="mailto:rotem.sorek@weizmann.ac.il">rotem.sorek@weizmann.ac.il</a>&nbsp;&nbsp<br>');
document.write('Last Updated: ');
document.write(document.lastModified);
document.write('&nbsp;&nbsp;</font></div>');


}

function closeAll() {


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


}

