homeon = new Image(); homeon.src = 'media/img/buttons/home2.gif';
homeoff = new Image(); homeoff.src = 'media/img/buttons/home1.gif';

serviceon = new Image(); serviceon.src = 'media/img/buttons/service2.gif';
serviceoff = new Image(); serviceoff.src = 'media/img/buttons/service1.gif';

newson = new Image(); newson.src = 'media/img/buttons/news2.gif';
newsoff = new Image(); newsoff.src = 'media/img/buttons/news1.gif';

tagnews = new Image(); tagnews.src = 'media/img/tags/news.gif';

producton = new Image(); producton.src = 'media/img/buttons/product2.gif';
productoff = new Image(); productoff.src = 'media/img/buttons/product1.gif';

tagproduct = new Image(); tagproduct.src = 'media/img/tags/product.gif';

tagservice = new Image(); tagservice.src = 'media/img/tags/service.gif';

righttag = new Image(); righttag.src = 'media/img/tags/homep.gif';

taghome = new Image(); taghome.src = 'media/img/tags/homep.gif';

infoon = new Image(); infoon.src = 'media/img/buttons/info2.gif';
infooff = new Image(); infooff.src = 'media/img/buttons/info1.gif';

taginfo = new Image(); taginfo.src = 'media/img/tags/info.gif';

reqon = new Image(); reqon.src = 'media/img/buttons/req2.gif';
reqoff = new Image(); reqoff.src = 'media/img/buttons/req1.gif';

tagreq = new Image(); tagreq.src = 'media/img/tags/req.gif';

linkon = new Image(); linkon.src = 'media/img/buttons/link2.gif';
linkoff = new Image(); linkoff.src = 'media/img/buttons/link1.gif';

taglink = new Image(); taglink.src = 'media/img/tags/link.gif';

contacton = new Image(); contacton.src = 'media/img/buttons/contact2.gif';
contactoff = new Image(); contactoff.src = 'media/img/buttons/contact1.gif';

tagcontact = new Image(); tagcontact.src = 'media/img/tags/contact.gif';

jobon = new Image(); jobon.src = 'media/img/buttons/job2.gif';
joboff = new Image(); joboff.src = 'media/img/buttons/job1.gif';

tagjob = new Image(); tagjob.src = 'media/img/tags/job.gif';

coloron = new Image(); coloron.src = 'media/img/dropbuttons/color2.gif';
coloroff = new Image(); coloroff.src = 'media/img/dropbuttons/color1.gif';

pipeon = new Image(); pipeon.src = 'media/img/dropbuttons/pipe2.gif';
pipeoff = new Image(); pipeoff.src = 'media/img/dropbuttons/pipe1.gif';

asciion = new Image(); asciion.src = 'media/img/dropbuttons/ascii2.gif';
asciioff = new Image(); asciioff.src = 'media/img/dropbuttons/ascii1.gif';

scadaon = new Image(); scadaon.src = 'media/img/dropbuttons/scada2.gif';
scadaoff = new Image(); scadaoff.src = 'media/img/dropbuttons/scada1.gif';

wateron = new Image(); wateron.src = 'media/img/dropbuttons/water2.gif';
wateroff = new Image(); wateroff.src = 'media/img/dropbuttons/water1.gif';

wasteon = new Image(); wasteon.src = 'media/img/dropbuttons/waste2.gif';
wasteoff = new Image(); wasteoff.src = 'media/img/dropbuttons/waste1.gif';

industrialon = new Image(); industrialon.src = 'media/img/dropbuttons/ind2.gif';
industrialoff = new Image(); industrialoff.src = 'media/img/dropbuttons/ind1.gif';

waterhammeron = new Image(); waterhammeron.src = 'media/img/dropbuttons/waterhammer2.gif';
waterhammeroff= new Image(); waterhammeroff.src = 'media/img/dropbuttons/waterhammer1.gif';


var active = null;

function reset_menu(active) {
 if (active == null) {
  if (document.getElementById) {
   document.getElementById('informations').style.visibility = 'hidden';
   document.getElementById('jobs').style.visibility = 'hidden';
  } else if (document.layers) {
   document.layers['informations'].visibility = 'hide';
   document.layers['jobs'].visibility = 'hide';
  }
 }
}

function toggle_menu(status) {
 if (status == 1) {
  if (document.getElementById) {
   document.getElementById('informations').style.visibility = 'visible';
   document.getElementById('informations').style.top = 193;
   document.getElementById('informations').style.left = 165;
  } else if (document.layers) {
   document.layers['informations'].visibility = 'show';
   document.layers['informations'].top = 193;
   document.layers['informations'].left = 165;
  }
 } else if (status == 2) {
  if (document.getElementById) {
   document.getElementById('jobs').style.visibility = 'visible';
   document.getElementById('jobs').style.top = 209;
   document.getElementById('jobs').style.left = 165;
  } else if (document.layers) {
   document.layers['jobs'].visibility = 'show';
   document.layers['jobs'].top = 209;
   document.layers['jobs'].left = 165;
  }
 } else if (status == 0) {
  reset_menu(null);
 }
}