browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);

if (browserName == "Netscape" && browserVer >= 3) version="ok";
else if (browserName == "Microsoft Internet Explorer" && browserVer >= 4) version="ok";
else version="no";

if (version == "ok") {

q23 = new Image();
q23.src = "i/quady/bt_1_off.gif";
q23_on = new Image();
q23_on.src = "i/quady/bt_1_on.gif";

q24 = new Image();
q24.src = "i/quady/bt_2_off.gif";
q24_on = new Image();
q24_on.src = "i/quady/bt_2_on.gif";

q25 = new Image();
q25.src = "i/quady/bt_3_off.gif";
q25_on = new Image();
q25_on.src = "i/quady/bt_3_on.gif";

m1 = new Image();
m1.src = "i/bt_ofirmie_off.gif";
m1_on = new Image();
m1_on.src = "i/bt_ofirmie_on.gif";

menu2 = new Image();
menu2.src = "i/bt_galeria_off.gif";
menu2_on = new Image();
menu2_on.src = "i/bt_galeria_on.gif";

menu3 = new Image();
menu3.src = "i/bt_klienci_off.gif";
menu3_on = new Image();
menu3_on.src = "i/bt_klienci_on.gif";

m4 = new Image();
m4.src = "i/bt_kontakt_off.gif";
m4_on = new Image();
m4_on.src = "i/bt_kontakt_on.gif";

m5 = new Image();
m5.src = "i/menu_sub_tb_off.gif";
m5_on = new Image();
m5_on.src = "i/menu_sub_tb_on.gif";

m6 = new Image();
m6.src = "i/menu_sub_it_off.gif";
m6_on = new Image();
m6_on.src = "i/menu_sub_it_on.gif";

m7 = new Image();
m7.src = "i/menu_sub_ii_off.gif";
m7_on = new Image();
m7_on.src = "i/menu_sub_ii_on.gif";

m8 = new Image();
m8.src = "i/menu_sub_se_off.gif";
m8_on = new Image();
m8_on.src = "i/menu_sub_se_on.gif";


m10 = new Image();
m10.src = "i/menu_sub_o_off.gif";
m10_on = new Image();
m10_on.src = "i/menu_sub_o_on.gif";

m11 = new Image();
m11.src = "i/menu_sub_pf_off.gif";
m11_on = new Image();
m11_on.src = "i/menu_sub_pf_on.gif";

m12 = new Image();
m12.src = "i/menu_tb_off.gif";
m12_on = new Image();
m12_on.src = "i/menu_tb_on.gif";

m13 = new Image();
m13.src = "i/menu_se_off.gif";
m13_on = new Image();
m13_on.src = "i/menu_se_on.gif";

m14 = new Image();
m14.src = "i/menu_it_off.gif";
m14_on = new Image();
m14_on.src = "i/menu_it_on.gif";

m15 = new Image();
m15.src = "i/menu_o_off.gif";
m15_on = new Image();
m15_on.src = "i/menu_o_on.gif";

m16 = new Image();
m16.src = "i/menu_ii_off.gif";
m16_on = new Image();
m16_on.src = "i/menu_ii_on.gif";

m17 = new Image();
m17.src = "i/menu_pf_off.gif";
m17_on = new Image();
m17_on.src = "i/menu_pf_on.gif";

m18 = new Image();
m18.src = "i/pod_sub_paint_off.gif";
m18_on = new Image();
m18_on.src = "i/pod_sub_paint_on.gif";

m19 = new Image();
m19.src = "i/pod_sub_quad_off.gif";
m19_on = new Image();
m19_on.src = "i/pod_sub_quad_on.gif";

menu20 = new Image();
menu20.src = "i/pod_sub_fun_off.gif";
menu20_on = new Image();
menu20_on.src = "i/pod_sub_fun_on.gif";

m20 = new Image();
m20.src = "i/paintball/bt_1_off.gif";
m20_on = new Image();
m20_on.src = "i/paintball/bt_1_on.gif";

m21 = new Image();
m21.src = "i/paintball/bt_2_off.gif";
m21_on = new Image();
m21_on.src = "i/paintball/bt_2_on.gif";

m22 = new Image();
m22.src = "i/paintball/bt_3_off.gif";
m22_on = new Image();
m22_on.src = "i/paintball/bt_3_on.gif";


}

function img_over(obrazek) {
if (version == "ok") {
document[obrazek].src = eval(obrazek + "_on.src");
}
}

function img_out(obrazek) {
if (version == "ok") {
document[obrazek].src = eval(obrazek + ".src");
}
}

//Preload buttonów podmiany
function preload() {
  if (!document.images) return;
  var ar = new Array();
  var arguments = preload.arguments;
  for (var i = 0; i < arguments.length; i++) {
    ar[i] = new Image();
    ar[i].src = arguments[i];
  }
}
