/* 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,          "/Biological_Chemistry/scientist/Tawfik/images/green_people.jpg",    		 "/Biological_Chemistry/scientist/Tawfik/images/green_people2.jpg",  		 "/Biological_Chemistry/scientist/Tawfik/images/green_people3.jpg", 		"/Biological_Chemistry/scientist/Tawfik/people.html",                 "People");barArray[2] = new BarClass(2,               "/Biological_Chemistry/scientist/Tawfik/images/green_research.jpg",   	         "/Biological_Chemistry/scientist/Tawfik/images/green_research2.jpg",                    "/Biological_Chemistry/scientist/Tawfik/images/green_research3.jpg",                   "/Biological_Chemistry/scientist/Tawfik/research.html",                     "Research");   							  barArray[3] = new BarClass(3,           "/Biological_Chemistry/scientist/Tawfik/images/green_publications.jpg",   		 "/Biological_Chemistry/scientist/Tawfik/images/green_publications2.jpg",          "/Biological_Chemistry/scientist/Tawfik/images/green_publications3.jpg",		 "/Biological_Chemistry/scientist/Tawfik/publications.html",                 "Publications");barArray[4] = new BarClass(4,          "/Biological_Chemistry/scientist/Tawfik/images/green_labtour.jpg",		 "/Biological_Chemistry/scientist/Tawfik/images/green_labtour2.jpg",		 "/Biological_Chemistry/scientist/Tawfik/images/green_labtour3.jpg", 		 "/Biological_Chemistry/scientist/Tawfik/tour.html",                 "Tour of the Lab");barArray[5] = new BarClass(5,          "/Biological_Chemistry/scientist/Tawfik/images/green_forum.jpg",		 "/Biological_Chemistry/scientist/Tawfik/images/green_forum.jpg",		 "/Biological_Chemistry/scientist/Tawfik/images/green_forum.jpg", 		 "http://directedevolution.org",                 "Forum");barArray[6] = new BarClass(6,          "/Biological_Chemistry/scientist/Tawfik/images/green_home.jpg",    		 "/Biological_Chemistry/scientist/Tawfik/images/green_home2.jpg",  		 "/Biological_Chemistry/scientist/Tawfik/images/green_home3.jpg",		"/Biological_Chemistry/scientist/Tawfik/home.html",                 "Home");		}	//-----------------------------------------------------------------// step 3.b: Set the parameter numOfBars to total number of the bars (images)//-----------------------------------------------------------------function initNav() {   var numOfBars= 6;  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}    
