function reklama(plik, wys, sze, wmode, fvars, rodzaj) {
    var pokaz = "";

     switch (rodzaj) {
         case "flash":
             pokaz = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" id="animacja" width="'+ sze +'" height="'+ wys +'">';
             pokaz += '<param name="movie" value="'+ plik +'" />';
             pokaz += '<param name="quality" value="high" />';
             pokaz += '<param name="wmode" value="'+ wmode +'" />';
             pokaz += '<param name="flashvars" value="'+ fvars +'" />';
             pokaz += '<embed type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" name="animacja" width="'+ sze +'" height="'+ wys +'" src="'+ plik  +'" quality="high" wmode="'+ wmode +'" flashvars="'+ fvars +'" swliveconnect="true"></embed>';
             pokaz += '</object>';
             document.write(pokaz);
             break;

         case "normal":
             pokaz = '<a href="'+ fvars +'" target="_blank"><img src="'+ plik +'" border="0" alt="" /></a>';
             document.write(pokaz);
             break;
    }
}

function winopenUrl(nazwa,title,url,width,height){
        oknoL = (screen.width - width)/2;
        oknoT = (screen.height - height)/2;

        config = 'width='+width+', height='+height+', innerheight='+height+', innerwidth='+width+', toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no';
        config += (document.all) ? ',left='+oknoL+',top='+oknoT : ',screenX='+oknoL+',screenY='+oknoT;
        okno = window.open(url,nazwa,config);

        okno.focus();

};


function winopenNoBorders(nazwa,title,link,width,height){
    oknoL = (screen.width - width)/2;
    oknoT = (screen.height - height)/2;

    config = 'width='+width+', height='+height+', innerheight='+height+', innerwidth='+width+', toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no';
    config += (document.all) ? ',left='+oknoL+',top='+oknoT : ',screenX='+oknoL+',screenY='+oknoT;
    okno = window.open('',nazwa,config);

    okno.document.open();
    okno.document.write('<HTML><HEAD>');
    okno.document.write('<TITLE>'+title+'</title>');
    okno.document.write('</HEAD>');
    okno.document.write('<body bgcolor="white" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">');
    okno.document.write('<div><a href="#" onclick="javascript:self.close();"><img src="'+link+'" border="0"></a></div>');
    okno.document.write('</body></html>');
    okno.focus();

};

function hide() {
	document.getElementById('zyczenia').style.display="none";
	document.getElementById('standard').style.display="block";
};
