/*  

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

                 "/conferences/QuantumNoise/images/btn_ovw1.gif",  //default image file

	             "/conferences/QuantumNoise/images/btn_ovw2.gif",  //image for mouseOn

                 "/conferences/QuantumNoise/images/btn_ovw1.gif",  //image for selected category 

                 "/conferences/QuantumNoise/overwiev.html",    //the link for bar#1

                 "Overview");   //alt tag  */  

	

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

              "/conferences/QuantumNoise/images/btn_partic1.gif",

		      "/conferences/QuantumNoise/images/btn_partic2.gif",

		      "/conferences/QuantumNoise/images/btn_partic3.gif", 

		      "/conferences/QuantumNoise/participants.html",

              "Participants");



  

							  

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

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

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

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

		      "/conferences/QuantumNoise/program.html",

              "Program");


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

                 "/conferences/QuantumNoise/images/btn_speak1.gif",  //default image file

	             "/conferences/QuantumNoise/images/btn_speak2.gif",  //image for mouseOn

                 "/conferences/QuantumNoise/images/btn_speak3.gif",  //image for selected category 

                 "/conferences/QuantumNoise/speakers.html",    //the link for bar#1

                 "Invited Speakers");   //alt tag   	


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

                 "/conferences/QuantumNoise/images/btn_home1.gif",  //default image file

	             "/conferences/QuantumNoise/images/btn_home2.gif",  //image for mouseOn

                 "/conferences/QuantumNoise/images/btn_home3.gif",  //image for selected category 

                 "/conferences/QuantumNoise/home.html",    //the link for bar#1

                 "Home");   //alt tag   	



}	

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

// function initNav(): Set the parameter numOfBars to total number of the Vertical bars (icon-images)

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

function initNav() { 

  var numOfBars= 4 ;

  var  topHtml='';

  var  botHtml=' ';



topHtml += '<table width="100%"  height="100%" border="0" cellspacing="0" cellpadding="0">' ;

topHtml += '<tr><td width="194" height="18" align="left" valign="top">' ;

topHtml += '<img src="/conferences/QuantumNoise/images/bott.gif" width="194" height="48">' ;

topHtml += '<table  width="194"  border="0" align="left" cellpadding="0" cellspacing="0">' ; 



 



  

 botHtml += '</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%" cellspacing="0" cellpadding="0"><tr>');

document.write('<td width="17" height="148" rowspan="3" align="left" valign="top"><img src="/conferences/QuantumNoise/images/left_pass.gif" width="17" height="148"></td>');

 document.write('<td width="217" height="148" rowspan="3" align="left" valign="top"><img src="/conferences/QuantumNoise/images/laser.jpg" width="217" height="148"></td>');

document.write('<td width="100%" align="right" valign="top" bgcolor="#525252"><img src="/conferences/QuantumNoise/images/wis.gif" width="243" height="52"></td>');

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

 document.write('<td width="100%" align="left" valign="top" bgcolor="#525252"><img src="images/title.gif"></td>');

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

document.write('<td width="100%" align="right" valign="top" background="/conferences/QuantumNoise/images/bc_grey.gif"><img src="images/date.gif" alt="January 5-11, 2008"></td>');

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

}



function writeFooter() {

document.write ('<hr>');
document.write ('<blockquote>');
document.write ('<table><tr>');
document.write ('<td><img src="/conferences/QuantumNoise/images/footer.jpg"</td>');
document.write ('<td width="125">&nbsp;</td>');
document.write('<td><font size="-1">Comments and Suggestions: <a href="mailto:ehud.altman@weizmann.ac.il?subject=Quantum Noise Conference">Ehud Altman</font></a>');
document.write('<br>');
document.write('<font size="-1">Last Updated: ');
document.write (document.lastModified);
document.write('</font>');
document.write ('</td></tr></table>');
document.write ('</blockquote>');

}



//Closes the table for teh navigation bar

function closeAll() {

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



  }	

   var imageNumber=Math.round(Math.random()*3);//change the number according to how many pictures - numbers starts from zero

	function changepic(){

	//document.write("<a href='pages/" + imageNumber + ".shtml'>");

	document.write("<img src='images/" + imageNumber + ".jpg' border='0' width='131' height='162'>");

	//document.write("</a>");

	}	
