
if (document.images) {
homeoff=new Image();
homeoff.src= "images/topmenu/homeoff.gif";
homeon=new Image();
homeon.src= "images/topmenu/homeon.gif";
aboutoff=new Image();
aboutoff.src= "images/topmenu/aboutoff.gif";
abouton=new Image();
abouton.src= "images/topmenu/abouton.gif";
contactoff=new Image();
contactoff.src= "images/topmenu/contactoff.gif";
contacton=new Image();
contacton.src= "images/topmenu/contacton.gif";

patentsoff=new Image();
patentsoff.src= "images/leftmenu/patentsoff.gif";
patentson=new Image();
patentson.src= "images/leftmenu/patentson.gif";
productsoff=new Image();
productsoff.src= "images/leftmenu/productsoff.gif";
productson=new Image();
productson.src= "images/leftmenu/productson.gif";
productionoff=new Image();
productionoff.src= "images/leftmenu/productionoff.gif";
productionon=new Image();
productionon.src= "images/leftmenu/productionon.gif";
competitiveoff=new Image();
competitiveoff.src= "images/leftmenu/competitiveoff.gif";
competitiveon=new Image();
competitiveon.src= "images/leftmenu/competitiveon.gif";
licensingoff=new Image();
licensingoff.src= "images/leftmenu/licensingoff.gif";
licensingon=new Image();
licensingon.src= "images/leftmenu/licensingon.gif";
supplyoff=new Image();
supplyoff.src= "images/leftmenu/supplyoff.gif";
supplyon=new Image();
supplyon.src= "images/leftmenu/supplyon.gif";
downloadsoff=new Image();
downloadsoff.src= "images/leftmenu/downloadsoff.gif";
downloadson=new Image();
downloadson.src= "images/leftmenu/downloadson.gif";
servicesoff=new Image();
servicesoff.src= "images/leftmenu/servicesoff.gif";
serviceson=new Image();
serviceson.src= "images/leftmenu/serviceson.gif";
resourcesoff=new Image();
resourcesoff.src= "images/leftmenu/resourcesoff.gif";
resourceson=new Image();
resourceson.src= "images/leftmenu/resourceson.gif";
trainingoff=new Image();
trainingoff.src= "images/leftmenu/trainingoff.gif";
trainingon=new Image();
trainingon.src= "images/leftmenu/trainingon.gif";
supportoff=new Image();
supportoff.src= "images/leftmenu/supportoff.gif";
supporton=new Image();
supporton.src= "images/leftmenu/supporton.gif";

}

function imageOn (imagename){
  document[imagename].src=eval(imagename+"on.src");
 }
function imageOff (imagename){
  document[imagename].src=eval(imagename+"off.src");
 }
