var rgBon = new Array(); var rgBoff = new Array(); rgBon[1] = new Image(); rgBoff[1] = new Image(); rgBon[1].src = "images/butts/b1_o.gif"; rgBoff[1].src = "images/butts/b1.gif"; rgBon[2] = new Image(); rgBoff[2] = new Image(); rgBon[2].src = "images/butts/b2_o.gif"; rgBoff[2].src = "images/butts/b2.gif"; rgBon[3] = new Image(); rgBoff[3] = new Image(); rgBon[3].src = "images/butts/b3_o.gif"; rgBoff[3].src = "images/butts/b3.gif"; rgBon[4] = new Image(); rgBoff[4] = new Image(); rgBon[4].src = "images/butts/b4_o.gif"; rgBoff[4].src = "images/butts/b4.gif"; rgBon[5] = new Image(); rgBoff[5] = new Image(); rgBon[5].src = "images/butts/b5_o.gif"; rgBoff[5].src = "images/butts/b5.gif"; rgBon[6] = new Image(); rgBoff[6] = new Image(); rgBon[6].src = "images/butts/b6_o.gif"; rgBoff[6].src = "images/butts/b6.gif"; rgBon[7] = new Image(); rgBoff[7] = new Image(); rgBon[7].src = "images/butts/b7_o.gif"; rgBoff[7].src = "images/butts/b7.gif"; function butt_change(hButt, iButt, fOn) { hButt.src = (fOn ? rgBon[iButt].src : rgBoff[iButt].src); }