function showFlash(flashUrl, width, height, imgUrl)
{
    var flash2 = false; flash3 = false; flash4 = false; flash5 = false; flash6 = false; flash7 = false;
    document.writeln('<scr'+'ipt LANGUAGE=VBScript\>');
    document.writeln('on error resume next');
    document.writeln('flash2 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.2")))');
    document.writeln('flash3 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3")))');
    document.writeln('flash4 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4")))');
    document.writeln('flash5 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5")))');
    document.writeln('flash6 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6")))');
    document.writeln('flash7 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.7")))');
    document.writeln('</scr'+'ipt\>');
    
    if (flash5 || flash6 || flash7)
    {
    	    document.write('<object CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
    	    document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"');
   	    document.write(' width="' + width + '" height="' + height + '">');
	    document.write('<par'+'am name="movie"   value="' + flashUrl + '">');
	    document.write('<par'+'am name="quality" value="high">');
	    document.write('<par'+'am name="scale"   value="default">');
	    document.write('<par'+'am name="bgcolor" value="#ffffff">');
	    document.write('<par'+'am name="WMode"   value="Transparent">');
	    document.write('<embed s'+'rc="' + flashUrl + '"');
	    document.write(' quality="high"');
	    document.write(' bgcolor="#ffffff"');
	    document.write(' width="' + width + '"');
	    document.write(' height="' + height + '"');
	    document.write(' type="application/x-shockwave-flash"');
	    document.write(' PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"> ');
	    document.write(' </embed></object>');
    }
    else
    {
    	document.write('<img sr' + 'c="' + imgUrl + '" alt="" width="' + width + '" height="' + height + '">');
    }
}