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;
  t = t + '" bgcolor="' + background + '"';
  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 styleq = document.getElementById("z"+oldLayer);
                  styleq.className = styleq.className?"":"highlite";				  
		}
					
		var style2 = document.getElementById(whichLayer).style;
		style2.display = style2.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();
 }
 
 // seb
 function WinOpen(url,x,y) {
  var options = "toolbar=no,menubar=no,scrollbars=no,resizable=no,width=" + x + ",height=" + y;
  msgWindow=window.open(url,"WinOpen",options);
  msgWindow.focus();
}
function test() {
  alert('test');
}
