function show(whichLayer,hide1,hide2)
{
if (document.getElementById)
{
var style2 = document.getElementById(whichLayer).style;
var style3 = document.getElementById(hide1).style;
var style4 = document.getElementById(hide2).style;
style2.display ="block";
style3.display ="none";
style4.display ="none";


}
else if (document.all)
{
var style2 = document.all(whichLayer).style;
var style3 = document.all(hide1).style;
var style4 = document.all(hide2).style;
style2.display ="block";
style3.display ="none";
style4.display ="none";


}
else if (document.layers)
{
// this is the way nn4 works
var style2 = document.layers[whichLayer].style;
var style3 = document.layers[hide1].style;
var style4 = document.layers[hide2].style;
style2.display ="block";
style3.display ="none";
style4.display ="none";


}
}

var oldLayer;

function info(whichLayer)
{
if (document.getElementById)
{
// this is the way the standards work

if (oldLayer && oldLayer!=whichLayer) {
var style2 = document.getElementById(oldLayer).style;
style2.display = style2.display?"":"none";

var styleq = document.getElementById("d"+oldLayer);
styleq.className = styleq.className?"":"highlite";

}

var style2 = document.getElementById(whichLayer).style;
style2.display = style2.display?"":"block";

var styleq = document.getElementById("d"+whichLayer);
styleq.className = styleq.className?"":"highlite";

oldLayer = whichLayer;

}
else if (document.all)
{
// this is the way old msie versions work
var style2 = document.all[whichLayer].style;
style2.display = style2.display?"":"block";
}
else if (document.layers)
{
// this is the way nn4 works
var style2 = document.layers[whichLayer].style;
style2.display = style2.display?"":"block";
}
}


function tgl(whichLayer)
{
if (document.getElementById)
{
// this is the way the standards work
var style2 = document.getElementById(whichLayer).style;
style2.display = style2.display?"":"block";
}
else if (document.all)
{
// this is the way old msie versions work
var style2 = document.all[whichLayer].style;
style2.display = style2.display?"":"block";
}
else if (document.layers)
{
// this is the way nn4 works
var style2 = document.layers[whichLayer].style;
style2.display = style2.display?"":"block";
}
}

function printarticle(articleid) {
	var Opt="toolbar=no,location=no,directories=no,menubar=no,scrollbars=yes,width=750,height=600,left=0,top=0"; 
	var linkname = "print.php?id="+articleid;
 printWindow=window.open(linkname,"printarticle",Opt); 
 printWindow.focus();
 }



function writeFlash(nazwa,x,y,kolor,klasa) {
   if (klasa==null) { klasa="flash";}

  t = '<object class="' + klasa + '" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" ';
  
  t = t + 'width="';
  t = t + x;
  t = t + '" height="';
  t = t + y;
  t = t + '" align="middle">\n';
  
  t = t + '<param name="allowScriptAccess" value="sameDomain" />\n';
  t = t + '<param name="movie" value="' + nazwa + '" />\n';
  t = t + '<param name="quality" value="high" />\n';

  if (kolor) {
    t = t + '<param name="bgcolor" value="' + kolor + '" />\n';
  } else {
    t = t + '<param name="wmode" value="transparent" />\n';  
  }

  t = t + '<embed src="' + nazwa + '" quality="high" width="';
  t = t + x +'" height="' + y + '" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"';
  
  if (kolor) {
    t = t + ' bgcolor="' + kolor + '"';
  } else {
    t = t + ' wmode="transparent"';
  }  
  
  t = t + '/>\n';
  
  t = t + '</object>';
    
  document.write (t);

}