/*  
 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,"home", 
                 "/ISMS/images/btn_home1.gif",  //default image file
	             "/ISMS/images/btn_home2.gif",  //image for mouseOn
                 "/ISMS/images/btn_home3.gif",  //image for selected category 
                 "/ISMS/",    //the link for bar#1
                 "Home");   //alt tag    
							  
barArray[2]= new BarClass(2,"about",  
              "/ISMS/images/btn_about1.gif",
		      "/ISMS/images/btn_about2.gif",
		      "/ISMS/images/btn_about3.gif", 
		      "/ISMS/about.html",
              "About Us");

barArray[3] = new BarClass(3,"meetings",  
              "/ISMS/images/btn_meet1.gif",   
		      "/ISMS/images/btn_meet2.gif",
              "/ISMS/images/btn_meet3.gif",
		      "/ISMS/meetings.html", 
              "Meetings");

barArray[4]= new BarClass(4,"board",  
              "/ISMS/images/btn_board1.gif",
		      "/ISMS/images/btn_board2.gif",
		      "/ISMS/images/btn_board3.gif", 
		      "/ISMS/board.html",
              "Board");


barArray[5]= new BarClass(5,"awards",  
              "/ISMS/images/btn_aw1.gif",
		      "/ISMS/images/btn_aw2.gif",
		      "/ISMS/images/btn_aw3.gif", 
		      "/ISMS/awards.html",
              "Awards");

	barArray[6]= new BarClass(6,"links",  
              "/ISMS/images/btn_links1.gif",
		      "/ISMS/images/btn_links2.gif",
		      "/ISMS/images/btn_links3.gif", 
		      "/ISMS/links.html",
              "Links");
	
	
	
	barArray[7]= new BarClass(7,"charter",  
              "/ISMS/images/btn_charter1.gif",
		      "/ISMS/images/btn_charter2.gif",
		      "/ISMS/images/btn_charter3.gif", 
		      "/ISMS/Takanon.pdf",
              "Contact Us");
			  
			  
	barArray[8]= new BarClass(8,"contact",  
              "/ISMS/images/btn_cont1.gif",
		      "/ISMS/images/btn_cont2.gif",
		      "/ISMS/images/btn_cont3.gif", 
		      "/ISMS/contact.html",
              "Contact Us");
	
	
}	


//-----------------------------------------------------------------
// function initNav(): Set the parameter numOfBars to total number of the Vertical bars (icon-images)
//-----------------------------------------------------------------
function initNav() { 
  var numOfBars= 8 ;
  var  topHtml='';
  var  botHtml=' ';

topHtml += '<table width="100%"  height="100%" border="0" cellspacing="0" cellpadding="0">' ;
topHtml += '<tr><td width="127" height="100%" align="left" valign="top">' ;  
topHtml += '<img src="/ISMS/images/sh3.jpg" width="127" height="77">' ;  
topHtml += '<table width="127"  border="0" align="left" cellpadding="0" cellspacing="0" background="/ISMS/images/bc_nav.jpg">' ;
  

  
 
  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"> <tr>');
document.write('<td width="127" height="89" align="left" valign="top" rowspan="2"><img src="/ISMS/images/shar_t.gif" width="127" height="89"></td>');
document.write('<td align="left" valign="top" rowspan="2"><img src="/ISMS/images/l2.gif" width="102" height="89"></td>');
document.write('<td width="100%" background="/ISMS/images/tbto_bc.gif" ><img src="/ISMS/images/tbto_bc.gif" width="3" height="53"></td>');
document.write('<td width="132" height="89" align="right" valign="top" rowspan="2"><img src="/ISMS/images/rght.gif" width="132" height="89"></td>');
document.write('</tr><tr> ');
document.write('<td background="/ISMS/images/bc_bot.gif"><img src="/ISMS/images/title.gif" width="505" height="36"></td>');
document.write('</tr></table>');

}

function writeFooter() {

document.write('<hr width="100%">');
document.write('<table width="100%">');
document.write('<tr>');
document.write('<td width="80%" align="left">');
document.write('<font size="-1" color="#2c486b">Comments and suggestions to ');
document.write('<a href="mailto:tamirim@netvision.net.il">tamirim@netvision.net.il</a>');
document.write('&nbsp;&nbsp;Tel/Fax: (972)-(0)-89265791; (972)-(0)-526232722');
document.write('</font>');
document.write('</td>');
document.write('<td align="right" width="20%"><font size="-1" color="2c486b">Last Updated: ');
document.write (document.lastModified);
document.write('</font></td></tr>');
document.write('</table>');
}

//Closes the table for teh navigation bar
function closeAll() {
	document.write('</td></tr></table>'); 

  }	
  
