<!--
  // Autorka: Joanna Bart <ibart@alliance.neostrada.pl>

  //rozpoznanie przegl¹darki

  var ie5 = (document.getElementById && document.all);
  var ie4=(document.all)?1:0;
  var ns6 = (document.getElementById && !document.all);
  var nn4=(document.layers)?1:0;

  function ShowImage(wurl,opis,wwidth,wheight )
  {
     //var czas = 10* 1000; //czas do zamkniêcia okna [ms]
     var imgwindow = window.open( '', '', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no, width='+wwidth+',height='+wheight+',left=10,top=10');       //

     imgwindow.document.write("<html><head><title>"+opis+"</title></head><body style='margin:0;padding:0;border:0'><center>")
     imgwindow.document.write("<img src=" + wurl + " alt="+ opis + " width="+wwidth+" height="+wheight+" border=0>");
     imgwindow.document.write("</center></body></html>");
     imgwindow.document.close();
     imgwindow.focus();
     //settimeout(imgwindow.window.close(),25000);
 }
 
 function ShowText(wtitle,wtext,wwidth,wheight)
 {
     //var time = 2* 1000; //czas do zamkniêcia okna [ms]
     var textwindow = window.open( '', '', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no, width='+wwidth+',height='+wheight+',left=10,top=10');       //

     textwindow.document.write("<html><head><title>"+wtitle+"</title></head><body style='margin:0;padding:5px;border:0'>")
     textwindow.document.write("<p>" + wtext + "</p>");
     textwindow.document.write("</body></html>");
     textwindow.document.close();
     textwindow.focus();
     //settimeout(imgwindow.window.close(),time);

 }
 
 function HideLayer(ident){

    if(ie5 || ns6)
        document.getElementById(ident).style.visibility="hidden";
    else if(nn4)
      document.layers[ident].visibility="hide";
    else if(ie4)
      document.all[ident].style.visibility="hidden";

 }
 
 function ShowLayer(ident){

    if(ie5 || ns6)
        document.getElementById(ident).style.visibility="visible";
    else if(nn4)
      document.layers[ident].visibility="show";
    else if(ie4)
      document.all[ident].style.visibility="visible";
}

function SwitchLayer(ident1,ident2){

    if(ie5 || ns6){
        document.getElementById(ident1).style.visibility="hidden";
        document.getElementById(ident2).style.visibility="visible";
    }else if(nn4){
      document.layers[ident1].visibility="hide";
      document.layers[ident2].visibility="show";
    }else if(ie4){
      document.all[ident1].style.visibility="hidden";
      document.all[ident2].style.visibility="visible";

    }
 }
 
 -->
