var MM_contentVersion = 6;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	    for (var i = 0; i < words.length; ++i)
	    {
		if (isNaN(parseInt(words[i])))
		continue;
		var MM_PluginVersion = words[i]; 
	    }
	var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
   && (navigator.appVersion.indexOf("Win") != -1)) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
	document.write('on error resume next \n');
	document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
	document.write('</SCR' + 'IPT\> \n');
}

function insertFlashObj(fileName,w,h,params,alternative,bgc){
	if ( MM_FlashCanPlay ) {
		document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\""+w+"\" height=\""+h+"\" border=\"0\" align=\"middle\" ");
		document.write("<param name=\"allowScriptAccess\" value=\"sameDomain\" />");
		document.write("<param name=\"movie\" value=\""+fileName+params+"\" /><param name=\"loop\" value=\"false\" /> ");
		document.write("<param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"#"+bgc+"\" />");
		document.write("<embed src=\""+fileName+params+"\" loop=\"false\" menu=\"false\" quality=\"high\" bgcolor=\"#"+bgc+"\"");
		document.write(" swLiveConnect=\"false\" width=\""+w+"\" height=\""+h+"\" name=\""+fileName+params+"\"");
		document.write(" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" flashvars=\"src_xml="+params+"\">");
		document.write("</embed>");
		document.write("</object>");
	} else{
		document.write(alternative);
	}
}
/*
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="300" height="100" id="HLAVICKA_finish2" align="middle">
					<param name="allowScriptAccess" value="sameDomain" />
					<param name="movie" value="HLAVICKA_finish2.swf" />
					<param name="quality" value="high" />
					<param name="bgcolor" value="#ffffff" />
					<embed src="HLAVICKA_finish2.swf" quality="high" bgcolor="#ffffff" width="300" height="100" name="HLAVICKA_finish2" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
				</object>
*/

/*
function addToFavorites() { 
	if (window.external) 
	{ 
		window.external.AddFavorite(urlAddress,pageName) 
	} else { 
		alert("Sorry! Váš prohlížeč bohužel nepodporuje JS."); 
	} 
}

function openDir( form ) { 
	var newIndex = form.fieldname.selectedIndex; 
	if ( newIndex == 0 ) { 
		alert( "Please select a location!" ); 
	} else { 
		url = form.fieldname.options[ newIndex ].value; 
		if (url) location.href = url; 
	} 
} 

function goUni()
{
	box = document.forms[1].univnav;
	destination = box.options[box.selectedIndex].value;
	if (destination) location.href = destination;
}

function goUniVid()
{
	box = document.forms[1].univid;
	destination = box.options[box.selectedIndex].value;
	if (destination) location.href = destination;
}

function goUniList()
{
	box = document.forms[2].unilist;
	destination = box.options[box.selectedIndex].value;
	if (destination) location.href = destination;
}
*/
/*
function openVideo(url){
	var newWin = window.open(url,"vPlayer","width=370,height=390,menu=no,scrollbar=no,status=no,resizable=no");
	newWin.focus();
}
*/