<!--
function flashDetect(swf, swfW, swfH, requiredVersion, noFlashImg, noFlashURL, bgColor){
	flashDetected = false;
	var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
	var isWin = (navigator.appVersion.indexOf("Windows") != -1) ? true : false;
	if(isIE && isWin){
		document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');
		document.write('on error resume next \n');
		document.write('flashDetected = (IsObject(CreateObject(\"ShockwaveFlash.ShockwaveFlash.'+requiredVersion+'\"))) \n');
		document.write('</SCR' + 'IPT\> \n');
	}
	
	if (navigator.plugins){
		if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]){
			var isVersion2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
			var flashDescription = navigator.plugins["Shockwave Flash" + isVersion2].description;
			var flashVersion = parseInt(flashDescription.charAt(flashDescription.indexOf(".") - 1));
	
			if(flashVersion >= requiredVersion){
				flashDetected=true;
			}
		}
	}
	
	if (!flashDetected){
		if(noFlashImg){
			document.write('<img src=' + noFlashImg + ' width="' + swfW + '" height="' + swfH + '"><br>');
		}else if(noFlashURL){
			document.location = noFlashURL;
		}
	}else{
		document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + swfW + '" height="' + swfH + '" id="imageViewer" align="middle">');
		document.write('<param name="allowScriptAccess" value="sameDomain" />');
		document.write('<param name="movie" value="' + swf + '" />');
		document.write('<param name="quality" value="high" />');
		document.write('<param name="wmode" value="transparent" />');
		document.write('<embed src="' + swf + '" quality="high" wmode="transparent" width="' + swfW + '" height="' + swfH + '" name="imageViewer" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
		document.write('</object>');
	}
}
//-->
