// Defines the "on" and "off" images for all menu entries throughout the site.
// Also includes the functions imgOn and imgOff, which are used to change the
// image displayed ("hover" effect). Hence, this file must be included on all
// pages.

if(document.images) {
  helpon  = new Image(); helpon.src  = "http://www.kri.ch/images/help-e-on.gif"
  helpoff = new Image(); helpoff.src = "http://www.kri.ch/images/help-e-off.gif"

  equipon  = new Image(); equipon.src  = "http://www.kri.ch/images/equip-e-on.gif"
  equipoff = new Image(); equipoff.src = "http://www.kri.ch/images/equip-e-off.gif"

  automateon  = new Image(); automateon.src  = "http://www.kri.ch/images/automate-e-on.gif"
  automateoff = new Image(); automateoff.src = "http://www.kri.ch/images/automate-e-off.gif"

  interneton  = new Image(); interneton.src  = "http://www.kri.ch/images/internet-e-on.gif"
  internetoff = new Image(); internetoff.src = "http://www.kri.ch/images/internet-e-off.gif"

}

function imgOn(imgName) {		
	if (document.images) {
		document[imgName].src = eval(imgName + "on.src");
		}
	}

function imgOff(imgName) {
		if (document.images) {
				document[imgName].src = eval(imgName + "off.src");
				}
		}
