if (document.images) { //check for image object img1on = new Image(); //mouse over images img1on.src = "images/butthon.gif"; //button used for on image img2on = new Image(); img2on.src = "images/butthon.gif"; img3on = new Image(); img3on.src = "images/butthon.gif"; img4on = new Image(); img4on.src = "images/butthon.gif"; img5on = new Image(); img5on.src = "images/butthon.gif"; img6on = new Image(); img6on.src = "images/butthon.gif"; img7on = new Image(); img7on.src = "images/butthon.gif"; img8on = new Image(); img8on.src = "images/butthon.gif"; img9on = new Image(); img9on.src = "images/butthon.gif"; img10on = new Image(); img10on.src = "images/butthon.gif"; img11on = new Image(); img11on.src = "images/butthon.gif"; img12on = new Image(); img12on.src = "images/butthon.gif"; img13on = new Image(); img13on.src = "images/butthon.gif"; img14on = new Image(); img14on.src = "images/butthon.gif"; img15on = new Image(); img15on.src = "images/butthon.gif"; img16on = new Image(); img16on.src = "images/butthon.gif"; img1off = new Image(); //mouse out images img1off.src = "images/buttoff.gif"; //button used for off image img2off = new Image(); img2off.src = "images/buttoff.gif"; img3off = new Image(); img3off.src = "images/buttoff.gif"; img4off = new Image(); img4off.src = "images/buttoff.gif"; img5off = new Image(); img5off.src = "images/buttoff.gif"; img6off = new Image(); img6off.src = "images/buttoff.gif"; img7off = new Image(); img7off.src = "images/buttoff.gif"; img8off = new Image(); img8off.src = "images/buttoff.gif"; img9off = new Image(); img9off.src = "images/buttoff.gif"; img10off = new Image(); img10off.src = "images/buttoff.gif"; img11off = new Image(); img11off.src = "images/buttoff.gif"; img12off = new Image(); img12off.src = "images/buttoff.gif"; img13off = new Image(); img13off.src = "images/buttoff.gif"; img14off = new Image(); img14off.src = "images/buttoff.gif"; img15off = new Image(); img15off.src = "images/buttoff.gif"; img16off = new Image(); img16off.src = "images/buttoff.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");}}