function writeFlash(nazwa,x,y,background,zmienne) {

  t = '<embed type="application/x-shockwave-flash" src="' + nazwa + '"';

  t = t + ' width="';
  t = t + x;
  t = t + '" height="';
  t = t + y;
  if (background) { t = t + '" bgcolor="' + background + '"'; }
  	else { 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);

}






var oldLayer;

function info(whichLayer) {


	if (document.getElementById && oldLayer!=whichLayer) {

		// this is the way the standards work
		
		if (oldLayer) {
		  var style2 = document.getElementById(oldLayer).style;
		  style2.display = style2.display?"":"none";


		  var style3 = document.getElementById("zz"+oldLayer).style;
		  style3.display = style3.display?"":"none";


                  var styleq = document.getElementById("z"+oldLayer);
                  styleq.className = styleq.className?"":"highlite";				  

		
		}
					
		var style2 = document.getElementById(whichLayer).style;
		style2.display = style2.display?"":"block";

		var style3 = document.getElementById("zz"+whichLayer).style;
		style3.display = style3.display?"":"block";



		var styleq = document.getElementById("z"+whichLayer);
		styleq.className = styleq.className?"":"highlite";

	
		oldLayer = whichLayer;
		
	}

}


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();
 }