 var i=0; function zdjecie_zmien_znak (znak) { if ((znak=='+') && (i<zdjecia.length-1)) i++; if ((znak=='-') && (i>0)) i--; zdjecie_zmien (i); return; } function zdjecie_zmien_nr (nr) { nr--; zdjecie_zmien (nr); i=nr; return; } function zdjecie_zmien (zdj) { document.getElementById ('zdjecie').src=zdjecia[zdj]; document.getElementById ('zdjecie').alt=opisy[zdj]; document.getElementById ('zdjecie').title=opisy[zdj]; document.getElementById ('zdjecie_opis').innerHTML=opisy[zdj]; } function zdjecie_galeria (typ,id,nr) { if (isNaN (nr)) nr=i+1; var width=900; var height=600; var left=((screen.width/2)-(width/2)); var top=((screen.height/2)-(height/2))/2; window.open ("/galeria_zdjec,"+typ+","+id+","+nr+".html","zdjecie_galeria","width="+width+",height="+height+",toolbar=0,location=0,status=0,resizable=1,scrollbars=1,left="+left+",top="+top); } function zdjecie_wyswietl (id,zdj,width,height) { var left=((screen.width/2)-(width/2)); var top=((screen.height/2)-(height/2))/2; window.open ("/wyswietl_zdjecie,"+id+","+zdj+".html","zdjecie_wyswietl","width="+width+",height="+height+",toolbar=0,location=0,status=0,resizable=0,scrollbars=0,left="+left+",top="+top); } 
