// FLASH DETECTOR
// detect browser
bName = navigator.appName; 
// assign base variables 
flash = "no" 
action = "ns_exec"
if (bName =="Microsoft Internet Explorer") action = "ie_exec"
 // detect plugin for NS or IE(Mac) flash 4 version 
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0); 
if (plugin && parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= 4) flash = "yes"

 // detect flash active-x control for IE Windows');
if (action == "ie_exec") {
	tagFix = '</';
	document.writeln('    <SCRIPT LANGUAGE="VBScript">');
	document.writeln('     on error resume next');
	document.writeln('     If action = "ie_exec" then');
	document.writeln('     	FlashInstalled =(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4"))) ');
	document.writeln('     End If');
	document.writeln('     If FlashInstalled = "True" then');
	document.writeln('     	flash = "yes" ');
	document.writeln('     End If ');
	document.writeln('     ' + tagFix + 'SCRIPT>');
}

var ref = location.search;
if (ref != "" && ref.substring(1,ref.length)=="mac") flash="yes"

//alert("Flash="+flash)

// END FLASH DETECTOR