if (document.images) {
	var tcoff = new Image(); // for the inactive image
  	tcoff.src = "images/tc_off.gif";
  	var tcon = new Image(); // for the active image
  	tcon.src = "images/tc_on.gif";

	var ftoff = new Image(); // for the inactive image
  	ftoff.src = "images/ft_off.gif";
  	var fton = new Image(); // for the active image
  	fton.src = "images/ft_on.gif";

	var csoff = new Image(); // for the inactive image
  	csoff.src = "images/cs_off.gif";
  	var cson = new Image(); // for the active image
  	cson.src = "images/cs_on.gif";

	var foff = new Image(); // for the inactive image
  	foff.src = "images/f_off.gif";
  	var fon = new Image(); // for the active image
  	fon.src = "images/f_on.gif";

	var juoff = new Image(); // for the inactive image
  	juoff.src = "images/ju_off.gif";
  	var juon = new Image(); // for the active image
  	juon.src = "images/ju_on.gif";

	var cuoff = new Image(); // for the inactive image
  	cuoff.src = "images/cu_off.gif";
  	var cuon = new Image(); // for the active image
  	cuon.src = "images/cu_on.gif";

  	var roff = new Image(); // for the inactive image
	roff.src = "images/r_off.gif";
	var ron = new Image(); // for the active image
  	ron.src = "images/r_on.gif";
  	
	var mdoff = new Image(); // for the inactive image
	mdoff.src = "images/md_off.gif";
	var mdon = new Image(); // for the active image
  	mdon.src = "images/md_on.gif";
  	
  	var psoff = new Image(); // for the inactive image
	psoff.src = "images/ps_off.gif";
	var pson = new Image(); // for the active image
  	pson.src = "images/ps_on.gif";
}


function act(butname,x) {
  if (document.images){
    document[butname].src = eval (x + "on.src");
    }
}

function inact(butname,x) {
  if (document.images){
    document[butname].src = eval(x + "off.src");
    }
}
