function rollover() {
  if (!document.getElementById) return
  var imgOrSrc;
  var imgPreload = new Array();
  var images = document.getElementsByTagName('img');
  for (var i = 0; i < images.length; i++) {
    if (images[i].getAttribute('rsrc')) {
      imgPreload[i] = new Image();
      imgPreload[i].src = images[i].getAttribute('rsrc');
      images[i].onmouseover = function() {
        imgOrSrc = this.getAttribute('src');
        this.setAttribute('src',this.getAttribute('rsrc'))
      }
      images[i].onmouseout = function() {
        this.setAttribute('src',imgOrSrc)
      }
    }
  }
}
function otworz(adres,naglowek,size) {
noweOkno = window.open(adres, 'okienko', 'menubar=no, toolbar=no, location=no, scrollbars=no, resizable=yes, status=no, left=0, top=0, width=476, height=420, left=200, top=50')
noweOkno.document.open();
noweOkno.document.writeln("<html>\n<head>");
noweOkno.document.writeln("<title>",naglowek);
noweOkno.document.writeln("</title>");
noweOkno.document.writeln("<link href=\"crispan_popup.css\" rel=\"stylesheet\" type=\"text/css\" />");
noweOkno.document.writeln("</head>");
noweOkno.document.writeln("<body>");
noweOkno.document.writeln("<div id=\"kontener\"><div id=\"obiekt\"><object type=\"video/x-ms-wmv\"  width=\"320\" height=\"260\">");
noweOkno.document.writeln("<param name=\"src\" value=\"",adres,"\"><param name=\"FileName\" VALUE=\" ",adres," \"><param name=\"autostart\" value=\"true\"><param name=\"controller\" value=\"true\"></object></div>");
noweOkno.document.writeln("<br/><br/><a href=\"javascript:window.close();\">X zamknij okno</a></div>");
noweOkno.document.writeln("</body>\n</HTML>\n");
noweOkno.document.close(); 
noweOkno.focus(); 		
}

function otworz2(adres,naglowek,size) {
noweOkno = window.open(adres, 'okienko', 'menubar=no, toolbar=no, location=no, scrollbars=no, resizable=yes, status=no, left=0, top=0, width=476, height=420, left=200, top=50')
noweOkno.document.open();
noweOkno.document.writeln("<html>\n<head>");
noweOkno.document.writeln("<title>",naglowek);
noweOkno.document.writeln("</title>");
noweOkno.document.writeln("<link href=\"crispan_popup.css\" rel=\"stylesheet\" type=\"text/css\" />");
noweOkno.document.writeln("</head>");
noweOkno.document.writeln("<body>");
noweOkno.document.writeln("<div id=\"kontener\"><div id=\"obiekt\">");
noweOkno.document.writeln(" <object ID=\"MediaPlayer1\" width=280 height=245 classid=\"CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95\" codebase=\"http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,02,902\" ");
noweOkno.document.writeln("         standby=\"Loading Microsoft® Windows® Media Player components...\" type=\"application/x-oleobject\"");
noweOkno.document.writeln(" <param NAME=\"FileName\" VALUE=\" ",adres," \"> ");
noweOkno.document.writeln(" <param NAME=\"animationatStart\" VALUE=\"true\"> ");
noweOkno.document.writeln(" <param NAME=\"transparentatStart\" VALUE=\"true\"> ");
noweOkno.document.writeln(" <param NAME=\"autoStart\" VALUE=\"true\"> ");
noweOkno.document.writeln(" <param NAME=\"showControls\" VALUE=\"true\"> ");
noweOkno.document.writeln(" <param name=\"Volume\" value=\"0\"> ");
noweOkno.document.writeln("<param name=\"src\" value=\"",adres,"\"><param name=\"controller\" value=\"true\"></object></div>");
noweOkno.document.writeln(" </object> ");
noweOkno.document.writeln("<br/><br/><a href=\"javascript:window.close();\">X zamknij okno</a></div>"); 
noweOkno.document.writeln("</body>\n</HTML>\n");
noweOkno.document.close(); 
noweOkno.focus(); 		
}




function otworz_mov(adres,naglowek,size) {
noweOkno = window.open(adres, 'okienko', 'menubar=no, toolbar=no, location=no, scrollbars=no, resizable=yes, status=no, left=0, top=0, width=476, height=420, left=200, top=50')
noweOkno.document.open();
noweOkno.document.writeln("<html>\n<head>");
noweOkno.document.writeln("<title>",naglowek);
noweOkno.document.writeln("</title>");
noweOkno.document.writeln("<link href=\"crispan_popup.css\" rel=\"stylesheet\" type=\"text/css\" />");
noweOkno.document.writeln("</head>");
noweOkno.document.writeln("<body>");
noweOkno.document.writeln("<div id=\"kontener\"><div id=\"obiekt\"><object classid=\"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B\" width=\"320\" height=\"256\" codebase=\"http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0\" ><embed id=\"tt\" width=\"320\" height=\"255\" controller=\"true\" loop=\"false\" autoplay=\"true\" border=\"0\" pluginspage=\"http://www.apple.com/quicktime/download/\"><param name=\"src\" value=\"",adres,"\" /></embed></object>");
noweOkno.document.writeln("</div>");
noweOkno.document.writeln("<br/><br/><a href=\"javascript:window.close();\">X zamknij okno</a></div>");
noweOkno.document.writeln("</body>\n</HTML>\n");
noweOkno.document.close(); 
noweOkno.focus(); 		
}
function otworz_ref(adres,naglowek,size) {
noweOkno = window.open(adres, 'okienko', 'menubar=no, toolbar=no, location=no, scrollbars=no, resizable=yes, status=no, left=0, top=0, width=476, height=420, left=200, top=50')
noweOkno.document.open();
noweOkno.document.writeln("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"");
noweOkno.document.writeln("\"http://www.w3.org/TR/html4/loose.dtd\">");
noweOkno.document.writeln("<html>\n<head>");
noweOkno.document.writeln("<title>",naglowek);
noweOkno.document.writeln("</title>");
noweOkno.document.writeln("<link href=\"crispan_popup.css\" rel=\"stylesheet\" type=\"text/css\" />");
noweOkno.document.writeln("</head>");
noweOkno.document.writeln("<body>");
noweOkno.document.writeln("<div id=\"kontener\"><div id=\"obiekt\"><a href=\"javascript:window.close();\"><img width=\"320\" height=\"255\" src=\"images/",adres,"\"></a>");
noweOkno.document.writeln("</div>");
noweOkno.document.writeln("<br/><br/><a href=\"javascript:window.close();\">X zamknij okno</a></div>");
noweOkno.document.writeln("</body>\n</HTML>\n");
noweOkno.document.close(); 
noweOkno.focus(); 		
}
function zamknij() {
noweOkno.close()
}
