/*-------------------------------------------------------------------------------------------------------*/
function showFlash(thisWidth, thisHeight, thisMovie) {
	var minSWFPlayer = 7; // min. SWF-Pluginversion
	var swfPlugin = (navigator.mimeTypes &&
    navigator.mimeTypes['application/x-shockwave-flash']) ?
    navigator.mimeTypes['application/x-shockwave-flash'].enabledPlugin : 0;
	if (swfPlugin) {
	  var pluginversion = parseInt(swfPlugin.description.substring(swfPlugin.description.indexOf('.')-1));
	  swfPlugin = (pluginversion >= minSWFPlayer) ? true : false;
	}
	else if (IE && Win) {
	  document.write(
	    '<script language=VBScript>' + '\n' +
	    'Function checkSWFActiveX()' + '\n' +
	    'Dim hasPlayer, playerversion' + '\n' +
  	  'hasPlayer = false' + '\n' +
	    'playerversion = 10' + '\n' +
	    'Do While playerversion >= ' + minSWFPlayer + '\n' +
	    'On Error Resume Next' + '\n' +
	    'hasPlayer = (IsObject(CreateObject(\"ShockwaveFlash.ShockwaveFlash.\" & playerversion & \"\")))' + '\n' +
	    'If hasPlayer = true Then Exit Do' + '\n' +
	    'playerversion = playerversion - 1' + '\n' +
	    'Loop' + '\n' +
  	  'checkSWFActiveX = hasPlayer' + '\n' +
    	'End Function' + '\n' +
	    '<\/script>'
	  );
	  var swfPlugin = (checkSWFActiveX());
	}
	if (!swfPlugin) {strShow = '<img src="' + thisMovie + '.jpg" alt="" width="' + thisWidth + '" height="' + thisHeight + '" border="0">';}
	else {
		strShow = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="' + thisWidth + '" height="' + thisHeight + '" id="head" align="middle">';
		strShow += '<param name="allowScriptAccess" value="sameDomain" />';
		strShow += '<param name="movie" value="' + thisMovie + '.swf" />';
		strShow += '<param name="quality" value="high" />';
		strShow += '<param name="bgcolor" value="#355188" />';
		strShow += '<embed src="' + thisMovie + '.swf" quality="high" bgcolor="#355188" width="' + thisWidth + '" height="' + thisHeight + '" name="head" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
		strShow += '</' + 'object>';
	}
	document.write(strShow);
}	
/*-------------------------------------------------------------------------------------------------------*/
