if (document.images)
{
 // Set width and height of all images
 var img_width=125;
 var img_height=40;
 
  // Set up "on" images (show up onmouseover)
 pic0on= new Image(img_width,img_height);
 pic0on.src="images/navbar/home_mouseover.gif";  
 pic1on= new Image(img_width,img_height);
 pic1on.src="images/navbar/about_mouseover.gif";  
 pic2on= new Image(img_width,img_height); 
 pic2on.src="images/navbar/research_mouseover.gif";
 pic3on= new Image(img_width,img_height); 
 pic3on.src="images/navbar/fractals_mouseover.gif"; 
 pic4on= new Image(img_width,img_height); 
 pic4on.src="images/navbar/2002_mousover.gif"; 
 pic5on= new Image(img_width,img_height); 
 pic5on.src="images/navbar/photography_mouseover.gif"; 
 pic6on= new Image(img_width,img_height); 
 pic6on.src="images/navbar/misc_mouseover.gif"; 
 pic7on= new Image(img_width,img_height); 
 pic7on.src="images/navbar/links_mouseover.gif"; 

 // Set "off" images (onmouseout)    
 pic0off= new Image(img_width,img_height);
 pic0off.src="images/navbar/home.gif";
 pic1off= new Image(img_width,img_height);
 pic1off.src="images/navbar/about.gif";
 pic2off= new Image(img_width,img_height);
 pic2off.src="images/navbar/research.gif"; 
 pic3off= new Image(img_width,img_height);
 pic3off.src="images/navbar/fractals.gif";
 pic4off= new Image(img_width,img_height);
 pic4off.src="images/navbar/2002.gif";
 pic5off= new Image(img_width,img_height);
 pic5off.src="images/navbar/photography.gif";
 pic6off= new Image(img_width,img_height);
 pic6off.src="images/navbar/misc.gif";
 pic7off= new Image(img_width,img_height);
 pic7off.src="images/navbar/links.gif";
}

// Change the image
function changeImage(imgName,picobj)
{
  if (document.images)
  { 
	document.images[imgName].src= picobj.src;
  }
}