
var g_plugin = 0;
if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] &&    
    navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) {
	var version_check = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0); 
	var flash_ver = parseInt(version_check.description.substring(version_check.description.indexOf(".")-1))

	if (navigator.plugins && navigator.plugins["Shockwave Flash"] && flash_ver > 4 )
		g_plugin = 1;
}
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('<SCRIPT LANGUAGE=VBScript> \n');
		document.write('on error resume next \n');
		document.write('g_plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3")))\n');
		document.write('if ( g_plugin <= 0 ) then g_plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4")))\n');
		document.write('if ( g_plugin <= 0 ) then g_plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5")))\n');
		document.write('</SCRI');
		document.write('PT> \n');
}

function flashCheck(moviename, imagename) {

	if ( g_plugin ) {
	
 document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="600" height="302">')
 document.write("<param name=movie value=images/"+moviename+">")
 document.write('<param name=quality value=high>')
 document.write("<embed src=images/"+moviename+" quality=high pluginspage=http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash type=application/x-shockwave-flash width=600 height=302>")
 document.write('</embed>') 
 document.write('</object>')
			}
	else {
		document.write("<img src=images/"+imagename+" border=0>");
	}
}




