// JavaScript Document
if (document.images)
{
  homeoff= new Image(55,46);
  homeoff.src="../images/home.gif";
  
  homeon= new Image(55,46);
  homeon.src="../images/home2.gif";
  
  pipesoff= new Image(75,46);
  pipesoff.src="../images/pipes.gif";
  
  pipeson= new Image(75,46); 
  pipeson.src="../images/pipes2.gif";
  
  valvesoff= new Image(75,46);
  valvesoff.src="../images/valves.gif";
  
  valveson= new Image(75,46);
  valveson.src="../images/valves2.gif";
  
  fittingsoff= new Image(75,46);
  fittingsoff.src="../images/fittings.gif";
  
  fittingson= new Image(75,46);
  fittingson.src="../images/fittings2.gif";
  
  specialtyoff= new Image(55,46); 
  specialtyoff.src="../images/speciality.gif";
  
  specialtyon= new Image(55,46);
  specialtyon.src="../images/specialty2.gif";

  contactoff= new Image(55,46); 
  contactoff.src="../images/contact.gif";
  
  contacton= new Image(55,46);
  contacton.src="../images/contact.gif";
}
/*
function hovertab(tab){
	if(document.images){
      newsrc = eval(tab + "on.src");
      document.getElementById(tab).src = newsrc;
	}
}
function offtab(tab){
	if(document.images){
      newsrc = eval(tab + "off.src");
      document.getElementById(tab).src = newsrc;
	}
}*/
function on(id){
	document.getElementById(id).src = 'images/' + id + '2.gif';
}
function off(id){
	document.getElementById(id).src = 'images/' + id + '.gif';
}