function flash(nazwa,width,height,tryb,bgcolor,quality)
	{
	if (AC_FL_RunContent == 0) 
		{
		alert("This page requires AC_RunActiveContent.js.");
		} 
	else 
		{
		if(quality=='') quality = 'high'; 
		AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
			'width', width,
			'height', height,
			'src', 'flash/'+nazwa,
			'quality', quality,
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'wmode', tryb,
			'bgcolor', bgcolor,
			'devicefont', 'false',
			'id', nazwa,
			'name', nazwa,
			'menu', 'false',
			'allowFullScreen', 'false',
			'allowScriptAccess','sameDomain',
			'movie', 'flash/'+nazwa,
			'salign', ''
			); //end AC code
		}
	}
function write_mhref(user, domain, text)
{
	var at = '@';
	var mail = user + at + domain;
	document.write("<a href='mailto:" + mail + "' title='Napisz do nas'>" + ( text == undefined ? mail : text ) + "</a>");
}
function changeBox(id)
{
	if(id==2)
	{
		document.getElementById('right_menu_1').innerHTML = '<a href="javascript:changeBox(1);"><img src="layout/konkurs.gif" alt=""/></a>';
		document.getElementById('right_menu_2').innerHTML = '<a href="javascript:changeBox(2);"><img src="layout/multimedia_active.gif" alt=""/></a>';
		document.getElementById('right_text_1').style.display = 'none';
		document.getElementById('right_text_2').style.display = '';
	}
	else
	{
		document.getElementById('right_menu_1').innerHTML = '<a href="javascript:changeBox(1);"><img src="layout/konkurs_active.gif" alt=""/></a>';
		document.getElementById('right_menu_2').innerHTML = '<a href="javascript:changeBox(2);"><img src="layout/multimedia.gif" alt=""/></a>';
		document.getElementById('right_text_1').style.display = '';
		document.getElementById('right_text_2').style.display = 'none';
	}
}
function LightboxDelegate(url) 
{
	var objLink = document.createElement('a');
	objLink.setAttribute('href',url);
	objLink.setAttribute('rel','lightbox');
	showLightbox(objLink); 
}
function selectSquare(numer)
{
	var wsp_2 = new Array("57&deg;10'","57&deg;09'","57&deg;08'","57&deg;07'","57&deg;06'","57&deg;05'","57&deg;04'","57&deg;03'","57&deg;02'","57&deg;01'","57&deg;00'","56&deg;59'","56&deg;58'","56&deg;57'","56&deg;56'","56&deg;55'","56&deg;54'","56&deg;53'","56&deg;52'","56&deg;51'","56&deg;50'");
	var wsp_1 = new Array("3&deg;25'","3&deg;26'","3&deg;27'","3&deg;28'","3&deg;29'","3&deg;30'","3&deg;31'","3&deg;32'","3&deg;33'","3&deg;34'","3&deg;35'","3&deg;36'","3&deg;37'","3&deg;38'","3&deg;39'","3&deg;40'","3&deg;41'","3&deg;42'","3&deg;43'","3&deg;44'","3&deg;45'","3&deg;46'","3&deg;47'","3&deg;48'","3&deg;49'","3&deg;50'");
	var pole = new Array("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z");
	var num = numer.replace("_level0.mc","");
	var x = Math.ceil(num/26);
	var y = num%26;
	if(y==0) y = 26;
	document.getElementById('test').innerHTML = 'Wybrano pole '+pole[y-1]+' '+x+' o współrzędnych '+wsp_2[x-1]+'N '+wsp_1[y-1]+'E <input type="hidden" name="box" value="'+num+'"/>';
	document.formularz.pytanie1.disabled = false;
	document.formularz.pytanie1.style.backgroundColor = 'black';
	document.formularz.pytanie2.disabled = false;
	document.formularz.pytanie2.style.backgroundColor = 'black';
	document.formularz.imie.disabled = false;
	document.formularz.imie.style.backgroundColor = 'black';
	document.formularz.email.disabled = false;
	document.formularz.email.style.backgroundColor = 'black';
	document.formularz.adres.disabled = false;
	document.formularz.adres.style.backgroundColor = 'black';
	document.formularz.submit.disabled = false;
	document.formularz.submit.style.backgroundColor = 'black';
	document.formularz.token.disabled = false;
	document.formularz.token.style.backgroundColor = 'black';
	document.formularz.oswiadczenie.disabled = false;
}
