var flashPlugin = ( (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0 );
if(flashPlugin) {
	flashPlugin = parseInt(flashPlugin.description.substring(flashPlugin.description.indexOf(".")-1)) >= 6;
} else if(navigator.userAgent && navigator.userAgent.indexOf("MSIE") >= 0 && (navigator.userAgent.indexOf("Windows 95") >= 0 || navigator.userAgent.indexOf("Windows 98")>=0 || navigator.userAgent.indexOf("Windows NT") >= 0)) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');
	document.write('ON ERROR RESUME NEXT\n');
	document.write('flashPlugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5")) )\n');
	document.write('IF (flashPlugin <= 0) THEN flashPlugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6")) )\n');
	document.write('ON ERROR GOTO 0\n');
	document.write('<\/SCR' + 'IPT\> \n');
}
function flash(swf, width, height) {
	if(flashPlugin) {
		document.write('<object width="' + width + '" height="' + height + '" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0">');
		document.write('<param name="movie" value="' + swf +'" />');
//		document.write('<param name="wmode" value="transparent" />');
		document.write('<param name="quality" value="high" />');
		document.write('<embed src="' + swf +'" width="' + width + '" height="' + height + '" quality="high" wmode="transparent" name="flashad" swLiveConnect="TRUE" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
		document.write('</embed>');
		document.write('</object>');
	} else {
		swf = swf.substr(0, swf.indexOf(".") == -1 ? swf.length : swf.lastindexOf(".") );
		document.write('<a href="' + swf + '.map"><img src=' + swf + '.gif" width="' + width + '" height="' + height + '" border="0" alt="' + swf + '" ismap="ismap" /></a>');
	}
}
