function obraz(pic,x,y)
{
    var s='<html><head><title>*** Grafika ***</title></head>\n';
    s=s+'<body style="background: url(image/load.gif) no-repeat center" bgcolor="#000000" marginwidth="0" marginheight="0" topmargin="0" leftmargin="0">\n';
    s=s+'<a href="javascript:close()"><img alt="Kliknij aby zamkn¹æ to okno" border="0" src="'+pic+'"></a>\n';
    s=s+'</body></html>';

    var f = null;
    f = window.open('','','width='+x+',height='+y+',left='+parseInt((window.screen.width - x) / 2)+',top='+parseInt((window.screen.height - y) / 2)+',resizable=0,directories=0,location=0,menubar=0,scrollbars=0,status=0,toolbar=0,left=20,top=20');
    if(f != null) {
        if(f.opener == null) {
          f.opener = self
        }
        f.document.clear();
        f.document.write(s);
        f.document.close();
    }
}




function okno(url, width, height)
{
    winleft = ((screen.width - width) / 2);
    wintop = ((screen.height - height) / 2);
    s=',top='+wintop+',left='+winleft+',width='+width+',height='+height;
    P = window.open(url,'','toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0'+s);
    P.focus();
 }




imag =  new Array();
imag[0]  = "image/foto1.gif";
imag[1]  = "image/foto2.gif";
imag[2]  = "image/foto3.gif";
imag[3]  = "image/foto4.gif";
imag[4]  = "image/foto5.gif";

im = new Array()
for(i=0; i<=imag.length; i++)
{	im[i] = new Image()
	im[i].src = imag[i]	}


function getInfo() {
  myExp = new RegExp("MSIE 4");
  if(myExp.test(navigator.userAgent))
  return true }


function przelacz(imgName,num)
{ if (document.images )
	{ imgName.src = im[num].src; } }


function fade(imgName,num)
{ if (document.all && !getInfo()) {
	imgName.filters.blendTrans.Apply();
	imgName.src = im[num].src;
	imgName.filters.blendTrans.Play(); }
		else
		przelacz(imgName,num) }


function fadeOut(imgName,num)
{ if (document.all && !getInfo()) {
	imgName.filters.blendTrans.Apply();
	imgName.src = im[num].src;
	imgName.filters.blendTrans.Play(); }
		else
		przelacz(imgName,num) }







