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,zmienne) {

  t = '<embed type="application/x-shockwave-flash" src="' + nazwa + '"';

  t = t + ' width="';
  t = t + x;
  t = t + '" height="';
  t = t + y;
  t = t + '" wmode="transparent"';
  t = t + '" scale="noscale"';
  t = t + '" quality="high"';
  t = t + '" salign="t"';
  t = t + '" flashvars="' + zmienne + '"';
  
  t = t + ' />';
     
  document.write (t);

}

