function play_flash(res,name,width,height,version,background,wmode) {
	document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"');
	document.write('codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+version+'\"');
	document.write('width=\"'+width+'\"');
	document.write('height=\"'+height+'\"');
	document.write('id=\"'+name+'\">');
	document.write('<param name=\"src\" value=\"'+res+'\" />');
	document.write('<param name=\"allowScriptAccess\" value=\"sameDomain\" />');
	document.write('<param name=\"quality\" value=\"high\" />');
	document.write('<param name=\"bgcolor\" value=\"'+background+'\" />');
	document.write('<param name=\"wmode\" value=\"'+wmode+'\" />');
	document.write('<param name=\"menu\" value=\"0\">');
	document.write('<embed src=\"'+res+'\"');
	document.write('pluginspace=\"http://www.macromedia.com/go/getflash\"');
	document.write('width=\"'+width+'\"');
	document.write('height=\"'+height+'\"');
	document.write('allowScriptAccess=\"sameDomain\"');
	document.write('quality=\"high\"');
	document.write('bgcolor=\"'+background+'\"');
	document.write('wmode=\"'+wmode+'\"');
	document.write('menu=\"0\"');
	document.write('name=\"'+name+'\">');
	document.write('</embed>');
	document.write('</object>');
}

function initialize() {
	flash=document.multisoft;
}

function pomin()
{
	var x = flash.GetVariable("_root.niegotowe");
	if (x == "true") {
		flash.SetVariable("_root.pomin_intro", "true");
		chowaj();
	}
	else {
		flash.SetVariable("_root.pomin_intro", "true");
		flash.gotoFrame(450);
		flash.Play();
		chowaj();
	}
}

function chowaj()
{
var x = document.getElementById('intro');
	x.className = 'ukryj';
var x = document.getElementById('spacja');
	x.className = 'pomin';	
}