/*  

 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,"research", 

                 "/immunology/Shakhar/images/btn_proj1.gif",  //default image file

	             "/immunology/Shakhar/images/btn_proj2.gif",  //image for mouseOn

                 "/immunology/Shakhar/images/btn_proj3.gif",  //image for selected category 

                 "/immunology/Shakhar/research.html",    //the link for bar#1

                 "Research Projects");   //alt tag    

							  

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

              "/immunology/Shakhar/images/btn_cv1.gif",   

		      "/immunology/Shakhar/images/btn_cv2.gif",

              "/immunology/Shakhar/images/btn_cv3.gif",

		      "/immunology/Shakhar/cv.html", 

              "CV");





 

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

              "/immunology/Shakhar/images/btn_pub1.gif",   

		      "/immunology/Shakhar/images/btn_pub2.gif",

              "/immunology/Shakhar/images/btn_pub3.gif",

		      "/immunology/Shakhar/publications.html", 

              "Publications");

 

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

              "/immunology/Shakhar/images/btn_pos1.gif",   

		      "/immunology/Shakhar/images/btn_pos2.gif",

              "/immunology/Shakhar/images/btn_pos3.gif",

		     	 	     "/perl/display_poscientist.mperl?scientist=443&indir=/immunology/Shakhar&outdir=Shakhar", 

             "Research Positions");

 

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

              "/immunology/Shakhar/images/btn_images1.gif",   

		      "/immunology/Shakhar/images/btn_images2.gif",

              "/immunology/Shakhar/images/btn_images3.gif",

		      "/immunology/Shakhar/images.html", 

              "Images");

 

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

              "/immunology/Shakhar/images/btn_mov1.gif",   

		      "/immunology/Shakhar/images/btn_mov2.gif",

              "/immunology/Shakhar/images/btn_mov3.gif",

		      "/immunology/Shakhar/movies.html", 

              "Movies");
 


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

              "/immunology/Shakhar/images/btn_lres1.gif",   

		      "/immunology/Shakhar/images/btn_lres2.gif",

              "/immunology/Shakhar/images/btn_lres3.gif",

		      "/immunology/Shakhar/resources.html", 

              "Lab Resources");



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

              "/immunology/Shakhar/images/lab_members1.gif",

                      "/immunology/Shakhar/images/lab_members2.gif",

              "/immunology/Shakhar/images/lab_members3.gif",

                      "/immunology/Shakhar/lab.html",

              "labmembers");

	





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

              "/immunology/Shakhar/images/btn_home1.gif",   

		      "/immunology/Shakhar/images/btn_home2.gif",

              "/immunology/Shakhar/images/btn_home3.gif",

		      "/immunology/Shakhar/", 

              "Home");

	

}	





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

// function initNav(): Set the parameter numOfBars to total number of the Vertical bars (icon-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="201" align="left" valign="top">' ;  

topHtml += '<table width="201" border="0" cellspacing="0" cellpadding="0" valign="top">' ;

topHtml += '<tr valign="top"><td><img src="/immunology/Shakhar/images/nav_top.gif" width="148" height="38"></td></tr>' ;  



  

  botHtml += '<tr><td width="201" align="left" valign="top"><img src="/immunology/Shakhar/images/nav_top.gif" width="148" height="38"></td></tr>' ;

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

  botHtml += '<td width="100%" 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" cellspacing="0" cellpadding="0">');

document.write('<tr background="/immunology/Shakhar/images/bc_tb.gif">');

document.write('<td width="113" height="81" align="left" valign="top"><img src="/immunology/Shakhar/images/top_l.jpg" width="113" height="81"></td>');

document.write('<td width="92" height="81" align="left" valign="top"><img src="/immunology/Shakhar/images/top_2.gif" width="61" height="81"></td>');

document.write('<td width="100%" align="left" valign="top" background="/immunology/Shakhar/images/bc_tb.gif"><img src="/immunology/Shakhar/images/title.gif" width="212" height="81"></td>');

document.write('<td width="167" height="71" align="right" valign="top" background="/immunology/Shakhar/images/bc_tb.gif"><a href="/"><img src="/immunology/Shakhar/images/wis.gif" width="167" height="71" border="0"></a>&nbsp;</td>');

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

document.write('<tr>');



document.write('<td colspan="2" align="left" valign="top"><a href="/immunology/"><img src="/immunology/Shakhar/images/dept.gif" width="148" height="45" border="0"></a></td>');

document.write('<td colspan="2" align="left" valign="top">&nbsp;&nbsp;<img src="/immunology/Shakhar/images/st_name.gif" width="668" height="42"></td>');

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

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

}



function writeFooter() {





document.write('<p></p><hr><font size="-1">');

document.write('<img src="/immunology/Shakhar/images/emailsmall2.gif" alt="email" valign="bottom">');

document.write('<br>Last Updated: ');

document.write(document.lastModified);

document.write('</font>');

}



//Closes the table for teh navigation bar

function closeAll() {

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



  }	


