/* 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, 
               "images/btn_SNP1.gif",  //default image file
	           "images/btn_SNP2.gif",  //image for mouseOn
               "images/btn_SNP3.gif",  //image for selected category 
               "genotyping.html",    //the link for bar#1
               "SNP based genotyping");   //alt tag    
							  
barArray[2] = new BarClass(2,  
              "images/btn_monogenic1.gif",   
		      "images/btn_monogenic2.gif",
              "images/btn_monogenic3.gif",
              "monogenic_diseases.html", 
              "Monogenic diseases");

barArray[3] = new BarClass(3, 
              "images/btn_sequencing1.gif",
		      "images/btn_sequencing2.gif",
		      "images/btn_sequencing3.gif", 
		      "genomic_sequencing.html",
              "Genomic sequencing");

barArray[4] = new BarClass(4, 
              "images/btn_complex1.gif", 
   		      "images/btn_complex2.gif",
  		      "images/btn_complex3.gif",
		      "complex_diseases.html",
              "Complex diseases");
					 
barArray[5] = new BarClass(5, 
             "images/btn_links1.gif", 
   		     "images/btn_links2.gif",
  		     "images/btn_links3.gif",
	 	     "links.html", 
             "Links");

barArray[6] = new BarClass(6, 
             "images/btn_publication1.gif", 
   		     "images/btn_publication2.gif",
  		     "images/btn_publication3.gif",
	 	     "publication.html", 
             "Publications");
			 
barArray[7] = new BarClass(7, 
             "images/btn_staff1.gif", 
   		     "images/btn_staff2.gif",
  		     "images/btn_staff3.gif",
	 	     "staff.html", 
             "Staff");
	
barArray[8] = new BarClass(8, 
             "images/btn_home1.gif", 
   		     "images/btn_home2.gif",
  		     "images/btn_home3.gif",
	 	     "index.html", 
             "Home");		 
}	

//-----------------------------------------------------------------
// step 3.b: Set the parameter numOfBars to total number of the bars (images)
//-----------------------------------------------------------------
function initNav() { 
  var numOfBars= 8;
  barArray = new Array(numOfBars);  // create global barArray to store images
  theNav= new NavClass(numOfBars);  //the parameter - number of the bars in the navagation bar 
  theNav.setBarArray();             //fill barAray with images
}
 
 
 
 

