
									var typy_obiektow = new Array();
									// opcje menu:
									typy_obiektow[0] = 'opcja';
									// linki miniatur ilustracji:
									typy_obiektow[1] = 'thumb';

									var opcje = new Array();
									// tla pod menu:
									opcje[0] = new Array();
									// tla pod miniatury:
									opcje[1] = new Array();

									opcje[0][0] = new Image();
									opcje[0][1] = new Image();
									
									opcje[1][0] = new Image();
									opcje[1][1] = new Image();


									opcje[0][0].src = './fx/grafika/bg_button0_0.png';
									opcje[0][1].src = './fx/grafika/bg_button0_1.png';
									
									opcje[1][0].src = './fx/grafika/bg_slot0_0.png';
									opcje[1][1].src = './fx/grafika/bg_slot0_1.png';
		

									function opcja(id, tryb) {
										podswietl(0, id, tryb);
									}
									
									function miniatura(id, tryb) {
										podswietl(1, id, tryb);
									}
									
									function podswietl(typ ,id, tryb) {
					


										document.getElementById(typy_obiektow[typ] + id).style.backgroundImage = 'url(' + opcje[typ][tryb].src + ')';
										
										if (tryb == 1) {
											bg(typ, id, '#FFFFFF');
											setTimeout('bg(' + typ + ', ' + id + ', "transparent");', 40);
										}
		
									}

									
									function bg(typ, id, kolor) {
										document.getElementById(typy_obiektow[typ] + id).style.backgroundColor = kolor;
									}
									
									
									
									
									function popup_image(filename) {
										imgpop = window.open('./image_popup.php5?' + filename, '_blank', 'toolbar=no, location=no, directories=no, alwaysRaised=no, left=100, top=100, status=no, menubar=no, scrollbars=no, resizable=no, width=100, height=200');
										imgpop.window.focus();
									}
									
									
									function myvoid() {
										// nie robi nic
									}