//Otwórz okno z flashem
function flash(URL,szer,wys) {
nowe_okno=window.open("","_blank","toolbar=no,status=no,menu=no,scrollbars,resizable,width="+(szer+20)+",height="+wys+",top=30,left=30");
nowe_okno.document.open();
nowe_okno.document.writeln('<BODY topmargin=0 leftmargin=0 marginwidth=0 marginheight=0>');
nowe_okno.document.writeln('<OBJECT codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0 height='+wys+' width='+szer+' classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000>');
nowe_okno.document.writeln('<PARAM NAME="Movie" VALUE="'+URL+'">');
nowe_okno.document.writeln('<PARAM NAME="Src" VALUE="'+URL+'">');
nowe_okno.document.writeln('<PARAM NAME="Play" VALUE="-1">');
nowe_okno.document.writeln('<PARAM NAME="Loop" VALUE="-1">');
nowe_okno.document.writeln('<PARAM NAME="Quality" VALUE="High">');
nowe_okno.document.writeln('<embed src="'+URL+'" type="application/x-shockwave-flash" width="'+szer+'" height="'+wys+'" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" quality="best" play="true">');
nowe_okno.document.writeln('</OBJECT>');
nowe_okno.document.writeln('</BODY>');
nowe_okno.document.close();
}
//Otwórz okno ze zdjeciem
function zdjecie(URL,w,h) {
obrazek = new Image();
obrazek.src = URL;
if(w>600) w=670;
if(h>500) h=640;
//Pętla opóźnaijąca
nowe_okno=window.open("","_blank","toolbar=no,status=no,menu=no,scrollbars=no,resizable=no,width="+(w+20)+",height="+h+",top=80,left=160");
nowe_okno.document.open();
nowe_okno.document.writeln('<SCRIPT language=Javascript>');
nowe_okno.document.writeln('function wymiary() { ');
nowe_okno.document.writeln('w=document.zdjecie.width; h=document.zdjecie.height; if(w>710) w=670; if(h>510) h=640;');
nowe_okno.document.writeln('window.resizeTo(w+40,h+40);');
nowe_okno.document.writeln('}');
nowe_okno.document.writeln('</SCRIPT>');
nowe_okno.document.writeln('<BODY topmargin=0 leftmargin=0 marginwidth=0 marginheight=0 onLoad="wymiary()">');
nowe_okno.document.writeln('<A href="javascript:window.close()"><IMG src='+URL+' border=0 name=zdjecie alt="Kliknij aby zamknąć okno"></A>');
nowe_okno.document.writeln('</BODY>');
nowe_okno.document.close();
}
//Otwórz okno z dokumentem (określ rozmiary)
function okno(URL,szer,wys) {
nowe_okno=window.open(URL,"_blank","toolbar=no,status=no,menus=no,scrollbars,location=no,resizable,width="+szer+",height="+wys+",top=30,left=30");
return;
}
//Otwórz okno z dokumentem (zasymuluj target=_blank)
function url(URL) {
nowe_okno=window.open(URL,"_blank","toolbar,location,status,menubar,scrollbars,resizable,top=30,left=30,width=675,height=450");
return;
}
function okno_blank(URL,szer,wys) {
nowe_okno=window.open(URL,"_blank","toolbar=no,status=no,menus=no,scrollbars=no,resizable,width="+szer+",height="+wys+",top=30,left=30");
return;
}


//Otwórz okno ze zdjeciem


function zdjecie_blank(URL,w,h) {


obrazek = new Image();


obrazek.src = URL;





t=0;


l=0;


if( typeof( window.innerWidth ) == 'number' ) {


    t = (window.innerHeight/2) - (h/2);


    l = (window.innerWidth/2) - (w/2);


} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {


    l = (document.documentElement.clientWidth/2) - (w/2);


    t = (document.documentElement.clientHeight/2) - (h/2);


} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {


    l = (document.body.clientWidth/2) - (w/2);


    t = (document.body.clientHeight/2) - (h/2);


}





//Pętla opóźnaijąca


nowe_okno=window.open("","_blank","toolbar=no,status=no,menu=no,scrollbars,resizable,width="+(w+20)+",height="+h+",top="+t+",left="+l);


nowe_okno.document.open();


nowe_okno.document.writeln('<BODY topmargin=0 leftmargin=0 marginwidth=0 marginheight=0>');


nowe_okno.document.writeln('<IMG src='+URL+' border=0 name=zdjecie>');


nowe_okno.document.writeln('</BODY>');


nowe_okno.document.close();


}

