/* 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,"sponsors", 
                 "/conferences/ETMJ/images/btn_spon1.gif",  //default image file
	             "/conferences/ETMJ/images/btn_spon2.gif",  //image for mouseOn
                 "/conferences/ETMJ/images/btn_spon3.gif",  //image for selected category 
                 "/conferences/ETMJ/sponsors.html",    //the link for bar#1
                 "Sponsors");   //alt tag    
							  
 barArray[2] = new BarClass(2,"speakers",  
              "/conferences/ETMJ/images/btn_speak1.gif",   
		      "/conferences/ETMJ/images/btn_speak2.gif",
              "/conferences/ETMJ/images/btn_speak3.gif",
		      "/conferences/ETMJ/speakers.html", 
              "Speakers");
 
 barArray[3] = new BarClass(3,"participants",  
              "/conferences/ETMJ/images/btn_particip1.gif",   
		      "/conferences/ETMJ/images/btn_particip2.gif",
              "/conferences/ETMJ/images/btn_particip3.gif",
		      "/conferences/ETMJ/participants.html", 
              "Speakers");

 barArray[4]= new BarClass(4,"program",  
              "/conferences/ETMJ/images/btn_prog1.gif",
		      "/conferences/ETMJ/images/btn_prog2.gif",
		      "/conferences/ETMJ/images/btn_prog3.gif", 
		      "/conferences/ETMJ/program.html",
              "Program");
 
 barArray[5]= new BarClass(5,"registration",  
              "/conferences/ETMJ/images/btn_reg1.gif",
		      "/conferences/ETMJ/images/btn_reg2.gif",
		      "/conferences/ETMJ/images/btn_reg3.gif", 
		      "/conferences/ETMJ/registration.html",
              "Registration");
 	 	 
 barArray[6] = new BarClass(6, "committee",
              "/conferences/ETMJ/images/btn_com1.gif", 
   		      "/conferences/ETMJ/images/btn_com2.gif",
  		      "/conferences/ETMJ/images/btn_com3.gif",
		      "/conferences/ETMJ/committee.html",
              "Commitee"); 
 
 barArray[7]= new BarClass(7, "venue",
             "/conferences/ETMJ/images/btn_ven1.gif", 
   		     "/conferences/ETMJ/images/btn_ven2.gif",
  		     "/conferences/ETMJ/images/btn_ven3.gif",
	 	     "/conferences/ETMJ/venue.html", 
             "Venue");
	 				 
 barArray[8]= new BarClass(8,"news",  
             "/conferences/ETMJ/images/btn_news1.gif", 
   		     "/conferences/ETMJ/images/btn_news2.gif",
  		     "/conferences/ETMJ/images/btn_news3.gif",
	 	     "/conferences/ETMJ/news.html", 
             "News");
	
 barArray[9]= new BarClass(9,"home",  
             "/conferences/ETMJ/images/btn_home1.gif", 
   		     "/conferences/ETMJ/images/btn_home2.gif",
  		     "/conferences/ETMJ/images/btn_home3.gif",
	 	     "/conferences/ETMJ/", 
             "Home");
	
	
}	


//-----------------------------------------------------------------
// step 3.b: Set the parameter numOfBars to total number of the bars (/astrophysics/images)
//-----------------------------------------------------------------
function initNav() { 
  var numOfBars= 9 ;
  var  topHtml='';
  var  botHtml=' ';
topHtml += '<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">' ;
topHtml += '<tr><td width="138" align="left" valign="top">' ;  
topHtml += '<table width="138"  border="0" cellspacing="0" cellpadding="0">' ;   
  

 

  botHtml += '<tr><td><img src="/conferences/ETMJ/images/spacer.gif" width="1" height="138"></td>' ;
  botHtml += '</tr></table>';
  
  botHtml += '</td><td width="5" height="352" align="left" valign="top"><img src="/conferences/ETMJ/images/bar.gif" width="5" height="352"></td>' ;
  botHtml += '</td><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>');
document.write('<td width="231" height="122" rowspan="2" align="left" valign="top"><img src="/conferences/ETMJ/images/logo.gif" alt="ETMJ 2005" width="231" height="122"></td>');
document.write('<td width="256" height="81" align="left" valign="top"><img src="images/title.gif" alt="Electron Transport in Molecular Junctions" width="256" height="81"></td>');
document.write('<td background="images/bc_head.gif"><img src="images/spacer.gif" width="1" height="81"></td>');
document.write('<td width="313" height="81" align="right" valign="top"><img src="images/north.gif" width="313" height="81"></td>');
document.write('</tr><tr>');
document.write('<td><img src="images/spacer.gif" width="256" height="41"></td>');
document.write('<td>&nbsp;</td>');
document.write('<td  height="41" align="right" valign="top"><img src="images/sept.gif" alt="September 18-22" width="263" height="25"></td>');
document.write('</tr></table>');
  }
 
  
  
function writeFooter() {
document.write('<table><tr><td align="left">');
document.write('<img src="images/footerlong.gif" alt="Sponsors">');
document.write('</td></tr>');

document.write('<tr><td align="left">');
document.write('<p></p><font size="-1">Contact Information: <a href="mailto:roby.tsabary@weizmann.ac.il?subject=ETMJ Seminar">roby.tsabary@weizmann.ac.il</a>');
document.write('<br>Last Updated: ');
document.write(document.lastModified);
document.write('</font>');
document.write('</td>');
document.write('</tr>');



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

function closeAll(closeHt) {
	
	document.write('</td></tr>');
  document.write('<tr><td colspan="2" valign="bottom">&nbsp;</td>');
    document.write('<td>');
	writeFooter();
	
document.write('</td></tr></table>');
}
