var ShockMode = 0;
		if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) { 
	
			if (navigator.plugins && navigator.plugins["Shockwave Flash"]) {
					var flashPlugin = navigator.plugins['Shockwave Flash'];
				if ( typeof flashPlugin == 'object' ) {
					var re = new RegExp('([0-9]+)\.');
      					var matches = flashPlugin.description.match(re);
					if (matches.length) {
						if (parseInt(matches[1]) >= 5)
							ShockMode = 1;
					}
				} 
			}
		} else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE") >= 0 && (navigator.userAgent.indexOf("Windows 9")>=0 || navigator.userAgent.indexOf("Windows NT")>=0)) { 
		
			document.write('<SCRIPT LANGUAGE=VBScript\> \n'); 
			document.write('on error resume next \n'); 
			document.write('ShockMode = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5"))) '); 
			document.write('<\/SCRIPT\> '); 
		} 
	
function outputSWF(flashFile,width,height,noFlashFile,exampleId){

			if ( ShockMode==1 ) { 
				document.write('<object width="'+width+'" height="'+height+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab##version=5,0,0,0">');
				document.write('<param name="allowScriptAccess" value="sameDomain" />');
				document.write('<param name="movie" value="'+flashFile+'?exampleid='+exampleId+'" />');
				document.write('<param name="quality" value="high" />');
				document.write('<param name="bgcolor" value="##ffffff" />');
				document.write('<param name="wmode" value="transparent" />');
				document.write('<embed  wmode="transparent" src="'+flashFile+'?exampleid='+exampleId+'" quality="high" bgcolor="" width="'+width+'" height="'+height+'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
				document.write('</object>');
			} else {
				document.write('<img src="'+noFlashFile+'" width='+width+' height='+height+'>');
			}
	}
