var rdzen = 'images/' ; // rdzen nazwy rysunku
arr_out = new Array();
arr_on = new Array();
// jezeli w dokumencie zdefiniowano obrazki,
if(document.images) {

arr_out[1] = new Image;
arr_out[2] = new Image;
arr_out[3] = new Image;
arr_out[4] = new Image;
arr_out[5] = new Image;
arr_out[6] = new Image;
arr_out[7] = new Image;

arr_out[1].src = rdzen + 'top_btn_en.gif';
arr_out[2].src = rdzen + 'top_btn_pl.gif';
if (ActButton == 1) {
    arr_out[3].src = rdzen + 'btn_home_over.gif';
    document.images['obr3'].src = arr_out[3].src;
} else {
    arr_out[3].src = rdzen + 'btn_home.gif';
}
if (ActButton == 2) {
    arr_out[4].src = rdzen + 'btn_photoPL_over.gif';
    document.images['obr4'].src = arr_out[4].src;
} else {
    arr_out[4].src = rdzen + 'btn_photoPL.gif';
}
if (ActButton == 3) {
    arr_out[5].src = rdzen + 'btn_klienci_over.gif';
    document.images['obr5'].src = arr_out[5].src;
} else {
    arr_out[5].src = rdzen + 'btn_klienci.gif';
}
if (ActButton == 4) {
    arr_out[6].src = rdzen + 'btn_sklep_over.gif';
    document.images['obr6'].src = arr_out[6].src;
} else {
    arr_out[6].src = rdzen + 'btn_sklep.gif';
}
if (ActButton == 5) {
    arr_out[7].src = rdzen + 'btn_czas_over.gif';
    document.images['obr7'].src = arr_out[7].src;
} else {
    arr_out[7].src = rdzen + 'btn_czas.gif';
}

// SEKCJA *2b*
arr_on[1] = new Image;
arr_on[2] = new Image;
arr_on[3] = new Image;
arr_on[4] = new Image;
arr_on[5] = new Image;
arr_on[6] = new Image;
arr_on[7] = new Image;


arr_on[1].src = rdzen + 'top_btn_en_over.gif';
arr_on[2].src = rdzen + 'top_btn_pl_over.gif';
arr_on[3].src = rdzen + 'btn_home_over.gif';
arr_on[4].src = rdzen + 'btn_photoPL_over.gif';
arr_on[5].src = rdzen + 'btn_klienci_over.gif';
arr_on[6].src = rdzen + 'btn_sklep_over.gif';
arr_on[7].src = rdzen + 'btn_czas_over.gif';
}

function mouseAction(img_no, akcja) {
    if (akcja=='on') {
     document.images['obr' + img_no].src = arr_on[img_no].src;
    }else if (akcja=='out') {
     document.images['obr' + img_no].src = arr_out[img_no].src;
    }
}
