function write_flash(path, width, height, bgcolor){ // IE Flash activation workaround
	//alert('looking for:'+path);
	document.write(
	'<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" WIDTH="'+width+'" HEIGHT="'+height+'">'
		+'<PARAM NAME=movie VALUE="images/'+path+'">'
		+'<PARAM NAME=quality VALUE=high>'
		+'<PARAM NAME=bgcolor VALUE='+bgcolor+'>'
		+'<EMBED src="images/'+path+'" quality=high bgcolor='+bgcolor+'  WIDTH="'+width+'" HEIGHT="'+height+'" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">'
		+'</EMBED>'
	+'</OBJECT>');
}

/*
<script type="text/javascript"><!--
google_ad_client = "pub-6691852293122942";
google_ad_slot = "0021269383";
google_ad_width = 234;
google_ad_height = 60;
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
*/
function write_adsenseA(){
	google_ad_client = "pub-6691852293122942";
	google_ad_slot = "0021269383";
	google_ad_width = 234;
	google_ad_height = 60;
	document.write('<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>');
}

// ---------------- old functions

function really(form){
	if (confirm ('Vymazat formular?')){return true;}	else{return false;};
}
function checkEnrollForm(form){
	var missing = "Prosim, vyplnte nasledovne:\n";
	if (form.author.value==""){missing +=" - Vase meno alebo email\n";};
    if (form.comment.value==""){missing +=" - Vas komentar:-)\n";};
	if (missing == "Prosim, vyplnte nasledovne:\n"){return true;	}else{alert(missing);	return false;};
}
function checkEnrollForm2(form){
	var missing = "Prosim, vyplnte nasledovne:\n";
	if (form.author.value==""){missing +=" - Vase meno alebo email\n";};
    if (form.reply.value==""){missing +=" - Vas komentar:-)\n";};
	if (missing == "Prosim, vyplnte nasledovne:\n"){return true;	}else{alert(missing);	return false;};
}

function MM_reloadPage(init)
{  //reloads the window if Nav4 resized
   if (init==true) with (navigator)
   {
   	if ((appName=="Netscape")&&(parseInt(appVersion)==4)) 
	   {
	    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; 
	   }
    }
   else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH)
 	location.reload();
}
MM_reloadPage(true);

function MOver()
{
	window.event.srcElement.style.backgroundColor = "#FFFFFF";
	window.event.srcElement.style.textDecoration = "underline";
}

function MOut()
{
	window.event.srcElement.style.backgroundColor = "#FFFF99";
	window.event.srcElement.style.textDecoration = "none";
}

function MOver2()
{
	window.event.srcElement.style.color = "#FF0000";
	window.event.srcElement.style.textDecoration = "underline";
	window.event.srcElement.style.fontWeight = "bold";
}

function MOut2()
{
	window.event.srcElement.style.backgroundColor = "#FFFF99";
	window.event.srcElement.style.textDecoration = "none";
	window.event.srcElement.style.fontWeight = "normal";
	window.event.srcElement.style.color = "#000000";
}

function MOver3()
{
	window.event.srcElement.style.color = "#FF0000";
	window.event.srcElement.style.textDecoration = "underline";
}

function MOut3()
{
	window.event.srcElement.style.textDecoration = "none";
	window.event.srcElement.style.color = "#000000";
}

function MOver4()
{
	window.event.srcElement.style.color = "#FF0000";
	window.event.srcElement.style.textDecoration = "underline";
}

function MOut4()
{
	window.event.srcElement.style.textDecoration = "none";
	window.event.srcElement.style.color = "#000000";
}


function printpage()
{
	if (typeof(window.print) != 'undefined') 
	{
	    window.print();
	}
}

