if (document.images) {

button1off = new Image();
button1off.src = "images/button1.gif";
button1on = new Image();
button1on.src = "images/button1_on.gif";

button2off = new Image();
button2off.src = "images/button2.gif";
button2on = new Image();
button2on.src = "images/button2_on.gif";

button3off = new Image();
button3off.src = "images/button3.gif";
button3on = new Image();
button3on.src = "images/button3_on.gif";

button4off = new Image();
button4off.src = "images/button4.gif";
button4on = new Image();
button4on.src = "images/button4_on.gif";

button5off = new Image();
button5off.src = "images/button5.gif";
button5on = new Image();
button5on.src = "images/button5_on.gif";

button6off = new Image();
button6off.src = "images/button6.gif";
button6on = new Image();
button6on.src = "images/button6_on.gif";

}

function swapImage(imgid,imgnew) {
	if (navigator.appVersion.substring(0,1) >=3) {
			document.images[imgid].src=eval(imgnew + ".src");
	}
}

