/*  

 This file is a template file for setting of Vertical Navigation Bars



  The Vertical bar setting is done by initializing values into the pre defined barArray  in NavGen: :    

        - bar Array  is used and  is initialized for VERTICAL  bar  images  from loaction 0 up-to  30

        - bar Array  is used and  is initialized for HORIZONTAL  bar images in from location 31 up-to  60



   the declaration in NavGen.js is  

            var horPtr = 30 ;       // the location and the allocation  of the Horizontal bars starts in barAry at location 31

                                               //    therefore we set the horPtr as 30     

          barArray = new Array(horPtr +30);  // create global barArray to store images for verical and horizontal bars

                                                                   //  this is equal to say BarArray = new Array(60 ); 



*/  

/*  Set the array of icons

     for each image in the Vertical navigator bar, replace the corresponding

     image source files and the corresponding link file/url

*/  

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

// NavClass Method - function setBarArray()

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

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

function setBarArray()	

{	

  barArray[1] = new BarClass(1,"general", 

                 "/conferences/physbioworkshop/images/btn_general1.gif",  //default image file

	             "/conferences/physbioworkshop/images/btn_general2.gif",  //image for mouseOn

                 "/conferences/physbioworkshop/images/btn_general3.gif",  //image for selected category 

                 "/conferences/physbioworkshop/general.html",    //the link for bar#1

                 "General Info");   //alt tag    

							  

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

              "/conferences/physbioworkshop/images/btn_spons1.gif",   

		      "/conferences/physbioworkshop/images/btn_spons2.gif",

              "/conferences/physbioworkshop/images/btn_spons3.gif",

		      "/conferences/physbioworkshop/sponsors.html", 

              "Sponsors");



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

              "/conferences/physbioworkshop/images/btn_program1.gif",

		      "/conferences/physbioworkshop/images/btn_program2.gif",

		      "/conferences/physbioworkshop/images/btn_program3.gif", 

		      "/conferences/physbioworkshop/program.html",

              "Program");



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

              "/conferences/physbioworkshop/images/btn_registr1.gif",

		      "/conferences/physbioworkshop/images/btn_registr2.gif",

		      "/conferences/physbioworkshop/images/btn_registr3.gif", 

		  //    "http://www.weizmann.ac.il/perl/physbio.mperl?submit=reg",
		  
	   	     "/conferences/physbioworkshop/registration.html",

              "Registration");

	

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

              "/conferences/physbioworkshop/images/btn_abstract1.gif",

		      "/conferences/physbioworkshop/images/btn_abstract2.gif",

		      "/conferences/physbioworkshop/images/btn_abstract3.gif", 

		      "/conferences/physbioworkshop/abstracts.html",

              "Abstracts");

	 

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

              "/conferences/physbioworkshop/images/btn_speak1.gif",

		      "/conferences/physbioworkshop/images/btn_speak2.gif",

		      "/conferences/physbioworkshop/images/btn_speak3.gif", 

		      "/conferences/physbioworkshop/speakers.html",

              "Speakers");

	 

	 

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

              "/conferences/physbioworkshop/images/btn_home1.gif",

		      "/conferences/physbioworkshop/images/btn_home2.gif",

		      "/conferences/physbioworkshop/images/btn_home3.gif", 

		      "/conferences/physbioworkshop/",

              "Home");

}	





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

// 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">' ;

topHtml += '<tr><td width="163" align="left" valign="top">' ;  

topHtml += '<table width="163"  border="0" cellspacing="0" cellpadding="0">' ;



 topHtml += '<tr><td height="88"><img src="/conferences/physbioworkshop/images/nav_undertop.jpg" width="163" height="88"></td>' ;



  

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

botHtml += '<td align="left" valign="top" height="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" cellpadding="0" cellspacing="0" bgcolor="#153a67" >');
document.write('<tr>');
 document.write('<td width="163" height="163" rowspan="3" align="left" valign="top"><img src="/conferences/physbioworkshop/images/bsaf_top.jpg" width="163" height="163"></td>');
document.write('<td width="367" height="72" align="left" valign="top"><img src="/conferences/physbioworkshop/images/btitleu.gif" width="367" height="72"></td>');
 document.write('<td align="left" valign="top" background="/conferences/physbioworkshop/images/bcstrech.jpg"><img src="/conferences/physbioworkshop/images/bcstrech.jpg" width="11" height="72"></td>');
 document.write('<td width="163" height="72" align="right" valign="top"><img src="/conferences/physbioworkshop/images/byel_erit.gif" width="162" height="72"></td>');
document.write( '<td width="165" height="126" rowspan="2" align="right" valign="top"><img src="/conferences/physbioworkshop/images/bright_l.jpg" width="165" height="126"></td>');
document.write('</tr>');
 document.write('<tr>');
 document.write('<td align="left" valign="top" colspan="3"><img src="/conferences/physbioworkshop/images/btitleb.gif" width="542" height="54"></td>');
 document.write('</tr>');
 document.write('<tr>');
 document.write('<td width="367" height="36" align="left" valign="top" ><img src="/conferences/physbioworkshop/images/bbcpas.jpg" width="367" height="36"></td>');
 document.write('<td  align="right" valign="top" colspan="3"><img src="/conferences/physbioworkshop/images/bbotright.gif" width="327" height="36"></td>');
 document.write('</tr>');
document.write('</table>');



//document.write('<table width="100%" height="132"  border="0" cellpadding="0" cellspacing="0" background="/conferences/physbioworkshop/images/bc_head.jpg"><tr>');
 // document.write('<td width="163" height="132" align="left" valign="top" rowspan="2"><img src="/conferences/physbioworkshop/images/saf_top.jpg" width="163" height="132" alt="Zfat"></td>');
 //document.write('<td width="369" height="120" align="left" valign="top"><a href="/conferences/physbioworkshop/"><img src="/conferences/physbioworkshop/images/title.gif" width="369" height="120" alt="Physics of Biological Matter" border="0"></a></td>');
 //document.write('<td width="100%"></td>'); 
// document.write('<td width="163" height="120" align="right" valign="top"><img src="/conferences/physbioworkshop/images/yel_erit.gif" width="163" height="120" alt="July 23-28, 2006"></td>');
// document.write('<td width="165" height="120" align="right" valign="top"><img src="/conferences/physbioworkshop/images/right_l.jpg" width="165" height="120"></td>');
 //document.write('</tr><td width="100%" align="right" valign="top" height="12" colspan="5" bgcolor="#FBF8E0"><img src="/conferences/physbioworkshop/images/right_red.gif" width="101" height="12"></td>'); 
 //document.write('</tr></table>');

}



function writeFooter() {

document.write ('<hr>');
document.write ('<blockquote>');
document.write ('<center>');
document.write('<font size="-1">Comments and Suggestions: <a href="mailto:nir.gov@weizmann.ac.il?subject=Physics of Biological Matter Safed Summer Workshop">nir.gov@weizmann.ac.il</font></a>');
document.write('<br>');
document.write('<font size="-1">Last Updated: ');
document.write (document.lastModified);
document.write('</font>');
document.write ('</center>');
document.write ('</blockquote>');

}



//Closes the table for teh navigation bar

function closeAll() {

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



  }	

