function CreateFlash(src,w,h)
{
	var MM_contentVersion = 6;
	fn = src.replace(/.*\//,'');
//	alert(GetFlashVersion());
	var MM_FlashCanPlay = GetFlashVersion()[0] >= MM_contentVersion;
/*	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');
		MM_FlashCanPlay = true;
	}*/
	if ( MM_FlashCanPlay ) 
	{
		document.write('<object width="' + w + '" height="' + h + '" style="display: block;" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="'+fn+'">');
		document.write('<param name="wmode" value="opaque"></param>');
		document.write('<param value="' + src + '.swf" name="movie"></param>');
		document.write('<param value="high" name="quality"></param>');
		document.write('<param name="height" value="' + h + '"></param>');
		document.write('<param name="scale" value="noscale">');
		document.write('<embed width="' + w + '" height="' + h + '" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" src="' + src + '.swf" wmode="opaque" name="'+fn+'">');
		document.write('</embed>');
		document.write('</object>');
	} 
	else
	{
		document.write('<img src="' + src + '.jpg" border="0">');
	}
}

function GetFlashVersion()
{
	var d, n = navigator, m, f = 'Shockwave Flash';
	if((m = n.mimeTypes) && (m = m["application/x-shockwave-flash"]) && m.enabledPlugin && (n = n.plugins) && n[f]) 
	{
		d = n[f].description
	}
	else if (window.ActiveXObject)
	{
		try 
			{
				d = (new ActiveXObject((f+'.'+f).replace(/ /g,''))).GetVariable('$version');
			}
		catch (e) 
			{}
	} 
	return d ? d.replace(/\D+/,'').split(/\D+/) : [0,0];
};